20240906@073042.6407 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240906@073042.6429 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.6442 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.6463 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.6478 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa1872066daa1929d','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.6686 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.6706 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.6726 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa1872066daa1929d',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,100000 ,27.6,27.6*200.48,27.6,27.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,27.6*8.000,27.6*8.000*200.48 ,8.845000,8.845000*200.48 ,8.845000,8.845000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,27.6,27.6*200.48,27.6*8.000,27.6*8.000*200.48,'av24082760030.503000009 ',27.6,27.6*8.000,27.6,27.6*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.7084 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.7097 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240906@073042.7115 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.7118 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.958.00.01'
20240906@073042.7137 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.7141 d09qmmo1eiu8o6gjntgqdli815 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.958.00.01' and sa.armazem = 133 
20240906@073042.7223 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.7226 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.958.00.01'
20240906@073042.7247 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.958.00.01'
20240906@073042.7451 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.7469 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.7484 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.7501 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.7510 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240906@073042.7533 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.7547 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.7565 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.7578 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa3051166daa192b8','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.7734 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.7754 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.7771 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa3051166daa192b8',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,110000 ,19.2,19.2*200.48,19.2,19.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,19.2*12.000,19.2*12.000*200.48 ,8.335000,8.335000*200.48 ,8.335000,8.335000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.2,19.2*200.48,19.2*12.000,19.2*12.000*200.48,'av24082760035.846000010 ',19.2,19.2*12.000,19.2,19.2*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.8094 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.8098 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20240906@073042.8114 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.8117 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.969.00.01'
20240906@073042.8135 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.8138 d09qmmo1eiu8o6gjntgqdli815 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.969.00.01' and sa.armazem = 133 
20240906@073042.8208 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.8220 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.969.00.01'
20240906@073042.8241 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.969.00.01'
20240906@073042.8623 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.8642 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.8657 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.8673 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.8683 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20240906@073042.8706 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.8721 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.8738 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.8751 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa4121966daa192d4','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073042.8911 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.8928 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.8948 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa4121966daa192d4',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,120000 ,35.2,35.2*200.48,35.2,35.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,35.2*8.000,35.2*8.000*200.48 ,15.817000,15.817000*200.48 ,15.817000,15.817000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,35.2,35.2*200.48,35.2*8.000,35.2*8.000*200.48,'av24082760046.345000011 ',35.2,35.2*8.000,35.2,35.2*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073042.9400 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.9405 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240906@073042.9422 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.9425 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.988.00.01'
20240906@073042.9443 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.9447 d09qmmo1eiu8o6gjntgqdli815 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.988.00.01' and sa.armazem = 133 
20240906@073042.9521 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073042.9524 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.988.00.01'
20240906@073042.9545 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240906@073042.9710 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.9729 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073042.9745 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.9814 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.9825 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240906@073042.9846 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073042.9860 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073042.9877 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073042.9890 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa5441466daa192f0','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073043.4000 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.5800 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.1930 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa5441466daa192f0',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,130000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*10.000,32*10.000*200.48 ,12.395000,12.395000*200.48 ,12.395000,12.395000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*10.000,32*10.000*200.48,'av24082760053.970000012 ',32,32*10.000,32,32*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073043.5240 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.5280 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240906@073043.5420 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.5450 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.988.00.01'
20240906@073043.6170 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.6380 d09qmmo1eiu8o6gjntgqdli815 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.988.00.01' and sa.armazem = 133 
20240906@073043.6640 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.6670 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.988.00.01'
20240906@073043.6870 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240906@073043.7030 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.7210 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.7360 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.7540 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073043.7630 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240906@073043.7760 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073043.7900 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.8060 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073043.8250 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa9586966daa19313','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073043.9830 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.1002 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.1021 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa9586966daa19313',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 42.000, 42.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 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*42.000,32*42.000*200.48 ,12.395000,12.395000*200.48 ,12.395000,12.395000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*42.000,32*42.000*200.48,'av24082760053.970000012 ',32,32*42.000,32,32*42.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073043.1341 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.1345 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20240906@073043.1362 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.1365 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.946.00.01'
20240906@073043.1383 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.1386 d09qmmo1eiu8o6gjntgqdli815 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.946.00.01' and sa.armazem = 133 
20240906@073043.1457 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.1460 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.946.00.01'
20240906@073043.1481 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.946.00.01'
20240906@073043.1631 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.1651 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.1665 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.1682 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073043.1703 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20240906@073043.1726 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073043.1740 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.1756 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073043.1770 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa5182966daa1932a','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073043.1932 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.1954 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.1974 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa5182966daa1932a',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,150000 ,17.3,17.3*200.48,17.3,17.3*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,17.3*12.000,17.3*12.000*200.48 ,6.081000,6.081000*200.48 ,6.081000,6.081000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,17.3,17.3*200.48,17.3*12.000,17.3*12.000*200.48,'av24082760061.719000013 ',17.3,17.3*12.000,17.3,17.3*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073043.2299 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.2303 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240906@073043.2336 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.2339 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.642.00.01'
20240906@073043.2357 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.2359 d09qmmo1eiu8o6gjntgqdli815 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.642.00.01' and sa.armazem = 133 
20240906@073043.2430 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.2433 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.642.00.01'
20240906@073043.2456 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240906@073043.2623 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.2642 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.2656 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.2672 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073043.2682 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240906@073043.2703 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073043.2717 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.2733 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073043.2745 d09qmmo1eiu8o6gjntgqdli815 Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa0985866daa19342','aut66daa5280166daa1912a',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 = 'aut66daa5280166daa1912a'
20240906@073043.2902 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.2919 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.2935 d09qmmo1eiu8o6gjntgqdli815 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 'aut66daa0985866daa19342',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 ,54.4,54.4*200.48,54.4,54.4*200.48 ,0,0,'un ','' ,bo.marcada,1 ,54.4*4.000,54.4*4.000*200.48 ,18.573000,18.573000*200.48 ,18.573000,18.573000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,54.4,54.4*200.48,54.4*4.000,54.4*4.000*200.48,'av24082760067.828000014 ',54.4,54.4*4.000,54.4,54.4*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa5280166daa1912a'
20240906@073043.3288 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3291 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20240906@073043.3307 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3310 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.2231.00.2'
20240906@073043.3327 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3330 d09qmmo1eiu8o6gjntgqdli815 Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2231.00.2' and sa.armazem = 133 
20240906@073043.3406 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3409 d09qmmo1eiu8o6gjntgqdli815 Query : select st.stns valor from st where st.ref = '324.2231.00.2'
20240906@073043.3428 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240906@073043.3580 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.3598 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073043.3614 d09qmmo1eiu8o6gjntgqdli815 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073043.3629 d09qmmo1eiu8o6gjntgqdli815 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073043.3637 d09qmmo1eiu8o6gjntgqdli815 Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2300389200a'
20240906@073043.3662 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3665 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240906@073043.3678 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3681 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240906@073043.3693 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3697 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20240906@073043.3708 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3711 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240906@073043.3724 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.3727 d09qmmo1eiu8o6gjntgqdli815 Query : select st.usalote valor from st where st.ref = '324.1406.00.1'
20240906@073043.4088 d09qmmo1eiu8o6gjntgqdli815 Query : use flama_phc
20240906@073043.4091 d09qmmo1eiu8o6gjntgqdli815 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240906@073043.4184 d09qmmo1eiu8o6gjntgqdli815 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1854';
20240906@073043.4218 d09qmmo1eiu8o6gjntgqdli815 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1854';
20240906@073043.4912 7k58c00absvfaloiiskdeme33f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240906@073043.4995 7k58c00absvfaloiiskdeme33f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240906@073043.5529 7k58c00absvfaloiiskdeme33f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1855';
20240906@073043.6448 7k58c00absvfaloiiskdeme33f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1855';
20240906@073043.6791 7k58c00absvfaloiiskdeme33f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1855';
20240906@073043.7093 7k58c00absvfaloiiskdeme33f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1855';
20240906@073043.7452 81cigjmhagj3j69mqb9dg613cj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240906@073043.7464 81cigjmhagj3j69mqb9dg613cj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240906@073043.7521 81cigjmhagj3j69mqb9dg613cj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1856';
20240906@073043.7578 81cigjmhagj3j69mqb9dg613cj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1856';
20240906@073043.7631 81cigjmhagj3j69mqb9dg613cj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1856';
20240906@073043.7659 81cigjmhagj3j69mqb9dg613cj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1856';
20240906@073043.7698 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073043.7702 81cigjmhagj3j69mqb9dg613cj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240906@073043.7769 81cigjmhagj3j69mqb9dg613cj Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240906@073043.7809 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1667.00.1'
20240906@073043.7933 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.1667.00.1' and bi.lordem =10000
20240906@073043.8329 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362613,409000001 ' 
20240906@073043.8853 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1684.00.1'
20240906@073043.8985 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.1684.00.1' and bi.lordem =20000
20240906@073043.9353 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362690,478000002 ' 
20240906@073043.9686 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1684.00.1'
20240906@073043.9707 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.1684.00.1' and bi.lordem =20000
20240906@073043.9731 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362690,478000002 ' 
20240906@073043.9752 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1685.00.1'
20240906@073043.9953 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.1685.00.1' and bi.lordem =30000
20240906@073044.3010 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362710,605000003 ' 
20240906@073044.6400 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1685.00.1'
20240906@073044.6640 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.1685.00.1' and bi.lordem =30000
20240906@073044.6870 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362710,605000003 ' 
20240906@073044.7120 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.698.00.01'
20240906@073044.8910 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.698.00.01' and bi.lordem =40000
20240906@073044.1291 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362730,189000004 ' 
20240906@073044.1626 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.698.00.01'
20240906@073044.1648 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.698.00.01' and bi.lordem =40000
20240906@073044.1671 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362730,189000004 ' 
20240906@073044.1695 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.698.00.01'
20240906@073044.1715 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.698.00.01' and bi.lordem =40000
20240906@073044.1751 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362730,189000004 ' 
20240906@073044.1776 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20240906@073044.1909 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.675.00.01' and bi.lordem =50000
20240906@073044.2258 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362741,314000005 ' 
20240906@073044.2569 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20240906@073044.2590 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.675.00.01' and bi.lordem =50000
20240906@073044.2613 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362741,314000005 ' 
20240906@073044.2634 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.679.00.01'
20240906@073044.2757 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.679.00.01' and bi.lordem =60000
20240906@073044.3144 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362751,221000006 ' 
20240906@073044.3445 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.679.00.01'
20240906@073044.3466 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.679.00.01' and bi.lordem =60000
20240906@073044.3508 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362751,221000006 ' 
20240906@073044.4696 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.679.00.01'
20240906@073044.4716 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.679.00.01' and bi.lordem =60000
20240906@073044.4737 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362751,221000006 ' 
20240906@073044.4756 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1676.00.1'
20240906@073044.4872 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.1676.00.1' and bi.lordem =70000
20240906@073044.5197 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362762,266000007 ' 
20240906@073044.5504 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1676.00.1'
20240906@073044.5522 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.1676.00.1' and bi.lordem =70000
20240906@073044.5543 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362762,266000007 ' 
20240906@073044.5562 81cigjmhagj3j69mqb9dg613cj Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.642.00.01'
20240906@073044.5586 81cigjmhagj3j69mqb9dg613cj 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 = 0002074 and bi.ref ='324.642.00.01' and bi.lordem =80000
20240906@073044.5921 81cigjmhagj3j69mqb9dg613cj 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 = 'az24090362773,593000008 ' 
20240906@073044.6228 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.6231 81cigjmhagj3j69mqb9dg613cj Query : select top 1 1 valor from ts where ts.ndos = 5
20240906@073044.6267 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.6270 81cigjmhagj3j69mqb9dg613cj 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')
20240906@073044.6296 81cigjmhagj3j69mqb9dg613cj 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
20240906@073044.6329 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.6332 81cigjmhagj3j69mqb9dg613cj Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240906@073044.6374 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.6376 81cigjmhagj3j69mqb9dg613cj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240906@073044.6414 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.6417 81cigjmhagj3j69mqb9dg613cj Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20240906@073044.6463 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.6465 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from ts where ndos = 5
20240906@073044.6479 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.6496 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240906@073044.6508 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.6522 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240906@073044.6531 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.6545 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240906@073044.6554 81cigjmhagj3j69mqb9dg613cj 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
20240906@073044.6568 81cigjmhagj3j69mqb9dg613cj Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240906@073044.6594 81cigjmhagj3j69mqb9dg613cj Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240906@073044.6607 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.6612 81cigjmhagj3j69mqb9dg613cj Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20240906@073044.6627 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.6641 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240906@073044.6652 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66daa9459266daa194a1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240906@073044.6657 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.6671 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240906@073044.6682 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut66daa9459266daa194a1','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240906','08:00',?,?)
20240906@073044.6834 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.6852 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240906@073044.6867 81cigjmhagj3j69mqb9dg613cj 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 ('aut66daa9459266daa194a1','trf entre armazéns a','2024-09-06',5,439,?,?,?,?,?,?,?,?,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',?)
20240906@073044.7237 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.7240 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240906@073044.7254 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.7256 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20240906@073044.7272 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.7275 81cigjmhagj3j69mqb9dg613cj 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.1667.00.1' and sa.armazem = 133 
20240906@073044.7338 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.7340 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20240906@073044.7361 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240906@073044.7508 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.7523 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073044.7535 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.7549 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073044.7557 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240906@073044.7570 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073044.7582 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.7597 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073044.7609 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa4206666daa194b9','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073044.7793 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.7810 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073044.7824 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa4206666daa194b9',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,10000 ,89.6,89.6*200.48,89.6,89.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,89.6*18.000,89.6*18.000*200.48 ,36.603000,36.603000*200.48 ,36.603000,36.603000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.6,89.6*200.48,89.6*18.000,89.6*18.000*200.48,'az24090362613,409000001 ',89.6,89.6*18.000,89.6,89.6*18.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073044.8178 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.8182 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240906@073044.8195 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.8198 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20240906@073044.8213 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.8215 81cigjmhagj3j69mqb9dg613cj 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.1684.00.1' and sa.armazem = 133 
20240906@073044.8279 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.8282 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20240906@073044.8299 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1684.00.1'
20240906@073044.8448 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.8463 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073044.8478 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.8492 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073044.8500 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240906@073044.8525 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073044.8547 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.8561 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073044.8572 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa2835266daa194d0','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073044.8720 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.8735 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073044.8750 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa2835266daa194d0',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,20000 ,51.2,51.2*200.48,51.2,51.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,51.2*5.000,51.2*5.000*200.48 ,20.129000,20.129000*200.48 ,20.129000,20.129000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,51.2,51.2*200.48,51.2*5.000,51.2*5.000*200.48,'az24090362690,478000002 ',51.2,51.2*5.000,51.2,51.2*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073044.9334 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.9338 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240906@073044.9373 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.9397 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20240906@073044.9448 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.9451 81cigjmhagj3j69mqb9dg613cj 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.1684.00.1' and sa.armazem = 133 
20240906@073044.9473 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073044.9476 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20240906@073044.9494 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1684.00.1'
20240906@073044.9507 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.9524 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073044.9542 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.9557 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073044.9565 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240906@073044.9577 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073044.9589 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.9604 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073044.9616 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa0236966daa194ea','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073044.9763 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073044.9780 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073044.9806 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa0236966daa194ea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 25.000, 25.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 ,51.2,51.2*200.48,51.2,51.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,51.2*25.000,51.2*25.000*200.48 ,20.129000,20.129000*200.48 ,20.129000,20.129000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,51.2,51.2*200.48,51.2*25.000,51.2*25.000*200.48,'az24090362690,478000002 ',51.2,51.2*25.000,51.2,51.2*25.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.1130 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.1170 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240906@073045.1320 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.1350 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20240906@073045.1500 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.1530 81cigjmhagj3j69mqb9dg613cj 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.1685.00.1' and sa.armazem = 133 
20240906@073045.2180 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.2210 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20240906@073045.2390 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20240906@073045.3810 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.3970 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.4090 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.4240 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.4330 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240906@073045.4520 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.4640 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.4780 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.4900 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa8891966daa1950b','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.6400 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.6560 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.6700 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa8891966daa1950b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 16.000, 16.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,62.1,62.1*200.48,62.1,62.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,62.1*16.000,62.1*16.000*200.48 ,25.406000,25.406000*200.48 ,25.406000,25.406000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,62.1,62.1*200.48,62.1*16.000,62.1*16.000*200.48,'az24090362710,605000003 ',62.1,62.1*16.000,62.1,62.1*16.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.9910 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.9950 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240906@073045.1049 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.1051 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20240906@073045.1066 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.1068 81cigjmhagj3j69mqb9dg613cj 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.1685.00.1' and sa.armazem = 133 
20240906@073045.1101 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.1103 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1685.00.1'
20240906@073045.1121 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20240906@073045.1134 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.1149 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.1161 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.1177 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.1187 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240906@073045.1201 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.1213 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.1227 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.1237 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa0956866daa1951d','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.1430 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.1448 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.1464 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa0956866daa1951d',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,50000 ,62.1,62.1*200.48,62.1,62.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,62.1*4.000,62.1*4.000*200.48 ,25.406000,25.406000*200.48 ,25.406000,25.406000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,62.1,62.1*200.48,62.1*4.000,62.1*4.000*200.48,'az24090362710,605000003 ',62.1,62.1*4.000,62.1,62.1*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.2175 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.2256 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20240906@073045.3211 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.3214 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.698.00.01'
20240906@073045.3231 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.3234 81cigjmhagj3j69mqb9dg613cj 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.698.00.01' and sa.armazem = 133 
20240906@073045.3305 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.3308 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.698.00.01'
20240906@073045.3326 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.698.00.01'
20240906@073045.3469 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.3485 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.3507 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.3522 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.3531 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2301182200a'
20240906@073045.3550 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.3562 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.3577 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.3588 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa6164966daa19556','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.3737 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.3756 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.3771 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa6164966daa19556',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,60000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,115.2*1.000,115.2*1.000*200.48 ,37.773000,37.773000*200.48 ,37.773000,37.773000*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*1.000,115.2*1.000*200.48,'az24090362730,189000004 ',115.2,115.2*1.000,115.2,115.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.4083 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4087 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20240906@073045.4101 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4105 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.698.00.01'
20240906@073045.4122 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4125 81cigjmhagj3j69mqb9dg613cj 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.698.00.01' and sa.armazem = 133 
20240906@073045.4148 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4151 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.698.00.01'
20240906@073045.4169 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.698.00.01'
20240906@073045.4183 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.4199 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.4212 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.4227 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.4235 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2301182200a'
20240906@073045.4247 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.4260 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.4275 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.4286 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa2442766daa19568','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.4430 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.4446 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.4461 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa2442766daa19568',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,70000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,115.2*1.000,115.2*1.000*200.48 ,37.773000,37.773000*200.48 ,37.773000,37.773000*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*1.000,115.2*1.000*200.48,'az24090362730,189000004 ',115.2,115.2*1.000,115.2,115.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.4781 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4786 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20240906@073045.4882 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4888 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.698.00.01'
20240906@073045.4905 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4908 81cigjmhagj3j69mqb9dg613cj 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.698.00.01' and sa.armazem = 133 
20240906@073045.4940 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.4943 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.698.00.01'
20240906@073045.4962 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.698.00.01'
20240906@073045.4976 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.4993 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.5007 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.5022 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.5031 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2301182200a'
20240906@073045.5043 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.5059 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.5074 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.5109 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa7527566daa1957b','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.5262 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.5284 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.5300 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa7527566daa1957b',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,80000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,115.2*8.000,115.2*8.000*200.48 ,37.773000,37.773000*200.48 ,37.773000,37.773000*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*8.000,115.2*8.000*200.48,'az24090362730,189000004 ',115.2,115.2*8.000,115.2,115.2*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.5630 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.5634 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20240906@073045.5648 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.5651 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.675.00.01'
20240906@073045.5668 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.5670 81cigjmhagj3j69mqb9dg613cj 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.675.00.01' and sa.armazem = 133 
20240906@073045.5737 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.5740 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.675.00.01'
20240906@073045.5758 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20240906@073045.5905 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.5921 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.5933 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.5948 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.5956 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400282200a'
20240906@073045.5976 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.5988 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.6003 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.6015 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa5441366daa19592','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.6160 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.6176 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.6191 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa5441366daa19592',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,90000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*2.000,128*2.000*200.48 ,39.617000,39.617000*200.48 ,39.617000,39.617000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*2.000,128*2.000*200.48,'az24090362741,314000005 ',128,128*2.000,128,128*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.6495 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.6499 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20240906@073045.6513 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.6516 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.675.00.01'
20240906@073045.6532 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.6535 81cigjmhagj3j69mqb9dg613cj 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.675.00.01' and sa.armazem = 133 
20240906@073045.6557 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.6559 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.675.00.01'
20240906@073045.6578 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20240906@073045.6591 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.6607 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.6620 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.6634 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.6642 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400282200a'
20240906@073045.6655 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.6667 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.6682 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.6739 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa0827166daa195a2','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.6912 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.7663 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.8180 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa0827166daa195a2',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,100000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*8.000,128*8.000*200.48 ,39.617000,39.617000*200.48 ,39.617000,39.617000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*8.000,128*8.000*200.48,'az24090362741,314000005 ',128,128*8.000,128,128*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.8493 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.8497 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20240906@073045.8512 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.8515 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.679.00.01'
20240906@073045.8531 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.8534 81cigjmhagj3j69mqb9dg613cj 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.679.00.01' and sa.armazem = 133 
20240906@073045.8598 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.8600 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.679.00.01'
20240906@073045.8618 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.679.00.01'
20240906@073045.8758 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.8774 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.8785 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.8799 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.8807 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.679.00.01' and lote = 'r2400685200a'
20240906@073045.8825 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.8837 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.8851 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.8862 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa9704366daa195d7','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.9004 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.9019 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.9033 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa9704366daa195d7',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,110000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*3.000,128*3.000*200.48 ,43.478000,43.478000*200.48 ,43.478000,43.478000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*3.000,128*3.000*200.48,'az24090362751,221000006 ',128,128*3.000,128,128*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073045.9359 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.9403 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20240906@073045.9581 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.9584 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.679.00.01'
20240906@073045.9599 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.9602 81cigjmhagj3j69mqb9dg613cj 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.679.00.01' and sa.armazem = 133 
20240906@073045.9623 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073045.9629 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.679.00.01'
20240906@073045.9647 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.679.00.01'
20240906@073045.9661 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.9677 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.9697 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.9711 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.9719 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.679.00.01' and lote = 'r2400282100a'
20240906@073045.9732 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073045.9744 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.9759 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073045.9770 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa7854066daa195ed','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073045.9910 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073045.9928 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073045.9944 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa7854066daa195ed',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,120000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*5.000,128*5.000*200.48 ,43.478000,43.478000*200.48 ,43.478000,43.478000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*5.000,128*5.000*200.48,'az24090362751,221000006 ',128,128*5.000,128,128*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073046.2670 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2710 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20240906@073046.2850 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2870 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.679.00.01'
20240906@073046.3030 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.3050 81cigjmhagj3j69mqb9dg613cj 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.679.00.01' and sa.armazem = 133 
20240906@073046.3270 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.3300 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.679.00.01'
20240906@073046.3480 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.679.00.01'
20240906@073046.3620 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.3770 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.3900 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.4140 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.4220 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.679.00.01' and lote = 'r2400685200a'
20240906@073046.4350 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073046.4470 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.4610 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.4730 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa0494166daa1960a','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073046.6170 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.6350 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.6510 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa0494166daa1960a',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,130000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*2.000,128*2.000*200.48 ,43.478000,43.478000*200.48 ,43.478000,43.478000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*2.000,128*2.000*200.48,'az24090362751,221000006 ',128,128*2.000,128,128*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073046.9810 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.9850 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240906@073046.1000 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.1002 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240906@073046.1019 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.1022 81cigjmhagj3j69mqb9dg613cj 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.1676.00.1' and sa.armazem = 133 
20240906@073046.1086 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.1089 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240906@073046.1107 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1676.00.1'
20240906@073046.1251 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.1267 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.1280 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.1295 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.1303 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240906@073046.1317 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073046.1330 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.1344 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.1356 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa8136666daa19620','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073046.1500 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.1516 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.1533 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa8136666daa19620',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,140000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,57.6*4.000,57.6*4.000*200.48 ,24.530000,24.530000*200.48 ,24.530000,24.530000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,57.6,57.6*200.48,57.6*4.000,57.6*4.000*200.48,'az24090362762,266000007 ',57.6,57.6*4.000,57.6,57.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073046.2111 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2131 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240906@073046.2146 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2148 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240906@073046.2163 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2166 81cigjmhagj3j69mqb9dg613cj 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.1676.00.1' and sa.armazem = 133 
20240906@073046.2188 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2191 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20240906@073046.2209 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1676.00.1'
20240906@073046.2222 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.2238 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.2250 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.2264 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.2273 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240906@073046.2285 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073046.2297 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.2312 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.2323 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa6479566daa19638','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073046.2469 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.2486 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.2502 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa6479566daa19638',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,150000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,57.6*12.000,57.6*12.000*200.48 ,24.530000,24.530000*200.48 ,24.530000,24.530000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,57.6,57.6*200.48,57.6*12.000,57.6*12.000*200.48,'az24090362762,266000007 ',57.6,57.6*12.000,57.6,57.6*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073046.2814 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2817 81cigjmhagj3j69mqb9dg613cj Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240906@073046.2831 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2834 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.642.00.01'
20240906@073046.2850 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2853 81cigjmhagj3j69mqb9dg613cj 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.642.00.01' and sa.armazem = 133 
20240906@073046.2875 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.2877 81cigjmhagj3j69mqb9dg613cj Query : select st.stns valor from st where st.ref = '324.642.00.01'
20240906@073046.2895 81cigjmhagj3j69mqb9dg613cj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240906@073046.2909 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.2924 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.2937 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.2952 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.2960 81cigjmhagj3j69mqb9dg613cj Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240906@073046.2973 81cigjmhagj3j69mqb9dg613cj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@073046.2985 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.3000 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240906@073046.3011 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66daa0375166daa19648','aut66daa9459266daa194a1',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 = 'aut66daa9459266daa194a1'
20240906@073046.3160 81cigjmhagj3j69mqb9dg613cj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@073046.3177 81cigjmhagj3j69mqb9dg613cj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240906@073046.3193 81cigjmhagj3j69mqb9dg613cj 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 'aut66daa0375166daa19648',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20.000, 20.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,160000 ,54.4,54.4*200.48,54.4,54.4*200.48 ,0,0,'un ','' ,bo.marcada,1 ,54.4*20.000,54.4*20.000*200.48 ,18.573000,18.573000*200.48 ,18.573000,18.573000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,54.4,54.4*200.48,54.4*20.000,54.4*20.000*200.48,'az24090362773,593000008 ',54.4,54.4*20.000,54.4,54.4*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66daa9459266daa194a1'
20240906@073046.3550 81cigjmhagj3j69mqb9dg613cj Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut66daa9459266daa194a1','','wait',5,'adm12071144683,938000003','')
20240906@073046.3794 81cigjmhagj3j69mqb9dg613cj Query : use flama_phc
20240906@073046.3798 81cigjmhagj3j69mqb9dg613cj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240906@073046.4040 81cigjmhagj3j69mqb9dg613cj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1856';
20240906@073046.4094 81cigjmhagj3j69mqb9dg613cj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1856';

20240906@074612.4254 hmq5cdm8j0uh6gv1m9ef34ude8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1857';
20240906@074612.4314 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1857';
20240906@074612.4343 hmq5cdm8j0uh6gv1m9ef34ude8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1857';
20240906@074612.4403 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.4407 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240906@074612.4490 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.4493 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2163
20240906@074612.4596 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20240906@074612.5864 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240906@074612.6054 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.6058 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240906@074612.6298 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.6301 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 1 valor from td where td.ndoc = 39
20240906@074612.6432 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.6436 hmq5cdm8j0uh6gv1m9ef34ude8 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')
20240906@074612.6469 hmq5cdm8j0uh6gv1m9ef34ude8 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
20240906@074612.6665 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.6668 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 ~inactivo valor from cl where no = '100204' and estab = 0 order by inactivo desc
20240906@074612.6820 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.6824 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240906@074612.6967 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.6971 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240906@074612.7025 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.7028 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select szadrsstamp valor from szadrs where szadrsdesc='eurolouÇas, lda'
20240906@074612.7082 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074612.7085 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from td where ndoc = 39
20240906@074612.7194 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240906@074612.7269 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074612.7288 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240906@074612.7313 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074612.7329 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240906@074612.7400 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074612.7416 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240906@074612.7432 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240906@074612.7817 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240906@074612.7935 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074612.7954 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240906@074612.7973 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66daa4605766daa534b5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240906@074612.8333 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074612.8357 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240906@074612.8427 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240906@074612.8554 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240906@074612.8701 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240906@074612.8809 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240906@074612.8898 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240906@074612.8987 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240906@074612.9124 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66daa4605766daa534b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240906@074612.9963 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 fno valor from wsftdata order by fno desc
20240906@074613.2250 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4560 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240906@074613.7150 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 'normal' from dummy
20240906@074613.7700 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66daa4605766daa534b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',624,100204,0,'2024-09-06',39,'euro',0,0,2024 ,?,?)
20240906@074613.1819 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074613.1823 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240906@074613.1850 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2066.00.1'
20240906@074613.2027 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.2046 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.2079 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.2096 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.2182 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@074613.2197 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240906@074613.2212 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.2232 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.2247 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66daa4213766daa53536','aut66daa4605766daa534b5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240906@074613.2314 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.2333 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.2368 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66daa4213766daa53536',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66daa4605766daa534b5' ,0,0 ,2,23.00,10000,?,?,?,?)
20240906@074613.3276 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.3296 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.3324 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.3348 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.3359 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@074613.3376 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.3396 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.3410 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66daa5585766daa53552','aut66daa4605766daa534b5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240906@074613.3415 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.3434 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.3470 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66daa5585766daa53552',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66daa4605766daa534b5' ,0,0 ,2,23.00,20000,?,?,?)
20240906@074613.3801 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074613.3805 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20240906@074613.3828 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240906@074613.4005 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4025 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.4056 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4089 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.4099 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@074613.4113 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2300974200a'
20240906@074613.4129 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4145 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.4160 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66daa1164866daa53564','aut66daa4605766daa534b5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240906@074613.4165 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4183 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.4214 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66daa1164866daa53564',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66daa4605766daa534b5' ,0,0 ,2,23.00,40000,?,?,?,?)
20240906@074613.4517 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4536 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.4567 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4629 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.4642 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@074613.4655 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4673 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.4687 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66daa1214166daa53571','aut66daa4605766daa534b5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240906@074613.4693 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.4711 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.4743 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66daa1214166daa53571',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66daa4605766daa534b5' ,0,0 ,2,23.00,50000,?,?,?)
20240906@074613.5049 hmq5cdm8j0uh6gv1m9ef34ude8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66daa4605766daa534b5','2405759','wait',39,'adm09112754980.682000002')
20240906@074613.5153 hmq5cdm8j0uh6gv1m9ef34ude8 Query : use flama_phc
20240906@074613.5157 hmq5cdm8j0uh6gv1m9ef34ude8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240906@074613.5194 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1857';
20240906@074613.5226 hmq5cdm8j0uh6gv1m9ef34ude8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1857';
20240906@074613.5273 hmq5cdm8j0uh6gv1m9ef34ude8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1857';
20240906@074613.5301 hmq5cdm8j0uh6gv1m9ef34ude8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1857';
20240906@074613.5924 kfigo0ag1ccis0csrm5cde65ev Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240906@074613.5938 kfigo0ag1ccis0csrm5cde65ev Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240906@074613.6001 kfigo0ag1ccis0csrm5cde65ev Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1858';
20240906@074613.6066 kfigo0ag1ccis0csrm5cde65ev Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1858';
20240906@074613.6123 kfigo0ag1ccis0csrm5cde65ev Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1858';
20240906@074613.6152 kfigo0ag1ccis0csrm5cde65ev Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1858';
20240906@074613.6208 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.6212 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240906@074613.6285 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.6290 kfigo0ag1ccis0csrm5cde65ev Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20240906@074613.6396 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4840.00.1'
20240906@074613.6585 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.6590 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240906@074613.6632 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.6636 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 1 valor from td where td.ndoc = 39
20240906@074613.6671 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.6675 kfigo0ag1ccis0csrm5cde65ev 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')
20240906@074613.6708 kfigo0ag1ccis0csrm5cde65ev 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
20240906@074613.6752 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.6755 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240906@074613.8061 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.8065 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240906@074613.8101 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.8104 kfigo0ag1ccis0csrm5cde65ev Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240906@074613.8153 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.8157 kfigo0ag1ccis0csrm5cde65ev Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alcochete'
20240906@074613.8216 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.8220 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from td where ndoc = 39
20240906@074613.8235 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240906@074613.8254 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.8273 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240906@074613.8296 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.8312 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240906@074613.8344 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.8361 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240906@074613.8377 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240906@074613.8447 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240906@074613.8463 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.8480 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240906@074613.8499 kfigo0ag1ccis0csrm5cde65ev Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66daa5580066daa535cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240906@074613.8693 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.8714 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240906@074613.8752 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240906@074613.8767 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240906@074613.8782 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240906@074613.8796 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240906@074613.8809 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240906@074613.8822 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240906@074613.8835 kfigo0ag1ccis0csrm5cde65ev Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66daa5580066daa535cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240906@074613.9111 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 fno valor from wsftdata order by fno desc
20240906@074613.9132 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.9152 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240906@074613.9203 kfigo0ag1ccis0csrm5cde65ev Query : select 'normal' from dummy
20240906@074613.9221 kfigo0ag1ccis0csrm5cde65ev Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66daa5580066daa535cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',625,101900,0,'2024-09-06',39,'euro',0,0,2024 ,?,?)
20240906@074613.9552 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074613.9556 kfigo0ag1ccis0csrm5cde65ev Query : select st.usalote valor from st where st.ref = '324.4840.00.1'
20240906@074613.9583 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4840.00.1'
20240906@074613.9751 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.9771 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.9801 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.9819 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.9829 kfigo0ag1ccis0csrm5cde65ev Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@074613.9843 kfigo0ag1ccis0csrm5cde65ev Query : select sestamp valor from se where ref ='324.4840.00.1' and lote = 'r2400064200a'
20240906@074613.9861 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.9877 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240906@074613.9890 kfigo0ag1ccis0csrm5cde65ev Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66daa3634166daa535f0','aut66daa5580066daa535cc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240906@074613.9896 kfigo0ag1ccis0csrm5cde65ev Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@074613.9912 kfigo0ag1ccis0csrm5cde65ev Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240906@074613.9948 kfigo0ag1ccis0csrm5cde65ev Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66daa3634166daa535f0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66daa5580066daa535cc' ,0,0 ,2,23.00,10000,?,?,?,?)
20240906@074614.6800 kfigo0ag1ccis0csrm5cde65ev Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66daa5580066daa535cc','2405761','wait',39,'adm09112754980.682000002')
20240906@074614.7670 kfigo0ag1ccis0csrm5cde65ev Query : use flama_phc
20240906@074614.7710 kfigo0ag1ccis0csrm5cde65ev Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240906@074614.8070 kfigo0ag1ccis0csrm5cde65ev Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1858';
20240906@074614.8410 kfigo0ag1ccis0csrm5cde65ev Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1858';
20240906@074614.8900 kfigo0ag1ccis0csrm5cde65ev Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1858';
20240906@074614.9200 kfigo0ag1ccis0csrm5cde65ev Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1858';

20240906@091937.3336 3j1hkint8l1osq13bjguq57j9h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1859';
20240906@091937.3688 3j1hkint8l1osq13bjguq57j9h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1859';
20240906@091937.3803 3j1hkint8l1osq13bjguq57j9h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1859';
20240906@091937.3918 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@091937.3921 3j1hkint8l1osq13bjguq57j9h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240906@091937.4328 3j1hkint8l1osq13bjguq57j9h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20240906@091937.4855 3j1hkint8l1osq13bjguq57j9h 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 = 2400684 and bi.ref ='324.675.00.01' and bi.lordem =20000
20240906@091937.5565 3j1hkint8l1osq13bjguq57j9h 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 = 'cps24060555330,218000002 ' 
20240906@091937.6299 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@091937.6342 3j1hkint8l1osq13bjguq57j9h Query : select top 1 1 valor from ts where ts.ndos = 61
20240906@091937.6813 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@091937.6854 3j1hkint8l1osq13bjguq57j9h 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')
20240906@091937.7118 3j1hkint8l1osq13bjguq57j9h 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
20240906@091937.7717 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@091937.7755 3j1hkint8l1osq13bjguq57j9h Query : select top 1 ~inactivo valor from fl where no = '202549' and estab = 00 order by inactivo desc
20240906@091937.8341 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@091937.8388 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from ts where ndos = 61
20240906@091937.8678 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091937.9321 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240906@091937.9500 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091937.9783 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240906@091937.9951 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091938.1290 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240906@091938.2950 3j1hkint8l1osq13bjguq57j9h 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
20240906@091938.1827 3j1hkint8l1osq13bjguq57j9h Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240906@091938.2265 3j1hkint8l1osq13bjguq57j9h Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240906@091938.2529 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@091938.2612 3j1hkint8l1osq13bjguq57j9h Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202549' and estab=00
20240906@091938.2820 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091938.2844 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240906@091938.3066 3j1hkint8l1osq13bjguq57j9h Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66dab7430766dabb1a3d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240906@091938.3227 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091938.3481 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240906@091938.3688 3j1hkint8l1osq13bjguq57j9h Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66dab7430766dabb1a3d','--','bo',7.8768171384850803366 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240906@091938.4084 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091938.4101 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240906@091938.4462 3j1hkint8l1osq13bjguq57j9h 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 ('aut66dab7430766dabb1a3d','guia r. fornecedor','2024-09-06',61,2402501,?,?,?,?,?,?,?,?,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')
20240906@091944.2449 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@091944.2452 3j1hkint8l1osq13bjguq57j9h Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20240906@091944.2696 3j1hkint8l1osq13bjguq57j9h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20240906@091944.3301 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091944.3797 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240906@091944.4051 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091944.4677 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240906@091944.5023 3j1hkint8l1osq13bjguq57j9h Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400684200a'
20240906@091944.5449 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091944.5465 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240906@091944.5662 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091944.5912 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240906@091944.6128 3j1hkint8l1osq13bjguq57j9h Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66dab2995366dabb208a',?,?,'20240906',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240906@091944.7076 3j1hkint8l1osq13bjguq57j9h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240906@091944.7392 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091944.7642 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240906@091944.7848 3j1hkint8l1osq13bjguq57j9h Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66dab5384966dabb20b4','aut66dab7430766dabb1a3d',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 = 'aut66dab7430766dabb1a3d'
20240906@091944.8140 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240906@091944.8228 3j1hkint8l1osq13bjguq57j9h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240906@091944.8399 3j1hkint8l1osq13bjguq57j9h 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 'aut66dab5384966dabb20b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 780, 780*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,39.21,39.21*200.48,39.21,39.21*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,39.21*780,39.21*780*200.48 ,39.617000,39.617000*200.48 ,39.617000,39.617000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,39.21,39.21*200.48,39.21*780,39.21*780*200.48,'cps24060555330,218000002 ',308.85,308.85*780,308.85,308.85*780,?,?,?,4 from bo bo where bo.bostamp = 'aut66dab7430766dabb1a3d'
20240906@092007.3727 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@092007.3769 3j1hkint8l1osq13bjguq57j9h Query : declare @bostamp varchar(25) = 'aut66dab7430766dabb1a3d' ,@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 
20240906@092025.5929 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@092025.5933 3j1hkint8l1osq13bjguq57j9h Query : select 1 valor from bo where bo.bostamp = 'aut66dab7430766dabb1a3d'
20240906@092025.6023 3j1hkint8l1osq13bjguq57j9h 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) = 'aut66dab7430766dabb1a3d' 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 
20240906@092029.4270 3j1hkint8l1osq13bjguq57j9h Query : use flama_phc
20240906@092029.4310 3j1hkint8l1osq13bjguq57j9h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240906@092029.8340 3j1hkint8l1osq13bjguq57j9h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1859';
20240906@092029.1130 3j1hkint8l1osq13bjguq57j9h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1859';

20240909@073336.8603 ogpjgao5f8rpnl6cdjui0i9jol Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1860';
20240909@073336.8669 ogpjgao5f8rpnl6cdjui0i9jol Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1860';
20240909@073336.8697 ogpjgao5f8rpnl6cdjui0i9jol Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1860';
20240909@073336.8758 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073336.8762 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073336.8871 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073336.8874 ogpjgao5f8rpnl6cdjui0i9jol Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20240909@073336.8967 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2000.94.1'
20240909@073336.9131 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405762 and bi.ref ='324.2000.94.1' and bi.lordem =1
20240909@073336.9487 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.900.94.01'
20240909@073336.9652 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405762 and bi.ref ='324.900.94.01' and bi.lordem =2
20240909@073337.9550 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20240909@073337.1209 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405762 and bi.ref ='324.700.94.01' and bi.lordem =3
20240909@073337.1761 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240909@073337.1931 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405762 and bi.ref ='324.2200.94.1' and bi.lordem =4
20240909@073337.2302 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240909@073337.2324 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405762 and bi.ref ='324.2200.94.1' and bi.lordem =5
20240909@073337.2680 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.2683 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073337.2880 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.2884 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073337.2984 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.2988 ogpjgao5f8rpnl6cdjui0i9jol 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')
20240909@073337.3080 ogpjgao5f8rpnl6cdjui0i9jol 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
20240909@073337.3217 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.3221 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 ~inactivo valor from cl where no = '199800' and estab = 0 order by inactivo desc
20240909@073337.3358 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.3361 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073337.3458 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.3462 ogpjgao5f8rpnl6cdjui0i9jol Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073337.3537 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.3541 ogpjgao5f8rpnl6cdjui0i9jol Query : select szadrsstamp valor from szadrs where szadrsdesc='740 ent vnr bligeiro'
20240909@073337.3590 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.3595 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from td where ndoc = 39
20240909@073337.3669 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073337.3742 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.4079 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073337.4155 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.4171 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073337.4204 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.4221 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073337.4355 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073337.4833 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073337.4940 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.4958 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073337.5002 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de96713966de96c16a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073337.5319 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.5340 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073337.5381 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073337.5487 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073337.5571 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073337.5647 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073337.5722 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073337.5826 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073337.5916 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de96713966de96c16a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073337.6464 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073337.6559 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.6579 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073337.6608 ogpjgao5f8rpnl6cdjui0i9jol Query : select 'normal' from dummy
20240909@073337.6654 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de96713966de96c16a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',626,199800,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073337.7260 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.7264 ogpjgao5f8rpnl6cdjui0i9jol Query : select st.usalote valor from st where st.ref = '324.2000.94.1'
20240909@073337.7390 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2000.94.1'
20240909@073337.8321 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.8574 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073337.8608 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.8628 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073337.8640 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073337.8687 ogpjgao5f8rpnl6cdjui0i9jol Query : select sestamp valor from se where ref ='324.2000.94.1' and lote = 'r2300916200a'
20240909@073337.8765 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.8782 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073337.8798 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95187666de96c1d6','aut66de96713966de96c16a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073337.8937 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.8956 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073337.8991 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de95187666de96c1d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de96713966de96c16a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073337.9480 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073337.9483 ogpjgao5f8rpnl6cdjui0i9jol Query : select st.usalote valor from st where st.ref = '324.900.94.01'
20240909@073337.9506 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.900.94.01'
20240909@073337.9665 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.9684 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073337.9713 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.9730 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073337.9740 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073337.9755 ogpjgao5f8rpnl6cdjui0i9jol Query : select sestamp valor from se where ref ='324.900.94.01' and lote = 'r2300952200a'
20240909@073337.9783 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.9816 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073337.9831 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93358466de96c1ee','aut66de96713966de96c16a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073337.9835 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073337.9852 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073337.9885 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93358466de96c1ee',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66de96713966de96c16a' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240909@073338.1600 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073338.1640 ogpjgao5f8rpnl6cdjui0i9jol Query : select st.usalote valor from st where st.ref = '324.700.94.01'
20240909@073338.1890 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.700.94.01'
20240909@073338.3510 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.3700 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073338.4010 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.4190 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073338.4290 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073338.4420 ogpjgao5f8rpnl6cdjui0i9jol Query : select sestamp valor from se where ref ='324.700.94.01' and lote = 'r2300913100a'
20240909@073338.4580 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.4750 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073338.4890 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de90951966de96c20b','aut66de96713966de96c16a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073338.4940 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.5140 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073338.5650 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de90951966de96c20b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66de96713966de96c16a' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240909@073338.8480 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073338.8510 ogpjgao5f8rpnl6cdjui0i9jol Query : select st.usalote valor from st where st.ref = '324.2200.94.1'
20240909@073338.8770 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2200.94.1'
20240909@073338.1039 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.1059 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073338.1092 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.1110 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073338.1121 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073338.1136 ogpjgao5f8rpnl6cdjui0i9jol Query : select sestamp valor from se where ref ='324.2200.94.1' and lote = 'r2400046200a'
20240909@073338.1165 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.1181 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073338.1196 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99175166de96c21c','aut66de96713966de96c16a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073338.1201 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.1220 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073338.1266 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99175166de96c21c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66de96713966de96c16a' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073338.1603 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073338.1607 ogpjgao5f8rpnl6cdjui0i9jol Query : select st.usalote valor from st where st.ref = '324.2200.94.1'
20240909@073338.1635 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2200.94.1'
20240909@073338.1668 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.1688 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073338.1904 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.1928 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073338.1939 ogpjgao5f8rpnl6cdjui0i9jol Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073338.1954 ogpjgao5f8rpnl6cdjui0i9jol Query : select sestamp valor from se where ref ='324.2200.94.1' and lote = 'r2400046200a'
20240909@073338.1980 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.1998 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073338.2011 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96835866de96c230','aut66de96713966de96c16a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073338.2016 ogpjgao5f8rpnl6cdjui0i9jol Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073338.2032 ogpjgao5f8rpnl6cdjui0i9jol Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073338.2065 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de96835866de96c230',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66de96713966de96c16a' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240909@073338.2351 ogpjgao5f8rpnl6cdjui0i9jol Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de96713966de96c16a','2405762','wait',39,'adm09112754980.682000002')
20240909@073338.2459 ogpjgao5f8rpnl6cdjui0i9jol Query : use flama_phc
20240909@073338.2463 ogpjgao5f8rpnl6cdjui0i9jol Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073338.2495 ogpjgao5f8rpnl6cdjui0i9jol Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1860';
20240909@073338.2526 ogpjgao5f8rpnl6cdjui0i9jol Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1860';
20240909@073338.2567 ogpjgao5f8rpnl6cdjui0i9jol Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1860';
20240909@073338.2594 ogpjgao5f8rpnl6cdjui0i9jol Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1860';
20240909@073338.3214 t6agplss09ecmebgm5kjdsumb2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073338.3226 t6agplss09ecmebgm5kjdsumb2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073338.3287 t6agplss09ecmebgm5kjdsumb2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1861';
20240909@073338.3382 t6agplss09ecmebgm5kjdsumb2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1861';
20240909@073338.3441 t6agplss09ecmebgm5kjdsumb2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1861';
20240909@073338.3475 t6agplss09ecmebgm5kjdsumb2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1861';
20240909@073338.3528 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073338.3533 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073338.3609 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073338.3613 t6agplss09ecmebgm5kjdsumb2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6975
20240909@073338.3726 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240909@073338.3907 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='304.421.00.04' and bi.lordem =1
20240909@073338.4257 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2222.00.1'
20240909@073338.4426 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.2222.00.1' and bi.lordem =2
20240909@073338.4767 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20240909@073338.4942 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.2224.00.1' and bi.lordem =3
20240909@073338.5278 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240909@073338.5448 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.645.00.01' and bi.lordem =4
20240909@073338.5845 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240909@073338.6035 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.646.00.01' and bi.lordem =5
20240909@073338.6389 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240909@073338.6412 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.646.00.01' and bi.lordem =5
20240909@073338.6443 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@073338.6607 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.642.00.01' and bi.lordem =6
20240909@073338.6948 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@073338.6971 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.642.00.01' and bi.lordem =6
20240909@073338.6989 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1528.00.1'
20240909@073338.7153 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.1528.00.1' and bi.lordem =7
20240909@073338.7494 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240909@073338.7663 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.5342.00.1' and bi.lordem =8
20240909@073338.8047 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240909@073338.8212 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.948.00.01' and bi.lordem =9
20240909@073338.8616 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240909@073338.8781 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.958.00.01' and bi.lordem =10
20240909@073338.9114 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240909@073338.9135 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405763 and bi.ref ='324.958.00.01' and bi.lordem =10
20240909@073338.9154 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073338.9157 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073338.9192 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073338.9195 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073338.9227 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073338.9231 t6agplss09ecmebgm5kjdsumb2 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')
20240909@073338.9261 t6agplss09ecmebgm5kjdsumb2 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
20240909@073338.9300 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073338.9309 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240909@073339.5380 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.5420 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073339.5750 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.5790 t6agplss09ecmebgm5kjdsumb2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073339.6200 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.6230 t6agplss09ecmebgm5kjdsumb2 Query : select szadrsstamp valor from szadrs where szadrsdesc='eldisser, s.a. - tarragona'
20240909@073339.6750 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.6790 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from td where ndoc = 39
20240909@073339.6920 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073339.7080 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7260 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073339.7500 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7660 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073339.7980 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.8340 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073339.8490 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073339.9220 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073339.9380 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.9550 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073339.9740 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073339.1166 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.1186 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073339.1223 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073339.1236 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073339.1250 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073339.1264 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073339.1279 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073339.1294 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073339.1307 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de93289266de96c314',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073339.1566 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073339.1587 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.1605 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073339.1632 t6agplss09ecmebgm5kjdsumb2 Query : select 'normal' from dummy
20240909@073339.1660 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de93289266de96c314',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',627,200500,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073339.2171 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.2195 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240909@073339.2222 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20240909@073339.2379 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.2398 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.2440 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.2456 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.2466 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.2479 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240909@073339.2508 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.2526 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.2539 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98413066de96c33d','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.2545 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.2562 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.2603 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98413066de96c33d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073339.2914 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.2935 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.2969 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.2985 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.2996 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.3018 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.3039 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.3053 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de97063466de96c349','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.3058 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.3075 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.3106 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de97063466de96c349',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073339.3380 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.3383 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.2222.00.1'
20240909@073339.3406 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2222.00.1'
20240909@073339.3605 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.3626 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.3656 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.3672 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.3682 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.3697 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.2222.00.1' and lote = 'r2301281400a'
20240909@073339.3724 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.3739 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.3754 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96566966de96c35a','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.3759 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.3776 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.3808 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de96566966de96c35a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073339.4085 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.4088 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20240909@073339.4114 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2224.00.1'
20240909@073339.4807 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.4827 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.4854 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.4870 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.4900 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.4914 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20240909@073339.4931 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.4948 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.4964 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98562666de96c378','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.4970 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.4989 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.5021 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98562666de96c378',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240909@073339.5293 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.5296 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240909@073339.5322 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073339.5481 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.5500 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.5530 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.5547 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.5558 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.5574 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400055200a'
20240909@073339.5592 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.5609 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.5623 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94468166de96c388','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.5628 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.5645 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.5679 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de94468166de96c388',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240909@073339.5972 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.5992 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.6021 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.6040 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.6050 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.6066 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.6083 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.6097 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94663366de96c394','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.6102 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.6119 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.6153 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de94663366de96c394',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,70000,?,?,?)
20240909@073339.6418 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.6422 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240909@073339.6448 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073339.6600 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.6621 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.6652 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.6670 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.6681 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.6695 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240909@073339.6713 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.6730 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.6745 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93883066de96c3a3','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.6756 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.6774 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.6819 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93883066de96c3a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240909@073339.7128 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7147 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.7203 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7221 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.7231 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.7245 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7263 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.7279 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98153566de96c3b0','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.7284 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7301 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.7333 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de98153566de96c3b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,100000,?,?,?)
20240909@073339.7604 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.7607 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240909@073339.7629 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073339.7646 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7678 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.7710 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7742 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.7753 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.7767 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240909@073339.7781 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7799 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.7814 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99714866de96c3bd','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.7833 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.7852 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.7930 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99714866de96c3bd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240909@073339.8229 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.8249 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.8280 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.8298 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.8309 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.8324 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.8342 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.8356 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98737166de96c3cb','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.8361 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.8380 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.8417 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de98737166de96c3cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,130000,?,?,?)
20240909@073339.8680 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.8683 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@073339.8710 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@073339.8867 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.8885 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.8916 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.8934 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.8953 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073339.8968 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@073339.9001 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.9019 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073339.9032 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99434266de96c3db','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073339.9037 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.9066 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.9105 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99434266de96c3db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20240909@073339.9403 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073339.9406 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@073339.9429 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@073339.9447 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073339.9468 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073339.9499 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.7440 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.7910 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073340.8070 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@073340.8230 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.1128 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.1481 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de90677666de96c414','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073340.1486 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.1507 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.1542 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de90677666de96c414',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240909@073340.1831 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073340.1835 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.1528.00.1'
20240909@073340.1858 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1528.00.1'
20240909@073340.2018 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.2036 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.2068 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.2086 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.2095 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073340.2110 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.1528.00.1' and lote = 'r2200263100a'
20240909@073340.2138 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.2156 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.2174 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de90144066de96c434','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073340.2180 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.2275 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.2423 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de90144066de96c434',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20240909@073340.2693 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073340.2697 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240909@073340.2723 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073340.2885 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.2905 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.2939 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.2967 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.2978 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073340.2993 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20240909@073340.3008 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.3023 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.3036 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96807366de96c449','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073340.3040 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.3056 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.3096 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de96807366de96c449',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20240909@073340.3436 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.3489 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.3518 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.3536 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.3545 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073340.3560 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.3577 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.3590 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92868766de96c456','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073340.3595 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.3611 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.3645 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de92868766de96c456',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,190000,?,?,?)
20240909@073340.3929 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073340.3933 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20240909@073340.3958 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073340.4120 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.4139 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.4169 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.4185 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.4195 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073340.4222 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20240909@073340.4250 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.4281 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.4295 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99283566de96c467','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073340.4300 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.4317 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.4349 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99283566de96c467',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20240909@073340.4617 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073340.4620 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240909@073340.4644 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.958.00.01'
20240909@073340.4819 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.4848 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.4876 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.4893 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.4903 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073340.4919 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240909@073340.4947 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.4964 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.4978 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99423566de96c478','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073340.4983 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.5000 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.5038 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99423566de96c478',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240909@073340.5308 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073340.5313 t6agplss09ecmebgm5kjdsumb2 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240909@073340.5338 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.958.00.01'
20240909@073340.5354 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.5374 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.5403 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.5421 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.5430 t6agplss09ecmebgm5kjdsumb2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073340.5444 t6agplss09ecmebgm5kjdsumb2 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240909@073340.5458 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.5489 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073340.5502 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96977566de96c485','aut66de93289266de96c314' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073340.5507 t6agplss09ecmebgm5kjdsumb2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073340.5525 t6agplss09ecmebgm5kjdsumb2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073340.5557 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de96977566de96c485',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66de93289266de96c314' ,0,0 ,2,23.00,230000,?,?,?,?,?)
20240909@073340.5846 t6agplss09ecmebgm5kjdsumb2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de93289266de96c314','2405763','wait',39,'adm09112754980.682000002')
20240909@073340.5924 t6agplss09ecmebgm5kjdsumb2 Query : use flama_phc
20240909@073340.5928 t6agplss09ecmebgm5kjdsumb2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073340.5961 t6agplss09ecmebgm5kjdsumb2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1861';
20240909@073340.5993 t6agplss09ecmebgm5kjdsumb2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1861';
20240909@073340.6090 t6agplss09ecmebgm5kjdsumb2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1861';
20240909@073340.6122 t6agplss09ecmebgm5kjdsumb2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1861';
20240909@073340.7137 amrpd8dgd6g5acf26gf58ri3ls Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073340.7149 amrpd8dgd6g5acf26gf58ri3ls Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073340.7232 amrpd8dgd6g5acf26gf58ri3ls Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1862';
20240909@073340.7315 amrpd8dgd6g5acf26gf58ri3ls Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1862';
20240909@073340.7367 amrpd8dgd6g5acf26gf58ri3ls Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1862';
20240909@073340.7393 amrpd8dgd6g5acf26gf58ri3ls Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1862';
20240909@073340.7444 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073340.7448 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073340.7517 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073340.7520 amrpd8dgd6g5acf26gf58ri3ls Query : select no, estab,szadrsdesc from szadrs where u_coddest=6625
20240909@073340.7608 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2222.00.1'
20240909@073340.7629 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.2222.00.1' and bi.lordem =1
20240909@073340.7960 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240909@073340.7981 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.645.00.01' and bi.lordem =2
20240909@073340.8323 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240909@073340.8344 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.645.00.01' and bi.lordem =3
20240909@073340.9905 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240909@073340.9928 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.646.00.01' and bi.lordem =4
20240909@073341.2710 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@073341.3050 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.642.00.01' and bi.lordem =5
20240909@073341.6540 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@073341.6790 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.642.00.01' and bi.lordem =5
20240909@073341.6980 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@073341.7770 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.642.00.01' and bi.lordem =5
20240909@073341.7980 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240909@073341.1057 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405764 and bi.ref ='324.4521.00.1' and bi.lordem =6
20240909@073341.1409 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1414 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073341.1450 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1454 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073341.1487 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1491 amrpd8dgd6g5acf26gf58ri3ls 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')
20240909@073341.1528 amrpd8dgd6g5acf26gf58ri3ls 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
20240909@073341.1576 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1580 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240909@073341.1614 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1618 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073341.1650 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1653 amrpd8dgd6g5acf26gf58ri3ls Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073341.1706 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1710 amrpd8dgd6g5acf26gf58ri3ls Query : select szadrsstamp valor from szadrs where szadrsdesc='eldisser - mesur'
20240909@073341.1769 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.1772 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from td where ndoc = 39
20240909@073341.1791 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073341.1880 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.1951 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073341.2096 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.2116 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073341.2204 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.2222 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073341.2331 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073341.2585 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073341.2606 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.2625 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073341.3318 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073341.3594 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.3617 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073341.3657 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073341.3673 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073341.3688 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073341.3713 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073341.3728 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073341.3742 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073341.3756 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de96153066de96c538',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073341.4018 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073341.4040 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.4060 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073341.4088 amrpd8dgd6g5acf26gf58ri3ls Query : select 'normal' from dummy
20240909@073341.4106 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de96153066de96c538',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',628,200500,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073341.4438 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.4441 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.2222.00.1'
20240909@073341.4477 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2222.00.1'
20240909@073341.4495 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.4513 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.4542 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.4559 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.4571 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.4584 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.2222.00.1' and lote = 'r2301281400a'
20240909@073341.4663 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.4699 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.4725 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99275766de96c571','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.4730 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.4748 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.4782 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99275766de96c571',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073341.5064 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.5068 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240909@073341.5092 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073341.5108 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5127 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.5157 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5185 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.5195 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.5208 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400055200a'
20240909@073341.5225 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5243 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.5257 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98888566de96c57f','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.5262 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5282 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.5317 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98888566de96c57f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240909@073341.5659 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5678 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.5709 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5725 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.5735 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.5750 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5770 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.5783 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91226366de96c58c','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.5788 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.5806 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.5842 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de91226366de96c58c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,30000,?,?,?)
20240909@073341.6142 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.6146 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240909@073341.6170 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073341.6187 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.6208 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.6252 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.6270 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.6279 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.6294 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400055200a'
20240909@073341.6308 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.6324 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.6338 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93584666de96c59a','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.6344 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.6362 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.6395 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93584666de96c59a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240909@073341.6703 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.6723 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.6799 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.7406 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.7417 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.7432 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.7450 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.7482 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91985766de96c5b5','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.7487 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.7505 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.7552 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de91985766de96c5b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,60000,?,?,?)
20240909@073341.7818 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.7822 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240909@073341.7843 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073341.7859 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.7876 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.7910 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.7929 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.7951 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.7965 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240909@073341.7980 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.7996 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.8010 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93735566de96c5c2','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.8014 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8031 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.8061 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93735566de96c5c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240909@073341.8327 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8345 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.8375 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8391 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.8400 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.8418 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8436 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.8449 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95137266de96c5cd','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.8453 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8481 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.8514 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95137266de96c5cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,90000,?,?,?)
20240909@073341.8822 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.8826 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@073341.8849 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@073341.8865 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8894 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.8925 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8941 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.8951 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.8967 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@073341.8981 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.8998 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.9013 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98160566de96c5db','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.9017 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.9034 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.9065 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98160566de96c5db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20240909@073341.9361 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.9365 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@073341.9390 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@073341.9408 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.9426 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.9455 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.9474 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.9484 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073341.9498 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@073341.9511 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.9527 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073341.9540 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93646766de96c5e8','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073341.9545 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073341.9569 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073341.9601 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93646766de96c5e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20240909@073341.9962 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073341.9967 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@073341.9989 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@073342.5000 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.2400 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073342.5600 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.7200 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073342.8200 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073342.9700 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@073342.1230 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.1390 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073342.1530 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99290166de96c603','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073342.1570 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.1730 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073342.2050 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99290166de96c603',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240909@073342.4760 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073342.4790 amrpd8dgd6g5acf26gf58ri3ls Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240909@073342.5030 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4521.00.1'
20240909@073342.6960 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.7140 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073342.7430 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.7900 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073342.8010 amrpd8dgd6g5acf26gf58ri3ls Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073342.8170 amrpd8dgd6g5acf26gf58ri3ls Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240909@073342.8380 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.8560 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073342.8700 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98696666de96c614','aut66de96153066de96c538' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073342.8750 amrpd8dgd6g5acf26gf58ri3ls Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073342.8940 amrpd8dgd6g5acf26gf58ri3ls Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073342.9470 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98696666de96c614',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66de96153066de96c538' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20240909@073342.1230 amrpd8dgd6g5acf26gf58ri3ls Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de96153066de96c538','2405764','wait',39,'adm09112754980.682000002')
20240909@073342.1393 amrpd8dgd6g5acf26gf58ri3ls Query : use flama_phc
20240909@073342.1396 amrpd8dgd6g5acf26gf58ri3ls Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073342.1432 amrpd8dgd6g5acf26gf58ri3ls Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1862';
20240909@073342.1466 amrpd8dgd6g5acf26gf58ri3ls Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1862';
20240909@073342.1507 amrpd8dgd6g5acf26gf58ri3ls Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1862';
20240909@073342.1536 amrpd8dgd6g5acf26gf58ri3ls Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1862';
20240909@073342.2216 kstg2b876ehqaohc6k6do0h605 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073342.2243 kstg2b876ehqaohc6k6do0h605 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073342.2650 kstg2b876ehqaohc6k6do0h605 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1863';
20240909@073342.3658 kstg2b876ehqaohc6k6do0h605 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1863';
20240909@073342.4343 kstg2b876ehqaohc6k6do0h605 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1863';
20240909@073342.4563 kstg2b876ehqaohc6k6do0h605 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1863';
20240909@073342.6955 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073342.6959 kstg2b876ehqaohc6k6do0h605 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073342.7094 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073342.7099 kstg2b876ehqaohc6k6do0h605 Query : select no, estab,szadrsdesc from szadrs where u_coddest=5187
20240909@073342.7270 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240909@073342.7499 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240909@073342.7921 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240909@073342.8025 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240909@073342.8065 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20240909@073342.8116 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.2224.00.1' and bi.lordem =2
20240909@073342.8699 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240909@073342.9150 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.5501.00.1' and bi.lordem =3
20240909@073343.4390 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240909@073343.6290 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.5501.00.1' and bi.lordem =3
20240909@073343.6640 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240909@073343.7020 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.645.00.01' and bi.lordem =4
20240909@073343.1082 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240909@073343.1138 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.646.00.01' and bi.lordem =5
20240909@073343.2274 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240909@073343.2360 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.646.00.01' and bi.lordem =5
20240909@073343.2388 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.681.00.01'
20240909@073343.2593 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.681.00.01' and bi.lordem =6
20240909@073343.3480 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240909@073343.3764 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.691.00.01' and bi.lordem =7
20240909@073343.5016 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@073343.5061 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.642.00.01' and bi.lordem =8
20240909@073343.6391 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240909@073343.6427 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.642.00.01' and bi.lordem =8
20240909@073343.6462 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240909@073343.6493 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.4521.00.1' and bi.lordem =9
20240909@073343.7050 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240909@073343.7844 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.4521.00.1' and bi.lordem =9
20240909@073343.8042 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.719.00.01'
20240909@073343.8229 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.719.00.01' and bi.lordem =10
20240909@073343.9073 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1528.00.1'
20240909@073343.9999 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.1528.00.1' and bi.lordem =11
20240909@073344.1346 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1528.00.1'
20240909@073344.1401 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.1528.00.1' and bi.lordem =11
20240909@073344.1444 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1578.00.1'
20240909@073344.2873 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.1578.00.1' and bi.lordem =12
20240909@073344.3333 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240909@073344.3699 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.5342.00.1' and bi.lordem =13
20240909@073344.4403 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240909@073344.4432 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.5342.00.1' and bi.lordem =13
20240909@073344.4474 kstg2b876ehqaohc6k6do0h605 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240909@073344.4511 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405765 and bi.ref ='324.958.00.01' and bi.lordem =14
20240909@073344.4956 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.4962 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073344.6058 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.6063 kstg2b876ehqaohc6k6do0h605 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073344.6775 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.6780 kstg2b876ehqaohc6k6do0h605 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')
20240909@073344.6851 kstg2b876ehqaohc6k6do0h605 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
20240909@073344.6938 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.6941 kstg2b876ehqaohc6k6do0h605 Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240909@073344.7081 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.7085 kstg2b876ehqaohc6k6do0h605 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073344.8122 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.8127 kstg2b876ehqaohc6k6do0h605 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073344.8402 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.8406 kstg2b876ehqaohc6k6do0h605 Query : select szadrsstamp valor from szadrs where szadrsdesc='eldisser, s.a. - grucoga'
20240909@073344.8505 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073344.8508 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from td where ndoc = 39
20240909@073344.8521 kstg2b876ehqaohc6k6do0h605 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073344.8537 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073344.8555 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073344.8575 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073344.8657 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073344.8689 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073344.9885 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073344.9901 kstg2b876ehqaohc6k6do0h605 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073344.9985 kstg2b876ehqaohc6k6do0h605 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073344.9998 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1500 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073345.3200 kstg2b876ehqaohc6k6do0h605 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073345.2250 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2420 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073345.2870 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073345.3000 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073345.3110 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073345.3240 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073345.3360 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073345.3490 kstg2b876ehqaohc6k6do0h605 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073345.3600 kstg2b876ehqaohc6k6do0h605 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de97799066de96c8f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073345.6240 kstg2b876ehqaohc6k6do0h605 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073345.6440 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6600 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073345.6840 kstg2b876ehqaohc6k6do0h605 Query : select 'normal' from dummy
20240909@073345.7050 kstg2b876ehqaohc6k6do0h605 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de97799066de96c8f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',629,200500,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073345.1038 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.1041 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240909@073345.1065 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240909@073345.1213 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1243 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.1270 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1284 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.1293 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.1306 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240909@073345.1327 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1344 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.1355 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91000766de96c920','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.1359 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1376 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.1404 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de91000766de96c920',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073345.1672 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1689 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.1715 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1730 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.1739 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.1751 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1788 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.1800 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93493766de96c92a','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.1804 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.1818 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.1848 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de93493766de96c92a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073345.2139 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.2142 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240909@073345.2164 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20240909@073345.2179 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2194 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.2220 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2236 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.2245 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.2258 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240909@073345.2271 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2285 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.2297 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92444866de96c937','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.2301 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2315 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.2341 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92444866de96c937',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073345.2618 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2634 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.2660 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2674 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.2683 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.2695 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2708 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.2720 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96245966de96c941','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.2724 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.2739 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.2766 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de96245966de96c941',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073345.3553 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.3675 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20240909@073345.4205 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2224.00.1'
20240909@073345.4220 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.4236 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.4260 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.4275 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.4283 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.4314 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20240909@073345.4326 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.4340 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.4351 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de97590066de96c969','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.4355 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.4369 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.4399 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de97590066de96c969',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240909@073345.4669 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.4672 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240909@073345.4703 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073345.4856 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.4873 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.4901 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.4915 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.4924 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.4936 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240909@073345.4957 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.4980 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.4992 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92239966de96c979','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.4996 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5010 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.5053 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92239966de96c979',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240909@073345.5338 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.5341 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240909@073345.5361 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073345.5376 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5393 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.5418 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5433 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.5441 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.5453 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240909@073345.5465 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5479 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.5491 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99130666de96c985','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.5495 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5510 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.5539 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99130666de96c985',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240909@073345.5818 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.5821 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20240909@073345.5842 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073345.5856 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5874 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.5900 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5918 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.5926 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.5937 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2400055200a'
20240909@073345.5950 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5965 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.5978 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92731266de96c991','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.5982 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.5997 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.6026 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92731266de96c991',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240909@073345.6342 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6359 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.6385 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6400 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.6408 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.6421 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6435 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.6451 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98951466de96c99c','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.6455 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6471 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.6498 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de98951466de96c99c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,110000,?,?,?)
20240909@073345.6781 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.6784 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240909@073345.6805 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073345.6819 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6835 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.6871 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6885 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.6893 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.6905 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240909@073345.6919 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6936 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.6949 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de97310866de96c9a8','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.6953 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.6970 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.7003 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de97310866de96c9a8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240909@073345.7309 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7330 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.7359 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7375 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.7384 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.7397 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7413 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.7425 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93127166de96c9b4','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.7430 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7444 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.7475 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de93127166de96c9b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,140000,?,?,?)
20240909@073345.7746 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.7749 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240909@073345.7768 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073345.7784 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7801 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.7828 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7848 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.7856 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.7868 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240909@073345.7881 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7895 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.7906 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92263666de96c9c0','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.7910 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.7924 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.7953 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92263666de96c9c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240909@073345.8269 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.8289 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.8316 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.8331 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.8340 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.8354 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.8368 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.8382 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93865166de96c9cb','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.8387 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.8401 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.8450 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de93865166de96c9cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,170000,?,?,?)
20240909@073345.8722 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.8726 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.681.00.01'
20240909@073345.8747 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073345.8901 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.8918 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.8943 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.8957 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.8965 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.8978 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.681.00.01' and lote = 'r2400058200a'
20240909@073345.8992 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.9006 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.9019 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96012366de96c9db','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.9024 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.9038 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.9065 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de96012366de96c9db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240909@073345.9341 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.9358 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.9384 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.9398 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.9407 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073345.9420 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.9434 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073345.9445 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99106866de96c9e5','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073345.9449 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.9465 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073345.9494 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de99106866de96c9e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,200000,?,?,?)
20240909@073345.9769 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073345.9773 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20240909@073345.9797 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.691.00.01'
20240909@073345.9959 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073345.9977 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.2000 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.1700 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.2600 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.3800 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400209200a'
20240909@073346.6500 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8100 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.9400 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99572966de96ca01','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.9800 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.1120 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.1580 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99572966de96ca01',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240909@073346.1554 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.1572 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.1684 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.1700 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.1709 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.1723 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.1739 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.1752 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de96715666de96ca2a','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.1757 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.1771 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.1800 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de96715666de96ca2a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,230000,?,?,?)
20240909@073346.2073 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.2076 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@073346.2097 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@073346.2112 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2129 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.2166 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2181 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.2190 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.2201 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@073346.2214 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2228 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.2240 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92719066de96ca36','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.2245 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2259 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.2289 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92719066de96ca36',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240909@073346.2559 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.2562 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240909@073346.2582 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240909@073346.2597 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2613 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.2638 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2653 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.2662 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.2675 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240909@073346.2688 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2702 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.2714 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95952966de96ca41','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.2718 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.2734 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.2764 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de95952966de96ca41',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,260000,?,?,?,?,?)
20240909@073346.3055 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.3058 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240909@073346.3080 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4521.00.1'
20240909@073346.3094 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3112 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.3138 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3153 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.3161 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.3174 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240909@073346.3187 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3201 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.3213 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93133166de96ca4d','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.3217 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3236 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.3264 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93133166de96ca4d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,270000,?,?,?,?,?)
20240909@073346.3543 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.3546 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240909@073346.3566 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4521.00.1'
20240909@073346.3580 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3595 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.3621 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3636 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.3644 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.3656 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240909@073346.3668 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3682 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.3693 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91391266de96ca59','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.3697 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.3710 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.3739 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de91391266de96ca59',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,280000,?,?,?,?,?)
20240909@073346.4011 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.4014 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.719.00.01'
20240909@073346.4036 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.719.00.01'
20240909@073346.4358 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4376 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.4404 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4420 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.4430 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.4442 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.719.00.01' and lote = 'r2300383300a'
20240909@073346.4499 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4514 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.4526 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94317166de96ca6d','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.4530 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4546 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.4593 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de94317166de96ca6d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,290000,?,?,?,?,?)
20240909@073346.4874 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4890 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.4915 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4930 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.4939 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.4951 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4965 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.4976 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95293566de96ca78','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.4980 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.4995 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.5024 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95293566de96ca78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,300000,?,?,?)
20240909@073346.5290 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.5293 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.1528.00.1'
20240909@073346.5315 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1528.00.1'
20240909@073346.5330 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5345 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.5370 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5384 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.5392 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.5405 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.1528.00.1' and lote = 'r2200263100a'
20240909@073346.5417 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5431 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.5443 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94742366de96ca84','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.5448 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5462 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.5490 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de94742366de96ca84',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,320000,?,?,?,?,?)
20240909@073346.5784 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.5787 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.1528.00.1'
20240909@073346.5807 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1528.00.1'
20240909@073346.5821 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5838 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.5862 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5877 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.5885 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.5897 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.1528.00.1' and lote = 'r2200263100a'
20240909@073346.5913 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5927 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.5938 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de90333166de96ca90','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.5942 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.5956 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.6002 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de90333166de96ca90',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,330000,?,?,?,?,?)
20240909@073346.6275 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.6280 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.1578.00.1'
20240909@073346.6301 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1578.00.1'
20240909@073346.6455 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.6472 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.6497 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.6511 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.6519 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.6531 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.1578.00.1' and lote = 'r2101115200a'
20240909@073346.6563 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.6578 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.6590 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98665566de96caa0','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.6594 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.6608 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.6647 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98665566de96caa0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,340000,?,?,?,?,?)
20240909@073346.6917 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.6920 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240909@073346.6941 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073346.6955 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.6977 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.7005 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7020 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.7029 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.7041 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20240909@073346.7054 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7068 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.7081 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91528466de96caac','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.7085 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7100 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.7129 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de91528466de96caac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,350000,?,?,?,?,?)
20240909@073346.7436 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7453 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.7478 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7493 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.7502 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.7514 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7528 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.7540 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95718266de96cab7','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.7544 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7559 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.7587 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95718266de96cab7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,360000,?,?,?)
20240909@073346.7874 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.7877 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240909@073346.7896 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073346.7910 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7925 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.7960 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.7974 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.7983 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.7999 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20240909@073346.8012 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8027 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.8039 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91853966de96cac3','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.8043 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8057 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.8085 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de91853966de96cac3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,380000,?,?,?,?,?)
20240909@073346.8357 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8373 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.8400 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8427 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.8436 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.8448 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8462 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.8474 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de94619866de96cace','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.8478 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8493 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.8520 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de94619866de96cace',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,390000,?,?,?)
20240909@073346.8786 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.8789 kstg2b876ehqaohc6k6do0h605 Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240909@073346.8809 kstg2b876ehqaohc6k6do0h605 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.958.00.01'
20240909@073346.8823 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8838 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.8863 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8878 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.8886 kstg2b876ehqaohc6k6do0h605 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073346.8898 kstg2b876ehqaohc6k6do0h605 Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240909@073346.8910 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8924 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073346.8936 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de98180066de96cad9','aut66de97799066de96c8f1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073346.8940 kstg2b876ehqaohc6k6do0h605 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073346.8954 kstg2b876ehqaohc6k6do0h605 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073346.8982 kstg2b876ehqaohc6k6do0h605 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de98180066de96cad9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66de97799066de96c8f1' ,0,0 ,2,23.00,410000,?,?,?,?,?)
20240909@073346.9248 kstg2b876ehqaohc6k6do0h605 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de97799066de96c8f1','2405765','wait',39,'adm09112754980.682000002')
20240909@073346.9322 kstg2b876ehqaohc6k6do0h605 Query : use flama_phc
20240909@073346.9325 kstg2b876ehqaohc6k6do0h605 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073346.9359 kstg2b876ehqaohc6k6do0h605 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1863';
20240909@073346.9388 kstg2b876ehqaohc6k6do0h605 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1863';
20240909@073346.9427 kstg2b876ehqaohc6k6do0h605 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1863';
20240909@073346.9451 kstg2b876ehqaohc6k6do0h605 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1863';
20240909@073346.9997 ia04uicdvea2e2lpnb3b23tush Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073347.9000 ia04uicdvea2e2lpnb3b23tush Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073347.6900 ia04uicdvea2e2lpnb3b23tush Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1864';
20240909@073347.1268 ia04uicdvea2e2lpnb3b23tush Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1864';
20240909@073347.1323 ia04uicdvea2e2lpnb3b23tush Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1864';
20240909@073347.1350 ia04uicdvea2e2lpnb3b23tush Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1864';
20240909@073347.1397 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.1401 ia04uicdvea2e2lpnb3b23tush Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073347.1478 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.1481 ia04uicdvea2e2lpnb3b23tush Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240909@073347.1563 ia04uicdvea2e2lpnb3b23tush Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240909@073347.1729 ia04uicdvea2e2lpnb3b23tush Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405767 and bi.ref ='324.1643.00.1' and bi.lordem =1
20240909@073347.2070 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2074 ia04uicdvea2e2lpnb3b23tush Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073347.2107 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2110 ia04uicdvea2e2lpnb3b23tush Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073347.2141 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2143 ia04uicdvea2e2lpnb3b23tush 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')
20240909@073347.2178 ia04uicdvea2e2lpnb3b23tush 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
20240909@073347.2216 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2219 ia04uicdvea2e2lpnb3b23tush Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240909@073347.2357 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2360 ia04uicdvea2e2lpnb3b23tush Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073347.2389 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2393 ia04uicdvea2e2lpnb3b23tush Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073347.2436 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2439 ia04uicdvea2e2lpnb3b23tush Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240909@073347.2488 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.2491 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from td where ndoc = 39
20240909@073347.2504 ia04uicdvea2e2lpnb3b23tush Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073347.2517 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.2533 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073347.2553 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.2567 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073347.2599 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.2614 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073347.2627 ia04uicdvea2e2lpnb3b23tush Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073347.2705 ia04uicdvea2e2lpnb3b23tush Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073347.2718 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.2734 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073347.2751 ia04uicdvea2e2lpnb3b23tush Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de98884866de96cb40' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073347.2943 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.2963 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073347.3000 ia04uicdvea2e2lpnb3b23tush Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073347.3015 ia04uicdvea2e2lpnb3b23tush Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073347.3027 ia04uicdvea2e2lpnb3b23tush Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073347.3040 ia04uicdvea2e2lpnb3b23tush Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073347.3051 ia04uicdvea2e2lpnb3b23tush Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073347.3062 ia04uicdvea2e2lpnb3b23tush Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073347.3073 ia04uicdvea2e2lpnb3b23tush Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de98884866de96cb40',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073347.3708 ia04uicdvea2e2lpnb3b23tush Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073347.3732 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.3750 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073347.3773 ia04uicdvea2e2lpnb3b23tush Query : select 'normal' from dummy
20240909@073347.3788 ia04uicdvea2e2lpnb3b23tush Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de98884866de96cb40',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',630,100810,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073347.4114 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.4117 ia04uicdvea2e2lpnb3b23tush Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20240909@073347.4142 ia04uicdvea2e2lpnb3b23tush Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1643.00.1'
20240909@073347.4300 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.4317 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073347.4344 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.4438 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073347.4549 ia04uicdvea2e2lpnb3b23tush Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073347.4562 ia04uicdvea2e2lpnb3b23tush Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20240909@073347.4591 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.4610 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073347.4622 ia04uicdvea2e2lpnb3b23tush Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91526166de96cb70','aut66de98884866de96cb40' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073347.4627 ia04uicdvea2e2lpnb3b23tush Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.4642 ia04uicdvea2e2lpnb3b23tush Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073347.4676 ia04uicdvea2e2lpnb3b23tush Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de91526166de96cb70',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de98884866de96cb40' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073347.4960 ia04uicdvea2e2lpnb3b23tush Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de98884866de96cb40','2405767','wait',39,'adm09112754980.682000002')
20240909@073347.5051 ia04uicdvea2e2lpnb3b23tush Query : use flama_phc
20240909@073347.5054 ia04uicdvea2e2lpnb3b23tush Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073347.5085 ia04uicdvea2e2lpnb3b23tush Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1864';
20240909@073347.5115 ia04uicdvea2e2lpnb3b23tush Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1864';
20240909@073347.5154 ia04uicdvea2e2lpnb3b23tush Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1864';
20240909@073347.5180 ia04uicdvea2e2lpnb3b23tush Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1864';
20240909@073347.5676 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073347.5687 5vs3hdaaguer0ruo4equ9ipen2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073347.5743 5vs3hdaaguer0ruo4equ9ipen2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1865';
20240909@073347.5800 5vs3hdaaguer0ruo4equ9ipen2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1865';
20240909@073347.5851 5vs3hdaaguer0ruo4equ9ipen2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1865';
20240909@073347.5877 5vs3hdaaguer0ruo4equ9ipen2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1865';
20240909@073347.5927 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.5930 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073347.5997 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.6000 5vs3hdaaguer0ruo4equ9ipen2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2150
20240909@073347.6094 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240909@073347.6261 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405776 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240909@073347.7616 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240909@073347.7803 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405776 and bi.ref ='324.2031.00.1' and bi.lordem =2
20240909@073347.8125 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2232.00.1'
20240909@073347.8283 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405776 and bi.ref ='324.2232.00.1' and bi.lordem =3
20240909@073347.8621 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.8624 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073347.8657 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.8660 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073347.8702 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.8705 5vs3hdaaguer0ruo4equ9ipen2 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')
20240909@073347.8733 5vs3hdaaguer0ruo4equ9ipen2 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
20240909@073347.8768 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.8772 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 ~inactivo valor from cl where no = '101345' and estab = 0 order by inactivo desc
20240909@073347.8906 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.8909 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073347.8941 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.8952 5vs3hdaaguer0ruo4equ9ipen2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073347.8992 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.8995 5vs3hdaaguer0ruo4equ9ipen2 Query : select szadrsstamp valor from szadrs where szadrsdesc='celestino fÉlix silvestre herdºs.'
20240909@073347.9041 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073347.9044 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from td where ndoc = 39
20240909@073347.9056 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073347.9072 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.9088 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073347.9109 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.9124 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073347.9166 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.9181 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073347.9194 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073347.9264 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073347.9277 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.9295 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073347.9311 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de99620966de96cbe0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073347.9508 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.9527 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073347.9571 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073347.9584 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073347.9597 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073347.9608 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073347.9620 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073347.9632 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073347.9644 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de99620966de96cbe0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073347.9921 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073347.9943 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073347.9959 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073348.1000 5vs3hdaaguer0ruo4equ9ipen2 Query : select 'normal' from dummy
20240909@073348.1600 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de99620966de96cbe0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',631,101345,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073348.3430 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073348.3460 5vs3hdaaguer0ruo4equ9ipen2 Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20240909@073348.3700 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073348.5320 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.5490 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.5780 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.5930 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.6020 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073348.6140 5vs3hdaaguer0ruo4equ9ipen2 Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2300643200a'
20240909@073348.6430 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.6600 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.6720 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93017866de96cc0f','aut66de99620966de96cbe0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073348.6770 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.6920 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.7230 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93017866de96cc0f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de99620966de96cbe0' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073348.1013 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1031 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.1057 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1072 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.1106 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073348.1119 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1135 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.1161 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92758066de96cc1b','aut66de99620966de96cbe0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073348.1165 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1181 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.1210 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de92758066de96cc1b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de99620966de96cbe0' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073348.1493 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073348.1496 5vs3hdaaguer0ruo4equ9ipen2 Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20240909@073348.1518 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20240909@073348.1678 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1696 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.1732 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1747 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.1756 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073348.1768 5vs3hdaaguer0ruo4equ9ipen2 Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20240909@073348.1795 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1813 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.1874 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de99434366de96cc2b','aut66de99620966de96cbe0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073348.1883 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.1955 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.2001 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de99434366de96cc2b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66de99620966de96cbe0' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073348.2346 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.2364 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.2392 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.2408 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.2416 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073348.2430 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.2445 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.2458 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92822766de96cc3b','aut66de99620966de96cbe0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073348.2462 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.2477 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.2506 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de92822766de96cc3b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de99620966de96cbe0' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073348.2802 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073348.2806 5vs3hdaaguer0ruo4equ9ipen2 Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240909@073348.2827 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2232.00.1'
20240909@073348.2988 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.3005 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.3033 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.3053 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.3062 5vs3hdaaguer0ruo4equ9ipen2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073348.3075 5vs3hdaaguer0ruo4equ9ipen2 Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240909@073348.3089 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.3104 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.3116 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93023066de96cc4b','aut66de99620966de96cbe0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073348.3120 5vs3hdaaguer0ruo4equ9ipen2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.3135 5vs3hdaaguer0ruo4equ9ipen2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.3165 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93023066de96cc4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de99620966de96cbe0' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240909@073348.4732 5vs3hdaaguer0ruo4equ9ipen2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de99620966de96cbe0','2405776','wait',39,'adm09112754980.682000002')
20240909@073348.4914 5vs3hdaaguer0ruo4equ9ipen2 Query : use flama_phc
20240909@073348.4917 5vs3hdaaguer0ruo4equ9ipen2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073348.4948 5vs3hdaaguer0ruo4equ9ipen2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1865';
20240909@073348.4978 5vs3hdaaguer0ruo4equ9ipen2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1865';
20240909@073348.5018 5vs3hdaaguer0ruo4equ9ipen2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1865';
20240909@073348.5043 5vs3hdaaguer0ruo4equ9ipen2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1865';
20240909@073348.5642 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073348.5654 aroob4mn0h04vcr1ov5ccmgpm4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073348.5709 aroob4mn0h04vcr1ov5ccmgpm4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1866';
20240909@073348.5781 aroob4mn0h04vcr1ov5ccmgpm4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1866';
20240909@073348.5850 aroob4mn0h04vcr1ov5ccmgpm4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1866';
20240909@073348.5877 aroob4mn0h04vcr1ov5ccmgpm4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1866';
20240909@073348.5930 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.5934 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073348.6002 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.6005 aroob4mn0h04vcr1ov5ccmgpm4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240909@073348.6048 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20240909@073348.6216 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405777 and bi.ref ='324.5540.00.1' and bi.lordem =1
20240909@073348.6545 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240909@073348.6566 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405777 and bi.ref ='324.5342.00.1' and bi.lordem =2
20240909@073348.6891 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240909@073348.7050 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405777 and bi.ref ='324.5396.00.1' and bi.lordem =3
20240909@073348.7383 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7387 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073348.7421 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7424 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073348.7454 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7456 aroob4mn0h04vcr1ov5ccmgpm4 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')
20240909@073348.7484 aroob4mn0h04vcr1ov5ccmgpm4 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
20240909@073348.7518 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7521 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240909@073348.7551 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7554 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073348.7590 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7592 aroob4mn0h04vcr1ov5ccmgpm4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073348.7634 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7636 aroob4mn0h04vcr1ov5ccmgpm4 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240909@073348.7681 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.7684 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from td where ndoc = 39
20240909@073348.7696 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073348.7709 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.7726 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073348.7744 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.7758 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073348.7786 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.7800 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073348.7812 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073348.7881 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073348.7894 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.7908 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073348.7923 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de92051666de96ccbe' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073348.8114 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.8131 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073348.8163 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073348.8176 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073348.8187 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073348.8199 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073348.8211 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073348.8222 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073348.8234 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de92051666de96ccbe',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073348.8543 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073348.8564 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.8579 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073348.8601 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 'normal' from dummy
20240909@073348.8616 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de92051666de96ccbe',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',632,100810,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073348.8924 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.8928 aroob4mn0h04vcr1ov5ccmgpm4 Query : select st.usalote valor from st where st.ref = '324.5540.00.1'
20240909@073348.8950 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5540.00.1'
20240909@073348.9104 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9120 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.9145 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9160 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.9168 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073348.9180 aroob4mn0h04vcr1ov5ccmgpm4 Query : select sestamp valor from se where ref ='324.5540.00.1' and lote = 'r2300830100a'
20240909@073348.9205 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9223 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.9234 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de93592066de96cce0','aut66de92051666de96ccbe' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073348.9245 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9259 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.9291 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de93592066de96cce0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66de92051666de96ccbe' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073348.9574 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073348.9577 aroob4mn0h04vcr1ov5ccmgpm4 Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240909@073348.9599 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240909@073348.9613 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9629 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.9655 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9673 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.9681 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073348.9693 aroob4mn0h04vcr1ov5ccmgpm4 Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20240909@073348.9705 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9719 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073348.9731 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92973866de96ccec','aut66de92051666de96ccbe' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073348.9735 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073348.9750 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073348.9780 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92973866de96ccec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66de92051666de96ccbe' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240909@073349.5400 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7100 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.9600 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.1100 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.1180 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073349.1300 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.1440 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.1550 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91731266de96cd03','aut66de92051666de96ccbe' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073349.1590 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.1750 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.2020 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de91731266de96cd03',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de92051666de96ccbe' ,0,0 ,2,23.00,30000,?,?,?)
20240909@073349.4760 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073349.4790 aroob4mn0h04vcr1ov5ccmgpm4 Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20240909@073349.5000 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5396.00.1'
20240909@073349.6530 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.6690 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.6940 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7090 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.7170 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073349.7290 aroob4mn0h04vcr1ov5ccmgpm4 Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20240909@073349.7500 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7640 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.7770 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de91930666de96cd12','aut66de92051666de96ccbe' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073349.7810 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7960 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.8230 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de91930666de96cd12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut66de92051666de96ccbe' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240909@073349.1144 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.1162 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.1189 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.1204 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.1213 aroob4mn0h04vcr1ov5ccmgpm4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073349.1226 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.1243 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.1256 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92348266de96cd1d','aut66de92051666de96ccbe' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073349.1261 aroob4mn0h04vcr1ov5ccmgpm4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.1277 aroob4mn0h04vcr1ov5ccmgpm4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.1309 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de92348266de96cd1d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de92051666de96ccbe' ,0,0 ,2,23.00,60000,?,?,?)
20240909@073349.1585 aroob4mn0h04vcr1ov5ccmgpm4 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de92051666de96ccbe','2405777','wait',39,'adm09112754980.682000002')
20240909@073349.1662 aroob4mn0h04vcr1ov5ccmgpm4 Query : use flama_phc
20240909@073349.1665 aroob4mn0h04vcr1ov5ccmgpm4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073349.1695 aroob4mn0h04vcr1ov5ccmgpm4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1866';
20240909@073349.1724 aroob4mn0h04vcr1ov5ccmgpm4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1866';
20240909@073349.1763 aroob4mn0h04vcr1ov5ccmgpm4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1866';
20240909@073349.1786 aroob4mn0h04vcr1ov5ccmgpm4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1866';
20240909@073349.2258 frmqn7uu3n7jdpubbgo9bagnda Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073349.2273 frmqn7uu3n7jdpubbgo9bagnda Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073349.2327 frmqn7uu3n7jdpubbgo9bagnda Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1867';
20240909@073349.2381 frmqn7uu3n7jdpubbgo9bagnda Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1867';
20240909@073349.2433 frmqn7uu3n7jdpubbgo9bagnda Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1867';
20240909@073349.2460 frmqn7uu3n7jdpubbgo9bagnda Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1867';
20240909@073349.2527 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.2530 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073349.2596 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.2599 frmqn7uu3n7jdpubbgo9bagnda Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240909@073349.2702 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9326.00.1'
20240909@073349.2865 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405778 and bi.ref ='328.9326.00.1' and bi.lordem =1
20240909@073349.3233 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20240909@073349.3396 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405778 and bi.ref ='328.9345.00.1' and bi.lordem =2
20240909@073349.3726 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.3729 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073349.3761 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.3764 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073349.3795 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.3798 frmqn7uu3n7jdpubbgo9bagnda 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')
20240909@073349.4597 frmqn7uu3n7jdpubbgo9bagnda 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
20240909@073349.5241 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.5244 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240909@073349.5276 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.5301 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073349.5341 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.5344 frmqn7uu3n7jdpubbgo9bagnda Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073349.5383 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.5386 frmqn7uu3n7jdpubbgo9bagnda Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240909@073349.5432 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.5435 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from td where ndoc = 39
20240909@073349.5446 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073349.5461 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.5478 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073349.5512 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.5528 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073349.5558 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.5574 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073349.5589 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073349.5666 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073349.5683 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.5698 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073349.5715 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de91224466de96cd88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073349.5909 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.5931 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073349.5969 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073349.5983 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073349.5996 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073349.6010 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073349.6022 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073349.6034 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073349.6046 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de91224466de96cd88',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073349.6337 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073349.6363 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.6381 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073349.6404 frmqn7uu3n7jdpubbgo9bagnda Query : select 'normal' from dummy
20240909@073349.6421 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de91224466de96cd88',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',633,100810,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073349.6724 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.6728 frmqn7uu3n7jdpubbgo9bagnda Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20240909@073349.6751 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9326.00.1'
20240909@073349.6902 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.6919 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.6948 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.6963 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.6972 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073349.6984 frmqn7uu3n7jdpubbgo9bagnda Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2300691100a'
20240909@073349.7011 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7027 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.7041 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95621166de96cdab','aut66de91224466de96cd88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073349.7045 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7059 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.7088 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de95621166de96cdab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de91224466de96cd88' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073349.7367 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7386 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.7413 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7428 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.7437 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073349.7450 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7464 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.7476 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95071966de96cdb5','aut66de91224466de96cd88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073349.7481 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7496 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.7526 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95071966de96cdb5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de91224466de96cd88' ,0,0 ,2,23.00,20000,?,?,?)
20240909@073349.7794 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.7797 frmqn7uu3n7jdpubbgo9bagnda Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20240909@073349.7820 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9345.00.1'
20240909@073349.7976 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.7994 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.8021 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.8037 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.8046 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073349.8058 frmqn7uu3n7jdpubbgo9bagnda Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20240909@073349.8080 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.8096 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.8108 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92748066de96cdc5','aut66de91224466de96cd88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073349.8113 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.8127 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.8155 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92748066de96cdc5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66de91224466de96cd88' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240909@073349.8436 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.8452 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.8478 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.8493 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.8501 frmqn7uu3n7jdpubbgo9bagnda Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073349.8513 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.8528 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073349.8540 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de95864166de96cdcf','aut66de91224466de96cd88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073349.8544 frmqn7uu3n7jdpubbgo9bagnda Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073349.8561 frmqn7uu3n7jdpubbgo9bagnda Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073349.8590 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66de95864166de96cdcf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66de91224466de96cd88' ,0,0 ,2,23.00,50000,?,?,?)
20240909@073349.8863 frmqn7uu3n7jdpubbgo9bagnda Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66de91224466de96cd88','2405778','wait',39,'adm09112754980.682000002')
20240909@073349.8936 frmqn7uu3n7jdpubbgo9bagnda Query : use flama_phc
20240909@073349.8940 frmqn7uu3n7jdpubbgo9bagnda Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240909@073349.8971 frmqn7uu3n7jdpubbgo9bagnda Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1867';
20240909@073349.9001 frmqn7uu3n7jdpubbgo9bagnda Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1867';
20240909@073349.9040 frmqn7uu3n7jdpubbgo9bagnda Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1867';
20240909@073349.9062 frmqn7uu3n7jdpubbgo9bagnda Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1867';
20240909@073349.9563 7n81cj5c6qugop913c4u0nq2e1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240909@073349.9574 7n81cj5c6qugop913c4u0nq2e1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240909@073349.9629 7n81cj5c6qugop913c4u0nq2e1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1868';
20240909@073349.9685 7n81cj5c6qugop913c4u0nq2e1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1868';
20240909@073349.9737 7n81cj5c6qugop913c4u0nq2e1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1868';
20240909@073349.9762 7n81cj5c6qugop913c4u0nq2e1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1868';
20240909@073349.9809 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073349.9812 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240909@073349.9882 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073349.9885 7n81cj5c6qugop913c4u0nq2e1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240909@073349.9927 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8152.00.1'
20240909@073350.9700 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2057 and bo.obrano = 2405779 and bi.ref ='327.8152.00.1' and bi.lordem =1
20240909@073350.4590 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.4630 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240909@073350.5010 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.5040 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 1 valor from td where td.ndoc = 39
20240909@073350.5350 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.5380 7n81cj5c6qugop913c4u0nq2e1 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')
20240909@073350.5690 7n81cj5c6qugop913c4u0nq2e1 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
20240909@073350.6070 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.6100 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240909@073350.6410 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.6440 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240909@073350.6750 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.6790 7n81cj5c6qugop913c4u0nq2e1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240909@073350.7190 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.7220 7n81cj5c6qugop913c4u0nq2e1 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240909@073350.7670 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.7700 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from td where ndoc = 39
20240909@073350.7830 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240909@073350.7990 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.8220 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073350.8430 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.8580 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073350.8870 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.9020 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073350.9180 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073350.9870 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240909@073350.1001 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.1016 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240909@073350.1033 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66de93689166de96ce16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240909@073350.1215 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.1232 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240909@073350.1265 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240909@073350.1277 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240909@073350.1289 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240909@073350.1311 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240909@073350.2459 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240909@073350.2474 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240909@073350.2485 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66de93689166de96ce16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240909@073350.2749 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 fno valor from wsftdata order by fno desc
20240909@073350.2773 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.2790 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240909@073350.2813 7n81cj5c6qugop913c4u0nq2e1 Query : select 'normal' from dummy
20240909@073350.2828 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66de93689166de96ce16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',634,100810,0,'2024-09-09',39,'euro',0,0,2024 ,?,?)
20240909@073350.3158 7n81cj5c6qugop913c4u0nq2e1 Query : use flama_phc
20240909@073350.3162 7n81cj5c6qugop913c4u0nq2e1 Query : select st.usalote valor from st where st.ref = '327.8152.00.1'
20240909@073350.3185 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8152.00.1'
20240909@073350.3342 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3364 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073350.3391 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3406 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073350.3418 7n81cj5c6qugop913c4u0nq2e1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240909@073350.3430 7n81cj5c6qugop913c4u0nq2e1 Query : select sestamp valor from se where ref ='327.8152.00.1' and lote = 'r2200712200a'
20240909@073350.3459 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3474 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240909@073350.3487 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66de92003966de96ce54','aut66de93689166de96ce16' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240909@073350.3492 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3509 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240909@073350.3540 7n81cj5c6qugop913c4u0nq2e1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66de92003966de96ce54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66de93689166de96ce16' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240909@073350.3833 7n81cj5c6qugop913c4u0nq2e1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240909@073350.3853 7n81cj5c6qugop913c4u0nq2e1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
