20240903@182553.9634 va3pf968tv12njt2u84ca2rhfc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405733 and bi.ref ='324.2031.00.1' and bi.lordem =20
20240903@182553.9994 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182553.9998 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240903@182554.3200 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.3700 va3pf968tv12njt2u84ca2rhfc Query : select top 1 1 valor from td where td.ndoc = 39
20240903@182554.6800 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.7100 va3pf968tv12njt2u84ca2rhfc 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')
20240903@182554.1000 va3pf968tv12njt2u84ca2rhfc 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
20240903@182554.1340 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.1370 va3pf968tv12njt2u84ca2rhfc Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20240903@182554.2670 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.2700 va3pf968tv12njt2u84ca2rhfc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240903@182554.2990 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.3020 va3pf968tv12njt2u84ca2rhfc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240903@182554.3420 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.3440 va3pf968tv12njt2u84ca2rhfc Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20240903@182554.3890 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.3920 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from td where ndoc = 39
20240903@182554.4170 va3pf968tv12njt2u84ca2rhfc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240903@182554.4320 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4500 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240903@182554.4700 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4840 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240903@182554.5140 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5280 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240903@182554.5400 va3pf968tv12njt2u84ca2rhfc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240903@182554.6100 va3pf968tv12njt2u84ca2rhfc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240903@182554.6240 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6400 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240903@182554.6580 va3pf968tv12njt2u84ca2rhfc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240903@182554.8550 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.8730 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240903@182554.9080 va3pf968tv12njt2u84ca2rhfc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240903@182554.9200 va3pf968tv12njt2u84ca2rhfc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240903@182554.9320 va3pf968tv12njt2u84ca2rhfc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240903@182554.9450 va3pf968tv12njt2u84ca2rhfc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240903@182554.9560 va3pf968tv12njt2u84ca2rhfc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240903@182554.9680 va3pf968tv12njt2u84ca2rhfc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240903@182554.9800 va3pf968tv12njt2u84ca2rhfc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d748682966d746a20d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240903@182554.1306 va3pf968tv12njt2u84ca2rhfc Query : select top 1 fno valor from wsftdata order by fno desc
20240903@182554.1333 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.1350 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240903@182554.1373 va3pf968tv12njt2u84ca2rhfc Query : select 'normal' from dummy
20240903@182554.1388 va3pf968tv12njt2u84ca2rhfc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d748682966d746a20d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',605,100404,0,'2024-09-03',39,'euro',0,0,2024 ,?,?)
20240903@182554.1764 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.1767 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.711.00.01'
20240903@182554.1793 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.711.00.01'
20240903@182554.1949 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.1966 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.1994 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.2009 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.2019 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.2033 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.711.00.01' and lote = 'r2301222100a'
20240903@182554.2049 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.3206 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.3219 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749943566d746a232','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.3225 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.3433 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.3467 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749943566d746a232',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240903@182554.3756 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.3774 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.3803 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.3819 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.3827 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.3841 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.3856 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.3868 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747900366d746a25d','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.3873 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.3890 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.3920 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d747900366d746a25d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,20000,?,?,?)
20240903@182554.4202 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.4205 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240903@182554.4226 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20240903@182554.4242 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4259 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.4286 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4301 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.4310 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.4323 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2100904100a'
20240903@182554.4337 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4352 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.4365 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740520966d746a269','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.4369 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4384 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.4415 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d740520966d746a269',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240903@182554.4685 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.4688 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20240903@182554.4709 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20240903@182554.4724 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4757 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.4783 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4798 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.4807 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.4820 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20240903@182554.4832 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4850 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.4862 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749569266d746a275','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.4866 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.4881 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.4910 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749569266d746a275',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240903@182554.5168 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.5172 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20240903@182554.5191 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20240903@182554.5206 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5222 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.5248 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5263 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.5272 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.5284 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20240903@182554.5298 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5312 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.5324 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747902466d746a281','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.5328 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5343 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.5372 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d747902466d746a281',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240903@182554.5621 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.5624 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.2223.00.1'
20240903@182554.5643 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2223.00.1'
20240903@182554.5657 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5673 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.5698 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5714 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.5723 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.5735 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.2223.00.1' and lote = 'r2301281500a'
20240903@182554.5748 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5762 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.5774 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d742414866d746a28c','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.5778 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.5793 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.5823 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d742414866d746a28c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240903@182554.6083 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.6086 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20240903@182554.6107 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2224.00.1'
20240903@182554.6121 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6137 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.6162 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6176 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.6184 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.6196 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20240903@182554.6208 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6222 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.6234 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d744754366d746a297','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.6238 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6252 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.6279 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d744754366d746a297',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240903@182554.6550 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.6553 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.4585.00.1'
20240903@182554.6572 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4585.00.1'
20240903@182554.6585 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6600 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.6623 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6637 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.6645 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.6657 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.4585.00.1' and lote = 'r2300381200a'
20240903@182554.6670 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6684 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.6696 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d743113366d746a2a2','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.6700 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.6714 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.6741 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d743113366d746a2a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240903@182554.6989 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.6992 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.4840.00.1'
20240903@182554.7010 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4840.00.1'
20240903@182554.7024 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7038 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.7063 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7080 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.7090 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.7103 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.4840.00.1' and lote = 'r2400064200a'
20240903@182554.7115 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7130 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.7142 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d744427966d746a2ad','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.7146 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7161 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.7190 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d744427966d746a2ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240903@182554.7437 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.7441 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.4724.00.1'
20240903@182554.7464 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4724.00.1'
20240903@182554.7657 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7675 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.7706 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7723 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.7733 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.7747 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.4724.00.1' and lote = 'r2200085150a'
20240903@182554.7762 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7777 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.7788 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748111566d746a2bd','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.7793 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.7808 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.7836 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d748111566d746a2bd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240903@182554.8091 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.8094 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20240903@182554.8113 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2221.00.1'
20240903@182554.8127 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.8142 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.8166 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.8180 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.8190 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.8206 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.2221.00.1' and lote = 'r2301280100a'
20240903@182554.9386 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.9408 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.9420 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d745733566d746a2e5','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.9425 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.9439 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.9467 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d745733566d746a2e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240903@182554.9818 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182554.9832 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.2222.00.1'
20240903@182554.9859 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2222.00.1'
20240903@182554.9872 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.9887 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182554.9912 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.9927 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.9936 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182554.9948 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.2222.00.1' and lote = 'r2301281400a'
20240903@182554.9961 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182554.9975 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182554.9986 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749071766d746a2f3','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182554.9990 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.5000 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.3400 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749071766d746a2f3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240903@182555.3850 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.3890 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.2160.00.1'
20240903@182555.4130 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2160.00.1'
20240903@182555.5810 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.6000 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.6270 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.6410 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.6490 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.6610 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.2160.00.1' and lote = 'r2300936200a'
20240903@182555.6750 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.6890 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.7020 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d744762566d746a310','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.7060 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7210 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.7480 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d744762566d746a310',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240903@182555.1033 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.1036 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.2160.00.1'
20240903@182555.1067 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2160.00.1'
20240903@182555.1083 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.1100 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.1125 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.1140 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.1149 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.1162 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.2160.00.1' and lote = 'r2300936200a'
20240903@182555.1176 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.1191 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.1204 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748115566d746a31c','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.1209 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.1224 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.1265 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d748115566d746a31c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20240903@182555.1773 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.1776 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1293.00.1'
20240903@182555.1873 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1293.00.1'
20240903@182555.2040 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2057 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.2081 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2095 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.2104 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.2115 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1293.00.1' and lote = 'r2101042200a'
20240903@182555.2129 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2142 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.2154 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748762566d746a333','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.2158 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2171 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.2197 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d748762566d746a333',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240903@182555.2500 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2517 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.2543 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2557 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.2566 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.2578 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2592 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.2604 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d742882166d746a33e','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.2609 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.2622 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.2649 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d742882166d746a33e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,170000,?,?,?)
20240903@182555.2903 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.2906 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20240903@182555.2926 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1221.00.1'
20240903@182555.3073 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3089 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.3113 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3127 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.3135 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.3148 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20240903@182555.3162 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3176 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.3187 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749791366d746a34d','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.3191 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3205 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.3231 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749791366d746a34d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',26.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240903@182555.3488 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3504 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.3527 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3541 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.3550 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.3561 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3575 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.3586 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748010566d746a356','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.3590 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3604 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.3630 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d748010566d746a356',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,200000,?,?,?)
20240903@182555.3875 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.3878 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20240903@182555.3897 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1221.00.1'
20240903@182555.3911 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3927 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.3951 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.3965 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.3973 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.3984 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20240903@182555.3996 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.4010 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.4021 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d745214466d746a361','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.4025 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.4039 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.4067 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d745214466d746a361',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240903@182555.4328 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.4343 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.4367 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.4380 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.4388 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.4400 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.4414 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.4425 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d746297166d746a36b','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.4428 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.4442 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.4469 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d746297166d746a36b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,230000,?,?,?)
20240903@182555.4776 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.4779 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20240903@182555.4799 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1643.00.1'
20240903@182555.4958 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.4974 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.4999 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.5013 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.5021 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.5035 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20240903@182555.5049 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.5063 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.5074 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747972566d746a37b','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.5078 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.5092 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.5118 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d747972566d746a37b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240903@182555.5374 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.5377 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240903@182555.5396 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182555.5409 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.5423 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.5853 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.6627 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.6635 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.6648 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240903@182555.6660 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.6674 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.6685 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d741695266d746a3a2','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.6689 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.6704 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.6730 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d741695266d746a3a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,260000,?,?,?,?,?)
20240903@182555.6997 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7011 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.7034 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7048 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.7057 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.7068 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7082 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.7093 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d742783166d746a3ac','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.7098 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7112 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.7138 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d742783166d746a3ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,270000,?,?,?)
20240903@182555.7378 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.7380 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20240903@182555.7399 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182555.7413 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7427 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.7451 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7465 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.7473 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.7484 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2301271200a'
20240903@182555.7496 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7510 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.7521 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740105866d746a3b7','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.7524 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7540 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.7566 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d740105866d746a3b7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,290000,?,?,?,?,?)
20240903@182555.7812 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7826 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.7850 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7864 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.7872 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.7883 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7898 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.7910 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740937666d746a3c0','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.7913 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.7927 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.7954 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d740937666d746a3c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,300000,?,?,?)
20240903@182555.8188 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.8191 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240903@182555.8211 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20240903@182555.8360 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.8376 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.8401 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.8415 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.8423 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.8434 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240903@182555.8594 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.8611 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.8623 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748767766d746a3d1','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.8627 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.8641 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.8668 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d748767766d746a3d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,320000,?,?,?,?,?)
20240903@182555.8956 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.8971 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.8996 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.9010 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.9018 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.9030 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.9044 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.9056 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747871866d746a3dc','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.9060 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.9073 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.9108 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d747871866d746a3dc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,330000,?,?,?)
20240903@182555.9431 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182555.9434 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240903@182555.9455 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20240903@182555.9607 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.9623 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.9648 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.9662 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.9670 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182555.9698 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240903@182555.9711 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.9725 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182555.9736 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749954266d746a3ed','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182555.9740 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182555.9754 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182555.9782 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749954266d746a3ed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,350000,?,?,?,?,?)
20240903@182556.2230 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182556.2260 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240903@182556.2450 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20240903@182556.2580 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2740 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.2980 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.3120 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.3200 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182556.3310 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240903@182556.3430 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.3570 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.3680 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d741070766d746a408','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182556.3730 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.3860 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.4160 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d741070766d746a408',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,360000,?,?,?,?,?)
20240903@182556.6870 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182556.6900 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240903@182556.7620 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182556.9160 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.9310 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.9560 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.9700 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.9780 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182556.9900 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240903@182556.1003 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.1017 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.1028 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d746213066d746a418','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182556.1032 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.1046 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.1073 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d746213066d746a418',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,370000,?,?,?,?,?)
20240903@182556.1337 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182556.1340 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240903@182556.1359 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182556.1372 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.1386 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.1414 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.1428 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.1437 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182556.1448 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240903@182556.1461 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.1476 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.1487 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748774066d746a423','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182556.1492 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.1507 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.1534 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d748774066d746a423',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,380000,?,?,?,?,?)
20240903@182556.1799 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182556.1802 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.5365.00.1'
20240903@182556.1822 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182556.2006 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2021 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.2045 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2060 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.2068 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182556.2079 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.5365.00.1' and lote = 'r2300840100a'
20240903@182556.2093 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2109 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.2120 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740552966d746a433','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182556.2124 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2138 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.2165 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d740552966d746a433',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,390000,?,?,?,?,?)
20240903@182556.2433 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2448 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.2472 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2486 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.2494 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182556.2505 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2519 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.2530 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749305266d746a43d','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182556.2536 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2550 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.2575 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d749305266d746a43d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,400000,?,?,?)
20240903@182556.2813 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182556.2815 va3pf968tv12njt2u84ca2rhfc Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240903@182556.2835 va3pf968tv12njt2u84ca2rhfc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182556.2983 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.2998 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.3022 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.3036 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.3044 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182556.3055 va3pf968tv12njt2u84ca2rhfc Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240903@182556.3068 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.3082 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.3094 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749277966d746a44a','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182556.3097 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.3111 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.3139 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749277966d746a44a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,420000,?,?,?,?,?)
20240903@182556.4484 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.4502 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.4530 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.4544 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.4552 va3pf968tv12njt2u84ca2rhfc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182556.4563 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.4577 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182556.4588 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d746957466d746a46f','aut66d748682966d746a20d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182556.4592 va3pf968tv12njt2u84ca2rhfc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182556.4606 va3pf968tv12njt2u84ca2rhfc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182556.4633 va3pf968tv12njt2u84ca2rhfc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d746957466d746a46f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d748682966d746a20d' ,0,0 ,2,23.00,430000,?,?,?)
20240903@182556.4915 va3pf968tv12njt2u84ca2rhfc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d748682966d746a20d','2405733','wait',39,'adm09112754980.682000002')
20240903@182556.4989 va3pf968tv12njt2u84ca2rhfc Query : use flama_phc
20240903@182556.4992 va3pf968tv12njt2u84ca2rhfc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@182556.5024 va3pf968tv12njt2u84ca2rhfc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1827';
20240903@182556.5065 va3pf968tv12njt2u84ca2rhfc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1827';
20240903@182556.5111 va3pf968tv12njt2u84ca2rhfc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1827';
20240903@182556.5137 va3pf968tv12njt2u84ca2rhfc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1827';
20240903@182556.5775 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240903@182556.5787 scn8tgos9ib4c3klq3f5hfkh20 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240903@182556.5848 scn8tgos9ib4c3klq3f5hfkh20 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1828';
20240903@182556.5913 scn8tgos9ib4c3klq3f5hfkh20 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1828';
20240903@182556.5964 scn8tgos9ib4c3klq3f5hfkh20 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1828';
20240903@182556.5992 scn8tgos9ib4c3klq3f5hfkh20 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1828';
20240903@182556.6043 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182556.6046 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240903@182556.6115 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182556.6119 scn8tgos9ib4c3klq3f5hfkh20 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20240903@182556.6162 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240903@182556.6183 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4970.00.1' and bi.lordem =1
20240903@182556.6525 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20240903@182556.6684 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1685.00.1' and bi.lordem =2
20240903@182556.6998 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240903@182556.7021 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1667.00.1' and bi.lordem =3
20240903@182556.7345 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240903@182556.7366 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.736.00.01' and bi.lordem =4
20240903@182556.7682 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20240903@182556.7842 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4990.00.1' and bi.lordem =5
20240903@182556.8153 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20240903@182556.8357 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1266.00.1' and bi.lordem =6
20240903@182556.8683 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240903@182556.8866 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.5342.00.1' and bi.lordem =7
20240903@182556.9194 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1406.00.1'
20240903@182556.9351 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1406.00.1' and bi.lordem =8
20240903@182556.9667 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20240903@182556.9690 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.2066.00.1' and bi.lordem =9
20240903@182557.2000 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240903@182557.1830 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1690.00.1' and bi.lordem =10
20240903@182557.6350 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4902.00.1'
20240903@182557.6560 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4902.00.1' and bi.lordem =11
20240903@182557.9860 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4906.00.1'
20240903@182557.1006 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4906.00.1' and bi.lordem =12
20240903@182557.1324 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20240903@182557.1505 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1462.00.1' and bi.lordem =13
20240903@182557.2326 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240903@182557.2348 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4980.00.1' and bi.lordem =14
20240903@182557.3078 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4910.00.1'
20240903@182557.3253 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4910.00.1' and bi.lordem =15
20240903@182557.3573 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4910.00.1'
20240903@182557.3593 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4910.00.1' and bi.lordem =15
20240903@182557.3635 scn8tgos9ib4c3klq3f5hfkh20 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'
20240903@182557.3655 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4960.00.1' and bi.lordem =16
20240903@182557.3980 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20240903@182557.4144 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.4988.00.1' and bi.lordem =17
20240903@182557.4472 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240903@182557.4495 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.2031.00.1' and bi.lordem =18
20240903@182557.4848 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.711.00.01'
20240903@182557.4869 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.711.00.01' and bi.lordem =19
20240903@182557.5232 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20240903@182557.5254 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1646.00.1' and bi.lordem =20
20240903@182557.5569 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1536.00.1'
20240903@182557.5589 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1536.00.1' and bi.lordem =21
20240903@182557.5889 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2160.00.1'
20240903@182557.5910 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.2160.00.1' and bi.lordem =22
20240903@182557.6272 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1221.00.1'
20240903@182557.6294 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1221.00.1' and bi.lordem =23
20240903@182557.6856 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240903@182557.6876 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1832.00.2' and bi.lordem =24
20240903@182557.7223 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240903@182557.7243 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1833.00.2' and bi.lordem =25
20240903@182557.7597 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20240903@182557.7761 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.2231.00.2' and bi.lordem =26
20240903@182557.8281 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20240903@182557.8448 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1847.00.1' and bi.lordem =27
20240903@182557.8767 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240903@182557.8923 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.657.00.01' and bi.lordem =28
20240903@182557.9249 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240903@182557.9407 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.682.00.01' and bi.lordem =29
20240903@182557.9754 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240903@182558.1080 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.692.00.01' and bi.lordem =30
20240903@182558.4750 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5361.00.1'
20240903@182558.6480 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.5361.00.1' and bi.lordem =31
20240903@182558.9980 scn8tgos9ib4c3klq3f5hfkh20 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'
20240903@182558.1173 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.5396.00.1' and bi.lordem =32
20240903@182558.1507 scn8tgos9ib4c3klq3f5hfkh20 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'
20240903@182558.1873 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1805.00.1' and bi.lordem =33
20240903@182558.2240 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20240903@182558.2414 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.675.00.01' and bi.lordem =34
20240903@182558.2748 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20240903@182558.2992 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.686.00.01' and bi.lordem =35
20240903@182558.3320 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.679.00.01'
20240903@182558.3667 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.679.00.01' and bi.lordem =36
20240903@182558.4013 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1871.00.1'
20240903@182558.4185 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.1871.00.1' and bi.lordem =37
20240903@182558.4502 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.728.00.01'
20240903@182558.4657 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.728.00.01' and bi.lordem =38
20240903@182558.5060 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20240903@182558.5228 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405734 and bi.ref ='324.729.00.01' and bi.lordem =39
20240903@182558.5744 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.5748 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240903@182558.5785 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.5788 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 1 valor from td where td.ndoc = 39
20240903@182558.5840 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.5843 scn8tgos9ib4c3klq3f5hfkh20 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')
20240903@182558.5876 scn8tgos9ib4c3klq3f5hfkh20 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
20240903@182558.5919 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.5923 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20240903@182558.5953 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.5956 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240903@182558.5986 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.5989 scn8tgos9ib4c3klq3f5hfkh20 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240903@182558.6029 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.6033 scn8tgos9ib4c3klq3f5hfkh20 Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20240903@182558.6081 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.6084 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from td where ndoc = 39
20240903@182558.6096 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240903@182558.6110 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.6126 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240903@182558.6146 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.6162 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240903@182558.6191 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.6206 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240903@182558.6219 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240903@182558.6289 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240903@182558.6303 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.6336 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240903@182558.7479 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240903@182558.7667 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.7684 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240903@182558.7715 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240903@182558.7726 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240903@182558.7737 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240903@182558.7748 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240903@182558.7759 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240903@182558.7770 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240903@182558.7780 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d747578966d746a697',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240903@182558.8013 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 fno valor from wsftdata order by fno desc
20240903@182558.8103 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.8129 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240903@182558.8162 scn8tgos9ib4c3klq3f5hfkh20 Query : select 'normal' from dummy
20240903@182558.8176 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d747578966d746a697',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',606,100404,0,'2024-09-03',39,'euro',0,0,2024 ,?,?)
20240903@182558.8474 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.8515 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240903@182558.8681 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240903@182558.8695 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.8712 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182558.8735 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.8749 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182558.8757 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182558.8768 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240903@182558.8781 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.8798 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182558.8809 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d746196866d746a6d6','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182558.8814 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.8828 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182558.8854 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d746196866d746a6d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240903@182558.9113 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.9116 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240903@182558.9145 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20240903@182558.9304 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9319 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182558.9344 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9359 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182558.9367 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182558.9379 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240903@182558.9393 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9407 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182558.9419 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d743620366d746a6e5','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182558.9423 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9437 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182558.9466 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d743620366d746a6e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240903@182558.9809 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182558.9813 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240903@182558.9831 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240903@182558.9844 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9860 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182558.9885 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9898 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182558.9908 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182558.9919 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240903@182558.9931 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9944 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182558.9955 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749456666d746a6f2','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182558.9959 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182558.9973 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182558.9999 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749456666d746a6f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240903@182559.4770 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4950 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.5210 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5350 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.5440 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.5560 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5700 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.5830 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d745325066d746a70d','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.5880 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6020 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.6300 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d745325066d746a70d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,40000,?,?,?)
20240903@182559.9120 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.9150 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240903@182559.9350 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.736.00.01'
20240903@182559.9480 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9640 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.9900 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.1005 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.1013 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.1025 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240903@182559.1037 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.1051 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.1063 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747245966d746a719','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.1067 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.1083 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.1111 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d747245966d746a719',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240903@182559.1371 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.1375 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20240903@182559.1395 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20240903@182559.1561 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.1578 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.1611 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.1680 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.1689 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.1702 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20240903@182559.1716 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.1755 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.1767 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d745416866d746a729','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.1771 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.1786 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.1816 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d745416866d746a729',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240903@182559.2080 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.2083 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20240903@182559.2103 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1266.00.1'
20240903@182559.2434 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.2450 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.2475 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.2497 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.2505 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.2517 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20240903@182559.2530 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.2547 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.2558 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740136466d746a73d','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.2562 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.2576 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.2604 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d740136466d746a73d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240903@182559.3017 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4047 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.4073 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4089 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.4098 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.4110 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4124 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.4135 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d741232866d746a764','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.4140 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4154 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.4181 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d741232866d746a764',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,90000,?,?,?)
20240903@182559.4463 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.4466 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240903@182559.4487 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5342.00.1'
20240903@182559.4645 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4661 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.4685 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4699 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.4707 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.4719 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20240903@182559.4732 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4746 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.4758 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740217466d746a773','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.4762 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.4777 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.4804 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d740217466d746a773',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240903@182559.5082 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5099 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.5125 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5139 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.5148 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.5159 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5173 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.5184 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749683866d746a77d','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.5188 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5201 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.5227 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d749683866d746a77d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,120000,?,?,?)
20240903@182559.5562 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.5565 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1406.00.1'
20240903@182559.5585 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1406.00.1'
20240903@182559.5755 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5770 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.5793 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5807 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.5815 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.5827 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1406.00.1' and lote = '10/20'
20240903@182559.5839 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5853 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.5863 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d744882766d746a78e','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.5867 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.5881 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.5908 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d744882766d746a78e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240903@182559.6177 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.6180 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240903@182559.6199 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2066.00.1'
20240903@182559.6212 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6228 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.6254 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6268 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.6277 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.6292 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240903@182559.6305 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6320 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.6331 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749191966d746a799','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.6335 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6350 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.6376 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749191966d746a799',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20240903@182559.6838 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6855 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.6881 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6895 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.6904 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.6916 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6930 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.6942 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d741880666d746a7a8','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.6946 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.6960 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.6987 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d741880666d746a7a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,160000,?,?,?)
20240903@182559.7252 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.7255 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240903@182559.7274 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1690.00.1'
20240903@182559.7423 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.7438 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.7462 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.7476 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.7484 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.7496 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240903@182559.7509 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.7523 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.7536 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747230966d746a7b7','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.7540 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.7555 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.7583 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d747230966d746a7b7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240903@182559.7842 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.7857 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.7894 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.7962 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.7970 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.7982 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.7996 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.8008 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d742703366d746a7c2','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.8013 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8027 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.8055 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d742703366d746a7c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,190000,?,?,?)
20240903@182559.8319 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.8322 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20240903@182559.8340 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4902.00.1'
20240903@182559.8353 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8368 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.8392 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8406 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.8414 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.8425 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20240903@182559.8438 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8452 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.8463 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d743733066d746a7ce','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.8467 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8481 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.8509 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d743733066d746a7ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20240903@182559.8797 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8813 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.8837 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8850 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.8858 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.8870 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8884 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.8896 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747182466d746a7d8','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.8900 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.8914 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.8941 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d747182466d746a7d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,220000,?,?,?)
20240903@182559.9194 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182559.9197 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20240903@182559.9215 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4906.00.1'
20240903@182559.9233 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9248 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.9272 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9286 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.9295 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.9307 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20240903@182559.9320 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9333 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.9346 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d742026066d746a7e3','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.9350 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9364 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.9393 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d742026066d746a7e3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,240000,?,?,?,?,?)
20240903@182559.9814 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9859 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.9885 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9900 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.9915 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182559.9928 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9942 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182559.9954 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747930166d746a7f2','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182559.9958 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182559.9972 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182559.9998 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d747930166d746a7f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,250000,?,?,?)
20240903@182600.2760 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.2790 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20240903@182600.2990 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1462.00.1'
20240903@182600.4650 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4830 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.5080 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5210 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.5300 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.5420 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2101096200a'
20240903@182600.5560 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5700 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.5830 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d742945066d746a80d','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.5870 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.6010 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.6300 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d742945066d746a80d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,270000,?,?,?,?,?)
20240903@182600.8920 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.8950 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240903@182600.9130 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4980.00.1'
20240903@182600.9270 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9420 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.9660 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9820 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.9900 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.1002 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240903@182600.1015 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.1029 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.1040 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749771466d746a818','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.1053 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.1067 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.1110 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749771466d746a818',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,280000,?,?,?,?,?)
20240903@182600.2375 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.2380 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4910.00.1'
20240903@182600.2400 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4910.00.1'
20240903@182600.2566 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.2581 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.2606 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.2620 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.2628 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.2640 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4910.00.1' and lote = 'r2100754100a'
20240903@182600.2653 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.2667 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.2680 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748961966d746a840','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.2684 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.2698 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.2726 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d748961966d746a840',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,290000,?,?,?,?,?)
20240903@182600.2999 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.3002 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4910.00.1'
20240903@182600.3020 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4910.00.1'
20240903@182600.3032 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3048 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.3073 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3088 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.3096 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.3108 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4910.00.1' and lote = 'r2100754100a'
20240903@182600.3120 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3134 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.3145 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740337966d746a84c','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.3149 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3163 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.3190 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d740337966d746a84c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,300000,?,?,?,?,?)
20240903@182600.3509 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.3512 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240903@182600.3597 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182600.3611 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3628 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.3652 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3666 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.3675 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.3686 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240903@182600.3698 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3711 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.3723 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747953566d746a85a','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.3728 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.3753 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.3782 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d747953566d746a85a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,310000,?,?,?,?,?)
20240903@182600.4060 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.4063 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240903@182600.4083 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20240903@182600.4235 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4251 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.4276 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4290 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.4298 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.4310 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240903@182600.4322 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4337 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.4348 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d746645166d746a869','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.4352 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4366 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.4394 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d746645166d746a869',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,320000,?,?,?,?,?)
20240903@182600.4654 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.4657 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240903@182600.4675 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240903@182600.4689 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4704 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.4912 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4928 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.4936 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.4949 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240903@182600.4960 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.4975 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.4986 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d749054566d746a879','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.4991 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5005 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.5032 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d749054566d746a879',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,330000,?,?,?,?,?)
20240903@182600.5319 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5335 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.5359 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5375 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.5383 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.5394 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5408 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.5419 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747111466d746a883','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.5423 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5436 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.5463 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d747111466d746a883',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,340000,?,?,?)
20240903@182600.5706 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.5709 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.711.00.01'
20240903@182600.5727 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.711.00.01'
20240903@182600.5740 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5754 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.5779 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5792 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.5801 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.5813 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.711.00.01' and lote = 'r2301222100a'
20240903@182600.5825 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5839 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.5850 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d746175666d746a88e','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.5854 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.5868 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.5895 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d746175666d746a88e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,360000,?,?,?,?,?)
20240903@182600.6417 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.6955 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.6997 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7014 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.7023 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.7038 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7052 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.7063 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d744903766d746a8ab','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.7067 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7081 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.7112 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d744903766d746a8ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,370000,?,?,?)
20240903@182600.7394 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.7397 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20240903@182600.7415 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20240903@182600.7429 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7444 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.7469 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7484 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.7492 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.7504 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2100904100a'
20240903@182600.7543 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7557 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.7568 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d741172566d746a8b8','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.7572 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7588 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.7615 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d741172566d746a8b8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,390000,?,?,?,?,?)
20240903@182600.7880 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.7883 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20240903@182600.7902 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20240903@182600.7915 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7930 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.7956 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.7970 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.7979 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.7990 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20240903@182600.8003 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8016 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.8027 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d742224366d746a8c3','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.8032 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8046 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.8073 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d742224366d746a8c3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,400000,?,?,?,?,?)
20240903@182600.8326 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.8328 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.2160.00.1'
20240903@182600.8348 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2160.00.1'
20240903@182600.8361 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8376 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.8402 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8416 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.8424 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.8437 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.2160.00.1' and lote = 'r2300936200a'
20240903@182600.8449 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8462 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.8474 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d745140166d746a8ce','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.8478 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8492 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.8548 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d745140166d746a8ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,410000,?,?,?,?,?)
20240903@182600.8826 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.8829 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20240903@182600.8848 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1221.00.1'
20240903@182600.8861 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8878 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.8902 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8916 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.8925 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.8937 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20240903@182600.8950 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8964 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.8975 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d740819566d746a8da','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.8979 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.8993 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.9020 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d740819566d746a8da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,420000,?,?,?,?,?)
20240903@182600.9271 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9287 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.9311 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9326 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.9334 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.9346 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9360 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.9371 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d747581066d746a8e4','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.9375 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9389 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.9417 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d747581066d746a8e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,430000,?,?,?)
20240903@182600.9783 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182600.9787 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240903@182600.9805 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20240903@182600.9819 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9836 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.9862 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9877 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.9886 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182600.9897 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301271100a'
20240903@182600.9910 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9924 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182600.9935 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d745741866d746a8f1','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182600.9939 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182600.9953 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182600.9982 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d745741866d746a8f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,450000,?,?,?,?,?)
20240903@182601.2490 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.2640 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182601.2900 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.3050 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182601.3140 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182601.3270 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.3410 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182601.3520 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d748563666d746a907','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182601.3560 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.3700 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182601.3980 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d748563666d746a907',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,460000,?,?,?)
20240903@182601.1670 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182601.1674 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240903@182601.1693 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20240903@182601.1706 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.1722 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182601.1813 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.1829 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182601.1839 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182601.1850 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20240903@182601.1861 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.1875 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182601.1885 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d745470566d746a92d','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182601.1890 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.1903 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182601.1959 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d745470566d746a92d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d747578966d746a697' ,0,0 ,2,23.00,480000,?,?,?,?,?)
20240903@182601.2221 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182601.2225 scn8tgos9ib4c3klq3f5hfkh20 Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20240903@182601.2245 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2231.00.2'
20240903@182601.2393 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.2408 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240903@182601.2434 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.2450 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182601.2458 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@182601.2474 scn8tgos9ib4c3klq3f5hfkh20 Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2300389200a'
20240903@182601.2483 scn8tgos9ib4c3klq3f5hfkh20 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@182601.2497 scn8tgos9ib4c3klq3f5hfkh20 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240903@182601.2509 scn8tgos9ib4c3klq3f5hfkh20 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d746273666d746a93c','aut66d747578966d746a697' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240903@182601.2593 scn8tgos9ib4c3klq3f5hfkh20 Query : use flama_phc
20240903@182601.2597 scn8tgos9ib4c3klq3f5hfkh20 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240903@182601.2703 scn8tgos9ib4c3klq3f5hfkh20 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1828';
20240903@182601.2789 scn8tgos9ib4c3klq3f5hfkh20 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1828';
20240903@183658.4921 ue1t8bmjbb7deel9gupaln58vl Query : use flama_phc
20240903@183658.4925 ue1t8bmjbb7deel9gupaln58vl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@183658.5018 ue1t8bmjbb7deel9gupaln58vl Query : use flama_phc
20240903@183658.5022 ue1t8bmjbb7deel9gupaln58vl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@191958.3863 spl90km1dcdlidvr2ns0h0ghch Query : use flama_phc
20240903@191958.3868 spl90km1dcdlidvr2ns0h0ghch Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@191958.3964 spl90km1dcdlidvr2ns0h0ghch Query : use flama_phc
20240903@191958.3968 spl90km1dcdlidvr2ns0h0ghch Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@192626.8997 fchdbsj4gd83ndo1kkriguuqsf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240903@192626.9027 fchdbsj4gd83ndo1kkriguuqsf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240903@192626.9120 fchdbsj4gd83ndo1kkriguuqsf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1829';
20240903@192626.9179 fchdbsj4gd83ndo1kkriguuqsf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1829';
20240903@192626.9235 fchdbsj4gd83ndo1kkriguuqsf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1829';
20240903@192626.9267 fchdbsj4gd83ndo1kkriguuqsf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1829';
20240903@192626.9310 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192626.9314 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240903@192626.9424 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.649.00.01'
20240903@192626.9564 fchdbsj4gd83ndo1kkriguuqsf 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 = 2400408 and bi.ref ='324.649.00.01' and bi.lordem =20000
20240903@192626.9935 fchdbsj4gd83ndo1kkriguuqsf 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 = 'cps24041055463,538000002 ' 
20240903@192627.3090 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192627.3130 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 1 valor from ts where ts.ndos = 61
20240903@192627.4290 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192627.4330 fchdbsj4gd83ndo1kkriguuqsf 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')
20240903@192627.4970 fchdbsj4gd83ndo1kkriguuqsf 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
20240903@192627.6530 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192627.6560 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 ~inactivo valor from fl where no = '202549' and estab = 00 order by inactivo desc
20240903@192627.7820 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192627.7850 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from ts where ndos = 61
20240903@192627.8630 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.1166 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240903@192627.1180 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.1196 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240903@192627.1206 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.1225 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240903@192627.1236 fchdbsj4gd83ndo1kkriguuqsf 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
20240903@192627.1372 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240903@192627.1476 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240903@192627.1501 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192627.1509 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202549' and estab=00
20240903@192627.1601 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.1621 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240903@192627.1637 fchdbsj4gd83ndo1kkriguuqsf Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d755290666d754d324',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240903@192627.1820 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.1840 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240903@192627.1856 fchdbsj4gd83ndo1kkriguuqsf Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d755290666d754d324','--','bo',7.8658892128279883381 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240903@192627.2056 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.2087 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240903@192627.2103 fchdbsj4gd83ndo1kkriguuqsf 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 ('aut66d755290666d754d324','guia r. fornecedor','2024-09-03',61,2402452,?,?,?,?,?,?,?,?,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')
20240903@192627.3829 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192627.3832 fchdbsj4gd83ndo1kkriguuqsf Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20240903@192627.3866 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.649.00.01'
20240903@192627.4018 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.4037 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240903@192627.4053 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.4068 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240903@192627.4078 fchdbsj4gd83ndo1kkriguuqsf Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400408200a'
20240903@192627.4094 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.4111 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240903@192627.4121 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.4140 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240903@192627.4154 fchdbsj4gd83ndo1kkriguuqsf Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d751775666d754d364',?,?,'20240903',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240903@192627.4714 fchdbsj4gd83ndo1kkriguuqsf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240903@192627.4758 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.4776 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240903@192627.4790 fchdbsj4gd83ndo1kkriguuqsf Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d759277066d754d374','aut66d755290666d754d324',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 = 'aut66d755290666d754d324'
20240903@192627.4976 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240903@192627.4996 fchdbsj4gd83ndo1kkriguuqsf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240903@192627.5018 fchdbsj4gd83ndo1kkriguuqsf 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 'aut66d759277066d754d374',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1120, 1120*.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 ,24.01,24.01*200.48,24.01,24.01*200.48 ,0,0,'un ','' ,bo.marcada,1 ,24.01*1120,24.01*1120*200.48 ,26.993000,26.993000*200.48 ,26.993000,26.993000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,24.01,24.01*200.48,24.01*1120,24.01*1120*200.48,'cps24041055463,538000002 ',188.86,188.86*1120,188.86,188.86*1120,?,?,?,4 from bo bo where bo.bostamp = 'aut66d755290666d754d324'
20240903@192634.8055 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192634.8059 fchdbsj4gd83ndo1kkriguuqsf Query : declare @bostamp varchar(25) = 'aut66d755290666d754d324' ,@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 
20240903@192646.9379 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192646.9384 fchdbsj4gd83ndo1kkriguuqsf Query : select 1 valor from bo where bo.bostamp = 'aut66d755290666d754d324'
20240903@192646.9503 fchdbsj4gd83ndo1kkriguuqsf 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) = 'aut66d755290666d754d324' 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 
20240903@192647.2157 fchdbsj4gd83ndo1kkriguuqsf Query : use flama_phc
20240903@192647.2161 fchdbsj4gd83ndo1kkriguuqsf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@192647.2217 fchdbsj4gd83ndo1kkriguuqsf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1829';
20240903@192647.2257 fchdbsj4gd83ndo1kkriguuqsf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1829';
20240903@193658.2336 3nccp3sl2asf7ncrnkri093a48 Query : use flama_phc
20240903@193658.2341 3nccp3sl2asf7ncrnkri093a48 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@193658.2508 3nccp3sl2asf7ncrnkri093a48 Query : use flama_phc
20240903@193658.2512 3nccp3sl2asf7ncrnkri093a48 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@202043.7436 2hi41cks2kpmt6vahbsu7bh5rs Query : use flama_phc
20240903@202043.7442 2hi41cks2kpmt6vahbsu7bh5rs Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@202043.7554 2hi41cks2kpmt6vahbsu7bh5rs Query : use flama_phc
20240903@202043.7557 2hi41cks2kpmt6vahbsu7bh5rs Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@203743.7364 a4okl3bn8p76vr2govu3fb9fq6 Query : use flama_phc
20240903@203743.7369 a4okl3bn8p76vr2govu3fb9fq6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@203743.7465 a4okl3bn8p76vr2govu3fb9fq6 Query : use flama_phc
20240903@203743.7468 a4okl3bn8p76vr2govu3fb9fq6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@211908.9983 0v12jjbku6el4a7hahgj87qnb2 Query : use flama_phc
20240903@211908.9988 0v12jjbku6el4a7hahgj87qnb2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@211909.8600 0v12jjbku6el4a7hahgj87qnb2 Query : use flama_phc
20240903@211909.9000 0v12jjbku6el4a7hahgj87qnb2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@213609.1398 mnq3s7apftjuhe8jvv6br7qkai Query : use flama_phc
20240903@213609.1402 mnq3s7apftjuhe8jvv6br7qkai Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@213609.1497 mnq3s7apftjuhe8jvv6br7qkai Query : use flama_phc
20240903@213609.1501 mnq3s7apftjuhe8jvv6br7qkai Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@221911.5380 nct8qlhvb4vegectprbsi8lt71 Query : use flama_phc
20240903@221911.5387 nct8qlhvb4vegectprbsi8lt71 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@221911.5490 nct8qlhvb4vegectprbsi8lt71 Query : use flama_phc
20240903@221911.5494 nct8qlhvb4vegectprbsi8lt71 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@223611.5655 pmasd3t70m85cb8a3ham2ac750 Query : use flama_phc
20240903@223611.5662 pmasd3t70m85cb8a3ham2ac750 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@223611.5760 pmasd3t70m85cb8a3ham2ac750 Query : use flama_phc
20240903@223611.5763 pmasd3t70m85cb8a3ham2ac750 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@231910.7611 c4e30c2n2b6fsemru2vaakbfjq Query : use flama_phc
20240903@231910.7618 c4e30c2n2b6fsemru2vaakbfjq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@231910.7791 c4e30c2n2b6fsemru2vaakbfjq Query : use flama_phc
20240903@231910.7795 c4e30c2n2b6fsemru2vaakbfjq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240903@233610.6155 vnu92s2bpto4rq2iu8mib9kopi Query : use flama_phc
20240903@233610.6160 vnu92s2bpto4rq2iu8mib9kopi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240903@233610.6269 vnu92s2bpto4rq2iu8mib9kopi Query : use flama_phc
20240903@233610.6273 vnu92s2bpto4rq2iu8mib9kopi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@071913.2971 elhli70c6r2umtjn6nmfann9up Query : use flama_phc
20240904@071913.2978 elhli70c6r2umtjn6nmfann9up Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@071913.4434 elhli70c6r2umtjn6nmfann9up Query : use flama_phc
20240904@071913.4440 elhli70c6r2umtjn6nmfann9up Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@073647.9683 i9ne2bam0rloj861inerrv7c5i Query : use flama_phc
20240904@073647.9689 i9ne2bam0rloj861inerrv7c5i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@073647.9838 i9ne2bam0rloj861inerrv7c5i Query : use flama_phc
20240904@073647.9843 i9ne2bam0rloj861inerrv7c5i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@081908.9444 sbnioh87npsdva88eo6js12jqa Query : use flama_phc
20240904@081908.9448 sbnioh87npsdva88eo6js12jqa Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@081908.9582 sbnioh87npsdva88eo6js12jqa Query : use flama_phc
20240904@081908.9586 sbnioh87npsdva88eo6js12jqa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@083608.7364 bvr63the8me73bluq35u3e6m9s Query : use flama_phc
20240904@083608.7369 bvr63the8me73bluq35u3e6m9s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@083608.7458 bvr63the8me73bluq35u3e6m9s Query : use flama_phc
20240904@083608.7461 bvr63the8me73bluq35u3e6m9s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@091914.8510 jt39v7a8r0abihgrkie3dobtn9 Query : use flama_phc
20240904@091914.8580 jt39v7a8r0abihgrkie3dobtn9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@091914.1073 jt39v7a8r0abihgrkie3dobtn9 Query : use flama_phc
20240904@091914.1078 jt39v7a8r0abihgrkie3dobtn9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@093613.8448 4ail4856tcchh4ei78mv5rfmq2 Query : use flama_phc
20240904@093613.8454 4ail4856tcchh4ei78mv5rfmq2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@093614.6140 4ail4856tcchh4ei78mv5rfmq2 Query : use flama_phc
20240904@093614.6180 4ail4856tcchh4ei78mv5rfmq2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@101917.6927 qmok3bpkkq05k2orggvhjg7q13 Query : use flama_phc
20240904@101917.6933 qmok3bpkkq05k2orggvhjg7q13 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@101917.7105 qmok3bpkkq05k2orggvhjg7q13 Query : use flama_phc
20240904@101917.7110 qmok3bpkkq05k2orggvhjg7q13 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@103617.5346 kaa073m65s8dlkht79mqprm1a1 Query : use flama_phc
20240904@103617.5351 kaa073m65s8dlkht79mqprm1a1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@103617.5602 kaa073m65s8dlkht79mqprm1a1 Query : use flama_phc
20240904@103617.5613 kaa073m65s8dlkht79mqprm1a1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@111910.3052 mlfjrvsng0c99mdkvsfq2jas4t Query : use flama_phc
20240904@111910.3057 mlfjrvsng0c99mdkvsfq2jas4t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@111910.3190 mlfjrvsng0c99mdkvsfq2jas4t Query : use flama_phc
20240904@111910.3193 mlfjrvsng0c99mdkvsfq2jas4t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@113610.4264 vjtpthpvel0jo6itfmi61kh2r9 Query : use flama_phc
20240904@113610.4269 vjtpthpvel0jo6itfmi61kh2r9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@113610.4377 vjtpthpvel0jo6itfmi61kh2r9 Query : use flama_phc
20240904@113610.4380 vjtpthpvel0jo6itfmi61kh2r9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@121914.8027 aj9f24ann2pm49lc0j4iqt3if5 Query : use flama_phc
20240904@121914.8032 aj9f24ann2pm49lc0j4iqt3if5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@121914.8128 aj9f24ann2pm49lc0j4iqt3if5 Query : use flama_phc
20240904@121914.8131 aj9f24ann2pm49lc0j4iqt3if5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@123614.5952 88hrl6a7djrq7qho6foumvrnrc Query : use flama_phc
20240904@123614.5958 88hrl6a7djrq7qho6foumvrnrc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@123614.6051 88hrl6a7djrq7qho6foumvrnrc Query : use flama_phc
20240904@123614.6056 88hrl6a7djrq7qho6foumvrnrc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@131912.2547 q2ngtaslk3u6eujp4spch6h013 Query : use flama_phc
20240904@131912.2554 q2ngtaslk3u6eujp4spch6h013 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@131912.2654 q2ngtaslk3u6eujp4spch6h013 Query : use flama_phc
20240904@131912.2657 q2ngtaslk3u6eujp4spch6h013 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@133612.4527 090gkqn4sm82eqvb3ime7n3m5v Query : use flama_phc
20240904@133612.4532 090gkqn4sm82eqvb3ime7n3m5v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@133612.4631 090gkqn4sm82eqvb3ime7n3m5v Query : use flama_phc
20240904@133612.4635 090gkqn4sm82eqvb3ime7n3m5v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@141914.3376 ci92j65e3sm87a73jr8f6gtcga Query : use flama_phc
20240904@141914.3382 ci92j65e3sm87a73jr8f6gtcga Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@141914.3475 ci92j65e3sm87a73jr8f6gtcga Query : use flama_phc
20240904@141914.3478 ci92j65e3sm87a73jr8f6gtcga Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@143614.2157 j0v79515hiaqk5st9vf17lu2p8 Query : use flama_phc
20240904@143614.2164 j0v79515hiaqk5st9vf17lu2p8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@143614.2349 j0v79515hiaqk5st9vf17lu2p8 Query : use flama_phc
20240904@143614.2354 j0v79515hiaqk5st9vf17lu2p8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@150837.3461 krc4rvdil1o8qih4hfs0jf21i1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@150837.3495 krc4rvdil1o8qih4hfs0jf21i1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@150837.3700 krc4rvdil1o8qih4hfs0jf21i1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1830';
20240904@150837.5515 krc4rvdil1o8qih4hfs0jf21i1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1830';
20240904@150837.5788 krc4rvdil1o8qih4hfs0jf21i1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1830';
20240904@150837.6273 krc4rvdil1o8qih4hfs0jf21i1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1830';
20240904@150837.6346 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150837.6350 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@150837.6493 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20240904@150837.6645 krc4rvdil1o8qih4hfs0jf21i1 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 = 2400407 and bi.ref ='324.675.00.01' and bi.lordem =20000
20240904@150837.7059 krc4rvdil1o8qih4hfs0jf21i1 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 = 'cps24041055211,838000002 ' 
20240904@150837.7459 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150837.7464 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 1 valor from ts where ts.ndos = 61
20240904@150837.7579 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150837.7582 krc4rvdil1o8qih4hfs0jf21i1 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240904@150837.7672 krc4rvdil1o8qih4hfs0jf21i1 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
20240904@150837.7853 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150837.7856 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 ~inactivo valor from fl where no = '202549' and estab = 00 order by inactivo desc
20240904@150837.7981 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150837.7984 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from ts where ndos = 61
20240904@150837.8077 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150837.8439 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240904@150837.8505 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150837.8524 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240904@150837.8534 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150837.8552 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240904@150837.8563 krc4rvdil1o8qih4hfs0jf21i1 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
20240904@150837.8723 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240904@150837.8825 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240904@150837.8843 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150837.8849 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202549' and estab=00
20240904@150837.8973 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150837.8988 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240904@150837.9026 krc4rvdil1o8qih4hfs0jf21i1 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d869550266d869e5d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240904@150837.9089 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150837.9107 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240904@150837.9119 krc4rvdil1o8qih4hfs0jf21i1 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d869550266d869e5d7','--','bo',7.8667855323484462557 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240904@150837.9332 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150837.9350 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240904@150837.9363 krc4rvdil1o8qih4hfs0jf21i1 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 ('aut66d869550266d869e5d7','guia r. fornecedor','2024-09-04',61,2402470,?,?,?,?,?,?,?,?,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')
20240904@150837.9952 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150837.9955 krc4rvdil1o8qih4hfs0jf21i1 Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20240904@150838.9200 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20240904@150838.2590 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150838.2770 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240904@150838.3060 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150838.3220 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240904@150838.3330 krc4rvdil1o8qih4hfs0jf21i1 Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400407200a'
20240904@150838.3890 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150838.4060 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240904@150838.4160 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150838.4320 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240904@150838.4460 krc4rvdil1o8qih4hfs0jf21i1 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d867161766d869e60a',?,?,'20240904',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240904@150838.1499 krc4rvdil1o8qih4hfs0jf21i1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@150838.1549 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150838.1567 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240904@150838.1582 krc4rvdil1o8qih4hfs0jf21i1 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d863116866d869e625','aut66d869550266d869e5d7',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 = 'aut66d869550266d869e5d7'
20240904@150838.1759 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@150838.1777 krc4rvdil1o8qih4hfs0jf21i1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240904@150838.1804 krc4rvdil1o8qih4hfs0jf21i1 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 'aut66d863116866d869e625',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 780, 780*.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 ,39.26,39.26*200.48,39.26,39.26*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,39.26*780,39.26*780*200.48 ,48.316000,48.316000*200.48 ,48.316000,48.316000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,39.26,39.26*200.48,39.26*780,39.26*780*200.48,'cps24041055211,838000002 ',308.85,308.85*780,308.85,308.85*780,?,?,?,4 from bo bo where bo.bostamp = 'aut66d869550266d869e5d7'
20240904@150856.3632 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150856.3638 krc4rvdil1o8qih4hfs0jf21i1 Query : declare @bostamp varchar(25) = 'aut66d869550266d869e5d7' ,@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 
20240904@150918.9306 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150918.9353 krc4rvdil1o8qih4hfs0jf21i1 Query : select 1 valor from bo where bo.bostamp = 'aut66d869550266d869e5d7'
20240904@150918.9558 krc4rvdil1o8qih4hfs0jf21i1 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) = 'aut66d869550266d869e5d7' 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 
20240904@150921.7609 krc4rvdil1o8qih4hfs0jf21i1 Query : use flama_phc
20240904@150921.7613 krc4rvdil1o8qih4hfs0jf21i1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@150921.7669 krc4rvdil1o8qih4hfs0jf21i1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1830';
20240904@150921.7702 krc4rvdil1o8qih4hfs0jf21i1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1830';
20240904@151910.7561 pfea8mfjr1qrgra4vil2cuq4q1 Query : use flama_phc
20240904@151910.7568 pfea8mfjr1qrgra4vil2cuq4q1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@151910.7670 pfea8mfjr1qrgra4vil2cuq4q1 Query : use flama_phc
20240904@151910.7674 pfea8mfjr1qrgra4vil2cuq4q1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@153610.2867 jf1fgq27fqumpop5pg13uuus0o Query : use flama_phc
20240904@153610.2872 jf1fgq27fqumpop5pg13uuus0o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@153610.2966 jf1fgq27fqumpop5pg13uuus0o Query : use flama_phc
20240904@153610.2970 jf1fgq27fqumpop5pg13uuus0o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@161913.5739 da67ui3cs104986t7k5lvegqdi Query : use flama_phc
20240904@161913.5781 da67ui3cs104986t7k5lvegqdi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@161913.7657 da67ui3cs104986t7k5lvegqdi Query : use flama_phc
20240904@161913.7822 da67ui3cs104986t7k5lvegqdi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@163613.5165 1qp56u10p1vs52f0uo1822mb2c Query : use flama_phc
20240904@163613.5170 1qp56u10p1vs52f0uo1822mb2c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@163613.5261 1qp56u10p1vs52f0uo1822mb2c Query : use flama_phc
20240904@163613.5265 1qp56u10p1vs52f0uo1822mb2c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@171911.4170 122s193uu2puvu60avsmhp61in Query : use flama_phc
20240904@171911.5510 122s193uu2puvu60avsmhp61in Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@171911.6910 122s193uu2puvu60avsmhp61in Query : use flama_phc
20240904@171911.6950 122s193uu2puvu60avsmhp61in Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@173611.1624 baaickliq7h2n010aavc7daf0a Query : use flama_phc
20240904@173611.1628 baaickliq7h2n010aavc7daf0a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@173611.1728 baaickliq7h2n010aavc7daf0a Query : use flama_phc
20240904@173611.1732 baaickliq7h2n010aavc7daf0a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@181913.8369 nsuj2d86lqka61oi488nq0hs36 Query : use flama_phc
20240904@181913.8375 nsuj2d86lqka61oi488nq0hs36 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@181913.8470 nsuj2d86lqka61oi488nq0hs36 Query : use flama_phc
20240904@181913.8473 nsuj2d86lqka61oi488nq0hs36 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183613.8468 nr1lab0805eork2iu15np0rpd3 Query : use flama_phc
20240904@183613.8473 nr1lab0805eork2iu15np0rpd3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240904@183613.8583 nr1lab0805eork2iu15np0rpd3 Query : use flama_phc
20240904@183613.8586 nr1lab0805eork2iu15np0rpd3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183838.7219 2m69mitomkmqomlgtjfuglpd96 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183838.7409 2m69mitomkmqomlgtjfuglpd96 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183838.8404 2m69mitomkmqomlgtjfuglpd96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1831';
20240904@183838.9127 2m69mitomkmqomlgtjfuglpd96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1831';
20240904@183839.2710 2m69mitomkmqomlgtjfuglpd96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1831';
20240904@183839.8680 2m69mitomkmqomlgtjfuglpd96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1831';
20240904@183839.1469 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183839.1514 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183839.2489 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183839.2571 2m69mitomkmqomlgtjfuglpd96 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2459
20240904@183839.3112 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240904@183839.4075 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.988.00.01' and bi.lordem =1
20240904@183839.5459 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240904@183839.6018 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.988.00.01' and bi.lordem =1
20240904@183839.6398 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240904@183839.7317 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.5501.00.1' and bi.lordem =2
20240904@183839.8296 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240904@183839.8689 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.5501.00.1' and bi.lordem =2
20240904@183839.9069 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240904@183839.9704 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.5501.00.1' and bi.lordem =2
20240904@183839.9930 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240904@183840.6600 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.727.00.01' and bi.lordem =3
20240904@183840.1649 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240904@183840.2032 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.727.00.01' and bi.lordem =3
20240904@183840.2372 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240904@183840.3059 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.5396.00.1' and bi.lordem =4
20240904@183840.4193 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4930.00.1'
20240904@183840.4924 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.4930.00.1' and bi.lordem =5
20240904@183840.5996 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240904@183840.6707 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.736.00.01' and bi.lordem =6
20240904@183840.7630 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240904@183840.8097 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405735 and bi.ref ='324.736.00.01' and bi.lordem =7
20240904@183840.9182 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183840.9271 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183841.7320 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183841.8150 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183841.1864 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183841.1991 2m69mitomkmqomlgtjfuglpd96 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240904@183841.3047 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240904@183841.4258 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183841.4301 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240904@183841.5592 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183841.5635 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183841.6678 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183841.6843 2m69mitomkmqomlgtjfuglpd96 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183841.7968 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183841.8029 2m69mitomkmqomlgtjfuglpd96 Query : select szadrsstamp valor from szadrs where szadrsdesc='eldisser, s.a.'
20240904@183841.9628 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183841.9728 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from td where ndoc = 39
20240904@183842.3990 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183842.1177 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183842.1788 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183842.2363 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183842.2659 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183842.3616 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183842.4036 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183842.4688 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183842.5388 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183842.6294 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183842.6717 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183842.7105 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183842.8774 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183842.9076 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183842.9732 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183843.2530 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183843.7330 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183843.1197 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183843.1583 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183843.2074 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183843.2567 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d893674766d89b2272',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183843.7878 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183843.8861 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183843.9256 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183843.9581 2m69mitomkmqomlgtjfuglpd96 Query : select 'normal' from dummy
20240904@183844.1090 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d893674766d89b2272',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',606,200500,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183844.1882 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183844.1926 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240904@183844.2407 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240904@183844.3028 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183844.3328 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183844.4007 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183844.4179 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183844.4390 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183844.4628 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240904@183844.4961 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183844.5307 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183844.5525 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899657866d89b2479','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183844.5789 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183844.6036 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183844.6958 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d899657866d89b2479',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183845.2745 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183845.2749 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240904@183845.3109 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240904@183845.3358 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.3611 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.4188 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.4352 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.4518 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183845.4766 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240904@183845.5104 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.5356 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.5565 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893397166d89b257c','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183845.5608 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.5683 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.5718 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d893397166d89b257c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240904@183845.6021 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183845.6025 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240904@183845.6050 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20240904@183845.6314 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.6336 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.6368 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.6388 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.6398 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183845.6413 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240904@183845.6438 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.6457 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.6474 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893204066d89b259d','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183845.6480 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.6498 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.6534 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d893204066d89b259d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240904@183845.6899 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183845.6904 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240904@183845.6929 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20240904@183845.6950 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.6968 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.7005 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.7022 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.7418 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183845.7434 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240904@183845.7450 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.7473 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.7486 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d892764066d89b25b5','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183845.7491 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.7509 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.7543 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d892764066d89b25b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240904@183845.7833 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183845.7836 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240904@183845.7860 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20240904@183845.7876 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.7894 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.7923 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.7940 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.7950 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183845.7964 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240904@183845.7978 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.7995 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.8010 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899638266d89b25c2','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183845.8016 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.8034 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.8068 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d899638266d89b25c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240904@183845.8350 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183845.8355 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240904@183845.8381 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20240904@183845.8546 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.8565 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.8595 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.8611 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.8621 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183845.8639 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2400239200a'
20240904@183845.8656 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.8673 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.8686 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891578666d89b25d3','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183845.8692 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.8709 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.8741 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d891578666d89b25d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240904@183845.9069 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9089 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.9117 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9133 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.9143 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183845.9156 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9173 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.9187 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891984566d89b25df','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183845.9192 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9208 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.9240 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d891984566d89b25df',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,70000,?,?,?)
20240904@183845.9512 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183845.9516 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240904@183845.9538 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20240904@183845.9555 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9573 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.9601 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9617 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.9629 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183845.9641 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2400239200a'
20240904@183845.9654 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9670 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183845.9683 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899085366d89b25eb','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183845.9689 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183845.9705 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183845.9737 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d899085366d89b25eb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240904@183846.2100 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.4000 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.6900 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.8600 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.9500 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183846.1100 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1260 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.1400 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d898595966d89b2602','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183846.1450 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1640 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.1980 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d898595966d89b2602',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,100000,?,?,?)
20240904@183846.4880 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183846.4910 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240904@183846.5140 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240904@183846.6820 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.7000 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.7290 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.7450 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.7540 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183846.7690 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240904@183846.7860 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.8040 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.8170 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d894380066d89b2613','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183846.8220 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.8380 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.8710 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d894380066d89b2613',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240904@183846.1167 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1187 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.1217 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1240 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.1249 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183846.1264 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1280 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.1295 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d899218766d89b261e','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183846.1300 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1316 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.1349 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d899218766d89b261e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,130000,?,?,?)
20240904@183846.1705 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183846.1709 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.4930.00.1'
20240904@183846.1734 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4930.00.1'
20240904@183846.1904 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1924 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.1954 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.1969 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.1979 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183846.1992 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.4930.00.1' and lote = 'r2400066200a'
20240904@183846.2013 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.2029 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.2042 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897376366d89b2631','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183846.2047 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.2062 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.2093 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d897376366d89b2631',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20240904@183846.2379 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183846.2383 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240904@183846.2408 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.736.00.01'
20240904@183846.2648 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.2667 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.2697 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.2715 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.2725 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183846.2739 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240904@183846.2754 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.2771 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.2784 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d895846166d89b2643','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183846.2790 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.2805 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.2838 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d895846166d89b2643',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240904@183846.4465 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183846.4470 2m69mitomkmqomlgtjfuglpd96 Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240904@183846.4500 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.736.00.01'
20240904@183846.4515 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.4533 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.4562 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.6031 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.6044 2m69mitomkmqomlgtjfuglpd96 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183846.6059 2m69mitomkmqomlgtjfuglpd96 Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240904@183846.6073 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.6090 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183846.6103 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d896336966d89b2694','aut66d893674766d89b2272' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183846.6109 2m69mitomkmqomlgtjfuglpd96 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.6126 2m69mitomkmqomlgtjfuglpd96 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183846.6162 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d896336966d89b2694',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d893674766d89b2272' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240904@183846.6498 2m69mitomkmqomlgtjfuglpd96 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d893674766d89b2272','2405735','wait',39,'adm09112754980.682000002')
20240904@183846.6620 2m69mitomkmqomlgtjfuglpd96 Query : use flama_phc
20240904@183846.6624 2m69mitomkmqomlgtjfuglpd96 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183846.6661 2m69mitomkmqomlgtjfuglpd96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1831';
20240904@183846.6696 2m69mitomkmqomlgtjfuglpd96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1831';
20240904@183846.6741 2m69mitomkmqomlgtjfuglpd96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1831';
20240904@183846.6773 2m69mitomkmqomlgtjfuglpd96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1831';
20240904@183846.7391 iuj0rj9gcsuo45i3egrm64d8af Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183846.7403 iuj0rj9gcsuo45i3egrm64d8af Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183846.7458 iuj0rj9gcsuo45i3egrm64d8af Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1832';
20240904@183846.7519 iuj0rj9gcsuo45i3egrm64d8af Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1832';
20240904@183846.7572 iuj0rj9gcsuo45i3egrm64d8af Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1832';
20240904@183846.7761 iuj0rj9gcsuo45i3egrm64d8af Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1832';
20240904@183846.7817 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.7822 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183846.7897 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.7902 iuj0rj9gcsuo45i3egrm64d8af Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20240904@183846.7996 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2232.00.1'
20240904@183846.8188 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405736 and bi.ref ='324.2232.00.1' and bi.lordem =1
20240904@183846.8543 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2232.00.1'
20240904@183846.8565 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405736 and bi.ref ='324.2232.00.1' and bi.lordem =1
20240904@183846.8583 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.8587 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183846.8622 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.8625 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183846.8660 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.8664 iuj0rj9gcsuo45i3egrm64d8af Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240904@183846.8695 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240904@183846.8731 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.8734 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 ~inactivo valor from cl where no = '199510' and estab = 0 order by inactivo desc
20240904@183846.8875 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.8879 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183846.8913 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.8917 iuj0rj9gcsuo45i3egrm64d8af Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183846.8969 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.8973 iuj0rj9gcsuo45i3egrm64d8af Query : select szadrsstamp valor from szadrs where szadrsdesc='199510 - cdnogueira regedoura'
20240904@183846.9024 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183846.9027 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from td where ndoc = 39
20240904@183846.9043 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183846.9058 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.9094 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183846.9116 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.9132 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183846.9164 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.9180 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183846.9198 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183846.9270 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183846.9286 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.9302 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183846.9320 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d898506766d89b26e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183846.9519 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.9539 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183846.9579 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183846.9593 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183846.9606 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183846.9621 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183846.9634 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183846.9647 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183846.9660 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d898506766d89b26e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183846.9934 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183846.9958 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183846.9980 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183847.2300 iuj0rj9gcsuo45i3egrm64d8af Query : select 'normal' from dummy
20240904@183847.4100 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d898506766d89b26e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',607,199510,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183847.3700 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183847.3730 iuj0rj9gcsuo45i3egrm64d8af Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240904@183847.4000 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20240904@183847.5680 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.5860 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183847.6150 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.6330 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183847.6430 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183847.6580 iuj0rj9gcsuo45i3egrm64d8af Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240904@183847.6750 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.6920 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183847.7070 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d891191366d89b2710','aut66d898506766d89b26e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183847.7120 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.7310 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183847.7670 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d891191366d89b2710',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d898506766d89b26e0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183847.1053 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183847.1057 iuj0rj9gcsuo45i3egrm64d8af Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240904@183847.1080 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20240904@183847.1095 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.1114 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183847.1168 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.1186 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183847.1196 iuj0rj9gcsuo45i3egrm64d8af Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183847.1211 iuj0rj9gcsuo45i3egrm64d8af Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240904@183847.1226 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.1242 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183847.1260 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893124666d89b271d','aut66d898506766d89b26e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183847.1266 iuj0rj9gcsuo45i3egrm64d8af Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.1283 iuj0rj9gcsuo45i3egrm64d8af Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183847.1318 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d893124666d89b271d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',22.000 ,'aut66d898506766d89b26e0' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240904@183847.1609 iuj0rj9gcsuo45i3egrm64d8af Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d898506766d89b26e0','2405736','wait',39,'adm09112754980.682000002')
20240904@183847.1687 iuj0rj9gcsuo45i3egrm64d8af Query : use flama_phc
20240904@183847.1691 iuj0rj9gcsuo45i3egrm64d8af Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183847.1723 iuj0rj9gcsuo45i3egrm64d8af Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1832';
20240904@183847.1755 iuj0rj9gcsuo45i3egrm64d8af Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1832';
20240904@183847.1796 iuj0rj9gcsuo45i3egrm64d8af Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1832';
20240904@183847.1823 iuj0rj9gcsuo45i3egrm64d8af Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1832';
20240904@183847.2649 gpcd5pl8ftbqf1nqnmou6jb0df Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183847.2660 gpcd5pl8ftbqf1nqnmou6jb0df Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183847.2716 gpcd5pl8ftbqf1nqnmou6jb0df Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1833';
20240904@183847.2777 gpcd5pl8ftbqf1nqnmou6jb0df Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1833';
20240904@183847.2830 gpcd5pl8ftbqf1nqnmou6jb0df Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1833';
20240904@183847.2862 gpcd5pl8ftbqf1nqnmou6jb0df Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1833';
20240904@183847.2912 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.2915 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183847.2985 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.2989 gpcd5pl8ftbqf1nqnmou6jb0df Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240904@183847.3083 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '326.595.00.01'
20240904@183847.3277 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405737 and bi.ref ='326.595.00.01' and bi.lordem =1
20240904@183847.3702 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.3706 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183847.3740 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.3743 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183847.3784 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.3787 gpcd5pl8ftbqf1nqnmou6jb0df Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240904@183847.3820 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240904@183847.3861 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.3865 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240904@183847.6698 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.6703 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183847.6737 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.6741 gpcd5pl8ftbqf1nqnmou6jb0df Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183847.6784 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.6788 gpcd5pl8ftbqf1nqnmou6jb0df Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240904@183847.6840 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.6843 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from td where ndoc = 39
20240904@183847.6857 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183847.6874 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.6893 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183847.6916 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.6935 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183847.6974 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.6993 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183847.7009 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183847.7086 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183847.7103 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.7123 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183847.7146 gpcd5pl8ftbqf1nqnmou6jb0df Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d896481866d89b27ab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183847.7513 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.7534 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183847.7592 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183847.7607 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183847.7622 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183847.7637 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183847.7650 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183847.7663 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183847.7677 gpcd5pl8ftbqf1nqnmou6jb0df Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d896481866d89b27ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183847.8117 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183847.8138 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.8159 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183847.8186 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 'normal' from dummy
20240904@183847.8204 gpcd5pl8ftbqf1nqnmou6jb0df Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d896481866d89b27ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',608,100810,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183847.8527 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.8531 gpcd5pl8ftbqf1nqnmou6jb0df Query : select st.usalote valor from st where st.ref = '326.595.00.01'
20240904@183847.8556 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '326.595.00.01'
20240904@183847.8718 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.8736 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183847.8769 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.8785 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183847.8796 gpcd5pl8ftbqf1nqnmou6jb0df Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183847.8811 gpcd5pl8ftbqf1nqnmou6jb0df Query : select sestamp valor from se where ref ='326.595.00.01' and lote = 'r2301243100a'
20240904@183847.8827 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.8846 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183847.8863 gpcd5pl8ftbqf1nqnmou6jb0df Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d895904966d89b27d7','aut66d896481866d89b27ab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183847.8868 gpcd5pl8ftbqf1nqnmou6jb0df Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183847.8887 gpcd5pl8ftbqf1nqnmou6jb0df Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183847.8922 gpcd5pl8ftbqf1nqnmou6jb0df Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d895904966d89b27d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d896481866d89b27ab' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183847.9199 gpcd5pl8ftbqf1nqnmou6jb0df Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d896481866d89b27ab','2405737','wait',39,'adm09112754980.682000002')
20240904@183847.9276 gpcd5pl8ftbqf1nqnmou6jb0df Query : use flama_phc
20240904@183847.9281 gpcd5pl8ftbqf1nqnmou6jb0df Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183847.9315 gpcd5pl8ftbqf1nqnmou6jb0df Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1833';
20240904@183847.9345 gpcd5pl8ftbqf1nqnmou6jb0df Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1833';
20240904@183847.9387 gpcd5pl8ftbqf1nqnmou6jb0df Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1833';
20240904@183847.9417 gpcd5pl8ftbqf1nqnmou6jb0df Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1833';
20240904@183847.9960 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183847.9974 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183848.3800 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1834';
20240904@183848.9900 4dfo9iofc5a1hvc6kbb3unbqr9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1834';
20240904@183848.2000 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1834';
20240904@183848.2430 4dfo9iofc5a1hvc6kbb3unbqr9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1834';
20240904@183848.3270 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.3320 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183848.4300 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.4340 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240904@183848.4900 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240904@183848.6820 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405739 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240904@183848.2232 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2239 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183848.2287 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2291 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183848.2336 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2340 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240904@183848.2376 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240904@183848.2422 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2426 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240904@183848.2467 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2471 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183848.2512 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2517 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183848.2588 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2591 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240904@183848.2649 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.2654 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from td where ndoc = 39
20240904@183848.2670 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183848.2689 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.2710 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183848.2734 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.2753 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183848.2787 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.2804 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183848.2819 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183848.2908 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183848.2926 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.2945 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183848.2962 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d892271966d89b2844' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183848.3214 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.3236 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183848.3294 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183848.3308 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183848.3322 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183848.3336 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183848.3351 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183848.3363 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183848.3379 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d892271966d89b2844',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183848.3682 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183848.3705 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.3723 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183848.3751 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 'normal' from dummy
20240904@183848.3770 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d892271966d89b2844',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',609,100810,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183848.4111 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.4114 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240904@183848.4142 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240904@183848.4310 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4330 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183848.4360 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4377 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183848.4386 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183848.4401 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240904@183848.4418 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4434 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183848.4449 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d892713866d89b286b','aut66d892271966d89b2844' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183848.4453 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4470 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183848.4504 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d892713866d89b286b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d892271966d89b2844' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183848.4828 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4846 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183848.4897 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4914 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183848.4925 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183848.4940 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4956 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183848.4970 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d893887466d89b2878','aut66d892271966d89b2844' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183848.4977 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.4994 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183848.5027 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d893887466d89b2878',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d892271966d89b2844' ,0,0 ,2,23.00,20000,?,?,?)
20240904@183848.5318 4dfo9iofc5a1hvc6kbb3unbqr9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d892271966d89b2844','2405739','wait',39,'adm09112754980.682000002')
20240904@183848.5394 4dfo9iofc5a1hvc6kbb3unbqr9 Query : use flama_phc
20240904@183848.5399 4dfo9iofc5a1hvc6kbb3unbqr9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183848.5431 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1834';
20240904@183848.5481 4dfo9iofc5a1hvc6kbb3unbqr9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1834';
20240904@183848.5522 4dfo9iofc5a1hvc6kbb3unbqr9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1834';
20240904@183848.5549 4dfo9iofc5a1hvc6kbb3unbqr9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1834';
20240904@183848.6111 8c75q9de5aenmg2kpfcblh271h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183848.6124 8c75q9de5aenmg2kpfcblh271h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183848.6187 8c75q9de5aenmg2kpfcblh271h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1835';
20240904@183848.6254 8c75q9de5aenmg2kpfcblh271h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1835';
20240904@183848.6322 8c75q9de5aenmg2kpfcblh271h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1835';
20240904@183848.6355 8c75q9de5aenmg2kpfcblh271h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1835';
20240904@183848.6421 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.6424 8c75q9de5aenmg2kpfcblh271h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183848.6520 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.6525 8c75q9de5aenmg2kpfcblh271h Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240904@183848.6645 8c75q9de5aenmg2kpfcblh271h 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'
20240904@183848.6834 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405740 and bi.ref ='328.9326.00.1' and bi.lordem =1
20240904@183848.7209 8c75q9de5aenmg2kpfcblh271h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20240904@183848.7407 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405740 and bi.ref ='328.9345.00.1' and bi.lordem =2
20240904@183848.7794 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.7799 8c75q9de5aenmg2kpfcblh271h Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183848.7837 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.7840 8c75q9de5aenmg2kpfcblh271h Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183848.7885 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.7890 8c75q9de5aenmg2kpfcblh271h Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240904@183848.7920 8c75q9de5aenmg2kpfcblh271h Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240904@183848.7965 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.7969 8c75q9de5aenmg2kpfcblh271h Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240904@183848.8006 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.8010 8c75q9de5aenmg2kpfcblh271h Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183848.8042 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.8046 8c75q9de5aenmg2kpfcblh271h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183848.8125 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.8167 8c75q9de5aenmg2kpfcblh271h Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240904@183848.8297 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.8301 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from td where ndoc = 39
20240904@183848.8316 8c75q9de5aenmg2kpfcblh271h Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183848.8354 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.8375 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183848.8399 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.8417 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183848.8448 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.8467 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183848.8484 8c75q9de5aenmg2kpfcblh271h Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183848.8602 8c75q9de5aenmg2kpfcblh271h Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240904@183848.8618 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.8641 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240904@183848.8661 8c75q9de5aenmg2kpfcblh271h Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d897077066d89b28cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240904@183848.8864 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.8885 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240904@183848.8926 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240904@183848.8941 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240904@183848.8962 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240904@183848.9039 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240904@183848.9054 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240904@183848.9069 8c75q9de5aenmg2kpfcblh271h Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240904@183848.9084 8c75q9de5aenmg2kpfcblh271h Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d897077066d89b28cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240904@183848.9363 8c75q9de5aenmg2kpfcblh271h Query : select top 1 fno valor from wsftdata order by fno desc
20240904@183848.9386 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183848.9408 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183848.9436 8c75q9de5aenmg2kpfcblh271h Query : select 'normal' from dummy
20240904@183848.9454 8c75q9de5aenmg2kpfcblh271h Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d897077066d89b28cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',610,100810,0,'2024-09-04',39,'euro',0,0,2024 ,?,?)
20240904@183848.9781 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183848.9784 8c75q9de5aenmg2kpfcblh271h Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20240904@183848.9811 8c75q9de5aenmg2kpfcblh271h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240904@183849.6000 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.7800 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.1290 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.1480 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.1590 8c75q9de5aenmg2kpfcblh271h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183849.1750 8c75q9de5aenmg2kpfcblh271h Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20240904@183849.2000 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.2210 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.2360 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d892933966d89b2904','aut66d897077066d89b28cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183849.2410 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.2610 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.2960 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d892933966d89b2904',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d897077066d89b28cf' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240904@183849.6460 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.6660 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.6960 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.7120 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.7230 8c75q9de5aenmg2kpfcblh271h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183849.7380 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.7560 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.7710 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d896745166d89b2912','aut66d897077066d89b28cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183849.7760 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.7950 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.8330 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d896745166d89b2912',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d897077066d89b28cf' ,0,0 ,2,23.00,20000,?,?,?)
20240904@183849.1192 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183849.1197 8c75q9de5aenmg2kpfcblh271h Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20240904@183849.1223 8c75q9de5aenmg2kpfcblh271h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9345.00.1'
20240904@183849.1386 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.1407 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.1439 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.1467 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.1479 8c75q9de5aenmg2kpfcblh271h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183849.1495 8c75q9de5aenmg2kpfcblh271h Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20240904@183849.1519 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.1537 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.1553 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d897410466d89b2925','aut66d897077066d89b28cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183849.1559 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.1581 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.1620 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d897410466d89b2925',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d897077066d89b28cf' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240904@183849.2012 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.2035 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.2068 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.2088 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.2098 8c75q9de5aenmg2kpfcblh271h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240904@183849.2113 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.2133 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240904@183849.2148 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d896579666d89b2933','aut66d897077066d89b28cf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240904@183849.2154 8c75q9de5aenmg2kpfcblh271h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.2193 8c75q9de5aenmg2kpfcblh271h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240904@183849.2228 8c75q9de5aenmg2kpfcblh271h Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d896579666d89b2933',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d897077066d89b28cf' ,0,0 ,2,23.00,50000,?,?,?)
20240904@183849.2529 8c75q9de5aenmg2kpfcblh271h Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d897077066d89b28cf','2405740','wait',39,'adm09112754980.682000002')
20240904@183849.2602 8c75q9de5aenmg2kpfcblh271h Query : use flama_phc
20240904@183849.2605 8c75q9de5aenmg2kpfcblh271h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240904@183849.2636 8c75q9de5aenmg2kpfcblh271h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1835';
20240904@183849.2669 8c75q9de5aenmg2kpfcblh271h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1835';
20240904@183849.2709 8c75q9de5aenmg2kpfcblh271h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1835';
20240904@183849.2739 8c75q9de5aenmg2kpfcblh271h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1835';
20240904@183849.3471 hhs58ut3618s4jo7gkeg49ulpi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240904@183849.3491 hhs58ut3618s4jo7gkeg49ulpi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240904@183849.3565 hhs58ut3618s4jo7gkeg49ulpi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1836';
20240904@183849.3643 hhs58ut3618s4jo7gkeg49ulpi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1836';
20240904@183849.3698 hhs58ut3618s4jo7gkeg49ulpi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1836';
20240904@183849.3741 hhs58ut3618s4jo7gkeg49ulpi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1836';
20240904@183849.3788 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.3792 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240904@183849.3862 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.3866 hhs58ut3618s4jo7gkeg49ulpi Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240904@183849.3913 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240904@183849.4116 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405742 and bi.ref ='324.1684.00.1' and bi.lordem =1
20240904@183849.4489 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20240904@183849.4673 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405742 and bi.ref ='324.698.00.01' and bi.lordem =2
20240904@183849.5118 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5121 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240904@183849.5158 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5161 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 1 valor from td where td.ndoc = 39
20240904@183849.5211 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5214 hhs58ut3618s4jo7gkeg49ulpi Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240904@183849.5246 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240904@183849.5289 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5293 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240904@183849.5325 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5329 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240904@183849.5362 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5365 hhs58ut3618s4jo7gkeg49ulpi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240904@183849.5423 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5427 hhs58ut3618s4jo7gkeg49ulpi Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240904@183849.5478 hhs58ut3618s4jo7gkeg49ulpi Query : use flama_phc
20240904@183849.5481 hhs58ut3618s4jo7gkeg49ulpi Query : select 1 valor from td where ndoc = 39
20240904@183849.5498 hhs58ut3618s4jo7gkeg49ulpi Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240904@183849.5514 hhs58ut3618s4jo7gkeg49ulpi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.5600 hhs58ut3618s4jo7gkeg49ulpi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240904@183849.6347 hhs58ut3618s4jo7gkeg49ulpi Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240904@183849.6827 hhs58ut3618s4jo7gkeg49ulpi Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
