20241004@184449.3636 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.645.00.01'
20241004@184449.3659 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.3662 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.645.00.01' and sa.armazem = 133 
20241004@184449.3730 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.3733 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.645.00.01'
20241004@184449.3769 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.645.00.01'
20241004@184449.3910 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.3929 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.3943 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.3958 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.3966 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2301174100a'
20241004@184449.3997 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184449.4027 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.4044 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.4057 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002325936700299162','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.4226 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.4246 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.4262 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002325936700299162',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,140000 ,44.8,44.8*200.48,44.8,44.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,44.8*6.000,44.8*6.000*200.48 ,18.607000,18.607000*200.48 ,18.607000,18.607000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,44.8,44.8*200.48,44.8*6.000,44.8*6.000*200.48,'av24100139491,702000013 ',44.8,44.8*6.000,44.8,44.8*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.4572 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.4577 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241004@184449.4598 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.4601 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.657.00.01'
20241004@184449.4619 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.4622 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.657.00.01' and sa.armazem = 133 
20241004@184449.4693 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.4696 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.657.00.01'
20241004@184449.4714 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241004@184449.4860 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.4895 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.4909 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.4929 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.4938 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301261100a'
20241004@184449.4958 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184449.4971 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.4988 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.5002 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002824686700299179','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.5157 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.5180 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.5197 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002824686700299179',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,150000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*2.000,64*2.000*200.48 ,20.789000,20.789000*200.48 ,20.789000,20.789000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*2.000,64*2.000*200.48,'av24100139497,326000014 ',64,64*2.000,64,64*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.5505 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.5518 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241004@184449.5532 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.5535 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.657.00.01'
20241004@184449.5550 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.5553 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.657.00.01' and sa.armazem = 133 
20241004@184449.5591 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.5593 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.657.00.01'
20241004@184449.5611 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241004@184449.5627 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.5642 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.5654 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.5668 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.5679 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241004@184449.5702 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184449.5734 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.5752 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.5765 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6700229441670029918c','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.5928 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.5950 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.5966 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut6700229441670029918c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,160000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*4.000,64*4.000*200.48 ,20.789000,20.789000*200.48 ,20.789000,20.789000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*4.000,64*4.000*200.48,'av24100139497,326000014 ',64,64*4.000,64,64*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.6264 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.6268 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.681.00.01'
20241004@184449.6291 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.6294 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.681.00.01'
20241004@184449.6312 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.6315 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.681.00.01' and sa.armazem = 133 
20241004@184449.6407 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.6411 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.681.00.01'
20241004@184449.6449 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.681.00.01'
20241004@184449.6608 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.6637 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.6650 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.6664 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.6672 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.681.00.01' and lote = 'r2400058200a'
20241004@184449.6685 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184449.6713 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.6732 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.6743 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670021503867002991a3','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.6924 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.6943 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.6961 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670021503867002991a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 10.000, 10.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,170000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,83.2*10.000,83.2*10.000*200.48 ,25.450000,25.450000*200.48 ,25.450000,25.450000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*10.000,83.2*10.000*200.48,'av24100139506,283000015 ',83.2,83.2*10.000,83.2,83.2*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.7270 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.7275 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241004@184449.7290 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.7293 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.682.00.01'
20241004@184449.7310 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.7312 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.682.00.01' and sa.armazem = 133 
20241004@184449.7390 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.7393 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.682.00.01'
20241004@184449.7414 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241004@184449.7585 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.7606 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.7619 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.7633 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.7642 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241004@184449.7668 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184449.7681 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.7706 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.7720 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670027544567002991bb','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.7876 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.7903 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.7920 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670027544567002991bb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,180000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*5.000,83.2*5.000*200.48 ,25.338000,25.338000*200.48 ,25.338000,25.338000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*5.000,83.2*5.000*200.48,'av24100139515,091000016 ',83.2,83.2*5.000,83.2,83.2*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.8242 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.8246 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241004@184449.8264 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.8267 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.682.00.01'
20241004@184449.8293 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.8296 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.682.00.01' and sa.armazem = 133 
20241004@184449.8319 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.8321 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.682.00.01'
20241004@184449.8362 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241004@184449.8381 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.8397 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.8409 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.8423 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.8443 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241004@184449.8458 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184449.8471 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.8488 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.8508 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670025390567002991ce','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.8684 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.8702 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.8718 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670025390567002991ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,190000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*5.000,83.2*5.000*200.48 ,25.338000,25.338000*200.48 ,25.338000,25.338000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*5.000,83.2*5.000*200.48,'av24100139515,091000016 ',83.2,83.2*5.000,83.2,83.2*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184449.9029 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.9033 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20241004@184449.9049 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.9052 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.646.00.01'
20241004@184449.9177 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.9220 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.646.00.01' and sa.armazem = 133 
20241004@184449.9465 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184449.9468 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.646.00.01'
20241004@184449.9487 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.646.00.01'
20241004@184449.9502 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.9525 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184449.9540 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.9558 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.9567 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20241004@184449.9583 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184449.9598 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184449.9627 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184449.9736 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670021672267002991ea','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.5900 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.8300 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.1020 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670021672267002991ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,200000 ,44.8,44.8*200.48,44.8,44.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,44.8*5.000,44.8*5.000*200.48 ,18.963000,18.963000*200.48 ,18.963000,18.963000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,44.8,44.8*200.48,44.8*5.000,44.8*5.000*200.48,'av24100139523,693000017 ',44.8,44.8*5.000,44.8,44.8*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.4480 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4540 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20241004@184450.5130 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.5160 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.646.00.01'
20241004@184450.5330 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.5360 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.646.00.01' and sa.armazem = 133 
20241004@184450.5770 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.5820 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.646.00.01'
20241004@184450.6040 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.646.00.01'
20241004@184450.6340 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.6540 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.6700 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.6880 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.6970 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20241004@184450.7130 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.7350 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.7650 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.7790 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002639386700299211','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.9430 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.9610 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.9770 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002639386700299211',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,210000 ,44.8,44.8*200.48,44.8,44.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,44.8*5.000,44.8*5.000*200.48 ,18.963000,18.963000*200.48 ,18.963000,18.963000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,44.8,44.8*200.48,44.8*5.000,44.8*5.000*200.48,'av24100139523,693000017 ',44.8,44.8*5.000,44.8,44.8*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.1271 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.1275 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20241004@184450.1294 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.1296 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20241004@184450.1333 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.1336 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1536.00.1' and sa.armazem = 133 
20241004@184450.1410 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.1413 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20241004@184450.1433 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20241004@184450.1580 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.1598 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.1610 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.1625 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.1651 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20241004@184450.1672 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.1686 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.1700 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.1718 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002122576700299229','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.1875 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.1894 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.1913 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002122576700299229',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,220000 ,96,96*200.48,96,96*200.48 ,0,0,'un ','' ,bo.marcada,1 ,96*3.000,96*3.000*200.48 ,41.556000,41.556000*200.48 ,41.556000,41.556000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*3.000,96*3.000*200.48,'av24100139545,907000018 ',96,96*3.000,96,96*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.2263 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.2282 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.1536.00.1'
20241004@184450.2296 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.2303 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20241004@184450.2317 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.2320 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1536.00.1' and sa.armazem = 133 
20241004@184450.2354 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.2356 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1536.00.1'
20241004@184450.2374 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1536.00.1'
20241004@184450.2394 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.2411 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.2423 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.2443 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.2468 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.1536.00.1' and lote = 'r2100240100a'
20241004@184450.2481 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.2497 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.2510 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.2521 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6700271920670029923c','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.2684 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.2701 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.2716 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut6700271920670029923c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,230000 ,96,96*200.48,96,96*200.48 ,0,0,'un ','' ,bo.marcada,1 ,96*1.000,96*1.000*200.48 ,41.556000,41.556000*200.48 ,41.556000,41.556000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*1.000,96*1.000*200.48,'av24100139545,907000018 ',96,96*1.000,96,96*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.3017 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.3021 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20241004@184450.3036 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.3060 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20241004@184450.3085 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.3088 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1834.00.1' and sa.armazem = 133 
20241004@184450.3161 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.3163 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20241004@184450.3181 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1834.00.1'
20241004@184450.3324 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.3345 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.3361 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.3379 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.3388 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400214200a'
20241004@184450.3410 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.3427 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.3446 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.3461 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002223396700299253','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.3622 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.3642 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.3658 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002223396700299253',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,240000 ,60,60*200.48,60,60*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,60*3.000,60*3.000*200.48 ,28.440000,28.440000*200.48 ,28.440000,28.440000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,60,60*200.48,60*3.000,60*3.000*200.48,'av24100139552,841000019 ',60,60*3.000,60,60*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.3975 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.3980 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20241004@184450.3997 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4000 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241004@184450.4018 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4021 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.692.00.01' and sa.armazem = 133 
20241004@184450.4102 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4105 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241004@184450.4124 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.692.00.01'
20241004@184450.4142 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.4159 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.4173 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.4188 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.4196 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400209100a'
20241004@184450.4209 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.4223 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.4239 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.4251 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002161796700299267','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.4403 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.4419 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.4440 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002161796700299267',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,250000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*2.000,96*2.000*200.48 ,32.536000,32.536000*200.48 ,32.536000,32.536000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*2.000,96*2.000*200.48,'av24100139560,215000020 ',96,96*2.000,96,96*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.4761 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4773 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20241004@184450.4787 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4790 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241004@184450.4809 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4812 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.692.00.01' and sa.armazem = 133 
20241004@184450.4836 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.4839 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241004@184450.4867 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.692.00.01'
20241004@184450.4881 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.4903 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.4917 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.4933 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.4941 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400209100a'
20241004@184450.4953 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.4966 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.4981 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.4993 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002569126700299279','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.5166 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.5186 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.5205 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002569126700299279',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,260000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*8.000,96*8.000*200.48 ,32.536000,32.536000*200.48 ,32.536000,32.536000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*8.000,96*8.000*200.48,'av24100139560,215000020 ',96,96*8.000,96,96*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.5506 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.5510 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.1406.00.1'
20241004@184450.5525 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.5528 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1406.00.1'
20241004@184450.5544 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.5547 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1406.00.1' and sa.armazem = 133 
20241004@184450.5613 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.5615 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1406.00.1'
20241004@184450.5634 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1406.00.1'
20241004@184450.5786 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.5802 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.5815 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.5833 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.5841 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.1406.00.1' and lote = '10/20'
20241004@184450.5874 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.5915 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.7862 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.7875 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002821626700299290','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.8033 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.8050 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.8067 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002821626700299290',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,270000 ,22.4,22.4*200.48,22.4,22.4*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,22.4*12.000,22.4*12.000*200.48 ,7.934000,7.934000*200.48 ,7.934000,7.934000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,22.4,22.4*200.48,22.4*12.000,22.4*12.000*200.48,'av24100139567,688000021 ',22.4,22.4*12.000,22.4,22.4*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.8356 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.8360 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.5365.00.1'
20241004@184450.8376 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.8378 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5365.00.1'
20241004@184450.8395 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.8398 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5365.00.1' and sa.armazem = 133 
20241004@184450.8464 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.8466 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5365.00.1'
20241004@184450.8487 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5365.00.1'
20241004@184450.8649 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.8668 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.8682 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.8734 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.8744 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.5365.00.1' and lote = 'r2300840100a'
20241004@184450.8932 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184450.8944 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.8967 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184450.8979 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670022058467002992da','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.9146 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184450.9165 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184450.9180 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670022058467002992da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,280000 ,23.7,23.7*200.48,23.7,23.7*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,23.7*12.000,23.7*12.000*200.48 ,7.650000,7.650000*200.48 ,7.650000,7.650000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,23.7,23.7*200.48,23.7*12.000,23.7*12.000*200.48,'av24100139576,655000022 ',23.7,23.7*12.000,23.7,23.7*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184450.9645 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.9688 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20241004@184450.9797 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.9801 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5342.00.1'
20241004@184450.9816 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184450.9819 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5342.00.1' and sa.armazem = 133 
20241004@184451.1360 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.1400 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5342.00.1'
20241004@184451.1600 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5342.00.1'
20241004@184451.4190 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.4390 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.4530 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.4860 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.4950 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20241004@184451.5350 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.5490 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.5810 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.6460 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6700244639670029930d','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.8580 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.9380 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.9540 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut6700244639670029930d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,290000 ,18,18*200.48,18,18*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,18*12.000,18*12.000*200.48 ,7.565000,7.565000*200.48 ,7.565000,7.565000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,18,18*200.48,18*12.000,18*12.000*200.48,'av24100139589,489000023 ',18,18*12.000,18,18*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.1281 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.1289 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20241004@184451.1304 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.1307 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5343.00.1'
20241004@184451.1323 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.1326 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5343.00.1' and sa.armazem = 133 
20241004@184451.1394 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.1397 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5343.00.1'
20241004@184451.1418 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184451.1582 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.1600 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.1614 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.1629 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.1638 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2300915100a'
20241004@184451.1653 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.1665 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.1681 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.1695 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002531026700299328','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.1854 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.1869 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.1886 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002531026700299328',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,300000 ,18,18*200.48,18,18*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,18*12.000,18*12.000*200.48 ,7.570000,7.570000*200.48 ,7.570000,7.570000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,18,18*200.48,18*12.000,18*12.000*200.48,'av24100139603,874000025 ',18,18*12.000,18,18*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.2192 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.2196 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241004@184451.2211 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.2214 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20241004@184451.2230 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.2233 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5500.00.1' and sa.armazem = 133 
20241004@184451.2305 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.2308 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20241004@184451.2327 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184451.2471 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.2488 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.2504 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.2520 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.2531 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20241004@184451.2547 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.2560 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.2592 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.2606 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6700282248670029933e','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.2768 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.2785 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.2802 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut6700282248670029933e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,310000 ,64,64*200.48,64,64*200.48 ,0,0,'un ','' ,bo.marcada,1 ,64*6.000,64*6.000*200.48 ,24.876000,24.876000*200.48 ,24.876000,24.876000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*6.000,64*6.000*200.48,'av24100139624,026000026 ',64,64*6.000,64,64*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.3108 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.3112 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20241004@184451.3126 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.3128 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20241004@184451.3144 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.3147 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5501.00.1' and sa.armazem = 133 
20241004@184451.3211 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.3213 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20241004@184451.3231 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20241004@184451.3383 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.3401 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.3413 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.3427 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.3435 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20241004@184451.3456 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.3476 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.3490 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.3502 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002000176700299354','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.3663 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.3678 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.3697 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002000176700299354',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 10.000, 10.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,320000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*10.000,64*10.000*200.48 ,18.137000,18.137000*200.48 ,18.137000,18.137000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*10.000,64*10.000*200.48,'av24100139631,824000027 ',64,64*10.000,64,64*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.4033 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4037 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.1706.00.1'
20241004@184451.4051 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4054 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20241004@184451.4069 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4072 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1706.00.1' and sa.armazem = 133 
20241004@184451.4136 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4138 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20241004@184451.4156 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1706.00.1'
20241004@184451.4171 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.4186 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.4205 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.4218 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.4232 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.1706.00.1' and lote = 'r2100123100b'
20241004@184451.4244 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.4256 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.4287 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.4304 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002152266700299367','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.4459 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.4478 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.4498 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002152266700299367',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,330000 ,38.4,38.4*200.48,38.4,38.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,38.4*6.000,38.4*6.000*200.48 ,15.735000,15.735000*200.48 ,15.735000,15.735000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,38.4,38.4*200.48,38.4*6.000,38.4*6.000*200.48,'av24100139638,989000028 ',38.4,38.4*6.000,38.4,38.4*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.4808 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4815 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.1256.00.1'
20241004@184451.4832 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4835 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1256.00.1'
20241004@184451.4850 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4852 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1256.00.1' and sa.armazem = 133 
20241004@184451.4924 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.4927 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1256.00.1'
20241004@184451.4948 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1256.00.1'
20241004@184451.5097 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.5121 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.5142 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.5156 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.5170 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.1256.00.1' and lote = 'r2100597100a'
20241004@184451.5184 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.5196 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.5213 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.5224 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6700220288670029937e','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.5380 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.5397 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.5412 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut6700220288670029937e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,340000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,115.2*6.000,115.2*6.000*200.48 ,46.885000,46.885000*200.48 ,46.885000,46.885000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,115.2,115.2*200.48,115.2*6.000,115.2*6.000*200.48,'av24100139647,781000029 ',115.2,115.2*6.000,115.2,115.2*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.5711 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.5714 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20241004@184451.5729 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.5731 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1266.00.1'
20241004@184451.5757 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.5760 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1266.00.1' and sa.armazem = 133 
20241004@184451.5825 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.5828 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.1266.00.1'
20241004@184451.5850 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1266.00.1'
20241004@184451.6000 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.6015 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.6027 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.6043 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.6051 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20241004@184451.6065 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.6086 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.6106 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.6123 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67002902116700299394','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.6367 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.7252 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.7462 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67002902116700299394',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,350000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,115.2*6.000,115.2*6.000*200.48 ,49.752000,49.752000*200.48 ,49.752000,49.752000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,115.2,115.2*200.48,115.2*6.000,115.2*6.000*200.48,'av24100139656,165000030 ',115.2,115.2*6.000,115.2,115.2*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.7879 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.7916 4nmsf4990vkgvmqc0akjlht63m Query : select st.usalote valor from st where st.ref = '324.966.00.01'
20241004@184451.7945 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.7948 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.966.00.01'
20241004@184451.7981 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.7991 4nmsf4990vkgvmqc0akjlht63m Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.966.00.01' and sa.armazem = 133 
20241004@184451.8062 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.8064 4nmsf4990vkgvmqc0akjlht63m Query : select st.stns valor from st where st.ref = '324.966.00.01'
20241004@184451.8083 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.966.00.01'
20241004@184451.8155 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.8173 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.8184 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.8199 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.8207 4nmsf4990vkgvmqc0akjlht63m Query : select sestamp valor from se where ref ='324.966.00.01' and lote = 'r2400743200a'
20241004@184451.8218 4nmsf4990vkgvmqc0akjlht63m Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184451.8230 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.8244 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184451.8281 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670023970367002993c8','aut67002984576700298faf',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.8463 4nmsf4990vkgvmqc0akjlht63m Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184451.8482 4nmsf4990vkgvmqc0akjlht63m Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184451.8502 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670023970367002993c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 40.000, 40.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,360000 ,32,32*200.48,32,32*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,32*40.000,32*40.000*200.48 ,12.229000,12.229000*200.48 ,12.229000,12.229000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*40.000,32*40.000*200.48,'av24100139688,340000033 ',32,32*40.000,32,32*40.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002984576700298faf'
20241004@184451.8835 4nmsf4990vkgvmqc0akjlht63m Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut67002984576700298faf','','wait',5,'adm12071144683,938000003','')
20241004@184451.8994 4nmsf4990vkgvmqc0akjlht63m Query : use flama_phc
20241004@184451.8997 4nmsf4990vkgvmqc0akjlht63m Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@184451.9076 4nmsf4990vkgvmqc0akjlht63m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2440';
20241004@184451.9118 4nmsf4990vkgvmqc0akjlht63m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2440';
20241004@184451.9854 nmko2mjuh945p28jvluii9jmv4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184451.9875 nmko2mjuh945p28jvluii9jmv4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184451.9939 nmko2mjuh945p28jvluii9jmv4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2441';
20241004@184451.9994 nmko2mjuh945p28jvluii9jmv4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2441';
20241004@184452.5400 nmko2mjuh945p28jvluii9jmv4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2441';
20241004@184452.7800 nmko2mjuh945p28jvluii9jmv4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2441';
20241004@184452.3530 kqj4j1jmo63eku7mran504n70t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184452.3740 kqj4j1jmo63eku7mran504n70t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184452.4420 kqj4j1jmo63eku7mran504n70t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2442';
20241004@184452.5000 kqj4j1jmo63eku7mran504n70t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2442';
20241004@184452.5570 kqj4j1jmo63eku7mran504n70t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2442';
20241004@184452.5850 kqj4j1jmo63eku7mran504n70t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2442';
20241004@184452.6310 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184452.6340 kqj4j1jmo63eku7mran504n70t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@184452.7160 kqj4j1jmo63eku7mran504n70t Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241004@184452.7600 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1879.00.1'
20241004@184452.8770 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1879.00.1' and bi.lordem =10000
20241004@184452.1217 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463210,137000001 ' 
20241004@184452.1518 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1889.00.1'
20241004@184452.1635 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1889.00.1' and bi.lordem =20000
20241004@184452.1957 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463239,831000002 ' 
20241004@184452.2573 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1831.00.2'
20241004@184452.2695 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1831.00.2' and bi.lordem =30000
20241004@184452.3095 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463255,307000003 ' 
20241004@184452.3396 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1831.00.2'
20241004@184452.3423 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1831.00.2' and bi.lordem =30000
20241004@184452.3446 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463255,307000003 ' 
20241004@184452.3468 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1884.00.1'
20241004@184452.3612 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1884.00.1' and bi.lordem =50000
20241004@184452.3955 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463279,848000005 ' 
20241004@184452.4264 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.724.00.01'
20241004@184452.4382 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.724.00.01' and bi.lordem =60000
20241004@184452.4718 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463302,633000006 ' 
20241004@184452.5066 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.728.00.01'
20241004@184452.5183 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.728.00.01' and bi.lordem =70000
20241004@184452.5494 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463320,429000007 ' 
20241004@184452.5789 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.729.00.01'
20241004@184452.5898 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.729.00.01' and bi.lordem =80000
20241004@184452.6227 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463329,616000008 ' 
20241004@184452.6537 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1578.00.1'
20241004@184452.6691 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1578.00.1' and bi.lordem =90000
20241004@184452.7108 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463356,891000009 ' 
20241004@184452.7433 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1578.00.1'
20241004@184452.7454 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1578.00.1' and bi.lordem =90000
20241004@184452.7475 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463356,891000009 ' 
20241004@184452.7498 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1667.00.1'
20241004@184452.7614 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1667.00.1' and bi.lordem =100000
20241004@184452.7927 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463367,638000010 ' 
20241004@184452.8215 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1667.00.1'
20241004@184452.8236 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1667.00.1' and bi.lordem =100000
20241004@184452.8261 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463367,638000010 ' 
20241004@184452.8284 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4961.00.1'
20241004@184452.8305 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.4961.00.1' and bi.lordem =110000
20241004@184452.8640 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463383,687000011 ' 
20241004@184452.8948 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4960.00.1'
20241004@184452.9062 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.4960.00.1' and bi.lordem =120000
20241004@184452.9387 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463398,187000012 ' 
20241004@184452.9697 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4960.00.1'
20241004@184452.9716 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.4960.00.1' and bi.lordem =120000
20241004@184452.9740 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463398,187000012 ' 
20241004@184452.9760 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.966.00.01'
20241004@184452.9778 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.966.00.01' and bi.lordem =130000
20241004@184453.1390 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463417,445000013 ' 
20241004@184453.4540 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.966.00.01'
20241004@184453.4730 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.966.00.01' and bi.lordem =130000
20241004@184453.5040 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463417,445000013 ' 
20241004@184453.5300 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.939.00.01'
20241004@184453.6470 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.939.00.01' and bi.lordem =140000
20241004@184453.2077 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463449,055000014 ' 
20241004@184453.2597 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20241004@184453.2617 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.988.00.01' and bi.lordem =150000
20241004@184453.2963 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463461,647000015 ' 
20241004@184453.3291 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1462.00.1'
20241004@184453.3403 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1462.00.1' and bi.lordem =160000
20241004@184453.3712 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463476,297000016 ' 
20241004@184453.4006 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1417.00.1'
20241004@184453.4152 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.1417.00.1' and bi.lordem =170000
20241004@184453.4502 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463488,674000017 ' 
20241004@184453.4814 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2221.00.1'
20241004@184453.4937 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.2221.00.1' and bi.lordem =180000
20241004@184453.5252 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463536,519000018 ' 
20241004@184453.5541 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2221.00.1'
20241004@184453.5563 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.2221.00.1' and bi.lordem =180000
20241004@184453.5590 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463536,519000018 ' 
20241004@184453.5613 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20241004@184453.5760 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.691.00.01' and bi.lordem =185000
20241004@184453.6085 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463557,139000020 ' 
20241004@184453.6397 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20241004@184453.6419 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.691.00.01' and bi.lordem =185000
20241004@184453.6441 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463557,139000020 ' 
20241004@184453.6462 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.679.00.01'
20241004@184453.6615 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.679.00.01' and bi.lordem =190000
20241004@184453.6928 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463550,969000019 ' 
20241004@184453.7287 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.679.00.01'
20241004@184453.7317 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.679.00.01' and bi.lordem =190000
20241004@184453.7342 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463550,969000019 ' 
20241004@184453.7366 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.649.00.01'
20241004@184453.7514 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.649.00.01' and bi.lordem =200000
20241004@184453.7828 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463598,926000021 ' 
20241004@184453.8122 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20241004@184453.8245 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.675.00.01' and bi.lordem =210000
20241004@184453.8571 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463621,992000022 ' 
20241004@184453.8876 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20241004@184453.8902 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.675.00.01' and bi.lordem =210000
20241004@184453.8924 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463621,992000022 ' 
20241004@184453.8945 kqj4j1jmo63eku7mran504n70t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20241004@184453.8985 kqj4j1jmo63eku7mran504n70t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002296 and bi.ref ='324.675.00.01' and bi.lordem =210000
20241004@184453.9005 kqj4j1jmo63eku7mran504n70t 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 = 'az24100463621,992000022 ' 
20241004@184453.9036 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184453.9040 kqj4j1jmo63eku7mran504n70t Query : select top 1 1 valor from ts where ts.ndos = 5
20241004@184453.9078 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184453.9081 kqj4j1jmo63eku7mran504n70t Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20241004@184453.9110 kqj4j1jmo63eku7mran504n70t Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20241004@184453.9154 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184453.9157 kqj4j1jmo63eku7mran504n70t Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241004@184453.9198 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184453.9201 kqj4j1jmo63eku7mran504n70t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@184453.9251 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184453.9260 kqj4j1jmo63eku7mran504n70t Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241004@184453.9336 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184453.9341 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from ts where ndos = 5
20241004@184453.9353 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184453.9369 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241004@184453.9393 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184453.9428 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241004@184453.9436 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184453.9452 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241004@184453.9461 kqj4j1jmo63eku7mran504n70t Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20241004@184453.9493 kqj4j1jmo63eku7mran504n70t Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241004@184453.9520 kqj4j1jmo63eku7mran504n70t Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241004@184453.9533 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184453.9539 kqj4j1jmo63eku7mran504n70t Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241004@184453.9567 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184453.9583 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241004@184453.9606 kqj4j1jmo63eku7mran504n70t Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670026411567002995e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241004@184453.9610 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184453.9628 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241004@184453.9640 kqj4j1jmo63eku7mran504n70t Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut670026411567002995e8','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241004','19:14',?,?)
20241004@184453.9821 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184453.9840 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241004@184453.9856 kqj4j1jmo63eku7mran504n70t Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut670026411567002995e8','trf entre armazéns a','2024-10-04',5,486,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20241004@184454.3320 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.3360 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20241004@184454.3500 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.3530 kqj4j1jmo63eku7mran504n70t Query : select st.stns valor from st where st.ref = '324.1879.00.1'
20241004@184454.3730 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.3760 kqj4j1jmo63eku7mran504n70t Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1879.00.1' and sa.armazem = 133 
20241004@184454.4660 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.4690 kqj4j1jmo63eku7mran504n70t Query : select st.stns valor from st where st.ref = '324.1879.00.1'
20241004@184454.4960 kqj4j1jmo63eku7mran504n70t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20241004@184454.6410 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.6670 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184454.6810 kqj4j1jmo63eku7mran504n70t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.6960 kqj4j1jmo63eku7mran504n70t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184454.7050 kqj4j1jmo63eku7mran504n70t Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2301097100b'
20241004@184454.7140 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.7170 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1889.00.1'
20241004@184454.7330 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.7370 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241004@184454.7780 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.7820 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241004@184454.7990 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.8020 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1884.00.1'
20241004@184454.8180 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.8210 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.724.00.01'
20241004@184454.8390 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.8420 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.728.00.01'
20241004@184454.8560 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.8590 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.729.00.01'
20241004@184454.8720 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.8760 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20241004@184454.8940 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.8970 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20241004@184454.9080 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.9110 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20241004@184454.9240 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.9270 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20241004@184454.9400 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.9430 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.4961.00.1'
20241004@184454.9550 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.9630 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20241004@184454.9780 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.9800 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20241004@184454.9940 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.9960 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.966.00.01'
20241004@184454.1008 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1010 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.966.00.01'
20241004@184454.1022 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1025 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20241004@184454.1038 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1041 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20241004@184454.1053 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1055 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20241004@184454.1068 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1071 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.1417.00.1'
20241004@184454.1107 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1110 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20241004@184454.1127 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1130 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20241004@184454.1141 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1144 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20241004@184454.1155 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1158 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20241004@184454.1169 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1172 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20241004@184454.1185 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1196 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20241004@184454.1208 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1210 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20241004@184454.1223 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1226 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241004@184454.1240 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1243 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241004@184454.1257 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1260 kqj4j1jmo63eku7mran504n70t Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241004@184454.1308 kqj4j1jmo63eku7mran504n70t Query : use flama_phc
20241004@184454.1311 kqj4j1jmo63eku7mran504n70t Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241004@184454.1355 kqj4j1jmo63eku7mran504n70t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2442';
20241004@184454.1392 kqj4j1jmo63eku7mran504n70t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2442';
20241004@184454.3080 4k3017n47lalg9oe2c3lbfr9hi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184454.3091 4k3017n47lalg9oe2c3lbfr9hi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184454.3147 4k3017n47lalg9oe2c3lbfr9hi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2443';
20241004@184454.3206 4k3017n47lalg9oe2c3lbfr9hi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2443';
20241004@184454.3261 4k3017n47lalg9oe2c3lbfr9hi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2443';
20241004@184454.3288 4k3017n47lalg9oe2c3lbfr9hi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2443';
20241004@184454.3563 vh28mbv817behucdb5fm1m5cj5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@184454.3574 vh28mbv817behucdb5fm1m5cj5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@184454.3640 vh28mbv817behucdb5fm1m5cj5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2444';
20241004@184454.3695 vh28mbv817behucdb5fm1m5cj5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2444';
20241004@184454.3748 vh28mbv817behucdb5fm1m5cj5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2444';
20241004@184454.3773 vh28mbv817behucdb5fm1m5cj5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2444';
20241004@184454.3813 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.3817 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@184454.3901 vh28mbv817behucdb5fm1m5cj5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241004@184454.3953 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1862.00.1'
20241004@184454.4075 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002297 and bi.ref ='324.1862.00.1' and bi.lordem =10000
20241004@184454.4399 vh28mbv817behucdb5fm1m5cj5 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 = 'az24100464219,072000001 ' 
20241004@184454.4717 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1862.00.1'
20241004@184454.4738 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002297 and bi.ref ='324.1862.00.1' and bi.lordem =10000
20241004@184454.4770 vh28mbv817behucdb5fm1m5cj5 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 = 'az24100464219,072000001 ' 
20241004@184454.4806 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1332.00.1'
20241004@184454.4949 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0002297 and bi.ref ='324.1332.00.1' and bi.lordem =20000
20241004@184454.5352 vh28mbv817behucdb5fm1m5cj5 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 = 'az24100464248,018000002 ' 
20241004@184454.5669 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.5672 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 1 valor from ts where ts.ndos = 5
20241004@184454.5703 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.5707 vh28mbv817behucdb5fm1m5cj5 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20241004@184454.5734 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20241004@184454.5770 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.5773 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241004@184454.5815 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.5818 vh28mbv817behucdb5fm1m5cj5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@184454.5869 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.5872 vh28mbv817behucdb5fm1m5cj5 Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241004@184454.5922 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.5925 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from ts where ndos = 5
20241004@184454.5955 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.5995 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241004@184454.6012 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.6026 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241004@184454.6035 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.6049 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241004@184454.6069 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20241004@184454.6087 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241004@184454.6120 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241004@184454.6134 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.6140 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241004@184454.6157 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.6171 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241004@184454.6183 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67002910036700299695',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241004@184454.6188 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.6202 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241004@184454.6214 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut67002910036700299695','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241004','19:14',?,?)
20241004@184454.6425 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.6448 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241004@184454.6465 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut67002910036700299695','trf entre armazéns a','2024-10-04',5,486,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20241004@184454.6867 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.6870 vh28mbv817behucdb5fm1m5cj5 Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20241004@184454.6885 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.6888 vh28mbv817behucdb5fm1m5cj5 Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241004@184454.6905 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.6908 vh28mbv817behucdb5fm1m5cj5 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1862.00.1' and sa.armazem = 133 
20241004@184454.6978 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.6981 vh28mbv817behucdb5fm1m5cj5 Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241004@184454.7002 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1862.00.1'
20241004@184454.7161 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.7178 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184454.7191 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.7205 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184454.7214 vh28mbv817behucdb5fm1m5cj5 Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20241004@184454.7228 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184454.7240 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.7255 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184454.7269 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670028952767002996b0','aut67002910036700299695',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002910036700299695'
20241004@184454.7434 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.7454 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184454.7471 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670028952767002996b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 9.000, 9.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,90,90*200.48,90,90*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,90*9.000,90*9.000*200.48 ,42.473000,42.473000*200.48 ,42.473000,42.473000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,90,90*200.48,90*9.000,90*9.000*200.48,'az24100464219,072000001 ',90,90*9.000,90,90*9.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002910036700299695'
20241004@184454.7784 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.7787 vh28mbv817behucdb5fm1m5cj5 Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20241004@184454.7801 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.7804 vh28mbv817behucdb5fm1m5cj5 Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241004@184454.7824 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.7826 vh28mbv817behucdb5fm1m5cj5 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1862.00.1' and sa.armazem = 133 
20241004@184454.7847 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.7850 vh28mbv817behucdb5fm1m5cj5 Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241004@184454.7867 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1862.00.1'
20241004@184454.7900 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.7920 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184454.7932 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.7948 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184454.7957 vh28mbv817behucdb5fm1m5cj5 Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20241004@184454.7979 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184454.7991 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.8014 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184454.8026 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670028579267002996c3','aut67002910036700299695',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002910036700299695'
20241004@184454.8184 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.8200 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184454.8229 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670028579267002996c3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,90,90*200.48,90,90*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,90*3.000,90*3.000*200.48 ,42.473000,42.473000*200.48 ,42.473000,42.473000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,90,90*200.48,90*3.000,90*3.000*200.48,'az24100464219,072000001 ',90,90*3.000,90,90*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002910036700299695'
20241004@184454.8555 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.8559 vh28mbv817behucdb5fm1m5cj5 Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@184454.8573 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.8576 vh28mbv817behucdb5fm1m5cj5 Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20241004@184454.8595 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.8598 vh28mbv817behucdb5fm1m5cj5 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1332.00.1' and sa.armazem = 133 
20241004@184454.8688 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.8691 vh28mbv817behucdb5fm1m5cj5 Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20241004@184454.8714 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20241004@184454.8757 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.8784 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184454.8803 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.8845 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184454.8854 vh28mbv817behucdb5fm1m5cj5 Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@184454.8866 vh28mbv817behucdb5fm1m5cj5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@184454.8878 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.8895 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@184454.8939 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670026947567002996d8','aut67002910036700299695',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67002910036700299695'
20241004@184454.9112 vh28mbv817behucdb5fm1m5cj5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@184454.9136 vh28mbv817behucdb5fm1m5cj5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@184454.9151 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670026947567002996d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 18.000, 18.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,192,192*200.48,192,192*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,192*18.000,192*18.000*200.48 ,78.550000,78.550000*200.48 ,78.550000,78.550000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,192,192*200.48,192*18.000,192*18.000*200.48,'az24100464248,018000002 ',192,192*18.000,192,192*18.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67002910036700299695'
20241004@184454.9464 vh28mbv817behucdb5fm1m5cj5 Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut67002910036700299695','','wait',5,'adm12071144683,938000003','')
20241004@184454.9540 vh28mbv817behucdb5fm1m5cj5 Query : use flama_phc
20241004@184454.9543 vh28mbv817behucdb5fm1m5cj5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@184454.9598 vh28mbv817behucdb5fm1m5cj5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2444';
20241004@184454.9634 vh28mbv817behucdb5fm1m5cj5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2444';

20241004@211415.6317 3q8dj25150t2dehuugs95vq2h5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2445';
20241004@211415.6372 3q8dj25150t2dehuugs95vq2h5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2445';
20241004@211415.6405 3q8dj25150t2dehuugs95vq2h5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2445';
20241004@211415.7375 meoh87nf6dk6mu2f0u7brro1jb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241004@211415.7390 meoh87nf6dk6mu2f0u7brro1jb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241004@211415.7455 meoh87nf6dk6mu2f0u7brro1jb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2446';
20241004@211415.7513 meoh87nf6dk6mu2f0u7brro1jb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2446';
20241004@211415.7587 meoh87nf6dk6mu2f0u7brro1jb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2446';
20241004@211415.7616 meoh87nf6dk6mu2f0u7brro1jb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2446';
20241004@211415.7661 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.7664 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241004@211415.7741 meoh87nf6dk6mu2f0u7brro1jb Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241004@211415.7785 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1862.00.1'
20241004@211415.7808 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1332.00.1'
20241004@211415.7844 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.7852 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 1 valor from ts where ts.ndos = 5
20241004@211415.7882 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.7885 meoh87nf6dk6mu2f0u7brro1jb Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20241004@211415.7914 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20241004@211415.7952 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.7955 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241004@211415.8007 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.8010 meoh87nf6dk6mu2f0u7brro1jb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241004@211415.8062 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.8065 meoh87nf6dk6mu2f0u7brro1jb Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241004@211415.8116 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.8158 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from ts where ndos = 5
20241004@211415.8194 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.8214 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241004@211415.8227 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.8241 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241004@211415.8250 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.8265 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241004@211415.8273 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20241004@211415.8287 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241004@211415.8314 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241004@211415.8328 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.8334 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241004@211415.8351 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.8365 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241004@211415.8376 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670045489767004c97cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241004@211415.8381 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.8396 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241004@211415.8408 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut670045489767004c97cb','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241004','21:44',?,?)
20241004@211415.8601 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.8622 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241004@211415.8637 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut670045489767004c97cb','trf entre armazéns a','2024-10-04',5,487,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20241004@211415.9083 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9087 meoh87nf6dk6mu2f0u7brro1jb Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20241004@211415.9102 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9105 meoh87nf6dk6mu2f0u7brro1jb Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241004@211415.9121 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9124 meoh87nf6dk6mu2f0u7brro1jb Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1862.00.1' and sa.armazem = 133 
20241004@211415.9147 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9150 meoh87nf6dk6mu2f0u7brro1jb Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241004@211415.9172 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1862.00.1'
20241004@211415.9185 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.9202 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@211415.9214 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.9229 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@211415.9236 meoh87nf6dk6mu2f0u7brro1jb Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20241004@211415.9249 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@211415.9261 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.9276 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@211415.9287 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670045738567004c97e2','aut670045489767004c97cb',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670045489767004c97cb'
20241004@211415.9458 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.9474 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@211415.9489 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,eslvu,slvu,esltt,sltt,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,stipo) select 'aut670045738567004c97e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,0,0*200.48,0,0*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,0*1.000,0*1.000*200.48 ,42.473000,42.473000*200.48 ,42.473000,42.473000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0*200.48,0*1.000,0*1.000*200.48,0,0*1.000,0,0*1.000,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670045489767004c97cb'
20241004@211415.9858 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9862 meoh87nf6dk6mu2f0u7brro1jb Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241004@211415.9876 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9878 meoh87nf6dk6mu2f0u7brro1jb Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20241004@211415.9894 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9897 meoh87nf6dk6mu2f0u7brro1jb Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1332.00.1' and sa.armazem = 133 
20241004@211415.9918 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211415.9920 meoh87nf6dk6mu2f0u7brro1jb Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20241004@211415.9939 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20241004@211415.9953 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211415.9968 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@211415.9980 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211416.1000 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@211416.1800 meoh87nf6dk6mu2f0u7brro1jb Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241004@211416.3000 meoh87nf6dk6mu2f0u7brro1jb Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241004@211416.4400 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211416.5900 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241004@211416.7000 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670044751067004c9801','aut670045489767004c97cb',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670045489767004c97cb'
20241004@211416.2360 meoh87nf6dk6mu2f0u7brro1jb Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241004@211416.2520 meoh87nf6dk6mu2f0u7brro1jb Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241004@211416.2670 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,eslvu,slvu,esltt,sltt,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,stipo) select 'aut670044751067004c9801',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,0,0*200.48,0,0*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,0*1.000,0*1.000*200.48 ,78.550000,78.550000*200.48 ,78.550000,78.550000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0*200.48,0*1.000,0*1.000*200.48,0,0*1.000,0,0*1.000,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670045489767004c97cb'
20241004@211416.5770 meoh87nf6dk6mu2f0u7brro1jb Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut670045489767004c97cb','','wait',5,'adm12071144683,938000003','')
20241004@211416.6560 meoh87nf6dk6mu2f0u7brro1jb Query : use flama_phc
20241004@211416.6590 meoh87nf6dk6mu2f0u7brro1jb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241004@211416.7290 meoh87nf6dk6mu2f0u7brro1jb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2446';
20241004@211416.8240 meoh87nf6dk6mu2f0u7brro1jb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2446';

20241007@145714.2902 ojq1afpc7fvfqbvt9kbarme6m0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2447';
20241007@145714.2967 ojq1afpc7fvfqbvt9kbarme6m0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2447';
20241007@145714.2994 ojq1afpc7fvfqbvt9kbarme6m0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2447';
20241007@145714.3861 faul1vvp3etlme40dp1comfvml Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@145714.3873 faul1vvp3etlme40dp1comfvml Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@145714.3929 faul1vvp3etlme40dp1comfvml Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2448';
20241007@145714.3989 faul1vvp3etlme40dp1comfvml Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2448';
20241007@145714.4043 faul1vvp3etlme40dp1comfvml Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2448';
20241007@145714.4071 faul1vvp3etlme40dp1comfvml Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2448';
20241007@145714.4114 faul1vvp3etlme40dp1comfvml Query : use flama_phc
20241007@145714.4117 faul1vvp3etlme40dp1comfvml Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@145714.4223 faul1vvp3etlme40dp1comfvml Query : select no, estab,szadrsdesc from szadrs where u_coddest=00000001
20241007@145714.4315 faul1vvp3etlme40dp1comfvml Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4861.00.1'
20241007@145714.4438 faul1vvp3etlme40dp1comfvml Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4861.00.1'
20241007@145714.4456 faul1vvp3etlme40dp1comfvml Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4861.00.1'
20241007@145714.4547 faul1vvp3etlme40dp1comfvml Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4861.00.1'
20241007@145714.4837 faul1vvp3etlme40dp1comfvml Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4861.00.1'
20241007@145714.4882 faul1vvp3etlme40dp1comfvml Query : use flama_phc
20241007@145714.4886 faul1vvp3etlme40dp1comfvml Query : select top 1 1 valor from ts where ts.ndos = 5
20241007@145714.4982 faul1vvp3etlme40dp1comfvml Query : use flama_phc
20241007@145714.4985 faul1vvp3etlme40dp1comfvml 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')
20241007@145714.5054 faul1vvp3etlme40dp1comfvml Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20241007@145714.5213 faul1vvp3etlme40dp1comfvml Query : use flama_phc
20241007@145714.5216 faul1vvp3etlme40dp1comfvml Query : select top 1 ~inactivo valor from fl where no = '102245' and estab = 0 order by inactivo desc
20241007@145714.5333 faul1vvp3etlme40dp1comfvml Query : use flama_phc
20241007@145714.5336 faul1vvp3etlme40dp1comfvml Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20241007@145714.5418 faul1vvp3etlme40dp1comfvml Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2448';
20241007@145714.5449 faul1vvp3etlme40dp1comfvml Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2448';
20241007@150051.6270 h5b81lekgrkl35bsr5d0v20mbv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@150051.6329 h5b81lekgrkl35bsr5d0v20mbv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@150051.6573 h5b81lekgrkl35bsr5d0v20mbv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2449';
20241007@150051.6764 h5b81lekgrkl35bsr5d0v20mbv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2449';
20241007@150051.6855 h5b81lekgrkl35bsr5d0v20mbv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2449';
20241007@150051.6980 h5b81lekgrkl35bsr5d0v20mbv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2449';
20241007@150051.7065 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150051.7069 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@150051.7312 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20241007@150051.7589 h5b81lekgrkl35bsr5d0v20mbv 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 = 2400703 and bi.ref ='324.948.00.01' and bi.lordem =10000
20241007@150051.8065 h5b81lekgrkl35bsr5d0v20mbv 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 = 'cps24060732970,442000006 ' 
20241007@150051.8520 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20241007@150051.8741 h5b81lekgrkl35bsr5d0v20mbv 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 = 2400703 and bi.ref ='324.948.00.01' and bi.lordem =10000
20241007@150051.8868 h5b81lekgrkl35bsr5d0v20mbv 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 = 'cps24060732970,442000006 ' 
20241007@150051.8911 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150051.8915 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 1 valor from ts where ts.ndos = 61
20241007@150051.9017 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150051.9020 h5b81lekgrkl35bsr5d0v20mbv 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')
20241007@150051.9047 h5b81lekgrkl35bsr5d0v20mbv 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
20241007@150051.9220 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150051.9224 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 ~inactivo valor from fl where no = '202383' and estab = 00 order by inactivo desc
20241007@150051.9350 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150051.9353 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from ts where ndos = 61
20241007@150051.9442 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150051.9778 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241007@150051.9845 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150051.9873 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241007@150051.9883 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150051.9897 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241007@150051.9906 h5b81lekgrkl35bsr5d0v20mbv 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
20241007@150052.5100 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241007@150052.1550 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241007@150052.1740 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150052.1800 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202383' and estab=00
20241007@150052.2760 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150052.2910 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241007@150052.3310 h5b81lekgrkl35bsr5d0v20mbv Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6703e551986703e99404',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241007@150052.3840 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150052.4000 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241007@150052.4130 h5b81lekgrkl35bsr5d0v20mbv Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6703e551986703e99404','--','bo',7.8917700112739571589 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241007@150052.6190 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150052.6360 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241007@150052.7150 h5b81lekgrkl35bsr5d0v20mbv 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 ('aut6703e551986703e99404','guia r. fornecedor','2024-10-07',61,2402946,?,?,?,?,?,?,?,?,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')
20241007@150054.7821 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150054.7826 h5b81lekgrkl35bsr5d0v20mbv Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20241007@150054.7963 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20241007@150054.8126 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150054.8143 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241007@150054.8165 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150054.8232 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241007@150054.8244 h5b81lekgrkl35bsr5d0v20mbv Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2400703100a'
20241007@150054.8311 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150054.8326 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241007@150054.8337 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150054.8354 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241007@150054.8367 h5b81lekgrkl35bsr5d0v20mbv Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6703e400896703e996cb',?,?,'20241007',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241007@150054.8929 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@150054.8973 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150054.8995 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241007@150054.9008 h5b81lekgrkl35bsr5d0v20mbv Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6703e698496703e996db','aut6703e551986703e99404',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 = 'aut6703e551986703e99404'
20241007@150054.9206 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150054.9228 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241007@150054.9247 h5b81lekgrkl35bsr5d0v20mbv 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 'aut6703e698496703e996db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2, 2*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,8.87,8.87*200.48,8.87,8.87*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,8.87*2,8.87*2*200.48 ,10.808000,10.808000*200.48 ,10.808000,10.808000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.87,8.87*200.48,8.87*2,8.87*2*200.48,'cps24060732970,442000006 ',70,70*2,70,70*2,?,?,?,4 from bo bo where bo.bostamp = 'aut6703e551986703e99404'
20241007@150109.3907 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150109.3913 h5b81lekgrkl35bsr5d0v20mbv Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20241007@150109.3938 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20241007@150109.3954 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150109.3970 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241007@150109.3987 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150109.4003 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241007@150109.4012 h5b81lekgrkl35bsr5d0v20mbv Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2400703100a'
20241007@150109.4028 h5b81lekgrkl35bsr5d0v20mbv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@150109.4041 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150109.4057 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241007@150109.4086 h5b81lekgrkl35bsr5d0v20mbv Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6703e233936703e9a562','aut6703e551986703e99404',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 = 'aut6703e551986703e99404'
20241007@150109.4250 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@150109.4528 h5b81lekgrkl35bsr5d0v20mbv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241007@150109.4834 h5b81lekgrkl35bsr5d0v20mbv 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 'aut6703e233936703e9a562',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2798, 2798*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,8.87,8.87*200.48,8.87,8.87*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,8.87*2798,8.87*2798*200.48 ,10.803000,10.803000*200.48 ,10.803000,10.803000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.87,8.87*200.48,8.87*2798,8.87*2798*200.48,'cps24060732970,442000006 ',70,70*2798,70,70*2798,?,?,?,4 from bo bo where bo.bostamp = 'aut6703e551986703e99404'
20241007@150109.5480 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150109.5503 h5b81lekgrkl35bsr5d0v20mbv Query : declare @bostamp varchar(25) = 'aut6703e551986703e99404' ,@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 
20241007@150116.2735 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150116.2742 h5b81lekgrkl35bsr5d0v20mbv Query : select 1 valor from bo where bo.bostamp = 'aut6703e551986703e99404'
20241007@150116.2917 h5b81lekgrkl35bsr5d0v20mbv 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) = 'aut6703e551986703e99404' 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 
20241007@150116.6121 h5b81lekgrkl35bsr5d0v20mbv Query : use flama_phc
20241007@150116.6125 h5b81lekgrkl35bsr5d0v20mbv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@150116.6304 h5b81lekgrkl35bsr5d0v20mbv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2449';
20241007@150116.6386 h5b81lekgrkl35bsr5d0v20mbv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2449';

20241007@165714.7395 0a2flvmbvhqaie8vi8g5kh7cgn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2450';
20241007@165714.7461 0a2flvmbvhqaie8vi8g5kh7cgn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2450';
20241007@165714.7488 0a2flvmbvhqaie8vi8g5kh7cgn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2450';
20241007@165714.7532 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165714.7536 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@165714.8840 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1308.00.1'
20241007@165714.8963 0a2flvmbvhqaie8vi8g5kh7cgn 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 = 2400720 and bi.ref ='324.1308.00.1' and bi.lordem =20000
20241007@165714.9307 0a2flvmbvhqaie8vi8g5kh7cgn 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 = 'cps24060753869,754000002 ' 
20241007@165715.7040 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165715.7080 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 1 valor from ts where ts.ndos = 61
20241007@165715.8110 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165715.8140 0a2flvmbvhqaie8vi8g5kh7cgn 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')
20241007@165715.8980 0a2flvmbvhqaie8vi8g5kh7cgn 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
20241007@165715.1054 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165715.1057 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 ~inactivo valor from fl where no = '202410' and estab = 00 order by inactivo desc
20241007@165715.1181 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165715.1184 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from ts where ndos = 61
20241007@165715.1256 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165715.1656 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241007@165715.1722 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165715.1740 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241007@165715.1751 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165715.1768 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241007@165715.1779 0a2flvmbvhqaie8vi8g5kh7cgn 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
20241007@165715.1902 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241007@165715.2005 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241007@165715.2033 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165715.2041 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202410' and estab=00
20241007@165715.2139 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165715.2157 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241007@165715.2193 0a2flvmbvhqaie8vi8g5kh7cgn Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704032804670404db31',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241007@165715.2247 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165715.2266 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241007@165715.2280 0a2flvmbvhqaie8vi8g5kh7cgn Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704032804670404db31','--','bo',1.0184746565608716248 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241007@165715.2483 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165715.2503 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241007@165715.2518 0a2flvmbvhqaie8vi8g5kh7cgn 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 ('aut6704032804670404db31','guia r. fornecedor','2024-10-07',61,2402948,?,?,?,?,?,?,?,?,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')
20241007@165718.7586 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165718.7589 0a2flvmbvhqaie8vi8g5kh7cgn Query : select st.usalote valor from st where st.ref = '324.1308.00.1'
20241007@165718.7717 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1308.00.1'
20241007@165718.7866 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165718.7883 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241007@165718.7899 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165718.7914 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241007@165718.7925 0a2flvmbvhqaie8vi8g5kh7cgn Query : select sestamp valor from se where ref ='324.1308.00.1' and lote = 'r2400720200a'
20241007@165718.7980 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165718.7996 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241007@165718.8007 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165718.8024 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241007@165718.8037 0a2flvmbvhqaie8vi8g5kh7cgn Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704064984670404dec3',?,?,'20241007',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241007@165718.8983 0a2flvmbvhqaie8vi8g5kh7cgn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@165718.9682 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165718.9702 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241007@165718.9715 0a2flvmbvhqaie8vi8g5kh7cgn Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6704037248670404deec','aut6704032804670404db31',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 = 'aut6704032804670404db31'
20241007@165718.9950 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@165718.9968 0a2flvmbvhqaie8vi8g5kh7cgn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241007@165718.9985 0a2flvmbvhqaie8vi8g5kh7cgn 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 'aut6704037248670404deec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1944, 1944*.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 ,42.22,42.22*200.48,42.22,42.22*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,42.22*1944,42.22*1944*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,42.22,42.22*200.48,42.22*1944,42.22*1944*200.48,'cps24060753869,754000002 ',43,43*1944,43,43*1944,?,?,?,4 from bo bo where bo.bostamp = 'aut6704032804670404db31'
20241007@165740.2325 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165740.2369 0a2flvmbvhqaie8vi8g5kh7cgn Query : declare @bostamp varchar(25) = 'aut6704032804670404db31' ,@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 
20241007@165752.4671 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165752.4675 0a2flvmbvhqaie8vi8g5kh7cgn Query : select 1 valor from bo where bo.bostamp = 'aut6704032804670404db31'
20241007@165752.4886 0a2flvmbvhqaie8vi8g5kh7cgn 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) = 'aut6704032804670404db31' 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 
20241007@165754.6732 0a2flvmbvhqaie8vi8g5kh7cgn Query : use flama_phc
20241007@165754.6736 0a2flvmbvhqaie8vi8g5kh7cgn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@165754.6865 0a2flvmbvhqaie8vi8g5kh7cgn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2450';
20241007@165754.6896 0a2flvmbvhqaie8vi8g5kh7cgn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2450';
20241007@171215.3876 f0ajmef760lf26c34jdqttoqmk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171215.3888 f0ajmef760lf26c34jdqttoqmk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171215.3946 f0ajmef760lf26c34jdqttoqmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2451';
20241007@171215.4002 f0ajmef760lf26c34jdqttoqmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2451';
20241007@171215.4054 f0ajmef760lf26c34jdqttoqmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2451';
20241007@171215.4081 f0ajmef760lf26c34jdqttoqmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2451';
20241007@171215.4132 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.4135 f0ajmef760lf26c34jdqttoqmk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171215.4199 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.4202 f0ajmef760lf26c34jdqttoqmk Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171215.4530 f0ajmef760lf26c34jdqttoqmk 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'
20241007@171215.4693 f0ajmef760lf26c34jdqttoqmk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406445 and bi.ref ='324.1705.00.1' and bi.lordem =1
20241007@171215.5029 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.5032 f0ajmef760lf26c34jdqttoqmk Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171215.6020 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.6062 f0ajmef760lf26c34jdqttoqmk Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171215.7661 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.7666 f0ajmef760lf26c34jdqttoqmk 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')
20241007@171215.7700 f0ajmef760lf26c34jdqttoqmk 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
20241007@171215.7885 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.7889 f0ajmef760lf26c34jdqttoqmk Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241007@171215.8019 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.8022 f0ajmef760lf26c34jdqttoqmk Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241007@171215.8119 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.8122 f0ajmef760lf26c34jdqttoqmk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241007@171215.8207 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.8210 f0ajmef760lf26c34jdqttoqmk Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241007@171215.8260 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171215.8263 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from td where ndoc = 39
20241007@171215.8338 f0ajmef760lf26c34jdqttoqmk Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241007@171215.8396 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171215.8412 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171215.8433 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171215.8448 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171215.8483 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171215.8501 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171215.8516 f0ajmef760lf26c34jdqttoqmk Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171215.8708 f0ajmef760lf26c34jdqttoqmk Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171215.8939 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171215.8956 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171215.8974 f0ajmef760lf26c34jdqttoqmk Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67040373326704085fcf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241007@171215.9403 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171215.9423 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171215.9459 f0ajmef760lf26c34jdqttoqmk Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241007@171215.9556 f0ajmef760lf26c34jdqttoqmk Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241007@171215.9651 f0ajmef760lf26c34jdqttoqmk Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241007@171215.9758 f0ajmef760lf26c34jdqttoqmk Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241007@171215.9865 f0ajmef760lf26c34jdqttoqmk Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241007@171215.9957 f0ajmef760lf26c34jdqttoqmk Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241007@171216.5000 f0ajmef760lf26c34jdqttoqmk Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67040373326704085fcf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241007@171216.6560 f0ajmef760lf26c34jdqttoqmk Query : select top 1 fno valor from wsftdata order by fno desc
20241007@171216.7220 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.7390 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171216.7630 f0ajmef760lf26c34jdqttoqmk Query : select 'normal' from dummy
20241007@171216.8910 f0ajmef760lf26c34jdqttoqmk Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67040373326704085fcf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1105,100810,0,'2024-10-07',39,'euro',0,0,2024 ,?,?)
20241007@171216.2520 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171216.2523 f0ajmef760lf26c34jdqttoqmk Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20241007@171216.2552 f0ajmef760lf26c34jdqttoqmk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20241007@171216.2696 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.2713 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171216.2740 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.2756 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171216.2765 f0ajmef760lf26c34jdqttoqmk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171216.2778 f0ajmef760lf26c34jdqttoqmk Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20241007@171216.2792 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.2807 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171216.2829 f0ajmef760lf26c34jdqttoqmk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040605346704086044','aut67040373326704085fcf' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171216.2900 f0ajmef760lf26c34jdqttoqmk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.2918 f0ajmef760lf26c34jdqttoqmk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171216.2947 f0ajmef760lf26c34jdqttoqmk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040605346704086044',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut67040373326704085fcf' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241007@171216.3498 f0ajmef760lf26c34jdqttoqmk Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67040373326704085fcf','2406445','wait',39,'adm09112754980.682000002')
20241007@171216.3591 f0ajmef760lf26c34jdqttoqmk Query : use flama_phc
20241007@171216.3594 f0ajmef760lf26c34jdqttoqmk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@171216.3623 f0ajmef760lf26c34jdqttoqmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2451';
20241007@171216.3653 f0ajmef760lf26c34jdqttoqmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2451';
20241007@171216.3695 f0ajmef760lf26c34jdqttoqmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2451';
20241007@171216.3722 f0ajmef760lf26c34jdqttoqmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2451';
20241007@171216.4261 fokjqo47ht0csds7p54ek0pk8t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171216.4273 fokjqo47ht0csds7p54ek0pk8t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171216.4327 fokjqo47ht0csds7p54ek0pk8t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2452';
20241007@171216.4381 fokjqo47ht0csds7p54ek0pk8t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2452';
20241007@171216.4432 fokjqo47ht0csds7p54ek0pk8t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2452';
20241007@171216.4458 fokjqo47ht0csds7p54ek0pk8t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2452';
20241007@171216.4507 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.4510 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171216.4571 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.4574 fokjqo47ht0csds7p54ek0pk8t Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171216.4616 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20241007@171216.4771 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406446 and bi.ref ='324.2231.00.2' and bi.lordem =1
20241007@171216.5078 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20241007@171216.5108 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406446 and bi.ref ='324.2231.00.2' and bi.lordem =1
20241007@171216.5129 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5132 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171216.5171 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5174 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171216.5210 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5213 fokjqo47ht0csds7p54ek0pk8t 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')
20241007@171216.5244 fokjqo47ht0csds7p54ek0pk8t 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
20241007@171216.5286 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5289 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241007@171216.5319 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5322 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241007@171216.5352 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5354 fokjqo47ht0csds7p54ek0pk8t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241007@171216.5393 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5395 fokjqo47ht0csds7p54ek0pk8t Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241007@171216.5442 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.5445 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from td where ndoc = 39
20241007@171216.5456 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241007@171216.5469 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.5484 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171216.5501 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.5515 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171216.5542 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.5556 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171216.5568 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171216.5630 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171216.5643 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.5657 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171216.5671 fokjqo47ht0csds7p54ek0pk8t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67040875466704086087' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241007@171216.5833 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.5853 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171216.5886 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241007@171216.5897 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241007@171216.5909 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241007@171216.5921 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241007@171216.5933 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241007@171216.5943 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241007@171216.5954 fokjqo47ht0csds7p54ek0pk8t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67040875466704086087',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241007@171216.6170 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 fno valor from wsftdata order by fno desc
20241007@171216.6191 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.6207 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171216.6230 fokjqo47ht0csds7p54ek0pk8t Query : select 'normal' from dummy
20241007@171216.6244 fokjqo47ht0csds7p54ek0pk8t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67040875466704086087',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1106,100810,0,'2024-10-07',39,'euro',0,0,2024 ,?,?)
20241007@171216.6511 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.6514 fokjqo47ht0csds7p54ek0pk8t Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20241007@171216.6535 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2231.00.2'
20241007@171216.6682 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.6697 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171216.6745 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.6759 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171216.6767 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171216.6779 fokjqo47ht0csds7p54ek0pk8t Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2300389200a'
20241007@171216.6788 fokjqo47ht0csds7p54ek0pk8t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.6803 fokjqo47ht0csds7p54ek0pk8t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171216.6814 fokjqo47ht0csds7p54ek0pk8t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670402078967040860a5','aut67040875466704086087' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171216.6830 fokjqo47ht0csds7p54ek0pk8t Query : use flama_phc
20241007@171216.6833 fokjqo47ht0csds7p54ek0pk8t Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241007@171216.6916 fokjqo47ht0csds7p54ek0pk8t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2452';
20241007@171216.6947 fokjqo47ht0csds7p54ek0pk8t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2452';
20241007@171216.7457 eiun661s1b103v3mjsdvbo02h4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171216.7468 eiun661s1b103v3mjsdvbo02h4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171216.7522 eiun661s1b103v3mjsdvbo02h4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2453';
20241007@171216.7575 eiun661s1b103v3mjsdvbo02h4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2453';
20241007@171216.7651 eiun661s1b103v3mjsdvbo02h4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2453';
20241007@171216.7681 eiun661s1b103v3mjsdvbo02h4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2453';
20241007@171216.7734 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.7737 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171216.7815 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.7818 eiun661s1b103v3mjsdvbo02h4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171216.7866 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20241007@171216.8048 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406447 and bi.ref ='304.422.00.07' and bi.lordem =1
20241007@171216.8377 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20241007@171216.8397 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406447 and bi.ref ='304.422.00.07' and bi.lordem =2
20241007@171216.8740 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.8743 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171216.8779 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.8783 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171216.8814 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.8817 eiun661s1b103v3mjsdvbo02h4 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')
20241007@171216.8854 eiun661s1b103v3mjsdvbo02h4 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
20241007@171216.8890 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.8893 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241007@171216.8923 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.8926 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241007@171216.8956 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.8959 eiun661s1b103v3mjsdvbo02h4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241007@171216.8999 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.9002 eiun661s1b103v3mjsdvbo02h4 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241007@171216.9049 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171216.9052 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from td where ndoc = 39
20241007@171216.9065 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241007@171216.9085 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.9103 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171216.9124 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.9138 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171216.9169 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.9183 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171216.9195 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171216.9625 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171216.9672 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171216.9688 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171217.6220 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670403396067040860e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241007@171217.7890 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.8090 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171217.8440 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241007@171217.8570 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241007@171217.8700 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241007@171217.8820 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241007@171217.8940 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241007@171217.9070 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241007@171217.9190 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670403396067040860e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241007@171217.1121 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 fno valor from wsftdata order by fno desc
20241007@171217.1146 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.1162 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171217.1186 eiun661s1b103v3mjsdvbo02h4 Query : select 'normal' from dummy
20241007@171217.1202 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670403396067040860e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1106,100810,0,'2024-10-07',39,'euro',0,0,2024 ,?,?)
20241007@171217.1456 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171217.1460 eiun661s1b103v3mjsdvbo02h4 Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20241007@171217.1485 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.422.00.07'
20241007@171217.1635 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.1653 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.1682 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.1696 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.1704 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171217.1715 eiun661s1b103v3mjsdvbo02h4 Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '240647'
20241007@171217.1742 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.1766 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.1779 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704024198670408612a','aut670403396067040860e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171217.1783 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.1801 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.1830 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6704024198670408612a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',68.000 ,'aut670403396067040860e0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241007@171217.2073 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171217.2076 eiun661s1b103v3mjsdvbo02h4 Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20241007@171217.2094 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.422.00.07'
20241007@171217.2107 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.2122 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.2145 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.2159 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.2168 eiun661s1b103v3mjsdvbo02h4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171217.2179 eiun661s1b103v3mjsdvbo02h4 Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '240647'
20241007@171217.2191 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.2205 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.2216 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040956646704086135','aut670403396067040860e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171217.2220 eiun661s1b103v3mjsdvbo02h4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.2234 eiun661s1b103v3mjsdvbo02h4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.2261 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040956646704086135',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670403396067040860e0' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241007@171217.2481 eiun661s1b103v3mjsdvbo02h4 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670403396067040860e0','2406447','wait',39,'adm09112754980.682000002')
20241007@171217.2554 eiun661s1b103v3mjsdvbo02h4 Query : use flama_phc
20241007@171217.2557 eiun661s1b103v3mjsdvbo02h4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@171217.2587 eiun661s1b103v3mjsdvbo02h4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2453';
20241007@171217.2618 eiun661s1b103v3mjsdvbo02h4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2453';
20241007@171217.2661 eiun661s1b103v3mjsdvbo02h4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2453';
20241007@171217.2693 eiun661s1b103v3mjsdvbo02h4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2453';
20241007@171217.3355 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171217.3366 9eu0ugh6s34l61gu4ubcpsadtf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171217.3453 9eu0ugh6s34l61gu4ubcpsadtf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2454';
20241007@171217.3627 9eu0ugh6s34l61gu4ubcpsadtf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2454';
20241007@171217.3700 9eu0ugh6s34l61gu4ubcpsadtf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2454';
20241007@171217.3740 9eu0ugh6s34l61gu4ubcpsadtf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2454';
20241007@171217.3801 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.3805 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171217.3871 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.3875 9eu0ugh6s34l61gu4ubcpsadtf Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171217.3931 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241007@171217.4139 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406448 and bi.ref ='324.657.00.01' and bi.lordem =1
20241007@171217.4469 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241007@171217.4500 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406448 and bi.ref ='324.657.00.01' and bi.lordem =1
20241007@171217.4520 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241007@171217.4540 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406448 and bi.ref ='324.657.00.01' and bi.lordem =1
20241007@171217.4556 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241007@171217.4574 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406448 and bi.ref ='324.657.00.01' and bi.lordem =1
20241007@171217.4590 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241007@171217.4647 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406448 and bi.ref ='324.657.00.01' and bi.lordem =1
20241007@171217.4671 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.4674 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171217.4712 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.4715 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171217.4751 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.4754 9eu0ugh6s34l61gu4ubcpsadtf 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')
20241007@171217.4798 9eu0ugh6s34l61gu4ubcpsadtf 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
20241007@171217.4842 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.4846 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241007@171217.4877 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.4880 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241007@171217.4910 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.4913 9eu0ugh6s34l61gu4ubcpsadtf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241007@171217.4952 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.4955 9eu0ugh6s34l61gu4ubcpsadtf Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241007@171217.5012 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.5030 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from td where ndoc = 39
20241007@171217.5041 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241007@171217.5060 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.5099 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171217.5124 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.5152 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171217.5181 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.5235 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171217.5259 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171217.5322 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171217.5334 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.5374 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171217.5389 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241007@171217.5535 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.5578 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171217.5644 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241007@171217.5668 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241007@171217.5680 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241007@171217.5691 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241007@171217.5702 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241007@171217.5713 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241007@171217.5723 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67040059906704086180',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241007@171217.5929 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 fno valor from wsftdata order by fno desc
20241007@171217.5952 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.5967 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171217.6038 9eu0ugh6s34l61gu4ubcpsadtf Query : select 'normal' from dummy
20241007@171217.6058 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67040059906704086180',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1107,100810,0,'2024-10-07',39,'euro',0,0,2024 ,?,?)
20241007@171217.6307 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.6311 9eu0ugh6s34l61gu4ubcpsadtf Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241007@171217.6337 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241007@171217.6508 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.6532 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.6592 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.6606 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.6615 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171217.6627 9eu0ugh6s34l61gu4ubcpsadtf Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241007@171217.6682 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.6696 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.6712 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670400743567040861a3','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171217.6717 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.6731 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.6768 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670400743567040861a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67040059906704086180' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241007@171217.6997 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.7014 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.7046 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.7071 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.7079 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171217.7090 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.7116 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.7128 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670401840867040861ad','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171217.7135 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.7168 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.7217 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670401840867040861ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67040059906704086180' ,0,0 ,2,23.00,20000,?,?,?)
20241007@171217.7496 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.7579 9eu0ugh6s34l61gu4ubcpsadtf Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241007@171217.8158 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241007@171217.8532 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.8815 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.8841 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.8876 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.8885 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171217.8907 9eu0ugh6s34l61gu4ubcpsadtf Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241007@171217.8921 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.8935 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.8948 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670403579567040861d9','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171217.8952 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.8970 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.9001 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670403579567040861d9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67040059906704086180' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241007@171217.9248 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.9263 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.9327 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.9346 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.9354 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171217.9366 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.9386 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171217.9446 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670407654967040861e4','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171217.9451 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.9480 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.9522 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670407654967040861e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67040059906704086180' ,0,0 ,2,23.00,50000,?,?,?)
20241007@171217.9749 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171217.9752 9eu0ugh6s34l61gu4ubcpsadtf Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241007@171217.9772 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241007@171217.9800 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171217.9822 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171217.9846 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.6000 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.2094 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171218.2114 9eu0ugh6s34l61gu4ubcpsadtf Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241007@171218.2144 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.2162 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.2173 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040437736704086234','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171218.2185 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.2243 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.2287 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040437736704086234',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67040059906704086180' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241007@171218.2529 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.2555 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.2618 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.2748 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.2760 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171218.2772 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.2814 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.2831 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040325266704086243','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171218.2836 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.2852 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.2881 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67040325266704086243',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67040059906704086180' ,0,0 ,2,23.00,80000,?,?,?)
20241007@171218.3109 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171218.3112 9eu0ugh6s34l61gu4ubcpsadtf Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241007@171218.3142 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241007@171218.3173 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.3214 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.3267 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.3286 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.3315 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171218.3327 9eu0ugh6s34l61gu4ubcpsadtf Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241007@171218.3344 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.3358 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.3379 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040914096704086251','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171218.3383 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.3418 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.3463 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040914096704086251',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67040059906704086180' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241007@171218.3737 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.3820 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.3867 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.3934 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.3943 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171218.3977 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.3991 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.4002 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040968246704086261','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171218.4006 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.4020 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.4058 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67040968246704086261',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67040059906704086180' ,0,0 ,2,23.00,110000,?,?,?)
20241007@171218.4274 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171218.4277 9eu0ugh6s34l61gu4ubcpsadtf Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241007@171218.4299 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241007@171218.4330 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.4355 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.4380 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.4405 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.4414 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171218.4434 9eu0ugh6s34l61gu4ubcpsadtf Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20241007@171218.4446 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.4464 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.4476 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704084912670408626c','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171218.4480 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.4519 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.4581 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6704084912670408626c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67040059906704086180' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20241007@171218.4879 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.4934 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.4967 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.5008 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.5016 9eu0ugh6s34l61gu4ubcpsadtf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171218.5030 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.5046 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171218.5059 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704093052670408627a','aut67040059906704086180' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171218.5063 9eu0ugh6s34l61gu4ubcpsadtf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.5077 9eu0ugh6s34l61gu4ubcpsadtf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171218.5150 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6704093052670408627a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67040059906704086180' ,0,0 ,2,23.00,140000,?,?,?)
20241007@171218.5412 9eu0ugh6s34l61gu4ubcpsadtf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67040059906704086180','2406448','wait',39,'adm09112754980.682000002')
20241007@171218.5501 9eu0ugh6s34l61gu4ubcpsadtf Query : use flama_phc
20241007@171218.5512 9eu0ugh6s34l61gu4ubcpsadtf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@171218.5553 9eu0ugh6s34l61gu4ubcpsadtf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2454';
20241007@171218.5602 9eu0ugh6s34l61gu4ubcpsadtf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2454';
20241007@171218.5670 9eu0ugh6s34l61gu4ubcpsadtf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2454';
20241007@171218.5706 9eu0ugh6s34l61gu4ubcpsadtf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2454';
20241007@171218.6291 1du1en5ut1psar44qjl7k67j5o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171218.6306 1du1en5ut1psar44qjl7k67j5o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171218.6393 1du1en5ut1psar44qjl7k67j5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2455';
20241007@171218.6506 1du1en5ut1psar44qjl7k67j5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2455';
20241007@171218.6560 1du1en5ut1psar44qjl7k67j5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2455';
20241007@171218.6587 1du1en5ut1psar44qjl7k67j5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2455';
20241007@171218.6641 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.6644 1du1en5ut1psar44qjl7k67j5o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171218.6742 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.6745 1du1en5ut1psar44qjl7k67j5o Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171218.6786 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.6980 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.7328 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.7357 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.7383 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.7407 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.7423 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.7446 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.7467 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.7524 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.8015 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.8615 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.8809 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.8829 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.8847 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.8865 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.8891 1du1en5ut1psar44qjl7k67j5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241007@171218.8910 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406449 and bi.ref ='324.682.00.01' and bi.lordem =1
20241007@171218.8926 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.8929 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171218.8963 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.8966 1du1en5ut1psar44qjl7k67j5o Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171218.8996 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.8999 1du1en5ut1psar44qjl7k67j5o 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')
20241007@171218.9028 1du1en5ut1psar44qjl7k67j5o 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
20241007@171218.9064 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.9071 1du1en5ut1psar44qjl7k67j5o Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241007@171218.9171 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.9174 1du1en5ut1psar44qjl7k67j5o Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241007@171218.9208 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.9211 1du1en5ut1psar44qjl7k67j5o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241007@171218.9280 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.9283 1du1en5ut1psar44qjl7k67j5o Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241007@171218.9358 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171218.9361 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from td where ndoc = 39
20241007@171218.9385 1du1en5ut1psar44qjl7k67j5o Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241007@171218.9432 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.9467 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171218.9501 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.9525 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171218.9561 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.9599 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171218.9623 1du1en5ut1psar44qjl7k67j5o Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171218.9697 1du1en5ut1psar44qjl7k67j5o Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171218.9739 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.9764 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171218.9780 1du1en5ut1psar44qjl7k67j5o Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241007@171218.9934 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171218.9962 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171219.2200 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241007@171219.6400 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241007@171219.7900 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241007@171219.9100 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241007@171219.1230 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241007@171219.1390 1du1en5ut1psar44qjl7k67j5o Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241007@171219.1500 1du1en5ut1psar44qjl7k67j5o Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670409657067040862ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241007@171219.4060 1du1en5ut1psar44qjl7k67j5o Query : select top 1 fno valor from wsftdata order by fno desc
20241007@171219.4630 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.4780 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171219.5370 1du1en5ut1psar44qjl7k67j5o Query : select 'normal' from dummy
20241007@171219.5650 1du1en5ut1psar44qjl7k67j5o Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670409657067040862ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1108,100810,0,'2024-10-07',39,'euro',0,0,2024 ,?,?)
20241007@171219.8830 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.8870 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.9190 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.1072 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1092 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.1161 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1175 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.1191 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.1202 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171219.1226 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1271 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.1284 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704057794670408631d','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.1290 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1330 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.1363 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6704057794670408631d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241007@171219.1593 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1611 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.1653 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1674 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.1684 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.1698 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1716 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.1739 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040357986704086329','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.1772 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.1816 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.1871 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67040357986704086329',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,20000,?,?,?)
20241007@171219.2102 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.2105 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.2124 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.2194 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2217 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.2242 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2270 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.2278 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.2290 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171219.2302 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2328 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.2340 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040033816704086338','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.2356 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2370 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.2407 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040033816704086338',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241007@171219.2635 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2671 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.2725 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2767 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.2788 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.2800 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2822 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.2843 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040526036704086344','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.2849 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.2895 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.2974 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67040526036704086344',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,50000,?,?,?)
20241007@171219.3210 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.3214 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.3233 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.3327 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.3366 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.3420 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.3434 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.3442 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.3459 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171219.3476 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.3490 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.3501 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040095316704086354','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.3506 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.3520 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.3584 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040095316704086354',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241007@171219.4320 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5187 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.5268 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5285 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.5294 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.5307 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5322 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.5333 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040027816704086381','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.5338 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5373 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.5435 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67040027816704086381',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,80000,?,?,?)
20241007@171219.5651 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.5656 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.5708 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.5722 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5737 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.5762 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5776 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.5785 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.5820 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171219.5841 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5865 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.5881 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704004624670408638e','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.5886 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.5935 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.6024 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6704004624670408638e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241007@171219.6245 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.6262 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.6298 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.6340 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.6348 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.6364 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.6395 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.6417 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704077340670408639b','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.6421 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.6461 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.6542 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6704077340670408639b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,110000,?,?,?)
20241007@171219.6762 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.6765 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.6806 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.6821 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.6878 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.6918 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.6937 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.6947 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.6963 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171219.6976 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.6996 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.7009 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670409201367040863aa','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.7015 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.7040 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.7080 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670409201367040863aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20241007@171219.7309 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.7348 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.7387 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.7403 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.7416 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.7455 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.7471 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.7505 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670404954667040863b6','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.7513 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.7528 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.7563 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670404954667040863b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,140000,?,?,?)
20241007@171219.7791 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.7795 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.7835 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.7855 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.7874 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.7979 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.8003 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.8018 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.8037 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171219.8051 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.8078 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.8112 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670406383867040863c4','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.8117 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.8146 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.8238 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670406383867040863c4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20241007@171219.8477 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.8516 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.8571 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.8587 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.8596 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.8608 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.8623 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.8661 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670401551067040863d2','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.8666 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.8692 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.8720 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670401551067040863d2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,170000,?,?,?)
20241007@171219.8957 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.8961 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.8989 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.9012 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9037 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.9074 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9095 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.9104 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.9116 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171219.9129 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9178 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.9190 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670401766367040863de','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.9195 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9226 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.9279 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670401766367040863de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20241007@171219.9511 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9529 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.9568 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9595 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.9604 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171219.9620 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9635 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171219.9647 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670407012667040863ea','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171219.9651 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171219.9677 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171219.9710 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670407012667040863ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,200000,?,?,?)
20241007@171219.9926 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171219.9929 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171219.9951 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171219.9969 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2700 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.8000 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.9600 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.1110 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171220.1780 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171220.1960 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2110 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.2530 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040634306704086404','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171220.2570 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2720 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.3100 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040634306704086404',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20241007@171220.5400 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.5590 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.1118 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.1455 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.1702 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171220.1991 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2007 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.2020 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040114936704086430','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171220.2025 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2040 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.2072 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67040114936704086430',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,230000,?,?,?)
20241007@171220.2401 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171220.2409 1du1en5ut1psar44qjl7k67j5o Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241007@171220.2448 1du1en5ut1psar44qjl7k67j5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.682.00.01'
20241007@171220.2477 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2494 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.2550 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2574 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.2594 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171220.2606 1du1en5ut1psar44qjl7k67j5o Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241007@171220.2638 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2661 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.2674 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040931686704086440','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171220.2696 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.2737 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.2794 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040931686704086440',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670409657067040862ea' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20241007@171220.3038 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.3066 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.3101 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.3117 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.3126 1du1en5ut1psar44qjl7k67j5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171220.3138 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.3165 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.3180 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6704094064670408644c','aut670409657067040862ea' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171220.3184 1du1en5ut1psar44qjl7k67j5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.3199 1du1en5ut1psar44qjl7k67j5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.3237 1du1en5ut1psar44qjl7k67j5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6704094064670408644c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670409657067040862ea' ,0,0 ,2,23.00,260000,?,?,?)
20241007@171220.3540 1du1en5ut1psar44qjl7k67j5o Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670409657067040862ea','2406449','wait',39,'adm09112754980.682000002')
20241007@171220.3675 1du1en5ut1psar44qjl7k67j5o Query : use flama_phc
20241007@171220.3678 1du1en5ut1psar44qjl7k67j5o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@171220.3708 1du1en5ut1psar44qjl7k67j5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2455';
20241007@171220.3742 1du1en5ut1psar44qjl7k67j5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2455';
20241007@171220.3783 1du1en5ut1psar44qjl7k67j5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2455';
20241007@171220.3810 1du1en5ut1psar44qjl7k67j5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2455';
20241007@171220.5174 3qkveq27gfqh6rshc1dtro0mgk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171220.5188 3qkveq27gfqh6rshc1dtro0mgk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171220.5246 3qkveq27gfqh6rshc1dtro0mgk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2456';
20241007@171220.5301 3qkveq27gfqh6rshc1dtro0mgk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2456';
20241007@171220.5398 3qkveq27gfqh6rshc1dtro0mgk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2456';
20241007@171220.5430 3qkveq27gfqh6rshc1dtro0mgk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2456';
20241007@171220.5478 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.5481 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171220.5540 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.5542 3qkveq27gfqh6rshc1dtro0mgk Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171220.5586 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20241007@171220.5748 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406450 and bi.ref ='324.938.00.01' and bi.lordem =1
20241007@171220.6142 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6145 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171220.6197 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6200 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171220.6230 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6242 3qkveq27gfqh6rshc1dtro0mgk 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')
20241007@171220.6285 3qkveq27gfqh6rshc1dtro0mgk 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
20241007@171220.6342 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6345 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241007@171220.6387 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6390 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241007@171220.6421 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6424 3qkveq27gfqh6rshc1dtro0mgk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241007@171220.6462 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6465 3qkveq27gfqh6rshc1dtro0mgk Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241007@171220.6511 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.6514 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from td where ndoc = 39
20241007@171220.6527 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241007@171220.6541 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.6559 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171220.6581 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.6632 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171220.6668 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.6683 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171220.6695 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171220.6770 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171220.6782 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.6803 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171220.6819 3qkveq27gfqh6rshc1dtro0mgk Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670404207667040864a3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241007@171220.6985 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.7001 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171220.7074 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241007@171220.7113 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241007@171220.7129 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241007@171220.7192 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241007@171220.7203 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241007@171220.7242 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241007@171220.7253 3qkveq27gfqh6rshc1dtro0mgk Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670404207667040864a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241007@171220.7468 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 fno valor from wsftdata order by fno desc
20241007@171220.7511 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.7553 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171220.7576 3qkveq27gfqh6rshc1dtro0mgk Query : select 'normal' from dummy
20241007@171220.7591 3qkveq27gfqh6rshc1dtro0mgk Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670404207667040864a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1109,100810,0,'2024-10-07',39,'euro',0,0,2024 ,?,?)
20241007@171220.7885 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.7889 3qkveq27gfqh6rshc1dtro0mgk Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20241007@171220.7912 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.938.00.01'
20241007@171220.8057 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.8071 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.8103 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.8118 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.8125 3qkveq27gfqh6rshc1dtro0mgk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171220.8138 3qkveq27gfqh6rshc1dtro0mgk Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20241007@171220.8151 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.8167 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171220.8180 3qkveq27gfqh6rshc1dtro0mgk Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670402453467040864c7','aut670404207667040864a3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171220.8184 3qkveq27gfqh6rshc1dtro0mgk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171220.8200 3qkveq27gfqh6rshc1dtro0mgk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171220.8238 3qkveq27gfqh6rshc1dtro0mgk Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670402453467040864c7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut670404207667040864a3' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241007@171220.8486 3qkveq27gfqh6rshc1dtro0mgk Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670404207667040864a3','2406450','wait',39,'adm09112754980.682000002')
20241007@171220.9832 3qkveq27gfqh6rshc1dtro0mgk Query : use flama_phc
20241007@171220.9836 3qkveq27gfqh6rshc1dtro0mgk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@171220.9882 3qkveq27gfqh6rshc1dtro0mgk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2456';
20241007@171220.9944 3qkveq27gfqh6rshc1dtro0mgk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2456';
20241007@171221.1300 3qkveq27gfqh6rshc1dtro0mgk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2456';
20241007@171221.5900 3qkveq27gfqh6rshc1dtro0mgk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2456';
20241007@171221.8700 tsc9sif59e60j6pntt33omd2si Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171221.8810 tsc9sif59e60j6pntt33omd2si Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171221.9360 tsc9sif59e60j6pntt33omd2si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2457';
20241007@171221.9870 tsc9sif59e60j6pntt33omd2si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2457';
20241007@171221.1082 tsc9sif59e60j6pntt33omd2si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2457';
20241007@171221.1108 tsc9sif59e60j6pntt33omd2si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2457';
20241007@171221.1155 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.1158 tsc9sif59e60j6pntt33omd2si Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171221.1221 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.1225 tsc9sif59e60j6pntt33omd2si Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171221.1266 tsc9sif59e60j6pntt33omd2si Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20241007@171221.1437 tsc9sif59e60j6pntt33omd2si Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406451 and bi.ref ='324.945.00.01' and bi.lordem =1
20241007@171221.1764 tsc9sif59e60j6pntt33omd2si Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20241007@171221.1865 tsc9sif59e60j6pntt33omd2si Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406451 and bi.ref ='324.945.00.01' and bi.lordem =1
20241007@171221.1956 tsc9sif59e60j6pntt33omd2si Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20241007@171221.1993 tsc9sif59e60j6pntt33omd2si Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406451 and bi.ref ='324.945.00.01' and bi.lordem =1
20241007@171221.2010 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.2014 tsc9sif59e60j6pntt33omd2si Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171221.2045 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.2049 tsc9sif59e60j6pntt33omd2si Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171221.3746 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.4134 tsc9sif59e60j6pntt33omd2si 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')
20241007@171221.4173 tsc9sif59e60j6pntt33omd2si 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
20241007@171221.4211 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.4214 tsc9sif59e60j6pntt33omd2si Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241007@171221.4244 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.4246 tsc9sif59e60j6pntt33omd2si Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241007@171221.4280 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.4284 tsc9sif59e60j6pntt33omd2si Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241007@171221.4365 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.4409 tsc9sif59e60j6pntt33omd2si Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241007@171221.4574 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.4577 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from td where ndoc = 39
20241007@171221.4589 tsc9sif59e60j6pntt33omd2si Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241007@171221.4604 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.4619 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171221.4654 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.4667 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171221.4704 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.4720 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171221.4731 tsc9sif59e60j6pntt33omd2si Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171221.4806 tsc9sif59e60j6pntt33omd2si Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241007@171221.4818 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.4832 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241007@171221.4849 tsc9sif59e60j6pntt33omd2si Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67040773066704086573' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241007@171221.4989 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.5025 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241007@171221.5057 tsc9sif59e60j6pntt33omd2si Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241007@171221.5068 tsc9sif59e60j6pntt33omd2si Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241007@171221.5090 tsc9sif59e60j6pntt33omd2si Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241007@171221.5108 tsc9sif59e60j6pntt33omd2si Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241007@171221.5118 tsc9sif59e60j6pntt33omd2si Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241007@171221.5137 tsc9sif59e60j6pntt33omd2si Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241007@171221.5148 tsc9sif59e60j6pntt33omd2si Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67040773066704086573',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241007@171221.5395 tsc9sif59e60j6pntt33omd2si Query : select top 1 fno valor from wsftdata order by fno desc
20241007@171221.5420 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.5554 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241007@171221.5602 tsc9sif59e60j6pntt33omd2si Query : select 'normal' from dummy
20241007@171221.5618 tsc9sif59e60j6pntt33omd2si Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67040773066704086573',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1110,100810,0,'2024-10-07',39,'euro',0,0,2024 ,?,?)
20241007@171221.5851 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.5854 tsc9sif59e60j6pntt33omd2si Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20241007@171221.5877 tsc9sif59e60j6pntt33omd2si Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20241007@171221.6045 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6076 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171221.6105 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6119 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171221.6139 tsc9sif59e60j6pntt33omd2si Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171221.6150 tsc9sif59e60j6pntt33omd2si Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20241007@171221.6179 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6200 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171221.6211 tsc9sif59e60j6pntt33omd2si Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67040659676704086596','aut67040773066704086573' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171221.6221 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6305 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171221.6337 tsc9sif59e60j6pntt33omd2si Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67040659676704086596',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut67040773066704086573' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241007@171221.6569 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.6572 tsc9sif59e60j6pntt33omd2si Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20241007@171221.6734 tsc9sif59e60j6pntt33omd2si Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20241007@171221.6758 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6782 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171221.6808 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6839 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171221.6848 tsc9sif59e60j6pntt33omd2si Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171221.6860 tsc9sif59e60j6pntt33omd2si Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20241007@171221.6878 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6906 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171221.6918 tsc9sif59e60j6pntt33omd2si Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670403657667040865a7','aut67040773066704086573' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171221.6923 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.6978 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171221.7006 tsc9sif59e60j6pntt33omd2si Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670403657667040865a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67040773066704086573' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241007@171221.7209 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.7214 tsc9sif59e60j6pntt33omd2si Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20241007@171221.7235 tsc9sif59e60j6pntt33omd2si Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20241007@171221.7277 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.7294 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171221.7332 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.7367 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171221.7380 tsc9sif59e60j6pntt33omd2si Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241007@171221.7416 tsc9sif59e60j6pntt33omd2si Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20241007@171221.7469 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.7486 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241007@171221.7500 tsc9sif59e60j6pntt33omd2si Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670409118667040865b6','aut67040773066704086573' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241007@171221.7504 tsc9sif59e60j6pntt33omd2si Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241007@171221.7521 tsc9sif59e60j6pntt33omd2si Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241007@171221.7552 tsc9sif59e60j6pntt33omd2si Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670409118667040865b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut67040773066704086573' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241007@171221.7787 tsc9sif59e60j6pntt33omd2si Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67040773066704086573','2406451','wait',39,'adm09112754980.682000002')
20241007@171221.7971 tsc9sif59e60j6pntt33omd2si Query : use flama_phc
20241007@171221.7977 tsc9sif59e60j6pntt33omd2si Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241007@171221.8012 tsc9sif59e60j6pntt33omd2si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2457';
20241007@171221.8048 tsc9sif59e60j6pntt33omd2si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2457';
20241007@171221.8090 tsc9sif59e60j6pntt33omd2si Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2457';
20241007@171221.8115 tsc9sif59e60j6pntt33omd2si Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2457';
20241007@171221.8662 85nbmh8rtg96gdpehv4pfes1av Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241007@171221.8673 85nbmh8rtg96gdpehv4pfes1av Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241007@171221.8731 85nbmh8rtg96gdpehv4pfes1av Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2458';
20241007@171221.8822 85nbmh8rtg96gdpehv4pfes1av Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2458';
20241007@171221.8884 85nbmh8rtg96gdpehv4pfes1av Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2458';
20241007@171221.8913 85nbmh8rtg96gdpehv4pfes1av Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2458';
20241007@171221.8973 85nbmh8rtg96gdpehv4pfes1av Query : use flama_phc
20241007@171221.8977 85nbmh8rtg96gdpehv4pfes1av Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241007@171221.9083 85nbmh8rtg96gdpehv4pfes1av Query : use flama_phc
20241007@171221.9088 85nbmh8rtg96gdpehv4pfes1av Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241007@171221.9132 85nbmh8rtg96gdpehv4pfes1av 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'
20241007@171221.9312 85nbmh8rtg96gdpehv4pfes1av Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406452 and bi.ref ='324.966.00.01' and bi.lordem =1
20241007@171221.9663 85nbmh8rtg96gdpehv4pfes1av 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'
20241007@171221.9686 85nbmh8rtg96gdpehv4pfes1av Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2064 and bo.obrano = 2406452 and bi.ref ='324.966.00.01' and bi.lordem =1
20241007@171221.9721 85nbmh8rtg96gdpehv4pfes1av Query : use flama_phc
20241007@171221.9725 85nbmh8rtg96gdpehv4pfes1av Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241007@171221.9757 85nbmh8rtg96gdpehv4pfes1av Query : use flama_phc
20241007@171221.9760 85nbmh8rtg96gdpehv4pfes1av Query : select top 1 1 valor from td where td.ndoc = 39
20241007@171221.9795 85nbmh8rtg96gdpehv4pfes1av Query : use flama_phc
20241007@171221.9814 85nbmh8rtg96gdpehv4pfes1av 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')
20241007@171221.9853 85nbmh8rtg96gdpehv4pfes1av 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
20241007@171221.9890 85nbmh8rtg96gdpehv4pfes1av Query : use flama_phc
20241007@171221.9900 85nbmh8rtg96gdpehv4pfes1av Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
