20241010@125005.3562 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20241010@125005.3677 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.3695 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.3726 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.3743 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.3753 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.3767 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20241010@125005.3789 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.3807 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.3818 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b979436707bf6d5c','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.3823 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.3837 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.3864 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b979436707bf6d5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',21.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20241010@125005.4084 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125005.4087 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241010@125005.4107 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20241010@125005.4121 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4137 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.4162 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4177 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.4186 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.4198 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2400095600a'
20241010@125005.4219 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4236 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.4250 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b078366707bf6d67','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.4255 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4271 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.4300 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b078366707bf6d67',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20241010@125005.4521 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125005.4525 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125005.4548 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125005.4665 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4683 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.4711 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4727 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.4735 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.4747 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125005.4766 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4780 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.4791 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b972856707bf6d74','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.4796 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.4811 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.4839 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b972856707bf6d74',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20241010@125005.5060 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5078 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.5107 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5125 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.5136 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.5151 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5170 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.5184 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b958256707bf6d7d','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.5190 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5207 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.5239 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b958256707bf6d7d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,190000,?,?,?)
20241010@125005.5476 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125005.5480 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125005.5501 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125005.5517 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5536 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.5563 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5577 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.5586 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.5598 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125005.5611 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5629 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.5643 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b610656707bf6d89','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.5647 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5663 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.5692 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b610656707bf6d89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20241010@125005.5938 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5955 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.5982 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.5997 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.6007 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.6021 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.6038 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.6052 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b104976707bf6d93','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.6056 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.6071 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.6099 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b104976707bf6d93',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,220000,?,?,?)
20241010@125005.6326 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125005.6330 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125005.6529 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125005.6647 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.6664 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.6693 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.6712 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.6722 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.6735 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125005.6749 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.6786 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.7082 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b074576707bf6da4','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.7089 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7106 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.7135 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b074576707bf6da4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,240000,?,?,?,?,?)
20241010@125005.7357 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7373 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.7399 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7415 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.7424 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.7436 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7451 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.7463 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b930656707bf6db5','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.7468 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7483 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.7514 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b930656707bf6db5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,250000,?,?,?)
20241010@125005.7732 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125005.7735 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125005.7758 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125005.7774 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7791 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.7819 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7834 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.7844 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.7856 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125005.7870 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7886 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.7899 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b761836707bf6dc0','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.7904 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.7921 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.7952 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b761836707bf6dc0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,270000,?,?,?,?,?)
20241010@125005.8175 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8192 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.8219 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8235 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.8244 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.8259 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8274 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.8287 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b213156707bf6dc9','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.8291 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8308 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.8342 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b213156707bf6dc9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,280000,?,?,?)
20241010@125005.8560 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125005.8563 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125005.8585 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125005.8601 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8618 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.8645 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8661 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.8671 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.8684 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125005.8697 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8712 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.8724 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b713376707bf6dd4','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.8729 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.8744 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.8773 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b713376707bf6dd4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,300000,?,?,?,?,?)
20241010@125005.8994 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9010 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.9039 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9055 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.9064 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.9076 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9089 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.9101 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b971626707bf6ddd','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.9106 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9120 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.9147 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b971626707bf6ddd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,310000,?,?,?)
20241010@125005.9365 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125005.9372 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125005.9392 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125005.9407 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9425 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.9453 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9467 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.9477 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.9489 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125005.9503 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9518 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.9530 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b926556707bf6de8','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.9534 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9549 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.9576 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b926556707bf6de8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,330000,?,?,?,?,?)
20241010@125005.9793 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9812 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.9845 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9861 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.9871 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125005.9885 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9902 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125005.9914 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b398166707bf6df1','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125005.9919 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125005.9934 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125005.9967 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b398166707bf6df1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,340000,?,?,?)
20241010@125006.1870 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.1910 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125006.2370 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125006.2530 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2710 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.2970 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.3120 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.3210 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.3320 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125006.3450 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.3580 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.3700 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b826976707bf6e08','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.3750 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.3890 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.4220 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b826976707bf6e08',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,360000,?,?,?,?,?)
20241010@125006.6510 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6710 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.7010 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7180 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.7280 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.7430 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7600 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.7740 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b098896707bf6e12','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.7790 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7960 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.8280 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b098896707bf6e12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,370000,?,?,?)
20241010@125006.1042 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.1046 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20241010@125006.1065 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20241010@125006.1080 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1099 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.1125 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1140 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.1150 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.1162 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20241010@125006.1175 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1190 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.1202 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b979316707bf6e1c','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.1206 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1222 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.1253 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b979316707bf6e1c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,390000,?,?,?,?,?)
20241010@125006.1526 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1543 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.1570 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1586 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.1595 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.1609 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1626 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.1639 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b951086707bf6e27','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.1644 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.1660 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.1691 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b951086707bf6e27',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,400000,?,?,?)
20241010@125006.1912 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.1915 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9903.00.1'
20241010@125006.2014 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9903.00.1'
20241010@125006.2129 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2145 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.2171 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2186 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.2195 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.2208 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9903.00.1' and lote = 'r2300900100a'
20241010@125006.2228 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2245 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.2258 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b799806707bf6e36','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.2263 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2280 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.2314 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b799806707bf6e36',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,420000,?,?,?,?,?)
20241010@125006.2541 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2559 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.2587 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2601 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.2610 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.2622 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2636 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.2884 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b705236707bf6e40','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.2889 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.2908 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.2935 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b705236707bf6e40',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,430000,?,?,?)
20241010@125006.3348 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.3354 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9903.00.1'
20241010@125006.3435 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9903.00.1'
20241010@125006.3450 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.3470 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.3497 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.3514 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.3524 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.3538 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9903.00.1' and lote = 'r2300900100a'
20241010@125006.3552 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.3568 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.3581 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b057306707bf6e56','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.3586 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.3603 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.3638 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b057306707bf6e56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,450000,?,?,?,?,?)
20241010@125006.4053 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4120 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.4409 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4476 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.4486 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.4498 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4513 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.4525 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b184786707bf6e6d','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.4529 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4545 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.4573 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b184786707bf6e6d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,460000,?,?,?)
20241010@125006.4793 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.4797 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9903.00.1'
20241010@125006.4819 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9903.00.1'
20241010@125006.4833 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4851 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.4877 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4891 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.4903 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.4915 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9903.00.1' and lote = 'r2300900100a'
20241010@125006.4928 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4945 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.4958 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b519396707bf6e78','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.4963 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.4978 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.5008 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b519396707bf6e78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,480000,?,?,?,?,?)
20241010@125006.5263 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5280 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.5305 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5319 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.5328 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.5339 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5354 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.5367 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b723546707bf6e82','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.5371 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5386 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.5414 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b723546707bf6e82',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,490000,?,?,?)
20241010@125006.5623 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.5626 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9903.00.1'
20241010@125006.5644 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9903.00.1'
20241010@125006.5657 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5672 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.5695 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5709 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.5717 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.5729 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9903.00.1' and lote = 'r2300900100a'
20241010@125006.5740 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5756 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.5768 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b716646707bf6e8c','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.5772 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.5786 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.5815 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b716646707bf6e8c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,510000,?,?,?,?,?)
20241010@125006.6033 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6060 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.6086 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6100 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.6109 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.6121 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6136 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.6147 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b511136707bf6e95','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.6151 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6166 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.6193 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b511136707bf6e95',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,520000,?,?,?)
20241010@125006.6400 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.6403 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9903.00.1'
20241010@125006.6422 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9903.00.1'
20241010@125006.6435 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6450 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.6474 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6489 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.6498 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.6510 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9903.00.1' and lote = 'r2300900100a'
20241010@125006.6523 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6538 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.6550 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b340276707bf6e9f','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.6554 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6569 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.6596 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b340276707bf6e9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,540000,?,?,?,?,?)
20241010@125006.6802 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6822 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.6848 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6863 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.6875 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.6887 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6901 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.6913 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b071916707bf6ea8','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.6917 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.6931 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.6959 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b071916707bf6ea8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,550000,?,?,?)
20241010@125006.7173 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.7176 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20241010@125006.7259 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9005.00.1'
20241010@125006.7370 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7387 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.7413 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7428 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.7437 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.7450 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2100770200a'
20241010@125006.7470 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7485 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.7497 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b683456707bf6eb6','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.7501 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7516 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.7543 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b683456707bf6eb6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',11.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,570000,?,?,?,?,?)
20241010@125006.7766 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7783 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.7810 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7825 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.7833 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.7845 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7859 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.7870 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b379966707bf6ebf','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.7874 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.7889 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.7918 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b379966707bf6ebf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,580000,?,?,?)
20241010@125006.8144 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.8147 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9006.00.1'
20241010@125006.8167 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9006.00.1'
20241010@125006.8275 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8291 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.8314 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8328 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.8336 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.8347 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9006.00.1' and lote = 'r2300691200a'
20241010@125006.8360 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8374 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.8386 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b020506707bf6ecc','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.8389 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8404 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.8434 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b020506707bf6ecc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,600000,?,?,?,?,?)
20241010@125006.8647 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8662 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.8688 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8702 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.8710 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.8722 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8736 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.8747 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b224996707bf6ed4','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.8751 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.8765 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.8794 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b224996707bf6ed4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,610000,?,?,?)
20241010@125006.9140 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125006.9143 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125006.9164 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125006.9274 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9289 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.9315 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9331 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.9340 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.9352 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125006.9365 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9382 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.9393 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b905746707bf6ee4','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.9398 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9413 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.9440 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b905746707bf6ee4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,630000,?,?,?,?,?)
20241010@125006.9657 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9673 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.9699 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9713 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.9722 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125006.9734 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9749 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125006.9760 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b406286707bf6eed','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125006.9764 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125006.9778 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125006.9807 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b406286707bf6eed',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,640000,?,?,?)
20241010@125007.5500 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125007.1100 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125007.1950 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125007.2110 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2270 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.2530 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2680 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.2770 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.2900 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125007.3020 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.3160 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.3280 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b594666707bf6f07','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.3320 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.3480 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.3760 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b594666707bf6f07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,660000,?,?,?,?,?)
20241010@125007.5950 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.6110 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.6400 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.6550 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.6630 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.6760 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.6900 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.7010 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b423766707bf6f10','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.7050 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7200 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.7470 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b423766707bf6f10',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,670000,?,?,?)
20241010@125007.1261 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125007.1470 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125007.2076 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125007.2090 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2107 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.2207 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2226 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.2265 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.2276 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125007.2288 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2360 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.2373 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b426006707bf6f37','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.2377 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2392 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.2441 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b426006707bf6f37',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,690000,?,?,?,?,?)
20241010@125007.2723 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2739 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.2807 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2823 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.2831 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.2844 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2876 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.2889 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b164736707bf6f45','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.2893 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.2971 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.3001 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b164736707bf6f45',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,700000,?,?,?)
20241010@125007.3358 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125007.3400 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125007.3423 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125007.3437 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.3452 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.3476 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.3490 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.3498 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.3510 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125007.3522 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.3540 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.3551 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b176936707bf6f55','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.3556 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.3609 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.4242 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b176936707bf6f55',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,720000,?,?,?,?,?)
20241010@125007.4660 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.4676 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.4844 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.5015 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.5153 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.5167 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.5183 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.5195 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b314976707bf6f7e','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.5199 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.5214 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.5277 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b314976707bf6f7e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,730000,?,?,?)
20241010@125007.5606 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125007.5609 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125007.5635 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125007.5649 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.5696 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.5841 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.5857 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.5866 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.5879 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125007.5892 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.5917 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.5929 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b446246707bf6f8f','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.5935 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.5975 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.6005 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b446246707bf6f8f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,750000,?,?,?,?,?)
20241010@125007.6264 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.6286 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.6318 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.6370 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.6379 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.6391 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.6405 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.6417 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b398716707bf6f9c','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.6440 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.6455 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.6570 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b398716707bf6f9c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,760000,?,?,?)
20241010@125007.6847 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125007.6850 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125007.6873 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125007.6887 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7023 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.7340 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7356 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.7365 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.7378 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125007.7391 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7413 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.7424 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b121246707bf6fb4','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.7428 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7467 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.7494 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b121246707bf6fb4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,780000,?,?,?,?,?)
20241010@125007.7754 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7779 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.7815 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7829 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.7837 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.7849 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7864 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.7876 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b302906707bf6fbf','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.7914 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.7929 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.7956 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b302906707bf6fbf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,790000,?,?,?)
20241010@125007.8174 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125007.8178 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125007.8196 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125007.8210 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.8225 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.8435 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.8451 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.8500 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.8533 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125007.8545 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.8603 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.8615 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b042126707bf6fd0','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.8619 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.8778 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.8807 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b042126707bf6fd0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,810000,?,?,?,?,?)
20241010@125007.9261 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.9278 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.9352 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.9412 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.9423 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125007.9435 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.9480 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125007.9493 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b404076707bf6fe6','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125007.9498 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125007.9513 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125007.9557 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b404076707bf6fe6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,820000,?,?,?)
20241010@125007.9980 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125008.2100 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20241010@125008.1920 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20241010@125008.2060 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.2220 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.3070 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.3220 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.3670 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.3790 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20241010@125008.3920 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.4520 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.4650 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b113636707bf7009','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.4690 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.5430 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.6510 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b113636707bf7009',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,840000,?,?,?,?,?)
20241010@125008.1096 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.1348 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.1620 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.1636 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.1645 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.1696 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.1803 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.1815 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b855906707bf7029','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.1819 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.1889 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.1918 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b855906707bf7029',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,850000,?,?,?)
20241010@125008.2522 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125008.2565 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241010@125008.2625 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241010@125008.2781 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.2830 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.2896 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.2960 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.2969 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.2981 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241010@125008.3112 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.3363 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.3414 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b847566707bf704b','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.3418 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.3458 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.3513 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b847566707bf704b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',21.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,870000,?,?,?,?,?)
20241010@125008.3757 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.3773 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.3799 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.3815 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.3824 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.3835 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.3850 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.3862 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b788046707bf705d','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.3866 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.3881 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.5003 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b788046707bf705d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,880000,?,?,?)
20241010@125008.5211 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125008.5214 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241010@125008.5233 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241010@125008.5246 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.5265 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.5322 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.5359 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.5367 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.5380 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241010@125008.5393 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.5604 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.5667 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b813386707bf7083','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.5671 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.5688 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.5716 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b813386707bf7083',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',21.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,900000,?,?,?,?,?)
20241010@125008.6000 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6017 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.6043 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6069 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.6079 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.6091 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6107 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.6130 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b920716707bf7094','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.6134 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6149 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.6177 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b920716707bf7094',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,910000,?,?,?)
20241010@125008.6432 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125008.6435 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20241010@125008.6454 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241010@125008.6467 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6489 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.6515 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6531 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.6540 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.6602 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20241010@125008.6615 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6631 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.6643 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b595276707bf70a1','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.6647 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6662 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.6691 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b595276707bf70a1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,930000,?,?,?,?,?)
20241010@125008.6919 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6937 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.6963 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.6978 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.6986 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.6999 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7013 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.7025 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b292446707bf70aa','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.7029 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7043 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.7071 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b292446707bf70aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,940000,?,?,?)
20241010@125008.7285 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125008.7288 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20241010@125008.7307 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9005.00.1'
20241010@125008.7320 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7337 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.7364 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7379 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.7387 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.7399 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2100770200a'
20241010@125008.7412 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7427 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.7439 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b483206707bf70b4','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.7443 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7458 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.7485 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b483206707bf70b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,960000,?,?,?,?,?)
20241010@125008.7695 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7711 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.7736 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7768 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.7777 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.7789 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7803 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.7816 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b582226707bf70be','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.7819 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.7833 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.7861 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b582226707bf70be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,970000,?,?,?)
20241010@125008.8060 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125008.8063 p5rb4ttij0bg94lmk907qld484 Query : select st.usalote valor from st where st.ref = '328.9005.00.1'
20241010@125008.8082 p5rb4ttij0bg94lmk907qld484 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9005.00.1'
20241010@125008.8095 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.8110 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.8137 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.8151 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.8159 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.8171 p5rb4ttij0bg94lmk907qld484 Query : select sestamp valor from se where ref ='328.9005.00.1' and lote = 'r2400092600a'
20241010@125008.8183 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.8198 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.8210 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b595036707bf70c7','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.8214 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.8228 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.8255 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707b595036707bf70c7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,990000,?,?,?,?,?)
20241010@125008.9100 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.9403 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.9428 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.9443 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.9453 p5rb4ttij0bg94lmk907qld484 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@125008.9465 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.9480 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@125008.9491 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707b522896707bf70e7','aut6707b482106707bf6c68' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@125008.9496 p5rb4ttij0bg94lmk907qld484 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@125008.9510 p5rb4ttij0bg94lmk907qld484 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@125008.9539 p5rb4ttij0bg94lmk907qld484 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707b522896707bf70e7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707b482106707bf6c68' ,0,0 ,2,23.00,1000000,?,?,?)
20241010@125008.9744 p5rb4ttij0bg94lmk907qld484 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6707b482106707bf6c68','2406629','wait',39,'adm09112754980.682000002')
20241010@125008.9823 p5rb4ttij0bg94lmk907qld484 Query : use flama_phc
20241010@125008.9827 p5rb4ttij0bg94lmk907qld484 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241010@125008.9859 p5rb4ttij0bg94lmk907qld484 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2556';
20241010@125008.9892 p5rb4ttij0bg94lmk907qld484 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2556';
20241010@125008.9937 p5rb4ttij0bg94lmk907qld484 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2556';
20241010@125008.9966 p5rb4ttij0bg94lmk907qld484 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2556';

20241010@134653.4689 8tdsprmeqf4qda169dkfra1fvg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2557';
20241010@134653.4740 8tdsprmeqf4qda169dkfra1fvg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2557';
20241010@134653.4765 8tdsprmeqf4qda169dkfra1fvg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2557';
20241010@134653.4806 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134653.4809 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241010@134653.4874 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1805.00.1'
20241010@134653.4958 8tdsprmeqf4qda169dkfra1fvg 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 = 2400480 and bi.ref ='324.1805.00.1' and bi.lordem =10000
20241010@134653.5266 8tdsprmeqf4qda169dkfra1fvg 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 = 'cps24050651791,622000003 ' 
20241010@134653.5564 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134653.5567 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 1 valor from ts where ts.ndos = 61
20241010@134653.5694 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134653.5697 8tdsprmeqf4qda169dkfra1fvg 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')
20241010@134653.5725 8tdsprmeqf4qda169dkfra1fvg 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
20241010@134653.5843 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134653.5847 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20241010@134653.5945 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134653.5948 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from ts where ndos = 61
20241010@134653.5989 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134653.6006 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241010@134653.6016 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134653.6031 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241010@134653.6040 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134653.6056 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241010@134653.6066 8tdsprmeqf4qda169dkfra1fvg 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
20241010@134653.6148 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241010@134653.6214 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241010@134653.6233 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134653.6239 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20241010@134653.6309 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134653.6326 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241010@134653.6344 8tdsprmeqf4qda169dkfra1fvg Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707c705936707ccbd98',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241010@134653.6389 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134653.6404 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241010@134653.6416 8tdsprmeqf4qda169dkfra1fvg Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707c705936707ccbd98','--','bo',7.8658288043478260869 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241010@134653.6571 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134653.6589 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241010@134653.6651 8tdsprmeqf4qda169dkfra1fvg 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 ('aut6707c705936707ccbd98','guia r. fornecedor','2024-10-10',61,2403008,?,?,?,?,?,?,?,?,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')
20241010@134655.8170 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134655.8195 8tdsprmeqf4qda169dkfra1fvg Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20241010@134655.8228 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20241010@134655.8343 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134655.8360 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241010@134655.8375 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134655.8390 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241010@134655.8400 8tdsprmeqf4qda169dkfra1fvg Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400480100a'
20241010@134655.8413 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134655.8428 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241010@134655.8438 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134655.8453 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241010@134655.8465 8tdsprmeqf4qda169dkfra1fvg Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707c621516707ccbfce',?,?,'20241010',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241010@134655.8962 8tdsprmeqf4qda169dkfra1fvg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@134655.8984 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134655.9001 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241010@134655.9015 8tdsprmeqf4qda169dkfra1fvg Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6707c367676707ccbfdb','aut6707c705936707ccbd98',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 = 'aut6707c705936707ccbd98'
20241010@134655.9139 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@134655.9156 8tdsprmeqf4qda169dkfra1fvg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241010@134655.9175 8tdsprmeqf4qda169dkfra1fvg 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 'aut6707c367676707ccbfdb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 919, 919*.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 ,29.44,29.44*200.48,29.44,29.44*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,29.44*919,29.44*919*200.48 ,31.965000,31.965000*200.48 ,31.965000,31.965000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.44,29.44*200.48,29.44*919,29.44*919*200.48,'cps24050651791,622000003 ',231.57,231.57*919,231.57,231.57*919,?,?,?,4 from bo bo where bo.bostamp = 'aut6707c705936707ccbd98'
20241010@134707.7375 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134707.7380 8tdsprmeqf4qda169dkfra1fvg Query : declare @bostamp varchar(25) = 'aut6707c705936707ccbd98' ,@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 
20241010@134717.8790 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134717.9200 8tdsprmeqf4qda169dkfra1fvg Query : select 1 valor from bo where bo.bostamp = 'aut6707c705936707ccbd98'
20241010@134717.1043 8tdsprmeqf4qda169dkfra1fvg 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) = 'aut6707c705936707ccbd98' 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 
20241010@134717.3201 8tdsprmeqf4qda169dkfra1fvg Query : use flama_phc
20241010@134717.3205 8tdsprmeqf4qda169dkfra1fvg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241010@134717.3257 8tdsprmeqf4qda169dkfra1fvg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2557';
20241010@134717.3291 8tdsprmeqf4qda169dkfra1fvg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2557';

20241010@170933.4990 t7cfqnid5u3500mpppfudjcu8u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2558';
20241010@170933.5610 t7cfqnid5u3500mpppfudjcu8u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2558';
20241010@170933.6090 t7cfqnid5u3500mpppfudjcu8u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2558';
20241010@170933.6750 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.6780 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241010@170933.8670 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.8700 t7cfqnid5u3500mpppfudjcu8u Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20241010@170933.9680 t7cfqnid5u3500mpppfudjcu8u 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'
20241010@170933.1087 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406634 and bi.ref ='324.2232.00.1' and bi.lordem =1
20241010@170933.1459 t7cfqnid5u3500mpppfudjcu8u 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'
20241010@170933.1571 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406634 and bi.ref ='324.4980.00.1' and bi.lordem =2
20241010@170933.1860 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.1863 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241010@170933.2192 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.2198 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 1 valor from td where td.ndoc = 39
20241010@170933.2590 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.2596 t7cfqnid5u3500mpppfudjcu8u 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')
20241010@170933.2785 t7cfqnid5u3500mpppfudjcu8u 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
20241010@170933.2907 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.2910 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20241010@170933.3010 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.3013 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241010@170933.3074 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.3078 t7cfqnid5u3500mpppfudjcu8u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241010@170933.3134 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.3136 t7cfqnid5u3500mpppfudjcu8u Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20241010@170933.3196 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.3199 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from td where ndoc = 39
20241010@170933.3262 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241010@170933.3324 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.3633 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170933.3707 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.3723 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170933.3769 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.3788 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170933.3804 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170933.3988 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170933.4058 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.4086 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170933.4131 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6707f399386707fc3d5c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241010@170933.4434 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.4453 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170933.4487 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241010@170933.4560 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241010@170933.4666 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241010@170933.4727 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241010@170933.4783 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241010@170933.4839 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241010@170933.4908 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6707f399386707fc3d5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241010@170933.6017 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 fno valor from wsftdata order by fno desc
20241010@170933.6190 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.6258 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170933.6282 t7cfqnid5u3500mpppfudjcu8u Query : select 'normal' from dummy
20241010@170933.6393 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6707f399386707fc3d5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1192,101900,0,'2024-10-10',39,'euro',0,0,2024 ,?,?)
20241010@170933.6871 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.6874 t7cfqnid5u3500mpppfudjcu8u Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20241010@170933.6905 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241010@170933.8612 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.8647 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170933.8687 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.8713 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170933.8737 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170933.8785 t7cfqnid5u3500mpppfudjcu8u Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20241010@170933.8834 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.8857 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170933.8869 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f948366707fc3dd7','aut6707f399386707fc3d5c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170933.8964 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170933.8992 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170933.9048 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f948366707fc3dd7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut6707f399386707fc3d5c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241010@170933.9993 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170933.9996 t7cfqnid5u3500mpppfudjcu8u Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20241010@170934.1900 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241010@170934.1420 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.1600 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.2030 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.2200 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.2290 t7cfqnid5u3500mpppfudjcu8u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170934.2400 t7cfqnid5u3500mpppfudjcu8u Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20241010@170934.2540 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.2690 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.2800 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f936966707fc3e06','aut6707f399386707fc3d5c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170934.2850 t7cfqnid5u3500mpppfudjcu8u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.2990 t7cfqnid5u3500mpppfudjcu8u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.3410 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f936966707fc3e06',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut6707f399386707fc3d5c' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241010@170934.7720 t7cfqnid5u3500mpppfudjcu8u Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6707f399386707fc3d5c','2406634','wait',39,'adm09112754980.682000002')
20241010@170934.8720 t7cfqnid5u3500mpppfudjcu8u Query : use flama_phc
20241010@170934.8750 t7cfqnid5u3500mpppfudjcu8u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241010@170934.9090 t7cfqnid5u3500mpppfudjcu8u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2558';
20241010@170934.9430 t7cfqnid5u3500mpppfudjcu8u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2558';
20241010@170934.9940 t7cfqnid5u3500mpppfudjcu8u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2558';
20241010@170934.1027 t7cfqnid5u3500mpppfudjcu8u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2558';
20241010@170934.1850 4s230ko406nupn30i26mu8hrn6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241010@170934.1861 4s230ko406nupn30i26mu8hrn6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241010@170934.1937 4s230ko406nupn30i26mu8hrn6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2559';
20241010@170934.2002 4s230ko406nupn30i26mu8hrn6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2559';
20241010@170934.2073 4s230ko406nupn30i26mu8hrn6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2559';
20241010@170934.2102 4s230ko406nupn30i26mu8hrn6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2559';
20241010@170934.2184 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.2187 4s230ko406nupn30i26mu8hrn6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241010@170934.2247 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.2250 4s230ko406nupn30i26mu8hrn6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1761
20241010@170934.2335 4s230ko406nupn30i26mu8hrn6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241010@170934.2489 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406636 and bi.ref ='304.4320.00.1' and bi.lordem =1
20241010@170934.2795 4s230ko406nupn30i26mu8hrn6 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'
20241010@170934.2907 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406636 and bi.ref ='324.4906.00.1' and bi.lordem =2
20241010@170934.3246 4s230ko406nupn30i26mu8hrn6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9006.00.1'
20241010@170934.3361 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406636 and bi.ref ='328.9006.00.1' and bi.lordem =5
20241010@170934.3657 4s230ko406nupn30i26mu8hrn6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9006.00.1'
20241010@170934.3675 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406636 and bi.ref ='328.9006.00.1' and bi.lordem =5
20241010@170934.3694 4s230ko406nupn30i26mu8hrn6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20241010@170934.3863 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406636 and bi.ref ='324.1831.00.2' and bi.lordem =6
20241010@170934.4169 4s230ko406nupn30i26mu8hrn6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20241010@170934.4189 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406636 and bi.ref ='324.1831.00.2' and bi.lordem =7
20241010@170934.4490 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4493 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241010@170934.4638 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4642 4s230ko406nupn30i26mu8hrn6 Query : select top 1 1 valor from td where td.ndoc = 39
20241010@170934.4672 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4675 4s230ko406nupn30i26mu8hrn6 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')
20241010@170934.4701 4s230ko406nupn30i26mu8hrn6 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
20241010@170934.4742 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4745 4s230ko406nupn30i26mu8hrn6 Query : select top 1 ~inactivo valor from cl where no = '101828' and estab = 0 order by inactivo desc
20241010@170934.4837 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4841 4s230ko406nupn30i26mu8hrn6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241010@170934.4874 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4878 4s230ko406nupn30i26mu8hrn6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241010@170934.4924 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4927 4s230ko406nupn30i26mu8hrn6 Query : select szadrsstamp valor from szadrs where szadrsdesc='electrocortes, lda'
20241010@170934.4979 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.4982 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from td where ndoc = 39
20241010@170934.4993 4s230ko406nupn30i26mu8hrn6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241010@170934.5005 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.5020 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170934.5038 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.5051 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170934.5371 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.5388 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170934.5421 4s230ko406nupn30i26mu8hrn6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170934.5508 4s230ko406nupn30i26mu8hrn6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170934.5523 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.5540 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170934.5557 4s230ko406nupn30i26mu8hrn6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241010@170934.5725 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.5741 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170934.5771 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241010@170934.5782 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241010@170934.5793 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241010@170934.5804 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241010@170934.5815 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241010@170934.5825 4s230ko406nupn30i26mu8hrn6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241010@170934.5835 4s230ko406nupn30i26mu8hrn6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6707f226716707fc3e84',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241010@170934.6036 4s230ko406nupn30i26mu8hrn6 Query : select top 1 fno valor from wsftdata order by fno desc
20241010@170934.6058 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.6073 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170934.6094 4s230ko406nupn30i26mu8hrn6 Query : select 'normal' from dummy
20241010@170934.6107 4s230ko406nupn30i26mu8hrn6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6707f226716707fc3e84',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1193,101828,0,'2024-10-10',39,'euro',0,0,2024 ,?,?)
20241010@170934.6350 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.6353 4s230ko406nupn30i26mu8hrn6 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241010@170934.6428 4s230ko406nupn30i26mu8hrn6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20241010@170934.6555 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.6572 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.6594 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.6609 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.6617 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170934.6627 4s230ko406nupn30i26mu8hrn6 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241183'
20241010@170934.6660 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.6674 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.6684 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f579506707fc3ea2','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170934.6689 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.6704 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.6734 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f579506707fc3ea2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241010@170934.6951 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.6954 4s230ko406nupn30i26mu8hrn6 Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20241010@170934.6991 4s230ko406nupn30i26mu8hrn6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241010@170934.7168 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.7189 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.7213 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.7226 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.7233 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170934.7244 4s230ko406nupn30i26mu8hrn6 Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20241010@170934.7259 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.7297 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.7308 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f621896707fc3eb1','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170934.7312 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.7326 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.7351 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f621896707fc3eb1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241010@170934.7591 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.7606 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.7642 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.7656 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.7688 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170934.7756 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.7925 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170934.7997 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f866686707fc3ebd','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170934.8031 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170934.8307 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170934.9019 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f866686707fc3ebd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,30000,?,?,?)
20241010@170934.9289 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170934.9332 4s230ko406nupn30i26mu8hrn6 Query : select st.usalote valor from st where st.ref = '328.9006.00.1'
20241010@170934.9714 4s230ko406nupn30i26mu8hrn6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9006.00.1'
20241010@170935.4360 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.5530 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.6290 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.7630 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.9450 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.9980 4s230ko406nupn30i26mu8hrn6 Query : select sestamp valor from se where ref ='328.9006.00.1' and lote = 'r2300691200a'
20241010@170935.1107 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.1124 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.1176 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f226226707fc3f1b','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.1180 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.1260 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.1500 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f226226707fc3f1b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241010@170935.1863 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.1909 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.2025 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.2076 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.2085 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.2120 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.2182 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.2195 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f827796707fc3f33','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.2199 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.2246 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.2315 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f827796707fc3f33',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,60000,?,?,?)
20241010@170935.2607 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170935.2637 4s230ko406nupn30i26mu8hrn6 Query : select st.usalote valor from st where st.ref = '328.9006.00.1'
20241010@170935.2844 4s230ko406nupn30i26mu8hrn6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9006.00.1'
20241010@170935.2874 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.2889 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.2920 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.2934 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.2942 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.2954 4s230ko406nupn30i26mu8hrn6 Query : select sestamp valor from se where ref ='328.9006.00.1' and lote = 'r2300691200a'
20241010@170935.2969 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.2983 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.3013 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f790916707fc3f48','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.3018 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.3031 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.3057 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f790916707fc3f48',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241010@170935.3277 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.3295 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.3323 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.3338 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.3347 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.3362 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.3380 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.3410 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f949336707fc3f52','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.3415 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.3440 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.3492 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f949336707fc3f52',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,90000,?,?,?)
20241010@170935.3715 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170935.3727 4s230ko406nupn30i26mu8hrn6 Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241010@170935.3789 4s230ko406nupn30i26mu8hrn6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241010@170935.3899 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.3918 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.3945 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.3960 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.3969 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.3984 4s230ko406nupn30i26mu8hrn6 Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2400481200a'
20241010@170935.4015 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4038 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.4055 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f694196707fc3f62','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.4059 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4075 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.4117 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f694196707fc3f62',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241010@170935.4353 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4371 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.4399 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4423 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.4443 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.4455 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4472 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.4483 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f852246707fc3f6c','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.4488 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4516 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.4589 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f852246707fc3f6c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,120000,?,?,?)
20241010@170935.4838 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170935.4842 4s230ko406nupn30i26mu8hrn6 Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241010@170935.4867 4s230ko406nupn30i26mu8hrn6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241010@170935.4886 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4906 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.4941 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.4959 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.4970 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.4985 4s230ko406nupn30i26mu8hrn6 Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2400481200a'
20241010@170935.5000 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.5018 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.5033 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f572226707fc3f7a','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.5040 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.5058 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.5092 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f572226707fc3f7a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20241010@170935.5336 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.5358 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.5413 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.5430 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.5444 4s230ko406nupn30i26mu8hrn6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170935.5460 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.5478 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170935.5494 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f139846707fc3f85','aut6707f226716707fc3e84' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170935.5499 4s230ko406nupn30i26mu8hrn6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170935.5522 4s230ko406nupn30i26mu8hrn6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170935.5558 4s230ko406nupn30i26mu8hrn6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f139846707fc3f85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f226716707fc3e84' ,0,0 ,2,23.00,150000,?,?,?)
20241010@170935.5791 4s230ko406nupn30i26mu8hrn6 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6707f226716707fc3e84','2406636','wait',39,'adm09112754980.682000002')
20241010@170935.5892 4s230ko406nupn30i26mu8hrn6 Query : use flama_phc
20241010@170935.5911 4s230ko406nupn30i26mu8hrn6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241010@170935.5972 4s230ko406nupn30i26mu8hrn6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2559';
20241010@170935.6011 4s230ko406nupn30i26mu8hrn6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2559';
20241010@170935.6058 4s230ko406nupn30i26mu8hrn6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2559';
20241010@170935.6092 4s230ko406nupn30i26mu8hrn6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2559';
20241010@170935.8690 rofpb3h0o1vrin2g4t195116ai Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241010@170935.8774 rofpb3h0o1vrin2g4t195116ai Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241010@170935.9392 rofpb3h0o1vrin2g4t195116ai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2560';
20241010@170936.2560 rofpb3h0o1vrin2g4t195116ai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2560';
20241010@170936.6310 rofpb3h0o1vrin2g4t195116ai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2560';
20241010@170936.9430 rofpb3h0o1vrin2g4t195116ai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2560';
20241010@170936.1495 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170936.1622 rofpb3h0o1vrin2g4t195116ai Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241010@170936.5072 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170936.5157 rofpb3h0o1vrin2g4t195116ai Query : select no, estab,szadrsdesc from szadrs where u_coddest=698
20241010@170936.5902 rofpb3h0o1vrin2g4t195116ai Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20241010@170936.6794 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406638 and bi.ref ='304.421.00.04' and bi.lordem =1
20241010@170936.8272 rofpb3h0o1vrin2g4t195116ai Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4020.00.1'
20241010@170936.9184 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406638 and bi.ref ='304.4020.00.1' and bi.lordem =3
20241010@170937.7320 rofpb3h0o1vrin2g4t195116ai Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20241010@170937.2144 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406638 and bi.ref ='324.1816.00.1' and bi.lordem =5
20241010@170937.4221 rofpb3h0o1vrin2g4t195116ai Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20241010@170937.5466 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406638 and bi.ref ='324.1824.00.1' and bi.lordem =6
20241010@170937.6444 rofpb3h0o1vrin2g4t195116ai Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1706.00.1'
20241010@170937.6979 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406638 and bi.ref ='324.1706.00.1' and bi.lordem =7
20241010@170937.7705 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170937.7747 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241010@170937.9494 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170937.9570 rofpb3h0o1vrin2g4t195116ai Query : select top 1 1 valor from td where td.ndoc = 39
20241010@170937.9948 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170937.9994 rofpb3h0o1vrin2g4t195116ai 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')
20241010@170938.4540 rofpb3h0o1vrin2g4t195116ai 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
20241010@170938.9090 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.9510 rofpb3h0o1vrin2g4t195116ai Query : select top 1 ~inactivo valor from cl where no = '100220' and estab = 0 order by inactivo desc
20241010@170938.1480 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.1522 rofpb3h0o1vrin2g4t195116ai Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241010@170938.1896 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.1938 rofpb3h0o1vrin2g4t195116ai Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241010@170938.2513 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.2567 rofpb3h0o1vrin2g4t195116ai Query : select szadrsstamp valor from szadrs where szadrsdesc='amorim & ferreira, lda'
20241010@170938.3112 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.3188 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from td where ndoc = 39
20241010@170938.3466 rofpb3h0o1vrin2g4t195116ai Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241010@170938.3481 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.3522 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170938.3587 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.3615 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170938.3647 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.3663 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170938.3676 rofpb3h0o1vrin2g4t195116ai Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170938.3743 rofpb3h0o1vrin2g4t195116ai Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170938.3776 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.3791 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170938.3818 rofpb3h0o1vrin2g4t195116ai Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241010@170938.4028 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.4050 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170938.4082 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241010@170938.4107 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241010@170938.4123 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241010@170938.4135 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241010@170938.4146 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241010@170938.4158 rofpb3h0o1vrin2g4t195116ai Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241010@170938.4168 rofpb3h0o1vrin2g4t195116ai Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6707f068156707fc4259',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241010@170938.4412 rofpb3h0o1vrin2g4t195116ai Query : select top 1 fno valor from wsftdata order by fno desc
20241010@170938.4525 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.4606 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170938.4917 rofpb3h0o1vrin2g4t195116ai Query : select 'normal' from dummy
20241010@170938.4999 rofpb3h0o1vrin2g4t195116ai Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6707f068156707fc4259',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1194,100220,0,'2024-10-10',39,'euro',0,0,2024 ,?,?)
20241010@170938.5411 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.5414 rofpb3h0o1vrin2g4t195116ai Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20241010@170938.5440 rofpb3h0o1vrin2g4t195116ai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20241010@170938.5579 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.5600 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.5628 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.5651 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.5660 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170938.5706 rofpb3h0o1vrin2g4t195116ai Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20241010@170938.5756 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.5770 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.5805 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f852386707fc428c','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170938.5811 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.5827 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.5857 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f852386707fc428c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241010@170938.6101 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6168 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.6203 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6225 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.6238 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170938.6250 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6265 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.6276 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f802446707fc4298','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170938.6280 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6305 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.6343 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f802446707fc4298',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,20000,?,?,?)
20241010@170938.6559 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.6561 rofpb3h0o1vrin2g4t195116ai Query : select st.usalote valor from st where st.ref = '304.4020.00.1'
20241010@170938.6592 rofpb3h0o1vrin2g4t195116ai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4020.00.1'
20241010@170938.6706 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6745 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.6774 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6789 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.6797 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170938.6809 rofpb3h0o1vrin2g4t195116ai Query : select sestamp valor from se where ref ='304.4020.00.1' and lote = '240409'
20241010@170938.6844 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6862 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.6876 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f003366707fc42a7','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170938.6881 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.6900 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.6938 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f003366707fc42a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241010@170938.7151 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.7154 rofpb3h0o1vrin2g4t195116ai Query : select st.usalote valor from st where st.ref = '324.1816.00.1'
20241010@170938.7200 rofpb3h0o1vrin2g4t195116ai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1816.00.1'
20241010@170938.7343 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.7400 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.7450 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.7476 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.7484 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170938.7496 rofpb3h0o1vrin2g4t195116ai Query : select sestamp valor from se where ref ='324.1816.00.1' and lote = 'r2400199200a'
20241010@170938.7521 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.7535 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.7554 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f959836707fc42b7','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170938.7558 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.7573 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.7604 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f959836707fc42b7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241010@170938.7880 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.7909 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.7942 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.7970 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.7979 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170938.8010 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.8027 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.8038 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f182676707fc42c3','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170938.8042 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.8057 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.8086 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f182676707fc42c3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,60000,?,?,?)
20241010@170938.8309 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.8313 rofpb3h0o1vrin2g4t195116ai Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20241010@170938.8340 rofpb3h0o1vrin2g4t195116ai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20241010@170938.8455 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.8484 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.8559 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.8733 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.8742 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170938.8756 rofpb3h0o1vrin2g4t195116ai Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301209200a'
20241010@170938.8770 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.8785 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.8810 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f774596707fc42d6','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170938.8815 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.8830 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.8891 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f774596707fc42d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241010@170938.9119 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.9139 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.9178 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.9193 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.9213 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170938.9227 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.9248 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170938.9299 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f013786707fc42e1','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170938.9304 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.9322 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.9388 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f013786707fc42e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,90000,?,?,?)
20241010@170938.9607 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170938.9610 rofpb3h0o1vrin2g4t195116ai Query : select st.usalote valor from st where st.ref = '324.1706.00.1'
20241010@170938.9673 rofpb3h0o1vrin2g4t195116ai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1706.00.1'
20241010@170938.9785 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170938.9801 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170938.9888 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.1760 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170939.2060 rofpb3h0o1vrin2g4t195116ai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170939.2190 rofpb3h0o1vrin2g4t195116ai Query : select sestamp valor from se where ref ='324.1706.00.1' and lote = 'r2100123100b'
20241010@170939.2330 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.3340 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170939.4130 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f877066707fc4305','aut6707f068156707fc4259' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170939.4210 rofpb3h0o1vrin2g4t195116ai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.4710 rofpb3h0o1vrin2g4t195116ai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170939.5600 rofpb3h0o1vrin2g4t195116ai Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f877066707fc4305',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6707f068156707fc4259' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241010@170939.9990 rofpb3h0o1vrin2g4t195116ai Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6707f068156707fc4259','2406638','wait',39,'adm09112754980.682000002')
20241010@170939.1072 rofpb3h0o1vrin2g4t195116ai Query : use flama_phc
20241010@170939.1075 rofpb3h0o1vrin2g4t195116ai Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241010@170939.1105 rofpb3h0o1vrin2g4t195116ai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2560';
20241010@170939.1136 rofpb3h0o1vrin2g4t195116ai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2560';
20241010@170939.1197 rofpb3h0o1vrin2g4t195116ai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2560';
20241010@170939.1228 rofpb3h0o1vrin2g4t195116ai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2560';
20241010@170939.2086 bdlfns9vqatgd7bbel9s782oug Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241010@170939.2107 bdlfns9vqatgd7bbel9s782oug Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241010@170939.2189 bdlfns9vqatgd7bbel9s782oug Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2561';
20241010@170939.2270 bdlfns9vqatgd7bbel9s782oug Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2561';
20241010@170939.2342 bdlfns9vqatgd7bbel9s782oug Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2561';
20241010@170939.2395 bdlfns9vqatgd7bbel9s782oug Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2561';
20241010@170939.2455 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.2458 bdlfns9vqatgd7bbel9s782oug Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241010@170939.2551 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.2554 bdlfns9vqatgd7bbel9s782oug Query : select no, estab,szadrsdesc from szadrs where u_coddest=2119
20241010@170939.2710 bdlfns9vqatgd7bbel9s782oug Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1837.00.1'
20241010@170939.2862 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406644 and bi.ref ='324.1837.00.1' and bi.lordem =1
20241010@170939.3174 bdlfns9vqatgd7bbel9s782oug 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'
20241010@170939.3289 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406644 and bi.ref ='324.1805.00.1' and bi.lordem =2
20241010@170939.3596 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.3599 bdlfns9vqatgd7bbel9s782oug Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241010@170939.3664 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.3670 bdlfns9vqatgd7bbel9s782oug Query : select top 1 1 valor from td where td.ndoc = 39
20241010@170939.3699 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.3710 bdlfns9vqatgd7bbel9s782oug 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')
20241010@170939.3763 bdlfns9vqatgd7bbel9s782oug 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
20241010@170939.3808 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.3818 bdlfns9vqatgd7bbel9s782oug Query : select top 1 ~inactivo valor from cl where no = '101631' and estab = 0 order by inactivo desc
20241010@170939.3912 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.3938 bdlfns9vqatgd7bbel9s782oug Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241010@170939.3967 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.3981 bdlfns9vqatgd7bbel9s782oug Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241010@170939.4043 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.4046 bdlfns9vqatgd7bbel9s782oug Query : select szadrsstamp valor from szadrs where szadrsdesc='belmiro martins ribeiro,lda-1'
20241010@170939.4097 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.4100 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from td where ndoc = 39
20241010@170939.4112 bdlfns9vqatgd7bbel9s782oug Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241010@170939.4126 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.4143 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170939.4176 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.4191 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170939.4225 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.4240 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170939.4253 bdlfns9vqatgd7bbel9s782oug Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170939.4327 bdlfns9vqatgd7bbel9s782oug Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170939.4340 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.4356 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170939.4402 bdlfns9vqatgd7bbel9s782oug Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6707f305426707fc4367' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241010@170939.4551 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.4576 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170939.4651 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241010@170939.4663 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241010@170939.4710 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241010@170939.4723 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241010@170939.4745 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241010@170939.4756 bdlfns9vqatgd7bbel9s782oug Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241010@170939.4767 bdlfns9vqatgd7bbel9s782oug Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6707f305426707fc4367',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241010@170939.4989 bdlfns9vqatgd7bbel9s782oug Query : select top 1 fno valor from wsftdata order by fno desc
20241010@170939.5013 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.5046 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170939.5069 bdlfns9vqatgd7bbel9s782oug Query : select 'normal' from dummy
20241010@170939.5091 bdlfns9vqatgd7bbel9s782oug Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6707f305426707fc4367',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1195,101631,0,'2024-10-10',39,'euro',0,0,2024 ,?,?)
20241010@170939.5587 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.5594 bdlfns9vqatgd7bbel9s782oug Query : select st.usalote valor from st where st.ref = '324.1837.00.1'
20241010@170939.5640 bdlfns9vqatgd7bbel9s782oug Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1837.00.1'
20241010@170939.5759 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.5777 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170939.6155 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.6314 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170939.6326 bdlfns9vqatgd7bbel9s782oug Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170939.6366 bdlfns9vqatgd7bbel9s782oug Query : select sestamp valor from se where ref ='324.1837.00.1' and lote = 'r2400598200a'
20241010@170939.6379 bdlfns9vqatgd7bbel9s782oug Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170939.6416 bdlfns9vqatgd7bbel9s782oug Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170939.6431 bdlfns9vqatgd7bbel9s782oug Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f882616707fc439b','aut6707f305426707fc4367' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170939.6450 bdlfns9vqatgd7bbel9s782oug Query : use flama_phc
20241010@170939.6454 bdlfns9vqatgd7bbel9s782oug Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241010@170939.6539 bdlfns9vqatgd7bbel9s782oug Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2561';
20241010@170939.6659 bdlfns9vqatgd7bbel9s782oug Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2561';
20241010@170939.7248 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241010@170939.7262 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241010@170939.7328 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2562';
20241010@170939.7407 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2562';
20241010@170939.7467 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2562';
20241010@170939.7506 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2562';
20241010@170939.7559 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.7570 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241010@170939.7652 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.7655 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select no, estab,szadrsdesc from szadrs where u_coddest=1761
20241010@170939.7698 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.367.09.00'
20241010@170939.7826 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406645 and bi.ref ='323.367.09.00' and bi.lordem =1
20241010@170939.8233 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8237 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241010@170939.8287 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8290 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 1 valor from td where td.ndoc = 39
20241010@170939.8323 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8326 8j7mfbh6pjqq3dtt6jf3dmrk7i 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')
20241010@170939.8358 8j7mfbh6pjqq3dtt6jf3dmrk7i 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
20241010@170939.8398 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8409 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 ~inactivo valor from cl where no = '101828' and estab = 0 order by inactivo desc
20241010@170939.8439 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8442 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241010@170939.8484 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8490 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241010@170939.8542 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8549 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select szadrsstamp valor from szadrs where szadrsdesc='electrocortes, lda'
20241010@170939.8798 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170939.8828 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from td where ndoc = 39
20241010@170939.9921 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241010@170940.9110 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.1020 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170940.1269 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.1361 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170940.1419 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.1472 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170940.1488 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170940.1590 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170940.1605 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.1630 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170940.1650 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6707f932426707fc4424' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241010@170940.1820 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.1902 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170940.1943 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241010@170940.1957 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241010@170940.1971 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241010@170940.1984 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241010@170940.2024 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241010@170940.2042 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241010@170940.2054 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6707f932426707fc4424',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241010@170940.2324 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 fno valor from wsftdata order by fno desc
20241010@170940.2362 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.2383 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170940.2438 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 'normal' from dummy
20241010@170940.2489 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6707f932426707fc4424',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1195,101828,0,'2024-10-10',39,'euro',0,0,2024 ,?,?)
20241010@170940.3062 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170940.3071 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20241010@170940.3097 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20241010@170940.3258 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.3278 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170940.3316 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.3334 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170940.3344 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170940.3371 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20241010@170940.3404 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.3423 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170940.3449 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f296656707fc4453','aut6707f932426707fc4424' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170940.3455 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170940.3539 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170940.3624 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f296656707fc4453',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6707f932426707fc4424' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241010@170940.3876 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6707f932426707fc4424','2406645','wait',39,'adm09112754980.682000002')
20241010@170940.3960 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : use flama_phc
20241010@170940.3963 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241010@170940.3998 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2562';
20241010@170940.4033 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2562';
20241010@170940.4080 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2562';
20241010@170940.4181 8j7mfbh6pjqq3dtt6jf3dmrk7i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2562';
20241010@170940.4870 imlledi45a33repr2upjot8htg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241010@170940.4881 imlledi45a33repr2upjot8htg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241010@170940.5157 imlledi45a33repr2upjot8htg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2563';
20241010@170940.5226 imlledi45a33repr2upjot8htg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2563';
20241010@170940.5283 imlledi45a33repr2upjot8htg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2563';
20241010@170940.5354 imlledi45a33repr2upjot8htg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2563';
20241010@170940.5457 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170940.5471 imlledi45a33repr2upjot8htg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241010@170940.5566 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170940.5580 imlledi45a33repr2upjot8htg Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20241010@170940.5734 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5343.00.1'
20241010@170940.5914 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.5343.00.1' and bi.lordem =1
20241010@170940.6308 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20241010@170940.6505 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.4521.00.1' and bi.lordem =2
20241010@170940.6901 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20241010@170940.6933 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='304.4320.00.1' and bi.lordem =3
20241010@170940.7273 imlledi45a33repr2upjot8htg 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'
20241010@170940.7413 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.1221.00.1' and bi.lordem =4
20241010@170940.7762 imlledi45a33repr2upjot8htg 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'
20241010@170940.7821 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.1221.00.1' and bi.lordem =4
20241010@170940.7858 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1884.00.1'
20241010@170940.8093 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.1884.00.1' and bi.lordem =5
20241010@170940.8385 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20241010@170940.8487 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.1803.00.1' and bi.lordem =6
20241010@170940.8822 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241010@170940.8937 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.1879.00.1' and bi.lordem =7
20241010@170940.9253 imlledi45a33repr2upjot8htg 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'
20241010@170940.9480 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.4902.00.1' and bi.lordem =8
20241010@170940.9826 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20241010@170940.9932 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.1705.00.1' and bi.lordem =9
20241010@170941.2150 imlledi45a33repr2upjot8htg 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'
20241010@170941.3510 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.1462.00.1' and bi.lordem =10
20241010@170941.6850 imlledi45a33repr2upjot8htg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.966.00.01'
20241010@170941.7940 imlledi45a33repr2upjot8htg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2066 and bo.obrano = 2406646 and bi.ref ='324.966.00.01' and bi.lordem =11
20241010@170941.1090 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1094 imlledi45a33repr2upjot8htg Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241010@170941.1153 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1161 imlledi45a33repr2upjot8htg Query : select top 1 1 valor from td where td.ndoc = 39
20241010@170941.1198 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1210 imlledi45a33repr2upjot8htg 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')
20241010@170941.1269 imlledi45a33repr2upjot8htg 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
20241010@170941.1317 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1321 imlledi45a33repr2upjot8htg Query : select top 1 ~inactivo valor from cl where no = '100080' and estab = 0 order by inactivo desc
20241010@170941.1441 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1445 imlledi45a33repr2upjot8htg Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241010@170941.1569 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1572 imlledi45a33repr2upjot8htg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241010@170941.1614 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1636 imlledi45a33repr2upjot8htg Query : select szadrsstamp valor from szadrs where szadrsdesc='sorefoz - electrod. e equipamentos, s.a.'
20241010@170941.1731 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.1734 imlledi45a33repr2upjot8htg Query : select 1 valor from td where ndoc = 39
20241010@170941.1812 imlledi45a33repr2upjot8htg Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241010@170941.1894 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.1975 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170941.2175 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.2196 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170941.2267 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.2282 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170941.2294 imlledi45a33repr2upjot8htg Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170941.2408 imlledi45a33repr2upjot8htg Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241010@170941.2447 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.2558 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241010@170941.2577 imlledi45a33repr2upjot8htg Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241010@170941.2764 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.2793 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241010@170941.2888 imlledi45a33repr2upjot8htg Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241010@170941.3256 imlledi45a33repr2upjot8htg Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241010@170941.3287 imlledi45a33repr2upjot8htg Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241010@170941.3359 imlledi45a33repr2upjot8htg Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241010@170941.3395 imlledi45a33repr2upjot8htg Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241010@170941.3417 imlledi45a33repr2upjot8htg Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241010@170941.3427 imlledi45a33repr2upjot8htg Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6707f090286707fc4538',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241010@170941.3638 imlledi45a33repr2upjot8htg Query : select top 1 fno valor from wsftdata order by fno desc
20241010@170941.3676 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.3718 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241010@170941.3741 imlledi45a33repr2upjot8htg Query : select 'normal' from dummy
20241010@170941.3795 imlledi45a33repr2upjot8htg Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6707f090286707fc4538',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1196,100080,0,'2024-10-10',39,'euro',0,0,2024 ,?,?)
20241010@170941.4082 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.4085 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20241010@170941.4113 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20241010@170941.4273 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4294 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.4328 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4356 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.4370 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.4382 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2300915100a'
20241010@170941.4397 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4411 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.4424 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f327296707fc456b','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.4428 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4472 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.4513 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f327296707fc456b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241010@170941.4781 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4798 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.4825 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4852 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.4878 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.4924 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4945 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.4957 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f748506707fc4578','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.4962 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.4977 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.5019 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f748506707fc4578',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,20000,?,?,?)
20241010@170941.5261 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.5264 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20241010@170941.5305 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4521.00.1'
20241010@170941.5521 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.5541 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.5581 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.5600 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.5618 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.5631 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20241010@170941.5645 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.5661 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.5676 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f829586707fc4589','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.5680 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.5694 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.5746 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f829586707fc4589',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241010@170941.5962 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.5967 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20241010@170941.5991 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20241010@170941.6012 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6029 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.6059 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6079 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.6088 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.6104 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241183'
20241010@170941.6116 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6131 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.6146 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f167026707fc4595','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.6151 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6193 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.6235 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f167026707fc4595',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241010@170941.6471 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.6497 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20241010@170941.6525 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241010@170941.6651 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6676 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.6705 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6727 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.6735 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.6746 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20241010@170941.6783 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6797 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.6817 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f696776707fc45a5','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.6843 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.6857 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.6929 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f696776707fc45a5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20241010@170941.7191 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7216 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.7279 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7304 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.7316 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.7336 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7351 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.7398 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f180536707fc45b3','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.7412 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7428 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.7478 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f180536707fc45b3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,70000,?,?,?)
20241010@170941.7717 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.7720 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20241010@170941.7751 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241010@170941.7794 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7817 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.7846 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7869 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.7902 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.7913 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20241010@170941.7945 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7962 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.7976 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f540926707fc45c1','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.7982 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.7999 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.8030 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f540926707fc45c1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241010@170941.8277 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.8293 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.8394 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.8423 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.8440 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.8455 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.8471 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.8494 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f540726707fc45ce','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.8499 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.8514 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.8556 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f540726707fc45ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,100000,?,?,?)
20241010@170941.8787 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170941.8790 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '324.1884.00.1'
20241010@170941.8813 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1884.00.1'
20241010@170941.8938 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.8964 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.9010 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.9043 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.9053 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.9287 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='324.1884.00.1' and lote = 'r2301208100a'
20241010@170941.9306 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.9333 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.9351 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f296476707fc45e3','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.9357 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.9377 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.9419 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f296476707fc45e3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20241010@170941.9657 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.9679 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.9713 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.9735 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.9747 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170941.9769 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.9788 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170941.9804 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f438886707fc45ee','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170941.9820 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170941.9853 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170941.9903 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6707f438886707fc45ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,130000,?,?,?)
20241010@170942.1630 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170942.1646 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20241010@170942.1696 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20241010@170942.1848 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170942.1890 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170942.1989 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170942.2019 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170942.2043 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170942.2060 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2301274200a'
20241010@170942.2111 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170942.2137 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170942.2154 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f243656707fc4633','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170942.2159 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170942.2179 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170942.2223 imlledi45a33repr2upjot8htg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6707f243656707fc4633',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6707f090286707fc4538' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20241010@170942.2470 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170942.2517 imlledi45a33repr2upjot8htg Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20241010@170942.2857 imlledi45a33repr2upjot8htg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20241010@170942.3293 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170942.3677 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241010@170942.4183 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170942.4211 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170942.4225 imlledi45a33repr2upjot8htg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241010@170942.4242 imlledi45a33repr2upjot8htg Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2301097100b'
20241010@170942.4255 imlledi45a33repr2upjot8htg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241010@170942.4298 imlledi45a33repr2upjot8htg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241010@170942.4321 imlledi45a33repr2upjot8htg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6707f220476707fc4667','aut6707f090286707fc4538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241010@170942.4351 imlledi45a33repr2upjot8htg Query : use flama_phc
20241010@170942.4390 imlledi45a33repr2upjot8htg Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241010@170942.4455 imlledi45a33repr2upjot8htg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2563';
20241010@170942.4505 imlledi45a33repr2upjot8htg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2563';

20241011@083341.3937 h57udpo5ialekcqvs1eqj4emiq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2564';
20241011@083341.4005 h57udpo5ialekcqvs1eqj4emiq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2564';
20241011@083341.4038 h57udpo5ialekcqvs1eqj4emiq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2564';
20241011@083341.4094 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.4097 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241011@083341.4201 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.4205 h57udpo5ialekcqvs1eqj4emiq Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20241011@083341.4306 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241011@083341.4432 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241011@083341.4472 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.4477 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241011@083341.4708 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.4712 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 1 valor from td where td.ndoc = 39
20241011@083341.4800 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.4804 h57udpo5ialekcqvs1eqj4emiq 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')
20241011@083341.4878 h57udpo5ialekcqvs1eqj4emiq 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
20241011@083341.5334 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.5338 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 ~inactivo valor from cl where no = '102943' and estab = 0 order by inactivo desc
20241011@083341.5463 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.5469 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241011@083341.5553 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.5556 h57udpo5ialekcqvs1eqj4emiq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241011@083341.5622 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.5625 h57udpo5ialekcqvs1eqj4emiq Query : select szadrsstamp valor from szadrs where szadrsdesc='pll-plataformalogistica lisboa norte'
20241011@083341.5676 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.5680 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from td where ndoc = 39
20241011@083341.5731 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241011@083341.5786 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.6412 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241011@083341.6521 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.6544 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241011@083341.6609 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.6632 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241011@083341.6651 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241011@083341.6818 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241011@083341.6894 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.6911 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241011@083341.6954 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6708d079136708d4d5a2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241011@083341.7290 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.7311 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241011@083341.7373 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241011@083341.7443 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241011@083341.7523 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241011@083341.7586 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241011@083341.7899 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241011@083341.7973 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241011@083341.8047 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6708d079136708d4d5a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241011@083341.8707 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 fno valor from wsftdata order by fno desc
20241011@083341.8776 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.8794 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241011@083341.8818 h57udpo5ialekcqvs1eqj4emiq Query : select 'normal' from dummy
20241011@083341.8866 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6708d079136708d4d5a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1196,102943,0,'2024-10-11',39,'euro',0,0,2024 ,?,?)
20241011@083341.9307 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083341.9311 h57udpo5ialekcqvs1eqj4emiq Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241011@083341.9416 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1317.00.1'
20241011@083341.9631 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.9649 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@083341.9683 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083341.9702 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@083341.9714 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@083341.9929 h57udpo5ialekcqvs1eqj4emiq Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241011@083341.9996 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083342.1700 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@083342.3500 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6708d205516708d4d5f4','aut6708d079136708d4d5a2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@083342.1490 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083342.3030 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@083342.3430 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6708d205516708d4d5f4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',33.000 ,'aut6708d079136708d4d5a2' ,0,0 ,2,23.00,10000,?,?,?,?)
20241011@083342.1140 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083342.1144 h57udpo5ialekcqvs1eqj4emiq Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241011@083342.1168 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1317.00.1'
20241011@083342.1202 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083342.1222 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@083342.1254 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083342.1276 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@083342.1287 h57udpo5ialekcqvs1eqj4emiq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@083342.1304 h57udpo5ialekcqvs1eqj4emiq Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241011@083342.1319 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083342.1339 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@083342.1354 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6708d355326708d4d620','aut6708d079136708d4d5a2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@083342.1360 h57udpo5ialekcqvs1eqj4emiq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@083342.1379 h57udpo5ialekcqvs1eqj4emiq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@083342.1416 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6708d355326708d4d620',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',33.000 ,'aut6708d079136708d4d5a2' ,0,0 ,2,23.00,20000,?,?,?,?)
20241011@083342.1623 h57udpo5ialekcqvs1eqj4emiq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6708d079136708d4d5a2','2406626','wait',39,'adm09112754980.682000002')
20241011@083342.1725 h57udpo5ialekcqvs1eqj4emiq Query : use flama_phc
20241011@083342.1769 h57udpo5ialekcqvs1eqj4emiq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241011@083342.1838 h57udpo5ialekcqvs1eqj4emiq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2564';
20241011@083342.1878 h57udpo5ialekcqvs1eqj4emiq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2564';
20241011@083342.1932 h57udpo5ialekcqvs1eqj4emiq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2564';
20241011@083342.1963 h57udpo5ialekcqvs1eqj4emiq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2564';

20241011@085009.1239 kvglu3gruhilfngak57ls9tni2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2565';
20241011@085009.1691 kvglu3gruhilfngak57ls9tni2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2565';
20241011@085009.1798 kvglu3gruhilfngak57ls9tni2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2565';
20241011@085009.2226 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.2328 kvglu3gruhilfngak57ls9tni2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241011@085009.2985 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.3027 kvglu3gruhilfngak57ls9tni2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4232
20241011@085009.3234 kvglu3gruhilfngak57ls9tni2 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'
20241011@085009.3491 kvglu3gruhilfngak57ls9tni2 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'
20241011@085009.4007 kvglu3gruhilfngak57ls9tni2 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'
20241011@085009.4479 kvglu3gruhilfngak57ls9tni2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20241011@085009.4837 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.4841 kvglu3gruhilfngak57ls9tni2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241011@085009.5686 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.5768 kvglu3gruhilfngak57ls9tni2 Query : select top 1 1 valor from td where td.ndoc = 39
20241011@085009.6216 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.6258 kvglu3gruhilfngak57ls9tni2 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')
20241011@085009.6522 kvglu3gruhilfngak57ls9tni2 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
20241011@085009.6703 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.6706 kvglu3gruhilfngak57ls9tni2 Query : select top 1 ~inactivo valor from cl where no = '101754' and estab = 0 order by inactivo desc
20241011@085009.7034 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.7076 kvglu3gruhilfngak57ls9tni2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241011@085009.7481 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.7522 kvglu3gruhilfngak57ls9tni2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241011@085009.7898 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.7901 kvglu3gruhilfngak57ls9tni2 Query : select szadrsstamp valor from szadrs where szadrsdesc='conforama sintra'
20241011@085009.8065 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085009.8107 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from td where ndoc = 39
20241011@085009.8189 kvglu3gruhilfngak57ls9tni2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241011@085009.8519 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085009.9566 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241011@085009.9948 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.4000 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241011@085010.1728 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.1746 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241011@085010.1763 kvglu3gruhilfngak57ls9tni2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241011@085010.2120 kvglu3gruhilfngak57ls9tni2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241011@085010.2376 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.2626 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241011@085010.3054 kvglu3gruhilfngak57ls9tni2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6708d447106708d8b22b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241011@085010.3343 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.3367 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241011@085010.3449 kvglu3gruhilfngak57ls9tni2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241011@085010.3677 kvglu3gruhilfngak57ls9tni2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241011@085010.3826 kvglu3gruhilfngak57ls9tni2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241011@085010.4274 kvglu3gruhilfngak57ls9tni2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241011@085010.4579 kvglu3gruhilfngak57ls9tni2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241011@085010.4896 kvglu3gruhilfngak57ls9tni2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241011@085010.5133 kvglu3gruhilfngak57ls9tni2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6708d447106708d8b22b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241011@085010.5464 kvglu3gruhilfngak57ls9tni2 Query : select top 1 fno valor from wsftdata order by fno desc
20241011@085010.5600 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.5824 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241011@085010.6380 kvglu3gruhilfngak57ls9tni2 Query : select 'normal' from dummy
20241011@085010.6519 kvglu3gruhilfngak57ls9tni2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6708d447106708d8b22b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1197,101754,0,'2024-10-11',39,'euro',0,0,2024 ,?,?)
20241011@085010.7102 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085010.7105 kvglu3gruhilfngak57ls9tni2 Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20241011@085010.8169 kvglu3gruhilfngak57ls9tni2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241011@085010.8427 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.8560 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085010.8595 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.8812 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085010.8824 kvglu3gruhilfngak57ls9tni2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@085010.9066 kvglu3gruhilfngak57ls9tni2 Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20241011@085010.9351 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.9603 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085010.9636 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6708d049976708d8b2e4','aut6708d447106708d8b22b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@085010.9710 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085010.9805 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085010.9930 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6708d049976708d8b2e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut6708d447106708d8b22b' ,0,0 ,2,23.00,10000,?,?,?,?)
20241011@085011.4560 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085011.4970 kvglu3gruhilfngak57ls9tni2 Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20241011@085011.8310 kvglu3gruhilfngak57ls9tni2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241011@085011.1155 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.1293 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085011.1322 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.1384 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085011.2882 kvglu3gruhilfngak57ls9tni2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@085011.3479 kvglu3gruhilfngak57ls9tni2 Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2400239200a'
20241011@085011.3750 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.4012 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085011.4219 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6708d219226708d8b35b','aut6708d447106708d8b22b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@085011.4260 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.4716 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085011.5337 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6708d219226708d8b35b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut6708d447106708d8b22b' ,0,0 ,2,23.00,20000,?,?,?,?)
20241011@085011.5962 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.6153 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085011.6303 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.6327 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085011.6499 kvglu3gruhilfngak57ls9tni2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@085011.6550 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.6775 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085011.7002 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6708d501206708d8b39f','aut6708d447106708d8b22b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@085011.7046 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085011.7299 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085011.7485 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6708d501206708d8b39f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6708d447106708d8b22b' ,0,0 ,2,23.00,30000,?,?,?)
20241011@085011.7912 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085011.7922 kvglu3gruhilfngak57ls9tni2 Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241011@085011.7993 kvglu3gruhilfngak57ls9tni2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241011@085011.9450 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.2350 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085012.6200 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.8500 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085012.1017 kvglu3gruhilfngak57ls9tni2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@085012.1264 kvglu3gruhilfngak57ls9tni2 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20241011@085012.1386 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.1531 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085012.1549 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6708d803946708d8b421','aut6708d447106708d8b22b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@085012.1555 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.1705 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085012.1987 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6708d803946708d8b421',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut6708d447106708d8b22b' ,0,0 ,2,23.00,50000,?,?,?,?)
20241011@085012.2494 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085012.2535 kvglu3gruhilfngak57ls9tni2 Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20241011@085012.2803 kvglu3gruhilfngak57ls9tni2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241011@085012.3048 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.3070 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085012.3298 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.3523 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085012.3706 kvglu3gruhilfngak57ls9tni2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@085012.3954 kvglu3gruhilfngak57ls9tni2 Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20241011@085012.5121 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.5138 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@085012.5155 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6708d494706708d8b47d','aut6708d447106708d8b22b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@085012.5159 kvglu3gruhilfngak57ls9tni2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@085012.5336 kvglu3gruhilfngak57ls9tni2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@085012.5504 kvglu3gruhilfngak57ls9tni2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut6708d494706708d8b47d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut6708d447106708d8b22b' ,0,0 ,2,23.00,60000,?,?,?,?)
20241011@085012.6058 kvglu3gruhilfngak57ls9tni2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6708d447106708d8b22b','2406652','wait',39,'adm09112754980.682000002')
20241011@085012.6847 kvglu3gruhilfngak57ls9tni2 Query : use flama_phc
20241011@085012.6851 kvglu3gruhilfngak57ls9tni2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241011@085012.6968 kvglu3gruhilfngak57ls9tni2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2565';
20241011@085012.7128 kvglu3gruhilfngak57ls9tni2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2565';
20241011@085012.7362 kvglu3gruhilfngak57ls9tni2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2565';
20241011@085012.7820 kvglu3gruhilfngak57ls9tni2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2565';

20241011@124743.8514 64gqgitg8c50ehtiuqcnisoa7d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2566';
20241011@124743.8584 64gqgitg8c50ehtiuqcnisoa7d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2566';
20241011@124743.8617 64gqgitg8c50ehtiuqcnisoa7d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2566';
20241011@124743.8674 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124743.8678 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241011@124743.8800 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2387.00.1'
20241011@124743.8890 64gqgitg8c50ehtiuqcnisoa7d 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 = 2400490 and bi.ref ='324.2387.00.1' and bi.lordem =20000
20241011@124743.9300 64gqgitg8c50ehtiuqcnisoa7d 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 = 'cps24050760903,672000002 ' 
20241011@124743.9661 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124743.9664 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 1 valor from ts where ts.ndos = 61
20241011@124743.9735 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124743.9738 64gqgitg8c50ehtiuqcnisoa7d 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')
20241011@124743.9814 64gqgitg8c50ehtiuqcnisoa7d 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
20241011@124743.9922 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124743.9926 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 ~inactivo valor from fl where no = '202556' and estab = 00 order by inactivo desc
20241011@124744.1500 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124744.1800 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from ts where ndos = 61
20241011@124744.6500 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124744.5350 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241011@124744.5990 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124744.6150 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241011@124744.6250 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124744.6390 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241011@124744.6500 64gqgitg8c50ehtiuqcnisoa7d 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
20241011@124744.7350 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241011@124744.8350 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241011@124744.8540 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124744.8620 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202556' and estab=00
20241011@124744.9390 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124744.9560 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241011@124744.9920 64gqgitg8c50ehtiuqcnisoa7d Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67091614606709106014',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241011@124744.1049 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124744.1065 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241011@124744.1082 64gqgitg8c50ehtiuqcnisoa7d Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67091614606709106014','--','bo',7.8671775223499361430 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241011@124744.1234 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124744.1251 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241011@124744.1265 64gqgitg8c50ehtiuqcnisoa7d 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 ('aut67091614606709106014','guia r. fornecedor','2024-10-11',61,2403024,?,?,?,?,?,?,?,?,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')
20241011@124746.3434 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124746.3437 64gqgitg8c50ehtiuqcnisoa7d Query : select st.usalote valor from st where st.ref = '324.2387.00.1'
20241011@124746.3524 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2387.00.1'
20241011@124746.3624 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124746.3640 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241011@124746.3656 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124746.3671 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241011@124746.3680 64gqgitg8c50ehtiuqcnisoa7d Query : select sestamp valor from se where ref ='324.2387.00.1' and lote = 'r2400490200a'
20241011@124746.3729 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124746.3743 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241011@124746.3753 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124746.3767 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241011@124746.3780 64gqgitg8c50ehtiuqcnisoa7d Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6709148307670910625b',?,?,'20241011',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241011@124746.4637 64gqgitg8c50ehtiuqcnisoa7d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@124746.4678 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124746.4695 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241011@124746.4709 64gqgitg8c50ehtiuqcnisoa7d Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67091172616709106272','aut67091614606709106014',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 = 'aut67091614606709106014'
20241011@124746.4844 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@124746.4862 64gqgitg8c50ehtiuqcnisoa7d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241011@124746.4880 64gqgitg8c50ehtiuqcnisoa7d 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 'aut67091172616709106272',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2100, 2100*.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 ,7.83,7.83*200.48,7.83,7.83*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,7.83*2100,7.83*2100*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,7.83,7.83*200.48,7.83*2100,7.83*2100*200.48,'cps24050760903,672000002 ',61.6,61.6*2100,61.6,61.6*2100,?,?,?,4 from bo bo where bo.bostamp = 'aut67091614606709106014'
20241011@124803.3728 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124803.3734 64gqgitg8c50ehtiuqcnisoa7d Query : declare @bostamp varchar(25) = 'aut67091614606709106014' ,@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 
20241011@124808.6969 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124808.6973 64gqgitg8c50ehtiuqcnisoa7d Query : select 1 valor from bo where bo.bostamp = 'aut67091614606709106014'
20241011@124808.7041 64gqgitg8c50ehtiuqcnisoa7d 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) = 'aut67091614606709106014' 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 
20241011@124810.4264 64gqgitg8c50ehtiuqcnisoa7d Query : use flama_phc
20241011@124810.4268 64gqgitg8c50ehtiuqcnisoa7d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241011@124810.4318 64gqgitg8c50ehtiuqcnisoa7d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2566';
20241011@124810.4350 64gqgitg8c50ehtiuqcnisoa7d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2566';

20241011@140444.9081 5dsf7vmdl4g7fofo9csotsj401 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2567';
20241011@140444.9133 5dsf7vmdl4g7fofo9csotsj401 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2567';
20241011@140444.9159 5dsf7vmdl4g7fofo9csotsj401 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2567';
20241011@140444.9215 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140444.9218 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241011@140444.9278 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140444.9281 5dsf7vmdl4g7fofo9csotsj401 Query : select no, estab,szadrsdesc from szadrs where u_coddest=5546
20241011@140444.9361 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9478 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9498 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9519 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9539 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9558 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9577 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9597 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9619 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9655 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9673 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9694 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9864 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9886 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9911 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9936 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9963 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140444.9987 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.1100 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.3700 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.5900 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.8700 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.1130 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.1350 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.1610 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.2530 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.2790 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.3010 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.3240 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.3450 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2387.00.1'
20241011@140445.3690 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.3730 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241011@140445.6930 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.6960 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 1 valor from td where td.ndoc = 39
20241011@140445.7770 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.7790 5dsf7vmdl4g7fofo9csotsj401 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')
20241011@140445.8090 5dsf7vmdl4g7fofo9csotsj401 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
20241011@140445.1025 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.1067 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 ~inactivo valor from cl where no = '199506' and estab = 0 order by inactivo desc
20241011@140445.1263 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.1266 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241011@140445.1344 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.1346 5dsf7vmdl4g7fofo9csotsj401 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241011@140445.1409 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.1412 5dsf7vmdl4g7fofo9csotsj401 Query : select szadrsstamp valor from szadrs where szadrsdesc='199506 - itmp alimentar, s.a.'
20241011@140445.1462 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.1465 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from td where ndoc = 39
20241011@140445.1506 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241011@140445.1551 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.1568 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241011@140445.1598 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.1615 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241011@140445.1644 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.1660 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241011@140445.1673 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241011@140445.1830 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241011@140445.2275 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.2292 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241011@140445.2308 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67092687216709226d28' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241011@140445.2688 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.2765 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241011@140445.2816 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241011@140445.2883 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241011@140445.2942 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241011@140445.2997 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241011@140445.3054 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241011@140445.3113 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241011@140445.3170 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67092687216709226d28',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241011@140445.3978 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 fno valor from wsftdata order by fno desc
20241011@140445.4104 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.4325 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241011@140445.5054 5dsf7vmdl4g7fofo9csotsj401 Query : select 'normal' from dummy
20241011@140445.5498 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67092687216709226d28',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1198,199506,0,'2024-10-11',39,'euro',0,0,2024 ,?,?)
20241011@140445.6754 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140445.6798 5dsf7vmdl4g7fofo9csotsj401 Query : select st.usalote valor from st where st.ref = '324.2387.00.1'
20241011@140445.7142 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2387.00.1'
20241011@140445.7483 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.8116 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@140445.8771 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140445.9023 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@140445.9191 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@140445.9484 5dsf7vmdl4g7fofo9csotsj401 Query : select sestamp valor from se where ref ='324.2387.00.1' and lote = 'r2400490200a'
20241011@140445.9896 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140446.1820 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@140446.5140 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67092862396709226df1','aut67092687216709226d28' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@140446.8020 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140446.1166 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@140446.2692 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67092862396709226df1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut67092687216709226d28' ,0,0 ,2,23.00,10000,?,?,?,?)
20241011@140446.4060 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140446.4102 5dsf7vmdl4g7fofo9csotsj401 Query : select st.usalote valor from st where st.ref = '324.2387.00.1'
20241011@140446.4438 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2387.00.1'
20241011@140446.4691 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140446.4957 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@140446.5547 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140446.5883 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@140446.6167 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@140446.6415 5dsf7vmdl4g7fofo9csotsj401 Query : select sestamp valor from se where ref ='324.2387.00.1' and lote = 'r2400490200a'
20241011@140446.6707 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140446.7114 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@140446.7320 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67092718516709226ea3','aut67092687216709226d28' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@140446.7365 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140446.7618 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@140446.8240 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67092718516709226ea3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut67092687216709226d28' ,0,0 ,2,23.00,20000,?,?,?,?)
20241011@140446.8776 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140446.8818 5dsf7vmdl4g7fofo9csotsj401 Query : select st.usalote valor from st where st.ref = '324.2387.00.1'
20241011@140446.9216 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2387.00.1'
20241011@140446.9467 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140446.9728 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@140447.5030 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140447.8560 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@140447.1212 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241011@140447.1650 5dsf7vmdl4g7fofo9csotsj401 Query : select sestamp valor from se where ref ='324.2387.00.1' and lote = 'r2400490200a'
20241011@140447.1899 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140447.2352 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241011@140447.2560 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67092931196709226f2e','aut67092687216709226d28' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241011@140447.2604 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140447.2858 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241011@140447.3632 5dsf7vmdl4g7fofo9csotsj401 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut67092931196709226f2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut67092687216709226d28' ,0,0 ,2,23.00,30000,?,?,?,?)
20241011@140447.4148 5dsf7vmdl4g7fofo9csotsj401 Query : use flama_phc
20241011@140447.4189 5dsf7vmdl4g7fofo9csotsj401 Query : select st.usalote valor from st where st.ref = '324.2387.00.1'
20241011@140447.4812 5dsf7vmdl4g7fofo9csotsj401 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2387.00.1'
20241011@140447.5678 5dsf7vmdl4g7fofo9csotsj401 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241011@140447.5937 5dsf7vmdl4g7fofo9csotsj401 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
