20241016@095236.6050 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095236.6104 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20241016@095236.6271 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095236.6341 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.7009 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095236.7234 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f747331670f7ed49a','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095236.7542 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.7706 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095236.7723 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f747331670f7ed49a',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,160000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,30.1*2.000,30.1*2.000*200.48 ,11.700000,11.700000*200.48 ,11.700000,11.700000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,30.1,30.1*200.48,30.1*2.000,30.1*2.000*200.48,'az24101456600,892000016 ',30.1,30.1*2.000,30.1,30.1*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095236.8262 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.8274 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241016@095236.8291 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.8348 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.958.00.01'
20241016@095236.8641 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.8683 bigoqnu6t7o5tts5jq029gkrvp 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 
20241016@095236.9081 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.9084 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.958.00.01'
20241016@095236.9216 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@095236.9545 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.9573 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095236.9839 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.1310 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095237.3060 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241016@095237.5730 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095237.5860 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.7920 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095237.8440 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f761248670f7ed50e','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095237.1185 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.1451 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095237.1751 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f761248670f7ed50e',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,170000 ,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.220000,8.220000*200.48 ,8.220000,8.220000*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,'az24101456601,207000017 ',19.2,19.2*12.000,19.2,19.2*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095237.2171 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.2175 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.966.00.01'
20241016@095237.2193 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.2196 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.966.00.01'
20241016@095237.2214 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.2217 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.966.00.01' and sa.armazem = 133 
20241016@095237.2488 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.2491 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.966.00.01'
20241016@095237.2604 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.966.00.01'
20241016@095237.3033 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.3284 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095237.3346 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.3488 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095237.3497 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.966.00.01' and lote = 'r2400743200a'
20241016@095237.3515 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095237.3608 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.3740 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095237.3805 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f783935670f7ed558','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095237.4097 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.4404 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095237.4776 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f783935670f7ed558',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,180000 ,32,32*200.48,32,32*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,32*12.000,32*12.000*200.48 ,12.229000,12.229000*200.48 ,12.229000,12.229000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*12.000,32*12.000*200.48,'az24101456673,299000018 ',32,32*12.000,32,32*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095237.5184 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.5188 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241016@095237.5250 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.5294 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20241016@095237.5483 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.5486 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1332.00.1' and sa.armazem = 133 
20241016@095237.5943 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.5985 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20241016@095237.6335 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20241016@095237.6592 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.6611 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095237.7312 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.7945 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095237.8099 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241016@095237.8294 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095237.8545 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.8797 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095237.8905 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f768996670f7ed5d0','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095237.9172 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095237.9197 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095237.9221 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f768996670f7ed5d0',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,190000 ,192,192*200.48,192,192*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,192*1.000,192*1.000*200.48 ,82.639000,82.639000*200.48 ,82.639000,82.639000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,192,192*200.48,192*1.000,192*1.000*200.48,'az24101456795,540000020 ',192,192*1.000,192,192*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095237.9655 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.9696 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20241016@095237.9718 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095237.9774 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20241016@095238.1320 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.1740 bigoqnu6t7o5tts5jq029gkrvp 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.1805.00.1' and sa.armazem = 133 
20241016@095238.5660 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.5690 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20241016@095238.8430 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20241016@095238.1304 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.1324 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095238.1590 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.1846 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095238.2011 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20241016@095238.2113 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095238.2166 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.2261 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095238.2279 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f773092670f7ed634','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095238.2463 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.2638 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095238.2749 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f773092670f7ed634',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 7.000, 7.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,200000 ,75,75*200.48,75,75*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,75*7.000,75*7.000*200.48 ,31.028000,31.028000*200.48 ,31.028000,31.028000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,75,75*200.48,75*7.000,75*7.000*200.48,'az24101456817,611000021 ',75,75*7.000,75,75*7.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095238.3291 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.3352 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20241016@095238.3600 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.3644 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20241016@095238.3733 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.3776 bigoqnu6t7o5tts5jq029gkrvp 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.1805.00.1' and sa.armazem = 133 
20241016@095238.3871 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.3880 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1805.00.1'
20241016@095238.4042 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1805.00.1'
20241016@095238.4136 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.4328 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095238.4576 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.4828 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095238.4889 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400290200a'
20241016@095238.5022 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095238.5055 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.5070 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095238.5082 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f747201670f7ed67b','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095238.5232 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.5450 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095238.5610 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f747201670f7ed67b',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,210000 ,75,75*200.48,75,75*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,75*4.000,75*4.000*200.48 ,31.028000,31.028000*200.48 ,31.028000,31.028000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,75,75*200.48,75*4.000,75*4.000*200.48,'az24101456817,611000021 ',75,75*4.000,75,75*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095238.6165 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.6205 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1817.00.1'
20241016@095238.6454 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.6496 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20241016@095238.6551 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.6554 bigoqnu6t7o5tts5jq029gkrvp 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.1817.00.1' and sa.armazem = 133 
20241016@095238.6686 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095238.6689 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20241016@095238.6762 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1817.00.1'
20241016@095238.7212 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.8334 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095238.8581 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.8689 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095238.8737 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1817.00.1' and lote = 'r2400379200a'
20241016@095238.8828 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095238.8841 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.8996 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095238.9090 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f701435670f7ed6d7','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095238.9369 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095238.9620 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095238.9910 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f701435670f7ed6d7',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,220000 ,52.5,52.5*200.48,52.5,52.5*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,52.5*5.000,52.5*5.000*200.48 ,25.122000,25.122000*200.48 ,25.122000,25.122000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,52.5,52.5*200.48,52.5*5.000,52.5*5.000*200.48,'az24101456837,619000022 ',52.5,52.5*5.000,52.5,52.5*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095239.3620 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095239.3670 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.2301.00.3'
20241016@095239.3830 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095239.3850 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.2301.00.3'
20241016@095239.4020 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095239.4090 bigoqnu6t7o5tts5jq029gkrvp 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.2301.00.3' and sa.armazem = 133 
20241016@095239.7000 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095239.7030 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.2301.00.3'
20241016@095239.9720 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2301.00.3'
20241016@095239.1785 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095239.2467 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095239.2609 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095239.2724 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095239.2733 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.2301.00.3' and lote = 'r2400474200a'
20241016@095239.3097 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095239.3346 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095239.3594 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095239.3648 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f777351670f7ed751','aut670f731649670f7ed0c5',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 = 'aut670f731649670f7ed0c5'
20241016@095239.3879 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095239.4103 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095239.4126 bigoqnu6t7o5tts5jq029gkrvp 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 'aut670f777351670f7ed751',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 30.000, 30.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,230000 ,16,16*200.48,16,16*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,16*30.000,16*30.000*200.48 ,4.301000,4.301000*200.48 ,4.301000,4.301000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,16,16*200.48,16*30.000,16*30.000*200.48,'az24101456848,573000023 ',16,16*30.000,16,16*30.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095239.4900 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut670f731649670f7ed0c5','','wait',5,'adm12071144683,938000003','')
20241016@095239.5880 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095239.5883 bigoqnu6t7o5tts5jq029gkrvp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@095239.6192 bigoqnu6t7o5tts5jq029gkrvp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2689';
20241016@095239.6494 bigoqnu6t7o5tts5jq029gkrvp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2689';
20241016@101913.8042 b45ltn7e4qvejbij7ceahq8bsq Query : use flama_phc
20241016@101913.8048 b45ltn7e4qvejbij7ceahq8bsq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@101913.8191 b45ltn7e4qvejbij7ceahq8bsq Query : use flama_phc
20241016@101913.8194 b45ltn7e4qvejbij7ceahq8bsq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@103613.9829 40elc4onru5tpg2i9ruefl8u0c Query : use flama_phc
20241016@103613.9834 40elc4onru5tpg2i9ruefl8u0c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@103613.9994 40elc4onru5tpg2i9ruefl8u0c Query : use flama_phc
20241016@103613.9998 40elc4onru5tpg2i9ruefl8u0c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@111913.2763 3dfnhm3kv9m813ro87ln6u0lku Query : use flama_phc
20241016@111913.2767 3dfnhm3kv9m813ro87ln6u0lku Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@111913.2853 3dfnhm3kv9m813ro87ln6u0lku Query : use flama_phc
20241016@111913.2856 3dfnhm3kv9m813ro87ln6u0lku Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@113613.9620 cfn7gpvdl64d10aqhns3p1b7se Query : use flama_phc
20241016@113613.9670 cfn7gpvdl64d10aqhns3p1b7se Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@113613.1673 cfn7gpvdl64d10aqhns3p1b7se Query : use flama_phc
20241016@113613.1685 cfn7gpvdl64d10aqhns3p1b7se Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@115212.3817 2ica2kdi4to7b78p5b7kvoktrj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@115212.3847 2ica2kdi4to7b78p5b7kvoktrj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@115212.5319 2ica2kdi4to7b78p5b7kvoktrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2690';
20241016@115212.5391 2ica2kdi4to7b78p5b7kvoktrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2690';
20241016@115212.5461 2ica2kdi4to7b78p5b7kvoktrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2690';
20241016@115212.5507 2ica2kdi4to7b78p5b7kvoktrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2690';
20241016@115212.5572 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.5576 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@115212.5722 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.5726 2ica2kdi4to7b78p5b7kvoktrj Query : select no, estab,szadrsdesc from szadrs where u_coddest=6852
20241016@115212.5813 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241016@115212.5946 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.5949 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@115212.6163 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.6166 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 1 valor from td where td.ndoc = 39
20241016@115212.6245 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.6257 2ica2kdi4to7b78p5b7kvoktrj 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')
20241016@115212.6348 2ica2kdi4to7b78p5b7kvoktrj 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
20241016@115212.6467 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.6470 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 ~inactivo valor from cl where no = '102265' and estab = 0 order by inactivo desc
20241016@115212.6585 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.6589 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@115212.6672 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.6675 2ica2kdi4to7b78p5b7kvoktrj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@115212.6747 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.6750 2ica2kdi4to7b78p5b7kvoktrj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaço 85'
20241016@115212.6798 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115212.6801 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from td where ndoc = 39
20241016@115212.6864 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@115212.6915 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115212.7288 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@115212.7366 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115212.7400 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@115212.7437 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115212.7453 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@115212.7467 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@115212.7659 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@115212.7741 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115212.7760 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@115212.7825 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670f939611670f9adcb6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@115212.8061 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115212.8081 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@115212.8138 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@115212.8210 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@115212.8276 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@115212.8353 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@115212.8420 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@115212.8500 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@115212.8567 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670f939611670f9adcb6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@115212.9269 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 fno valor from wsftdata order by fno desc
20241016@115212.9352 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115212.9369 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@115212.9393 2ica2kdi4to7b78p5b7kvoktrj Query : select 'normal' from dummy
20241016@115212.9456 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670f939611670f9adcb6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1297,102265,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@115213.1800 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115213.1840 2ica2kdi4to7b78p5b7kvoktrj Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241016@115213.3000 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241016@115213.4530 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.4710 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@115213.5380 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.5950 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@115213.6100 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@115213.7130 2ica2kdi4to7b78p5b7kvoktrj Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241016@115213.9630 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.1060 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@115213.1077 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670f956065670f9add17','aut670f939611670f9adcb6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@115213.1128 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.1145 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@115213.1177 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut670f956065670f9add17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670f939611670f9adcb6' ,0,0 ,2,23.00,10000,?,?,?,?)
20241016@115213.1580 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.1598 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@115213.1692 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.1736 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@115213.1788 2ica2kdi4to7b78p5b7kvoktrj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@115213.1802 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.1819 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@115213.1831 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670f933969670f9add2b','aut670f939611670f9adcb6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@115213.1836 2ica2kdi4to7b78p5b7kvoktrj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@115213.1853 2ica2kdi4to7b78p5b7kvoktrj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@115213.1900 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670f933969670f9add2b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670f939611670f9adcb6' ,0,0 ,2,23.00,20000,?,?,?)
20241016@115213.2226 2ica2kdi4to7b78p5b7kvoktrj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670f939611670f9adcb6','2406768','wait',39,'adm09112754980.682000002')
20241016@115213.2383 2ica2kdi4to7b78p5b7kvoktrj Query : use flama_phc
20241016@115213.2386 2ica2kdi4to7b78p5b7kvoktrj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@115213.2434 2ica2kdi4to7b78p5b7kvoktrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2690';
20241016@115213.2468 2ica2kdi4to7b78p5b7kvoktrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2690';
20241016@115213.2514 2ica2kdi4to7b78p5b7kvoktrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2690';
20241016@115213.2555 2ica2kdi4to7b78p5b7kvoktrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2690';
20241016@121911.5902 nf9hfhk50qi6c14hk5vk30njg5 Query : use flama_phc
20241016@121911.5907 nf9hfhk50qi6c14hk5vk30njg5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@121911.5999 nf9hfhk50qi6c14hk5vk30njg5 Query : use flama_phc
20241016@121911.6002 nf9hfhk50qi6c14hk5vk30njg5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@123611.5038 fgockko2pa23oe795omonk6lfa Query : use flama_phc
20241016@123611.5042 fgockko2pa23oe795omonk6lfa Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@123611.5133 fgockko2pa23oe795omonk6lfa Query : use flama_phc
20241016@123611.5136 fgockko2pa23oe795omonk6lfa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@131914.2081 brpc12ct8fnk20cctcsibcahj0 Query : use flama_phc
20241016@131914.2085 brpc12ct8fnk20cctcsibcahj0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@131914.2174 brpc12ct8fnk20cctcsibcahj0 Query : use flama_phc
20241016@131914.2177 brpc12ct8fnk20cctcsibcahj0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@133614.7725 qnfhd04bu8732qfs8mh178gsei Query : use flama_phc
20241016@133614.7729 qnfhd04bu8732qfs8mh178gsei Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@133614.7832 qnfhd04bu8732qfs8mh178gsei Query : use flama_phc
20241016@133614.7835 qnfhd04bu8732qfs8mh178gsei Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@135319.2689 6a3cre5ho8vvhlik11s17beckh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@135319.2707 6a3cre5ho8vvhlik11s17beckh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@135319.2863 6a3cre5ho8vvhlik11s17beckh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2691';
20241016@135319.2944 6a3cre5ho8vvhlik11s17beckh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2691';
20241016@135319.2998 6a3cre5ho8vvhlik11s17beckh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2691';
20241016@135319.3026 6a3cre5ho8vvhlik11s17beckh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2691';
20241016@135319.4483 psa8omqc0dtq0p5qbudnreu70p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@135319.4495 psa8omqc0dtq0p5qbudnreu70p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@135319.4555 psa8omqc0dtq0p5qbudnreu70p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2692';
20241016@135319.4607 psa8omqc0dtq0p5qbudnreu70p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2692';
20241016@135319.4662 psa8omqc0dtq0p5qbudnreu70p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2692';
20241016@135319.4688 psa8omqc0dtq0p5qbudnreu70p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2692';
20241016@135319.4731 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135319.4734 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@135319.4795 psa8omqc0dtq0p5qbudnreu70p Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241016@135319.4872 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.648.00.01'
20241016@135319.4958 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='324.648.00.01' and bi.lordem =10000
20241016@135319.5297 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101459157,463000001 ' 
20241016@135319.5642 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.644.00.01'
20241016@135319.5753 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='324.644.00.01' and bi.lordem =20000
20241016@135319.6065 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101459943,023000002 ' 
20241016@135319.6338 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1308.00.1'
20241016@135319.6450 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='324.1308.00.1' and bi.lordem =30000
20241016@135319.6746 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101459953,158000003 ' 
20241016@135319.7005 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2388.00.1'
20241016@135319.7092 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='324.2388.00.1' and bi.lordem =40000
20241016@135319.7384 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101459966,917000004 ' 
20241016@135319.7684 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2387.00.1'
20241016@135319.7768 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='324.2387.00.1' and bi.lordem =50000
20241016@135319.8059 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101459982,627000005 ' 
20241016@135319.8318 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9075.00.1'
20241016@135319.8408 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='328.9075.00.1' and bi.lordem =60000
20241016@135319.8724 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101460005,162000006 ' 
20241016@135319.9035 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9036.00.1'
20241016@135319.9127 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='328.9036.00.1' and bi.lordem =70000
20241016@135319.9422 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101460020,035000007 ' 
20241016@135319.9699 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20241016@135319.9784 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='324.692.00.01' and bi.lordem =80000
20241016@135320.7400 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101460044,033000008 ' 
20241016@135320.3500 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20241016@135320.3710 psa8omqc0dtq0p5qbudnreu70p 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 = 0002371 and bi.ref ='324.692.00.01' and bi.lordem =80000
20241016@135320.4040 psa8omqc0dtq0p5qbudnreu70p 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 = 'az24101460044,033000008 ' 
20241016@135320.4350 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4380 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 1 valor from ts where ts.ndos = 5
20241016@135320.5070 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.5100 psa8omqc0dtq0p5qbudnreu70p 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')
20241016@135320.5510 psa8omqc0dtq0p5qbudnreu70p 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
20241016@135320.6650 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.6680 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241016@135320.7560 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.7590 psa8omqc0dtq0p5qbudnreu70p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@135320.7980 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.8010 psa8omqc0dtq0p5qbudnreu70p Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241016@135320.8600 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.8630 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from ts where ndos = 5
20241016@135320.9170 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.9380 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241016@135320.9740 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.9870 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241016@135320.9990 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.1015 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241016@135320.1024 psa8omqc0dtq0p5qbudnreu70p 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
20241016@135320.1106 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241016@135320.1222 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241016@135320.1295 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.1301 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241016@135320.1369 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.1434 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241016@135320.1446 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fb19438670fb7401f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241016@135320.1521 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.1537 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241016@135320.1549 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut670fb19438670fb7401f','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241016','14:23',?,?)
20241016@135320.2117 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.2136 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241016@135320.2154 psa8omqc0dtq0p5qbudnreu70p 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 ('aut670fb19438670fb7401f','trf entre armazéns a','2024-10-16',5,513,?,?,?,?,?,?,?,?,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',?)
20241016@135320.2706 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.2709 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '324.648.00.01'
20241016@135320.2722 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.2725 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.648.00.01'
20241016@135320.2820 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.2822 psa8omqc0dtq0p5qbudnreu70p 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.648.00.01' and sa.armazem = 133 
20241016@135320.2887 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.2889 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.648.00.01'
20241016@135320.2914 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.648.00.01'
20241016@135320.3021 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.3036 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.3049 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.3063 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.3072 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='324.648.00.01' and lote = 'r2400750200a'
20241016@135320.3085 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135320.3098 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.3112 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.3125 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb16549670fb7404b','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135320.3567 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.3584 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.3600 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb16549670fb7404b',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,10000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*8.000,83.2*8.000*200.48 ,29.112000,29.112000*200.48 ,29.112000,29.112000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*8.000,83.2*8.000*200.48,'az24101459157,463000001 ',83.2,83.2*8.000,83.2,83.2*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135320.3990 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.3994 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '324.644.00.01'
20241016@135320.4008 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4010 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.644.00.01'
20241016@135320.4026 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4029 psa8omqc0dtq0p5qbudnreu70p 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.644.00.01' and sa.armazem = 133 
20241016@135320.4088 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4091 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.644.00.01'
20241016@135320.4120 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.644.00.01'
20241016@135320.4232 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.4247 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.4260 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.4274 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.4283 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='324.644.00.01' and lote = 'r2400749200a'
20241016@135320.4297 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135320.4309 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.4322 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.4336 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb80815670fb74069','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135320.4479 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.4496 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.4511 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb80815670fb74069',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,20000 ,76.8,76.8*200.48,76.8,76.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,76.8*8.000,76.8*8.000*200.48 ,26.104000,26.104000*200.48 ,26.104000,26.104000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,76.8,76.8*200.48,76.8*8.000,76.8*8.000*200.48,'az24101459943,023000002 ',76.8,76.8*8.000,76.8,76.8*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135320.4750 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4754 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '324.1308.00.1'
20241016@135320.4768 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4782 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.1308.00.1'
20241016@135320.4798 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4800 psa8omqc0dtq0p5qbudnreu70p 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.1308.00.1' and sa.armazem = 133 
20241016@135320.4862 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.4864 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.1308.00.1'
20241016@135320.4882 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1308.00.1'
20241016@135320.4993 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.5013 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.5025 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.5040 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.5049 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='324.1308.00.1' and lote = 'r2400720200a'
20241016@135320.5062 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135320.5074 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.5088 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.5099 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb05040670fb7407b','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135320.5237 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.5254 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.5269 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb05040670fb7407b',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,30000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*12.000,96*12.000*200.48 ,45.780000,45.780000*200.48 ,45.780000,45.780000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*12.000,96*12.000*200.48,'az24101459953,158000003 ',96,96*12.000,96,96*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135320.5519 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.5522 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '324.2388.00.1'
20241016@135320.5536 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.5538 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.2388.00.1'
20241016@135320.5554 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.5556 psa8omqc0dtq0p5qbudnreu70p 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.2388.00.1' and sa.armazem = 133 
20241016@135320.5618 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.5621 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.2388.00.1'
20241016@135320.5638 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2388.00.1'
20241016@135320.5759 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.5774 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.5786 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.5800 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.5809 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='324.2388.00.1' and lote = 'r2400490100a'
20241016@135320.5822 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135320.5833 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.5847 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.5858 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb51366670fb7408e','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135320.5993 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.6010 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.6025 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb51366670fb7408e',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,40000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un ','' ,bo.marcada,1 ,57.6*10.000,57.6*10.000*200.48 ,16.400000,16.400000*200.48 ,16.400000,16.400000*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*10.000,57.6*10.000*200.48,'az24101459966,917000004 ',57.6,57.6*10.000,57.6,57.6*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135320.6272 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.6276 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '324.2387.00.1'
20241016@135320.6291 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.6293 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.2387.00.1'
20241016@135320.6309 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.6323 psa8omqc0dtq0p5qbudnreu70p 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.2387.00.1' and sa.armazem = 133 
20241016@135320.6403 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.6406 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.2387.00.1'
20241016@135320.6425 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2387.00.1'
20241016@135320.6536 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.6551 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.6568 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.6582 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.6591 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='324.2387.00.1' and lote = 'r2400490200a'
20241016@135320.6621 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135320.7766 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.7782 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.7794 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb95836670fb740bd','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135320.7933 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.7956 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.7982 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb95836670fb740bd',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,50000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,28.8*10.000,28.8*10.000*200.48 ,7.837000,7.837000*200.48 ,7.837000,7.837000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*10.000,28.8*10.000*200.48,'az24101459982,627000005 ',28.8,28.8*10.000,28.8,28.8*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135320.8230 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.8234 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '328.9075.00.1'
20241016@135320.8248 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.8251 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '328.9075.00.1'
20241016@135320.8266 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.8269 psa8omqc0dtq0p5qbudnreu70p 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 = '328.9075.00.1' and sa.armazem = 133 
20241016@135320.8330 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.8333 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '328.9075.00.1'
20241016@135320.8351 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9075.00.1'
20241016@135320.8469 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.8485 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.8497 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.8512 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.8521 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='328.9075.00.1' and lote = 'r2400212150a'
20241016@135320.8539 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135320.8552 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.8566 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.8577 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb99538670fb740d0','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135320.8727 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.8744 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.8760 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb99538670fb740d0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,160,160*200.48,160,160*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,160*6.000,160*6.000*200.48 ,78.369000,78.369000*200.48 ,78.369000,78.369000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,160,160*200.48,160*6.000,160*6.000*200.48,'az24101460005,162000006 ',160,160*6.000,160,160*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135320.9008 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9011 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '328.9036.00.1'
20241016@135320.9025 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9028 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '328.9036.00.1'
20241016@135320.9044 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9047 psa8omqc0dtq0p5qbudnreu70p 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 = '328.9036.00.1' and sa.armazem = 133 
20241016@135320.9109 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9112 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '328.9036.00.1'
20241016@135320.9129 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9036.00.1'
20241016@135320.9239 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.9255 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.9267 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.9281 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.9290 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='328.9036.00.1' and lote = 'r2400212120a'
20241016@135320.9310 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135320.9322 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.9336 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135320.9347 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb22671670fb740e3','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135320.9488 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135320.9503 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135320.9518 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb22671670fb740e3',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,70000 ,128,128*200.48,128,128*200.48 ,0,0,'un ','' ,bo.marcada,1 ,128*3.000,128*3.000*200.48 ,57.471000,57.471000*200.48 ,57.471000,57.471000*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,'az24101460020,035000007 ',128,128*3.000,128,128*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135320.9787 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9791 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20241016@135320.9806 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9809 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241016@135320.9825 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9827 psa8omqc0dtq0p5qbudnreu70p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.692.00.01' and sa.armazem = 133 
20241016@135320.9894 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135320.9897 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241016@135320.9915 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.692.00.01'
20241016@135321.3000 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.4600 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135321.5800 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.7200 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135321.8000 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400209100a'
20241016@135321.9300 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135321.1050 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.1220 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135321.1330 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb28982670fb74102','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135321.2670 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.2820 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135321.2990 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb28982670fb74102',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 7.000, 7.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 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*7.000,96*7.000*200.48 ,32.536000,32.536000*200.48 ,32.536000,32.536000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*7.000,96*7.000*200.48,'az24101460044,033000008 ',96,96*7.000,96,96*7.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135321.5710 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135321.5750 psa8omqc0dtq0p5qbudnreu70p Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20241016@135321.5880 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135321.5910 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241016@135321.6060 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135321.6090 psa8omqc0dtq0p5qbudnreu70p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.692.00.01' and sa.armazem = 133 
20241016@135321.6310 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135321.6330 psa8omqc0dtq0p5qbudnreu70p Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241016@135321.6520 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.692.00.01'
20241016@135321.6660 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.6810 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135321.6930 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.7070 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135321.7150 psa8omqc0dtq0p5qbudnreu70p Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400209100a'
20241016@135321.7270 psa8omqc0dtq0p5qbudnreu70p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@135321.7380 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.7530 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@135321.7640 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fb06463670fb74112','aut670fb19438670fb7401f',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 = 'aut670fb19438670fb7401f'
20241016@135321.9060 psa8omqc0dtq0p5qbudnreu70p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@135321.9210 psa8omqc0dtq0p5qbudnreu70p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@135321.9360 psa8omqc0dtq0p5qbudnreu70p 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 'aut670fb06463670fb74112',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,90000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*5.000,96*5.000*200.48 ,32.536000,32.536000*200.48 ,32.536000,32.536000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*5.000,96*5.000*200.48,'az24101460044,033000008 ',96,96*5.000,96,96*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670fb19438670fb7401f'
20241016@135321.1207 psa8omqc0dtq0p5qbudnreu70p Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut670fb19438670fb7401f','','wait',5,'adm12071144683,938000003','')
20241016@135321.1294 psa8omqc0dtq0p5qbudnreu70p Query : use flama_phc
20241016@135321.1297 psa8omqc0dtq0p5qbudnreu70p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@135321.1348 psa8omqc0dtq0p5qbudnreu70p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2692';
20241016@135321.1382 psa8omqc0dtq0p5qbudnreu70p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2692';
20241016@141912.8990 400f9ojunhnrrhqnduhk3toh4b Query : use flama_phc
20241016@141912.9050 400f9ojunhnrrhqnduhk3toh4b Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@141912.1006 400f9ojunhnrrhqnduhk3toh4b Query : use flama_phc
20241016@141912.1011 400f9ojunhnrrhqnduhk3toh4b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@143611.7699 g3vr6jlrnjj3nmgultgeebn1k9 Query : use flama_phc
20241016@143611.7703 g3vr6jlrnjj3nmgultgeebn1k9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@143611.7791 g3vr6jlrnjj3nmgultgeebn1k9 Query : use flama_phc
20241016@143611.7794 g3vr6jlrnjj3nmgultgeebn1k9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@151914.7927 97gslumlvtd24aoplh55o984bf Query : use flama_phc
20241016@151914.7932 97gslumlvtd24aoplh55o984bf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@151914.8029 97gslumlvtd24aoplh55o984bf Query : use flama_phc
20241016@151914.8032 97gslumlvtd24aoplh55o984bf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@153615.2660 vbegv8t9bvtq4d9tgh03bvirae Query : use flama_phc
20241016@153615.2710 vbegv8t9bvtq4d9tgh03bvirae Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@153615.3780 vbegv8t9bvtq4d9tgh03bvirae Query : use flama_phc
20241016@153615.3810 vbegv8t9bvtq4d9tgh03bvirae Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@155515.1937 nabasmi04mf8c50t345qdnb49c Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@155515.1961 nabasmi04mf8c50t345qdnb49c Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@155515.2155 nabasmi04mf8c50t345qdnb49c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2693';
20241016@155515.2205 nabasmi04mf8c50t345qdnb49c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2693';
20241016@155515.2259 nabasmi04mf8c50t345qdnb49c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2693';
20241016@155515.2287 nabasmi04mf8c50t345qdnb49c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2693';
20241016@155515.2327 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155515.2331 nabasmi04mf8c50t345qdnb49c Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@155515.2436 nabasmi04mf8c50t345qdnb49c Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1317.00.1'
20241016@155515.2526 nabasmi04mf8c50t345qdnb49c 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 = 2400459 and bi.ref ='324.1317.00.1' and bi.lordem =20000
20241016@155515.2864 nabasmi04mf8c50t345qdnb49c 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 = 'cps24042433667,771000002 ' 
20241016@155515.3149 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155515.3153 nabasmi04mf8c50t345qdnb49c Query : select top 1 1 valor from ts where ts.ndos = 61
20241016@155515.3223 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155515.3226 nabasmi04mf8c50t345qdnb49c 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')
20241016@155515.3284 nabasmi04mf8c50t345qdnb49c 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
20241016@155515.3417 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155515.3420 nabasmi04mf8c50t345qdnb49c Query : select top 1 ~inactivo valor from fl where no = '202441' and estab = 00 order by inactivo desc
20241016@155515.3518 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155515.3521 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from ts where ndos = 61
20241016@155515.3535 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155515.3857 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241016@155515.3869 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155515.3887 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241016@155515.3897 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155515.3913 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241016@155515.3922 nabasmi04mf8c50t345qdnb49c 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
20241016@155515.4011 nabasmi04mf8c50t345qdnb49c Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241016@155515.4093 nabasmi04mf8c50t345qdnb49c Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241016@155515.4113 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155515.4119 nabasmi04mf8c50t345qdnb49c Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202441' and estab=00
20241016@155515.4190 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155515.4207 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241016@155515.4221 nabasmi04mf8c50t345qdnb49c Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fd67710670fd3d364',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241016@155515.4268 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155515.4286 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241016@155515.4299 nabasmi04mf8c50t345qdnb49c Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fd67710670fd3d364','--','bo',1.1160195303417809811 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241016@155515.4454 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155515.4472 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241016@155515.4486 nabasmi04mf8c50t345qdnb49c 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 ('aut670fd67710670fd3d364','guia r. fornecedor','2024-10-16',61,2403101,?,?,?,?,?,?,?,?,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')
20241016@155517.8595 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155517.8598 nabasmi04mf8c50t345qdnb49c Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241016@155517.8632 nabasmi04mf8c50t345qdnb49c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1317.00.1'
20241016@155517.8824 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155517.8864 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241016@155517.8949 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155517.8978 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241016@155517.8988 nabasmi04mf8c50t345qdnb49c Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400459200a'
20241016@155517.9006 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155517.9051 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241016@155517.9084 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155517.9118 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241016@155517.9138 nabasmi04mf8c50t345qdnb49c Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fd01225670fd3d5dd',?,?,'20241016',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241016@155518.4000 nabasmi04mf8c50t345qdnb49c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@155518.1580 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155518.2880 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241016@155518.5770 nabasmi04mf8c50t345qdnb49c Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670fd80460670fd3d603','aut670fd67710670fd3d364',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 = 'aut670fd67710670fd3d364'
20241016@155518.7340 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@155518.7530 nabasmi04mf8c50t345qdnb49c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241016@155518.7710 nabasmi04mf8c50t345qdnb49c 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 'aut670fd80460670fd3d603',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1650, 1650*.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 ,43.01,43.01*200.48,43.01,43.01*200.48 ,0,0,'un ','' ,bo.marcada,1 ,43.01*1650,43.01*1650*200.48 ,51.816000,51.816000*200.48 ,51.816000,51.816000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,43.01,43.01*200.48,43.01*1650,43.01*1650*200.48,'cps24042433667,771000002 ',48,48*1650,48,48*1650,?,?,?,4 from bo bo where bo.bostamp = 'aut670fd67710670fd3d364'
20241016@155524.7730 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155524.7741 nabasmi04mf8c50t345qdnb49c Query : declare @bostamp varchar(25) = 'aut670fd67710670fd3d364' ,@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 
20241016@155535.6133 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155535.6137 nabasmi04mf8c50t345qdnb49c Query : select 1 valor from bo where bo.bostamp = 'aut670fd67710670fd3d364'
20241016@155535.6215 nabasmi04mf8c50t345qdnb49c 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) = 'aut670fd67710670fd3d364' 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 
20241016@155537.7402 nabasmi04mf8c50t345qdnb49c Query : use flama_phc
20241016@155537.7406 nabasmi04mf8c50t345qdnb49c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@155537.7460 nabasmi04mf8c50t345qdnb49c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2693';
20241016@155537.7493 nabasmi04mf8c50t345qdnb49c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2693';
20241016@161923.8306 ca4ndghcchj17ejlapbamg0kgt Query : use flama_phc
20241016@161923.8310 ca4ndghcchj17ejlapbamg0kgt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@161924.9830 ca4ndghcchj17ejlapbamg0kgt Query : use flama_phc
20241016@161924.9870 ca4ndghcchj17ejlapbamg0kgt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@163623.9734 km6min1por5lamcfvv2ti5nuvq Query : use flama_phc
20241016@163623.9739 km6min1por5lamcfvv2ti5nuvq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@163623.9828 km6min1por5lamcfvv2ti5nuvq Query : use flama_phc
20241016@163623.9831 km6min1por5lamcfvv2ti5nuvq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@171914.9123 vfl9ji7o7mm1nahqfncic178qc Query : use flama_phc
20241016@171914.9127 vfl9ji7o7mm1nahqfncic178qc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@171914.9211 vfl9ji7o7mm1nahqfncic178qc Query : use flama_phc
20241016@171914.9215 vfl9ji7o7mm1nahqfncic178qc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@173614.5348 217s0or1arto58976pesgulp8q Query : use flama_phc
20241016@173614.5352 217s0or1arto58976pesgulp8q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@173614.5441 217s0or1arto58976pesgulp8q Query : use flama_phc
20241016@173614.5444 217s0or1arto58976pesgulp8q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@174143.4169 3vsd36lf01pedggkrbmaac9uov Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@174143.4180 3vsd36lf01pedggkrbmaac9uov Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@174143.4272 3vsd36lf01pedggkrbmaac9uov Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2694';
20241016@174143.4336 3vsd36lf01pedggkrbmaac9uov Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2694';
20241016@174143.4387 3vsd36lf01pedggkrbmaac9uov Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2694';
20241016@174143.4415 3vsd36lf01pedggkrbmaac9uov Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2694';
20241016@174143.4466 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174143.4469 3vsd36lf01pedggkrbmaac9uov Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@174143.4533 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174143.4536 3vsd36lf01pedggkrbmaac9uov Query : select no, estab,szadrsdesc from szadrs where u_coddest=6625
20241016@174143.4620 3vsd36lf01pedggkrbmaac9uov Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2221.00.1'
20241016@174143.4736 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.2221.00.1' and bi.lordem =1
20241016@174143.5022 3vsd36lf01pedggkrbmaac9uov Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2907.00.1'
20241016@174143.5135 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.2907.00.1' and bi.lordem =2
20241016@174143.5417 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.5527 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.646.00.01' and bi.lordem =3
20241016@174143.5833 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.5854 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.646.00.01' and bi.lordem =3
20241016@174143.5872 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.5989 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.681.00.01' and bi.lordem =4
20241016@174143.6284 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.6406 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.642.00.01' and bi.lordem =5
20241016@174143.6881 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.7008 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.4521.00.1' and bi.lordem =6
20241016@174143.7297 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.7416 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.5342.00.1' and bi.lordem =7
20241016@174143.7702 3vsd36lf01pedggkrbmaac9uov Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20241016@174143.7815 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.1461.00.1' and bi.lordem =8
20241016@174143.8093 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.8208 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.958.00.01' and bi.lordem =9
20241016@174143.8485 3vsd36lf01pedggkrbmaac9uov 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'
20241016@174143.8504 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.958.00.01' and bi.lordem =9
20241016@174143.8521 3vsd36lf01pedggkrbmaac9uov Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.966.00.01'
20241016@174143.8629 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.966.00.01' and bi.lordem =10
20241016@174143.8905 3vsd36lf01pedggkrbmaac9uov Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.969.00.01'
20241016@174143.9016 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.969.00.01' and bi.lordem =11
20241016@174143.9293 3vsd36lf01pedggkrbmaac9uov Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241016@174143.9408 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.1317.00.1' and bi.lordem =12
20241016@174144.5380 3vsd36lf01pedggkrbmaac9uov Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241016@174144.6840 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406782 and bi.ref ='324.1317.00.1' and bi.lordem =12
20241016@174144.7020 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.7060 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@174144.8730 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.8760 3vsd36lf01pedggkrbmaac9uov Query : select top 1 1 valor from td where td.ndoc = 39
20241016@174144.9420 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.9450 3vsd36lf01pedggkrbmaac9uov 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')
20241016@174144.9790 3vsd36lf01pedggkrbmaac9uov 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
20241016@174144.1088 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.1092 3vsd36lf01pedggkrbmaac9uov Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20241016@174144.1185 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.1188 3vsd36lf01pedggkrbmaac9uov Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@174144.1443 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.1446 3vsd36lf01pedggkrbmaac9uov Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@174144.1511 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.1515 3vsd36lf01pedggkrbmaac9uov Query : select szadrsstamp valor from szadrs where szadrsdesc='eldisser - mesur'
20241016@174144.1564 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.1567 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from td where ndoc = 39
20241016@174144.1621 3vsd36lf01pedggkrbmaac9uov Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@174144.1666 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.1688 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@174144.1731 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.1745 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@174144.1773 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.1787 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@174144.1800 3vsd36lf01pedggkrbmaac9uov Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@174144.1964 3vsd36lf01pedggkrbmaac9uov Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@174144.2041 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.2057 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@174144.2074 3vsd36lf01pedggkrbmaac9uov Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@174144.2292 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.2309 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@174144.2344 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@174144.2412 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@174144.2475 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@174144.2531 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@174144.2589 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@174144.2647 3vsd36lf01pedggkrbmaac9uov Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@174144.2703 3vsd36lf01pedggkrbmaac9uov Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670fe71007670fecc82b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@174144.3151 3vsd36lf01pedggkrbmaac9uov Query : select top 1 fno valor from wsftdata order by fno desc
20241016@174144.3221 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.3237 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@174144.3262 3vsd36lf01pedggkrbmaac9uov Query : select 'normal' from dummy
20241016@174144.3310 3vsd36lf01pedggkrbmaac9uov Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670fe71007670fecc82b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1298,200500,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@174144.3668 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.3671 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20241016@174144.3708 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2221.00.1'
20241016@174144.3828 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.3843 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.3871 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.3885 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.3896 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.3909 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.2221.00.1' and lote = 'r2301280100a'
20241016@174144.3924 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.3938 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.3951 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe45016670fecc85f','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.4007 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.4022 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.4049 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe45016670fecc85f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@174144.4556 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.4559 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20241016@174144.4580 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2907.00.1'
20241016@174144.4738 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.4753 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.4777 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.4791 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.4799 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.4811 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20241016@174144.4825 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.4841 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.4853 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe98908670fecc875','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.4857 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.4871 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.4898 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe98908670fecc875',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241016@174144.5117 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.5120 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20241016@174144.5141 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174144.5256 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5272 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.5298 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5313 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.5321 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.5333 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20241016@174144.5346 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5360 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.5371 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe94393670fecc882','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.5375 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5389 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.5416 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe94393670fecc882',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241016@174144.5645 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5662 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.5686 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5701 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.5710 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.5722 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5736 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.5747 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe15124670fecc88b','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.5751 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.5766 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.5792 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670fe15124670fecc88b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,40000,?,?,?)
20241016@174144.6006 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.6009 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20241016@174144.6029 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174144.6042 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.6058 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.6082 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.6095 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.6103 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.6115 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400224100a'
20241016@174144.6126 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.6140 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.6150 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe57180670fecc895','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.6154 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.6169 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.6196 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe57180670fecc895',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20241016@174144.6423 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.6439 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.6464 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.6480 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.6491 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.6503 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.6526 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.7394 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe77248670fecc89e','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.7441 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.7786 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.7816 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670fe77248670fecc89e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,70000,?,?,?)
20241016@174144.8039 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.8042 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.681.00.01'
20241016@174144.8063 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174144.8176 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8192 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.8218 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8424 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.8434 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.8446 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.681.00.01' and lote = 'r2400057200a'
20241016@174144.8461 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8476 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.8487 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe99778670fecc8ce','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.8492 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8506 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.8535 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe99778670fecc8ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241016@174144.8752 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8768 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.8793 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8809 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.8818 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.8830 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8845 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.8857 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe76489670fecc8d7','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.8861 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.8876 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.8905 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670fe76489670fecc8d7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,100000,?,?,?)
20241016@174144.9131 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.9134 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20241016@174144.9156 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174144.9266 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9283 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.9310 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9325 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.9334 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.9346 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20241016@174144.9373 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9387 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.9398 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe62172670fecc8e4','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.9402 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9417 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.9444 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe62172670fecc8e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20241016@174144.9647 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174144.9650 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20241016@174144.9670 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174144.9789 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9806 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.9832 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9847 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.9856 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174144.9868 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20241016@174144.9881 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9896 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174144.9908 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe68029670fecc8f1','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174144.9912 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174144.9927 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174144.9955 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe68029670fecc8f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20241016@174145.1740 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.1770 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20241016@174145.1990 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174145.3160 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3320 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.3570 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3720 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.3800 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.3920 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20241016@174145.4060 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.4220 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.4340 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe89494670fecc909','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.4380 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.4530 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.4810 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe89494670fecc909',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20241016@174145.6960 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.7120 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.7370 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.7530 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.7620 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.7740 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.7890 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.8030 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe90808670fecc912','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.8070 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.8210 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.8490 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670fe90808670fecc912',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,150000,?,?,?)
20241016@174145.1086 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.1089 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.1461.00.1'
20241016@174145.1110 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1461.00.1'
20241016@174145.1228 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.1244 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.1271 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.1286 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.1295 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.1309 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.1461.00.1' and lote = 'r2100463200a'
20241016@174145.1324 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.1340 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.1352 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe80631670fecc920','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.1357 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.1373 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.1402 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe80631670fecc920',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,170000,?,?,?,?,?)
20241016@174145.1814 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.1818 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241016@174145.1840 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174145.1956 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.1973 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.1999 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2016 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.2025 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.2037 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241016@174145.2051 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2067 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.2078 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe02837670fecc932','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.2082 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2096 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.2124 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe02837670fecc932',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20241016@174145.2345 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.2348 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20241016@174145.2367 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174145.2380 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2396 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.2421 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2435 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.2444 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.2456 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20241016@174145.2468 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2482 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.2493 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe23797670fecc93c','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.2498 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2511 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.2538 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe23797670fecc93c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20241016@174145.2755 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.2758 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.966.00.01'
20241016@174145.2777 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.966.00.01'
20241016@174145.2888 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2904 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.2929 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2943 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.2952 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.2963 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.966.00.01' and lote = 'r2400743200a'
20241016@174145.2976 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.2990 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.3001 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe55087670fecc948','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.3005 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3019 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.3049 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe55087670fecc948',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,200000,?,?,?,?,?)
20241016@174145.3274 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.3277 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20241016@174145.3304 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@174145.3436 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3453 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.3477 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3492 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.3500 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.3512 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20241016@174145.3526 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3540 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.3552 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe90884670fecc956','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.3556 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3571 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.3598 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe90884670fecc956',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20241016@174145.3808 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.3811 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241016@174145.3829 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1317.00.1'
20241016@174145.3842 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3857 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.3880 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3894 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.3903 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.3915 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241016@174145.3929 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3945 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.3957 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe20888670fecc95f','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.3961 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.3975 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.4004 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe20888670fecc95f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20241016@174145.5302 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.5332 3vsd36lf01pedggkrbmaac9uov Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241016@174145.5437 3vsd36lf01pedggkrbmaac9uov Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1317.00.1'
20241016@174145.5450 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.5467 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.5503 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.5523 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.5531 3vsd36lf01pedggkrbmaac9uov Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@174145.5554 3vsd36lf01pedggkrbmaac9uov Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241016@174145.5605 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.5621 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@174145.5658 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670fe57467670fecc988','aut670fe71007670fecc82b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@174145.5663 3vsd36lf01pedggkrbmaac9uov Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@174145.5688 3vsd36lf01pedggkrbmaac9uov Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@174145.5766 3vsd36lf01pedggkrbmaac9uov Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670fe57467670fecc988',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670fe71007670fecc82b' ,0,0 ,2,23.00,230000,?,?,?,?,?)
20241016@174145.6154 3vsd36lf01pedggkrbmaac9uov Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670fe71007670fecc82b','2406782','wait',39,'adm09112754980.682000002')
20241016@174145.6278 3vsd36lf01pedggkrbmaac9uov Query : use flama_phc
20241016@174145.6281 3vsd36lf01pedggkrbmaac9uov Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@174145.6310 3vsd36lf01pedggkrbmaac9uov Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2694';
20241016@174145.6342 3vsd36lf01pedggkrbmaac9uov Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2694';
20241016@174145.6385 3vsd36lf01pedggkrbmaac9uov Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2694';
20241016@174145.6413 3vsd36lf01pedggkrbmaac9uov Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2694';
20241016@175740.4566 ko763ph1c74ea3ptddq1h7qitm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175740.4578 ko763ph1c74ea3ptddq1h7qitm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175740.4725 ko763ph1c74ea3ptddq1h7qitm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2695';
20241016@175740.4780 ko763ph1c74ea3ptddq1h7qitm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2695';
20241016@175740.4835 ko763ph1c74ea3ptddq1h7qitm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2695';
20241016@175740.4864 ko763ph1c74ea3ptddq1h7qitm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2695';
20241016@175740.4918 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.4921 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175740.4987 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.4990 ko763ph1c74ea3ptddq1h7qitm Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175740.5163 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2315.00.1'
20241016@175740.5279 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406731 and bi.ref ='304.2315.00.1' and bi.lordem =1
20241016@175740.5571 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5574 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175740.5610 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5613 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175740.5643 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5646 ko763ph1c74ea3ptddq1h7qitm 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')
20241016@175740.5676 ko763ph1c74ea3ptddq1h7qitm 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
20241016@175740.5716 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5719 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175740.5809 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5813 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175740.5850 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5853 ko763ph1c74ea3ptddq1h7qitm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175740.5897 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5899 ko763ph1c74ea3ptddq1h7qitm Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175740.5949 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.5952 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from td where ndoc = 39
20241016@175740.5964 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175740.5978 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.5995 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175740.6015 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.6029 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175740.6058 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.6073 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175740.6085 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175740.6152 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175740.6166 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.6180 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175740.6195 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff12634670ff08494' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175740.6345 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.6360 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175740.6398 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175740.6412 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175740.6425 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175740.6437 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175740.6448 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175740.6460 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175740.6471 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff12634670ff08494',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175740.6690 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175740.6714 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.6730 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175740.6753 ko763ph1c74ea3ptddq1h7qitm Query : select 'normal' from dummy
20241016@175740.6771 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff12634670ff08494',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1299,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175740.7042 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.7045 ko763ph1c74ea3ptddq1h7qitm Query : select st.usalote valor from st where st.ref = '304.2315.00.1'
20241016@175740.7070 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2315.00.1'
20241016@175740.7188 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7203 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175740.7228 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7242 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175740.7250 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175740.7262 ko763ph1c74ea3ptddq1h7qitm Query : select sestamp valor from se where ref ='304.2315.00.1' and lote = 's2300276100a'
20241016@175740.7281 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7295 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175740.7306 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff12185670ff084b1','aut670ff12634670ff08494' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175740.7310 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7327 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175740.7353 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff12185670ff084b1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut670ff12634670ff08494' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175740.7573 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7588 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175740.7613 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7628 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175740.7636 ko763ph1c74ea3ptddq1h7qitm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175740.7647 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7664 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175740.7675 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff07111670ff084ba','aut670ff12634670ff08494' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175740.7679 ko763ph1c74ea3ptddq1h7qitm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.7692 ko763ph1c74ea3ptddq1h7qitm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175740.7722 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670ff07111670ff084ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670ff12634670ff08494' ,0,0 ,2,23.00,20000,?,?,?)
20241016@175740.7922 ko763ph1c74ea3ptddq1h7qitm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff12634670ff08494','2406731','wait',39,'adm09112754980.682000002')
20241016@175740.8012 ko763ph1c74ea3ptddq1h7qitm Query : use flama_phc
20241016@175740.8015 ko763ph1c74ea3ptddq1h7qitm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175740.8062 ko763ph1c74ea3ptddq1h7qitm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2695';
20241016@175740.8093 ko763ph1c74ea3ptddq1h7qitm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2695';
20241016@175740.8135 ko763ph1c74ea3ptddq1h7qitm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2695';
20241016@175740.8160 ko763ph1c74ea3ptddq1h7qitm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2695';
20241016@175740.8695 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175740.8707 hd9i9nqf56hs1nqjiepqtbimvp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175740.8763 hd9i9nqf56hs1nqjiepqtbimvp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2696';
20241016@175740.8845 hd9i9nqf56hs1nqjiepqtbimvp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2696';
20241016@175740.8905 hd9i9nqf56hs1nqjiepqtbimvp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2696';
20241016@175740.8934 hd9i9nqf56hs1nqjiepqtbimvp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2696';
20241016@175740.8986 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.8989 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175740.9050 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9054 hd9i9nqf56hs1nqjiepqtbimvp Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175740.9096 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2315.00.1'
20241016@175740.9116 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406732 and bi.ref ='304.2315.00.1' and bi.lordem =1
20241016@175740.9574 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9577 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175740.9610 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9613 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175740.9645 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9648 hd9i9nqf56hs1nqjiepqtbimvp 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')
20241016@175740.9679 hd9i9nqf56hs1nqjiepqtbimvp 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
20241016@175740.9725 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9728 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175740.9760 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9763 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175740.9797 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9799 hd9i9nqf56hs1nqjiepqtbimvp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175740.9839 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9842 hd9i9nqf56hs1nqjiepqtbimvp Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175740.9886 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175740.9889 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from td where ndoc = 39
20241016@175740.9901 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175740.9914 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.9930 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175740.9948 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175740.9962 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175741.1000 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1600 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175741.2800 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175741.9100 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175741.1040 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1190 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175741.1340 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff10847670ff08500' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175741.2830 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.2980 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175741.3330 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175741.3440 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175741.3570 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175741.3700 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175741.3810 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175741.3930 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175741.4040 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff10847670ff08500',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175741.6100 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175741.6330 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.6480 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175741.6700 hd9i9nqf56hs1nqjiepqtbimvp Query : select 'normal' from dummy
20241016@175741.6850 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff10847670ff08500',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1300,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175741.9220 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175741.9250 hd9i9nqf56hs1nqjiepqtbimvp Query : select st.usalote valor from st where st.ref = '304.2315.00.1'
20241016@175741.9460 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2315.00.1'
20241016@175741.9600 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.9740 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.1000 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1014 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.1022 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175741.1034 hd9i9nqf56hs1nqjiepqtbimvp Query : select sestamp valor from se where ref ='304.2315.00.1' and lote = 's2300276100a'
20241016@175741.1046 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1060 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.1071 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff76849670ff08519','aut670ff10847670ff08500' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175741.1075 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1090 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.1117 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff76849670ff08519',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut670ff10847670ff08500' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175741.1338 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1353 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.1377 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1392 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.1401 hd9i9nqf56hs1nqjiepqtbimvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175741.1413 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1426 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.1438 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff23296670ff08522','aut670ff10847670ff08500' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175741.1442 hd9i9nqf56hs1nqjiepqtbimvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.1456 hd9i9nqf56hs1nqjiepqtbimvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.1484 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670ff23296670ff08522',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670ff10847670ff08500' ,0,0 ,2,23.00,20000,?,?,?)
20241016@175741.1697 hd9i9nqf56hs1nqjiepqtbimvp Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff10847670ff08500','2406732','wait',39,'adm09112754980.682000002')
20241016@175741.1765 hd9i9nqf56hs1nqjiepqtbimvp Query : use flama_phc
20241016@175741.1768 hd9i9nqf56hs1nqjiepqtbimvp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175741.1798 hd9i9nqf56hs1nqjiepqtbimvp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2696';
20241016@175741.1829 hd9i9nqf56hs1nqjiepqtbimvp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2696';
20241016@175741.1873 hd9i9nqf56hs1nqjiepqtbimvp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2696';
20241016@175741.1904 hd9i9nqf56hs1nqjiepqtbimvp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2696';
20241016@175741.2415 o1k9adllf1bcnv2hvsjba06rnd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175741.2425 o1k9adllf1bcnv2hvsjba06rnd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175741.2481 o1k9adllf1bcnv2hvsjba06rnd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2697';
20241016@175741.2536 o1k9adllf1bcnv2hvsjba06rnd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2697';
20241016@175741.2596 o1k9adllf1bcnv2hvsjba06rnd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2697';
20241016@175741.2625 o1k9adllf1bcnv2hvsjba06rnd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2697';
20241016@175741.2678 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.2682 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175741.2750 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.2753 o1k9adllf1bcnv2hvsjba06rnd Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175741.2795 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2315.00.1'
20241016@175741.2815 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406733 and bi.ref ='304.2315.00.1' and bi.lordem =1
20241016@175741.3108 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3111 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175741.3142 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3145 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175741.3175 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3178 o1k9adllf1bcnv2hvsjba06rnd 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')
20241016@175741.3205 o1k9adllf1bcnv2hvsjba06rnd 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
20241016@175741.3242 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3245 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175741.3276 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3278 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175741.3307 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3310 o1k9adllf1bcnv2hvsjba06rnd Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175741.3351 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3354 o1k9adllf1bcnv2hvsjba06rnd Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175741.3400 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.3403 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from td where ndoc = 39
20241016@175741.3416 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175741.3429 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.3445 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175741.3465 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.3479 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175741.3507 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.3521 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175741.3533 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175741.3599 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175741.3611 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.3626 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175741.3642 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff03429670ff08556' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175741.3791 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.3806 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175741.3838 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175741.3850 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175741.3864 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175741.3878 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175741.3889 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175741.3900 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175741.3912 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff03429670ff08556',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175741.4114 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175741.4137 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.4153 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175741.4176 o1k9adllf1bcnv2hvsjba06rnd Query : select 'normal' from dummy
20241016@175741.4191 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff03429670ff08556',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1301,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175741.4428 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.4431 o1k9adllf1bcnv2hvsjba06rnd Query : select st.usalote valor from st where st.ref = '304.2315.00.1'
20241016@175741.4451 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2315.00.1'
20241016@175741.4465 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.4480 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.4504 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.4519 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.4528 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175741.4539 o1k9adllf1bcnv2hvsjba06rnd Query : select sestamp valor from se where ref ='304.2315.00.1' and lote = 's2300276100a'
20241016@175741.4576 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.4591 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.4621 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff07470670ff0856f','aut670ff03429670ff08556' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175741.4625 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.4639 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.5777 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff07470670ff0856f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut670ff03429670ff08556' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175741.6005 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.6021 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.6046 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.6060 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.6068 o1k9adllf1bcnv2hvsjba06rnd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175741.6080 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.6094 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.6107 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff80196670ff08594','aut670ff03429670ff08556' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175741.6111 o1k9adllf1bcnv2hvsjba06rnd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.6125 o1k9adllf1bcnv2hvsjba06rnd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.6155 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670ff80196670ff08594',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670ff03429670ff08556' ,0,0 ,2,23.00,20000,?,?,?)
20241016@175741.6362 o1k9adllf1bcnv2hvsjba06rnd Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff03429670ff08556','2406733','wait',39,'adm09112754980.682000002')
20241016@175741.6431 o1k9adllf1bcnv2hvsjba06rnd Query : use flama_phc
20241016@175741.6434 o1k9adllf1bcnv2hvsjba06rnd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175741.6465 o1k9adllf1bcnv2hvsjba06rnd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2697';
20241016@175741.6496 o1k9adllf1bcnv2hvsjba06rnd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2697';
20241016@175741.6541 o1k9adllf1bcnv2hvsjba06rnd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2697';
20241016@175741.6568 o1k9adllf1bcnv2hvsjba06rnd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2697';
20241016@175741.7109 pd8i54aujte2bb12ubvg2cvbmm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175741.7120 pd8i54aujte2bb12ubvg2cvbmm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175741.7179 pd8i54aujte2bb12ubvg2cvbmm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2698';
20241016@175741.7284 pd8i54aujte2bb12ubvg2cvbmm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2698';
20241016@175741.7341 pd8i54aujte2bb12ubvg2cvbmm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2698';
20241016@175741.7369 pd8i54aujte2bb12ubvg2cvbmm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2698';
20241016@175741.7457 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.7464 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175741.7547 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.7550 pd8i54aujte2bb12ubvg2cvbmm Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175741.7593 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20241016@175741.7710 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406734 and bi.ref ='324.5500.00.1' and bi.lordem =1
20241016@175741.7992 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.7995 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175741.8032 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.8036 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175741.8064 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.8066 pd8i54aujte2bb12ubvg2cvbmm 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')
20241016@175741.8093 pd8i54aujte2bb12ubvg2cvbmm 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
20241016@175741.8129 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.8132 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175741.8160 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.8163 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175741.8194 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.8197 pd8i54aujte2bb12ubvg2cvbmm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175741.8238 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.8241 pd8i54aujte2bb12ubvg2cvbmm Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175741.8289 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.8292 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from td where ndoc = 39
20241016@175741.8305 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175741.8318 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.8334 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175741.8352 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.8367 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175741.8395 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.8410 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175741.8422 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175741.8487 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175741.8499 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.8515 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175741.8531 pd8i54aujte2bb12ubvg2cvbmm Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff10257670ff085cd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175741.8676 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.8691 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175741.8723 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175741.8735 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175741.8746 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175741.8760 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175741.8771 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175741.8783 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175741.8794 pd8i54aujte2bb12ubvg2cvbmm Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff10257670ff085cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175741.9003 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175741.9025 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.9040 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175741.9061 pd8i54aujte2bb12ubvg2cvbmm Query : select 'normal' from dummy
20241016@175741.9076 pd8i54aujte2bb12ubvg2cvbmm Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff10257670ff085cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1302,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175741.9321 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175741.9324 pd8i54aujte2bb12ubvg2cvbmm Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20241016@175741.9345 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20241016@175741.9458 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.9474 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.9498 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.9514 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.9522 pd8i54aujte2bb12ubvg2cvbmm Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175741.9534 pd8i54aujte2bb12ubvg2cvbmm Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2400095600a'
20241016@175741.9547 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.9561 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175741.9611 pd8i54aujte2bb12ubvg2cvbmm Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff88730670ff085e9','aut670ff10257670ff085cd' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175741.9654 pd8i54aujte2bb12ubvg2cvbmm Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175741.9723 pd8i54aujte2bb12ubvg2cvbmm Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175741.9756 pd8i54aujte2bb12ubvg2cvbmm Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff88730670ff085e9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',30.000 ,'aut670ff10257670ff085cd' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175742.1210 pd8i54aujte2bb12ubvg2cvbmm Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff10257670ff085cd','2406734','wait',39,'adm09112754980.682000002')
20241016@175742.1371 pd8i54aujte2bb12ubvg2cvbmm Query : use flama_phc
20241016@175742.1375 pd8i54aujte2bb12ubvg2cvbmm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175742.1409 pd8i54aujte2bb12ubvg2cvbmm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2698';
20241016@175742.1442 pd8i54aujte2bb12ubvg2cvbmm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2698';
20241016@175742.1490 pd8i54aujte2bb12ubvg2cvbmm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2698';
20241016@175742.1518 pd8i54aujte2bb12ubvg2cvbmm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2698';
20241016@175742.2144 ukaft0l3trcv0nviu1t1sak5et Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175742.2156 ukaft0l3trcv0nviu1t1sak5et Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175742.2214 ukaft0l3trcv0nviu1t1sak5et Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2699';
20241016@175742.2271 ukaft0l3trcv0nviu1t1sak5et Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2699';
20241016@175742.2328 ukaft0l3trcv0nviu1t1sak5et Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2699';
20241016@175742.2355 ukaft0l3trcv0nviu1t1sak5et Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2699';
20241016@175742.2408 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.2412 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175742.2478 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.2481 ukaft0l3trcv0nviu1t1sak5et Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175742.2523 ukaft0l3trcv0nviu1t1sak5et 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'
20241016@175742.2876 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406735 and bi.ref ='324.5396.00.1' and bi.lordem =1
20241016@175742.3180 ukaft0l3trcv0nviu1t1sak5et 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'
20241016@175742.3200 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406735 and bi.ref ='324.5396.00.1' and bi.lordem =1
20241016@175742.3216 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3219 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175742.3251 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3253 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175742.3284 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3286 ukaft0l3trcv0nviu1t1sak5et 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')
20241016@175742.3315 ukaft0l3trcv0nviu1t1sak5et 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
20241016@175742.3351 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3354 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175742.3384 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3387 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175742.3418 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3421 ukaft0l3trcv0nviu1t1sak5et Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175742.3460 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3463 ukaft0l3trcv0nviu1t1sak5et Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175742.3527 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.3529 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from td where ndoc = 39
20241016@175742.3541 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175742.3554 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.3570 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175742.3588 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.3602 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175742.3631 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.3645 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175742.3657 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175742.3721 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175742.3733 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.3748 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175742.3763 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff95965670ff08659' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175742.3914 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.3932 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175742.3966 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175742.3977 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175742.3989 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175742.4001 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175742.4037 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175742.4049 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175742.4060 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff95965670ff08659',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175742.4277 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175742.4299 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.4316 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175742.4337 ukaft0l3trcv0nviu1t1sak5et Query : select 'normal' from dummy
20241016@175742.4352 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff95965670ff08659',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1303,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175742.4590 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.4593 ukaft0l3trcv0nviu1t1sak5et Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20241016@175742.4616 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@175742.4758 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.4775 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.4799 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.4814 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.4822 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175742.4834 ukaft0l3trcv0nviu1t1sak5et Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20241016@175742.4847 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.4863 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.4875 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff76791670ff08676','aut670ff95965670ff08659' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175742.4879 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.4893 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.4920 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff76791670ff08676',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670ff95965670ff08659' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175742.5142 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5159 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.5183 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5198 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.5206 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175742.5218 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5232 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.5243 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff49035670ff0867f','aut670ff95965670ff08659' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175742.5247 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5262 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.5289 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670ff49035670ff0867f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670ff95965670ff08659' ,0,0 ,2,23.00,20000,?,?,?)
20241016@175742.5530 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.5533 ukaft0l3trcv0nviu1t1sak5et Query : select st.usalote valor from st where st.ref = '324.5396.00.1'
20241016@175742.5553 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@175742.5566 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5582 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.5607 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5622 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.5630 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175742.5642 ukaft0l3trcv0nviu1t1sak5et Query : select sestamp valor from se where ref ='324.5396.00.1' and lote = 'r2300840100a'
20241016@175742.5654 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5669 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.5680 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff12002670ff0868a','aut670ff95965670ff08659' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175742.5684 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.5698 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.5738 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff12002670ff0868a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut670ff95965670ff08659' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241016@175742.6050 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.6066 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.6090 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.6104 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.6114 ukaft0l3trcv0nviu1t1sak5et Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175742.6128 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.6142 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175742.6153 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff75329670ff08695','aut670ff95965670ff08659' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175742.6157 ukaft0l3trcv0nviu1t1sak5et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175742.6171 ukaft0l3trcv0nviu1t1sak5et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175742.6198 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670ff75329670ff08695',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670ff95965670ff08659' ,0,0 ,2,23.00,50000,?,?,?)
20241016@175742.6407 ukaft0l3trcv0nviu1t1sak5et Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff95965670ff08659','2406735','wait',39,'adm09112754980.682000002')
20241016@175742.6591 ukaft0l3trcv0nviu1t1sak5et Query : use flama_phc
20241016@175742.6594 ukaft0l3trcv0nviu1t1sak5et Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175742.6647 ukaft0l3trcv0nviu1t1sak5et Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2699';
20241016@175742.6679 ukaft0l3trcv0nviu1t1sak5et Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2699';
20241016@175742.6722 ukaft0l3trcv0nviu1t1sak5et Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2699';
20241016@175742.6750 ukaft0l3trcv0nviu1t1sak5et Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2699';
20241016@175742.9525 tan72o7mctlspk70nab46fke7s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175742.9570 tan72o7mctlspk70nab46fke7s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175742.9679 tan72o7mctlspk70nab46fke7s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2700';
20241016@175742.9856 tan72o7mctlspk70nab46fke7s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2700';
20241016@175742.9915 tan72o7mctlspk70nab46fke7s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2700';
20241016@175742.9978 tan72o7mctlspk70nab46fke7s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2700';
20241016@175743.1090 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.1120 tan72o7mctlspk70nab46fke7s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175743.1760 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.1790 tan72o7mctlspk70nab46fke7s Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175743.2200 tan72o7mctlspk70nab46fke7s Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241016@175743.3370 tan72o7mctlspk70nab46fke7s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406736 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241016@175743.6350 tan72o7mctlspk70nab46fke7s Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241016@175743.6560 tan72o7mctlspk70nab46fke7s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406736 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241016@175743.6740 tan72o7mctlspk70nab46fke7s Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241016@175743.6920 tan72o7mctlspk70nab46fke7s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406736 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241016@175743.7090 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.7140 tan72o7mctlspk70nab46fke7s Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175743.7470 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.7500 tan72o7mctlspk70nab46fke7s Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175743.7810 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.7850 tan72o7mctlspk70nab46fke7s 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')
20241016@175743.8130 tan72o7mctlspk70nab46fke7s 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
20241016@175743.8460 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.8490 tan72o7mctlspk70nab46fke7s Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175743.8780 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.8800 tan72o7mctlspk70nab46fke7s Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175743.9120 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.9160 tan72o7mctlspk70nab46fke7s Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175743.9590 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.9620 tan72o7mctlspk70nab46fke7s Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175743.1011 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.1013 tan72o7mctlspk70nab46fke7s Query : select 1 valor from td where ndoc = 39
20241016@175743.1025 tan72o7mctlspk70nab46fke7s Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175743.1038 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.1054 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175743.1072 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.1087 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175743.1119 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.1133 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175743.1145 tan72o7mctlspk70nab46fke7s Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175743.1208 tan72o7mctlspk70nab46fke7s Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175743.1221 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.1235 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175743.1249 tan72o7mctlspk70nab46fke7s Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff96230670ff0871b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175743.1406 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.1422 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175743.1453 tan72o7mctlspk70nab46fke7s Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175743.1466 tan72o7mctlspk70nab46fke7s Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175743.1477 tan72o7mctlspk70nab46fke7s Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175743.1488 tan72o7mctlspk70nab46fke7s Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175743.1500 tan72o7mctlspk70nab46fke7s Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175743.1512 tan72o7mctlspk70nab46fke7s Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175743.1523 tan72o7mctlspk70nab46fke7s Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff96230670ff0871b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175743.1723 tan72o7mctlspk70nab46fke7s Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175743.1745 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.1760 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175743.1782 tan72o7mctlspk70nab46fke7s Query : select 'normal' from dummy
20241016@175743.1797 tan72o7mctlspk70nab46fke7s Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff96230670ff0871b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1304,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175743.2088 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.2091 tan72o7mctlspk70nab46fke7s Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241016@175743.2113 tan72o7mctlspk70nab46fke7s Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2362.00.1'
20241016@175743.2227 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2242 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.2268 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2283 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.2291 tan72o7mctlspk70nab46fke7s Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175743.2303 tan72o7mctlspk70nab46fke7s Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2300548200a'
20241016@175743.2324 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2338 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.2359 tan72o7mctlspk70nab46fke7s Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff64631670ff08738','aut670ff96230670ff0871b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175743.2363 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2378 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.2405 tan72o7mctlspk70nab46fke7s Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff64631670ff08738',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670ff96230670ff0871b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175743.2667 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.2670 tan72o7mctlspk70nab46fke7s Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241016@175743.2689 tan72o7mctlspk70nab46fke7s Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2362.00.1'
20241016@175743.2702 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2717 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.2741 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2755 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.2763 tan72o7mctlspk70nab46fke7s Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175743.2775 tan72o7mctlspk70nab46fke7s Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2300548200a'
20241016@175743.2787 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2802 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.2813 tan72o7mctlspk70nab46fke7s Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff09291670ff08744','aut670ff96230670ff0871b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175743.2817 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.2832 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.2861 tan72o7mctlspk70nab46fke7s Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff09291670ff08744',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',22.000 ,'aut670ff96230670ff0871b' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241016@175743.3068 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.3071 tan72o7mctlspk70nab46fke7s Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241016@175743.3089 tan72o7mctlspk70nab46fke7s Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2362.00.1'
20241016@175743.3102 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.3118 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.3143 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.3158 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.3166 tan72o7mctlspk70nab46fke7s Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175743.3178 tan72o7mctlspk70nab46fke7s Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r230054820'
20241016@175743.3187 tan72o7mctlspk70nab46fke7s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.3202 tan72o7mctlspk70nab46fke7s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.3214 tan72o7mctlspk70nab46fke7s Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff68148670ff0874d','aut670ff96230670ff0871b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175743.3230 tan72o7mctlspk70nab46fke7s Query : use flama_phc
20241016@175743.3233 tan72o7mctlspk70nab46fke7s Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241016@175743.3309 tan72o7mctlspk70nab46fke7s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2700';
20241016@175743.3340 tan72o7mctlspk70nab46fke7s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2700';
20241016@175743.3858 0noj1l5dt1q51oec0ucng0l0d5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175743.3869 0noj1l5dt1q51oec0ucng0l0d5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175743.3929 0noj1l5dt1q51oec0ucng0l0d5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2701';
20241016@175743.3985 0noj1l5dt1q51oec0ucng0l0d5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2701';
20241016@175743.4040 0noj1l5dt1q51oec0ucng0l0d5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2701';
20241016@175743.4067 0noj1l5dt1q51oec0ucng0l0d5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2701';
20241016@175743.4116 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.4119 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175743.4188 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.4191 0noj1l5dt1q51oec0ucng0l0d5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175743.5331 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241016@175743.5354 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406737 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241016@175743.5707 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241016@175743.5729 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406737 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241016@175743.5745 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241016@175743.5764 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406737 and bi.ref ='324.2362.00.1' and bi.lordem =1
20241016@175743.5780 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.5783 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175743.5817 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.5820 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175743.5849 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.5852 0noj1l5dt1q51oec0ucng0l0d5 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')
20241016@175743.5882 0noj1l5dt1q51oec0ucng0l0d5 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
20241016@175743.5920 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.5922 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175743.5952 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.5955 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175743.5984 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.5986 0noj1l5dt1q51oec0ucng0l0d5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175743.6028 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.6032 0noj1l5dt1q51oec0ucng0l0d5 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175743.6078 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.6081 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from td where ndoc = 39
20241016@175743.6093 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175743.6107 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.6123 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175743.6145 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.6160 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175743.6190 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.6204 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175743.6216 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175743.6281 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175743.6294 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.6310 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175743.6325 0noj1l5dt1q51oec0ucng0l0d5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff37912670ff08797' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175743.6476 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.6492 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175743.6524 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175743.6536 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175743.6547 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175743.6558 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175743.6571 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175743.6582 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175743.6594 0noj1l5dt1q51oec0ucng0l0d5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff37912670ff08797',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175743.6801 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175743.6823 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.6840 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175743.6862 0noj1l5dt1q51oec0ucng0l0d5 Query : select 'normal' from dummy
20241016@175743.6878 0noj1l5dt1q51oec0ucng0l0d5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff37912670ff08797',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1304,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175743.7118 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.7121 0noj1l5dt1q51oec0ucng0l0d5 Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241016@175743.7142 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2362.00.1'
20241016@175743.7161 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.7175 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.7201 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.7215 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.7224 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175743.7235 0noj1l5dt1q51oec0ucng0l0d5 Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2300548200a'
20241016@175743.7248 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.7262 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.7274 0noj1l5dt1q51oec0ucng0l0d5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff33071670ff087b0','aut670ff37912670ff08797' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175743.7278 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.7293 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.7322 0noj1l5dt1q51oec0ucng0l0d5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff33071670ff087b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670ff37912670ff08797' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175743.7543 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.7546 0noj1l5dt1q51oec0ucng0l0d5 Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241016@175743.7565 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2362.00.1'
20241016@175743.7579 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.7594 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175743.7622 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.7636 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.7645 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175743.7657 0noj1l5dt1q51oec0ucng0l0d5 Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r230054820'
20241016@175743.7666 0noj1l5dt1q51oec0ucng0l0d5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175743.7680 0noj1l5dt1q51oec0ucng0l0d5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175743.7691 0noj1l5dt1q51oec0ucng0l0d5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff75547670ff087bb','aut670ff37912670ff08797' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175743.7729 0noj1l5dt1q51oec0ucng0l0d5 Query : use flama_phc
20241016@175743.7733 0noj1l5dt1q51oec0ucng0l0d5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241016@175743.7766 0noj1l5dt1q51oec0ucng0l0d5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2701';
20241016@175743.7798 0noj1l5dt1q51oec0ucng0l0d5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2701';
20241016@175744.1860 mlr5glc87lir6qon04ufb068so Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175744.1970 mlr5glc87lir6qon04ufb068so Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175744.2530 mlr5glc87lir6qon04ufb068so Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2702';
20241016@175744.3070 mlr5glc87lir6qon04ufb068so Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2702';
20241016@175744.3630 mlr5glc87lir6qon04ufb068so Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2702';
20241016@175744.3900 mlr5glc87lir6qon04ufb068so Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2702';
20241016@175744.4400 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.4430 mlr5glc87lir6qon04ufb068so Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175744.5110 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.5140 mlr5glc87lir6qon04ufb068so Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175744.5530 mlr5glc87lir6qon04ufb068so 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'
20241016@175744.5730 mlr5glc87lir6qon04ufb068so Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406738 and bi.ref ='324.5342.00.1' and bi.lordem =1
20241016@175744.8960 mlr5glc87lir6qon04ufb068so 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'
20241016@175744.9160 mlr5glc87lir6qon04ufb068so Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406738 and bi.ref ='324.5342.00.1' and bi.lordem =1
20241016@175744.9330 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.9350 mlr5glc87lir6qon04ufb068so Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175744.9720 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.9750 mlr5glc87lir6qon04ufb068so Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175744.1004 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.1007 mlr5glc87lir6qon04ufb068so 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')
20241016@175744.1036 mlr5glc87lir6qon04ufb068so 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
20241016@175744.1072 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.1075 mlr5glc87lir6qon04ufb068so Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175744.1103 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.1106 mlr5glc87lir6qon04ufb068so Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175744.1134 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.1137 mlr5glc87lir6qon04ufb068so Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175744.1181 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.1184 mlr5glc87lir6qon04ufb068so Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175744.1256 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.1259 mlr5glc87lir6qon04ufb068so Query : select 1 valor from td where ndoc = 39
20241016@175744.1271 mlr5glc87lir6qon04ufb068so Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175744.1285 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.1300 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175744.1318 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.1333 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175744.1360 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.1376 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175744.1388 mlr5glc87lir6qon04ufb068so Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175744.1453 mlr5glc87lir6qon04ufb068so Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175744.1466 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.1480 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175744.1495 mlr5glc87lir6qon04ufb068so Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff46493670ff08821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175744.1640 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.1655 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175744.1690 mlr5glc87lir6qon04ufb068so Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175744.1727 mlr5glc87lir6qon04ufb068so Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175744.1739 mlr5glc87lir6qon04ufb068so Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175744.1751 mlr5glc87lir6qon04ufb068so Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175744.1762 mlr5glc87lir6qon04ufb068so Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175744.1773 mlr5glc87lir6qon04ufb068so Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175744.1784 mlr5glc87lir6qon04ufb068so Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff46493670ff08821',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175744.1989 mlr5glc87lir6qon04ufb068so Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175744.2010 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.2026 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175744.2049 mlr5glc87lir6qon04ufb068so Query : select 'normal' from dummy
20241016@175744.2065 mlr5glc87lir6qon04ufb068so Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff46493670ff08821',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1304,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175744.2599 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.3345 mlr5glc87lir6qon04ufb068so Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20241016@175744.3370 mlr5glc87lir6qon04ufb068so Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@175744.3384 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3400 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.3428 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3442 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.3450 mlr5glc87lir6qon04ufb068so Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175744.3462 mlr5glc87lir6qon04ufb068so Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20241016@175744.3475 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3490 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.3502 mlr5glc87lir6qon04ufb068so Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff49805670ff08854','aut670ff46493670ff08821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175744.3507 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3548 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.3577 mlr5glc87lir6qon04ufb068so Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff49805670ff08854',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut670ff46493670ff08821' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175744.3811 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3829 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.3853 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3894 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.3903 mlr5glc87lir6qon04ufb068so Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175744.3915 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3932 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.3944 mlr5glc87lir6qon04ufb068so Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff78972670ff0885f','aut670ff46493670ff08821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175744.3949 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.3964 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.3991 mlr5glc87lir6qon04ufb068so Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670ff78972670ff0885f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670ff46493670ff08821' ,0,0 ,2,23.00,20000,?,?,?)
20241016@175744.4212 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.4215 mlr5glc87lir6qon04ufb068so Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20241016@175744.4233 mlr5glc87lir6qon04ufb068so Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241016@175744.4247 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4262 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.4286 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4300 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.4308 mlr5glc87lir6qon04ufb068so Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175744.4320 mlr5glc87lir6qon04ufb068so Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20241016@175744.4332 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4346 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.4358 mlr5glc87lir6qon04ufb068so Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff28879670ff08869','aut670ff46493670ff08821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175744.4362 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4376 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.4403 mlr5glc87lir6qon04ufb068so Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff28879670ff08869',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut670ff46493670ff08821' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241016@175744.4652 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4667 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.4691 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4707 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.4715 mlr5glc87lir6qon04ufb068so Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175744.4728 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4742 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.4753 mlr5glc87lir6qon04ufb068so Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff16528670ff08873','aut670ff46493670ff08821' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175744.4756 mlr5glc87lir6qon04ufb068so Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.4771 mlr5glc87lir6qon04ufb068so Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.4797 mlr5glc87lir6qon04ufb068so Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670ff16528670ff08873',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670ff46493670ff08821' ,0,0 ,2,23.00,50000,?,?,?)
20241016@175744.5066 mlr5glc87lir6qon04ufb068so Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff46493670ff08821','2406738','wait',39,'adm09112754980.682000002')
20241016@175744.5142 mlr5glc87lir6qon04ufb068so Query : use flama_phc
20241016@175744.5145 mlr5glc87lir6qon04ufb068so Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175744.5180 mlr5glc87lir6qon04ufb068so Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2702';
20241016@175744.5214 mlr5glc87lir6qon04ufb068so Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2702';
20241016@175744.5281 mlr5glc87lir6qon04ufb068so Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2702';
20241016@175744.5308 mlr5glc87lir6qon04ufb068so Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2702';
20241016@175744.7363 glttr80d5cqap5gi7u0vqmhpk3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175744.7374 glttr80d5cqap5gi7u0vqmhpk3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175744.7433 glttr80d5cqap5gi7u0vqmhpk3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2703';
20241016@175744.7489 glttr80d5cqap5gi7u0vqmhpk3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2703';
20241016@175744.7543 glttr80d5cqap5gi7u0vqmhpk3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2703';
20241016@175744.7573 glttr80d5cqap5gi7u0vqmhpk3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2703';
20241016@175744.7621 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.7624 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175744.7691 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.7694 glttr80d5cqap5gi7u0vqmhpk3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175744.7737 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241016@175744.7854 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406739 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241016@175744.8201 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8204 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175744.8239 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8242 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175744.8274 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8277 glttr80d5cqap5gi7u0vqmhpk3 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')
20241016@175744.8306 glttr80d5cqap5gi7u0vqmhpk3 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
20241016@175744.8342 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8345 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175744.8377 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8381 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175744.8410 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8413 glttr80d5cqap5gi7u0vqmhpk3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175744.8453 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8456 glttr80d5cqap5gi7u0vqmhpk3 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175744.8507 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.8510 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from td where ndoc = 39
20241016@175744.8522 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175744.8537 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.8553 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175744.8573 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.8588 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175744.8617 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.8632 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175744.8645 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175744.8717 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175744.8730 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.8746 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175744.8763 glttr80d5cqap5gi7u0vqmhpk3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff09232670ff088d3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175744.8924 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.8941 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175744.8978 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175744.8991 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175744.9005 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175744.9017 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175744.9029 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175744.9041 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175744.9053 glttr80d5cqap5gi7u0vqmhpk3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff09232670ff088d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175744.9320 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175744.9344 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.9362 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175744.9386 glttr80d5cqap5gi7u0vqmhpk3 Query : select 'normal' from dummy
20241016@175744.9401 glttr80d5cqap5gi7u0vqmhpk3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff09232670ff088d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1305,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175744.9643 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175744.9646 glttr80d5cqap5gi7u0vqmhpk3 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@175744.9668 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@175744.9780 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.9796 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.9823 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.9838 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.9847 glttr80d5cqap5gi7u0vqmhpk3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175744.9859 glttr80d5cqap5gi7u0vqmhpk3 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@175744.9882 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.9898 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175744.9910 glttr80d5cqap5gi7u0vqmhpk3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff12696670ff088f1','aut670ff09232670ff088d3' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175744.9914 glttr80d5cqap5gi7u0vqmhpk3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175744.9930 glttr80d5cqap5gi7u0vqmhpk3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175744.9959 glttr80d5cqap5gi7u0vqmhpk3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff12696670ff088f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut670ff09232670ff088d3' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175745.3080 glttr80d5cqap5gi7u0vqmhpk3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff09232670ff088d3','2406739','wait',39,'adm09112754980.682000002')
20241016@175745.3840 glttr80d5cqap5gi7u0vqmhpk3 Query : use flama_phc
20241016@175745.3870 glttr80d5cqap5gi7u0vqmhpk3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175745.4180 glttr80d5cqap5gi7u0vqmhpk3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2703';
20241016@175745.4550 glttr80d5cqap5gi7u0vqmhpk3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2703';
20241016@175745.8160 glttr80d5cqap5gi7u0vqmhpk3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2703';
20241016@175745.1611 glttr80d5cqap5gi7u0vqmhpk3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2703';
20241016@175745.2242 s9eamu4spi40fr1rcifa7hg53f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175745.2253 s9eamu4spi40fr1rcifa7hg53f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175745.2308 s9eamu4spi40fr1rcifa7hg53f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2704';
20241016@175745.2365 s9eamu4spi40fr1rcifa7hg53f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2704';
20241016@175745.2421 s9eamu4spi40fr1rcifa7hg53f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2704';
20241016@175745.2447 s9eamu4spi40fr1rcifa7hg53f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2704';
20241016@175745.2498 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.2502 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175745.2573 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.2576 s9eamu4spi40fr1rcifa7hg53f Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175745.2618 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241016@175745.2639 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406740 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241016@175745.2940 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.2944 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175745.2976 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.2979 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175745.3010 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.3013 s9eamu4spi40fr1rcifa7hg53f 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')
20241016@175745.3044 s9eamu4spi40fr1rcifa7hg53f 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
20241016@175745.3104 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.3107 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175745.3136 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.3139 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175745.3168 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.3171 s9eamu4spi40fr1rcifa7hg53f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175745.3210 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.3213 s9eamu4spi40fr1rcifa7hg53f Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175745.3273 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.3276 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from td where ndoc = 39
20241016@175745.3289 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175745.3303 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.3339 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175745.3360 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.3374 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175745.3403 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.3418 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175745.3430 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175745.3494 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175745.3507 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.3521 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175745.3536 s9eamu4spi40fr1rcifa7hg53f Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff50418670ff08953' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175745.3682 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.3699 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175745.3737 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175745.3749 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175745.3760 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175745.3772 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175745.3785 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175745.3797 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175745.3809 s9eamu4spi40fr1rcifa7hg53f Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff50418670ff08953',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175745.4014 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175745.4037 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.4052 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175745.4076 s9eamu4spi40fr1rcifa7hg53f Query : select 'normal' from dummy
20241016@175745.4091 s9eamu4spi40fr1rcifa7hg53f Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff50418670ff08953',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1306,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175745.4330 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.4333 s9eamu4spi40fr1rcifa7hg53f Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@175745.4353 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@175745.4367 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.4382 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175745.4407 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.4422 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175745.4430 s9eamu4spi40fr1rcifa7hg53f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175745.4443 s9eamu4spi40fr1rcifa7hg53f Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@175745.4456 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.4471 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175745.4483 s9eamu4spi40fr1rcifa7hg53f Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff30005670ff0896c','aut670ff50418670ff08953' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175745.4494 s9eamu4spi40fr1rcifa7hg53f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.4510 s9eamu4spi40fr1rcifa7hg53f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175745.4538 s9eamu4spi40fr1rcifa7hg53f Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff30005670ff0896c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut670ff50418670ff08953' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175745.4742 s9eamu4spi40fr1rcifa7hg53f Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff50418670ff08953','2406740','wait',39,'adm09112754980.682000002')
20241016@175745.4814 s9eamu4spi40fr1rcifa7hg53f Query : use flama_phc
20241016@175745.4817 s9eamu4spi40fr1rcifa7hg53f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175745.4848 s9eamu4spi40fr1rcifa7hg53f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2704';
20241016@175745.4879 s9eamu4spi40fr1rcifa7hg53f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2704';
20241016@175745.4922 s9eamu4spi40fr1rcifa7hg53f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2704';
20241016@175745.4973 s9eamu4spi40fr1rcifa7hg53f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2704';
20241016@175745.5525 11bdsrhel119a8lonrn74aepo5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175745.5535 11bdsrhel119a8lonrn74aepo5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175745.5591 11bdsrhel119a8lonrn74aepo5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2705';
20241016@175745.5643 11bdsrhel119a8lonrn74aepo5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2705';
20241016@175745.5696 11bdsrhel119a8lonrn74aepo5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2705';
20241016@175745.5734 11bdsrhel119a8lonrn74aepo5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2705';
20241016@175745.5788 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.5792 11bdsrhel119a8lonrn74aepo5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175745.5856 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.5859 11bdsrhel119a8lonrn74aepo5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175745.5901 11bdsrhel119a8lonrn74aepo5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241016@175745.5921 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406741 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241016@175745.6250 11bdsrhel119a8lonrn74aepo5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241016@175745.6271 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406741 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241016@175745.6287 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6290 11bdsrhel119a8lonrn74aepo5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175745.6322 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6325 11bdsrhel119a8lonrn74aepo5 Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175745.6355 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6358 11bdsrhel119a8lonrn74aepo5 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')
20241016@175745.6435 11bdsrhel119a8lonrn74aepo5 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
20241016@175745.6472 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6476 11bdsrhel119a8lonrn74aepo5 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175745.6506 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6509 11bdsrhel119a8lonrn74aepo5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175745.6539 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6543 11bdsrhel119a8lonrn74aepo5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175745.6583 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6586 11bdsrhel119a8lonrn74aepo5 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175745.6648 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.6650 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from td where ndoc = 39
20241016@175745.6663 11bdsrhel119a8lonrn74aepo5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175745.6679 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.6696 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175745.6716 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.6757 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175745.6786 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.6800 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175745.6813 11bdsrhel119a8lonrn74aepo5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175745.6876 11bdsrhel119a8lonrn74aepo5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175745.6890 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.6905 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175745.6921 11bdsrhel119a8lonrn74aepo5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff44427670ff089a6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175745.7074 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.7089 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175745.7121 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175745.7133 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175745.7145 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175745.7157 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175745.7169 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175745.7181 11bdsrhel119a8lonrn74aepo5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175745.7192 11bdsrhel119a8lonrn74aepo5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff44427670ff089a6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175745.7397 11bdsrhel119a8lonrn74aepo5 Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175745.7419 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.7434 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175745.7457 11bdsrhel119a8lonrn74aepo5 Query : select 'normal' from dummy
20241016@175745.7472 11bdsrhel119a8lonrn74aepo5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff44427670ff089a6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1307,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175745.7718 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.7721 11bdsrhel119a8lonrn74aepo5 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@175745.7743 11bdsrhel119a8lonrn74aepo5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@175745.7757 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.7773 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175745.7799 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.7814 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175745.7823 11bdsrhel119a8lonrn74aepo5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175745.7835 11bdsrhel119a8lonrn74aepo5 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@175745.7847 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.7862 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175745.7873 11bdsrhel119a8lonrn74aepo5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff26071670ff089bf','aut670ff44427670ff089a6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175745.7878 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.7892 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175745.7921 11bdsrhel119a8lonrn74aepo5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff26071670ff089bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670ff44427670ff089a6' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175745.8160 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.8163 11bdsrhel119a8lonrn74aepo5 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@175745.8182 11bdsrhel119a8lonrn74aepo5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@175745.8195 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.8211 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175745.8237 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.8252 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175745.8263 11bdsrhel119a8lonrn74aepo5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175745.8275 11bdsrhel119a8lonrn74aepo5 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@175745.8288 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.8303 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175745.8315 11bdsrhel119a8lonrn74aepo5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff07540670ff089ca','aut670ff44427670ff089a6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175745.8319 11bdsrhel119a8lonrn74aepo5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175745.8334 11bdsrhel119a8lonrn74aepo5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175745.8362 11bdsrhel119a8lonrn74aepo5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff07540670ff089ca',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',11.000 ,'aut670ff44427670ff089a6' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241016@175745.8574 11bdsrhel119a8lonrn74aepo5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff44427670ff089a6','2406741','wait',39,'adm09112754980.682000002')
20241016@175745.8646 11bdsrhel119a8lonrn74aepo5 Query : use flama_phc
20241016@175745.8649 11bdsrhel119a8lonrn74aepo5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175745.8682 11bdsrhel119a8lonrn74aepo5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2705';
20241016@175745.8714 11bdsrhel119a8lonrn74aepo5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2705';
20241016@175745.8759 11bdsrhel119a8lonrn74aepo5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2705';
20241016@175745.8787 11bdsrhel119a8lonrn74aepo5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2705';
20241016@175745.9311 mjqr056iqcvo0his5tphl36e8e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175745.9322 mjqr056iqcvo0his5tphl36e8e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175745.9376 mjqr056iqcvo0his5tphl36e8e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2706';
20241016@175745.9430 mjqr056iqcvo0his5tphl36e8e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2706';
20241016@175745.9483 mjqr056iqcvo0his5tphl36e8e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2706';
20241016@175745.9510 mjqr056iqcvo0his5tphl36e8e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2706';
20241016@175745.9563 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175745.9566 mjqr056iqcvo0his5tphl36e8e Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175745.9630 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175745.9633 mjqr056iqcvo0his5tphl36e8e Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175745.9675 mjqr056iqcvo0his5tphl36e8e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241016@175745.9694 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406742 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241016@175745.9989 mjqr056iqcvo0his5tphl36e8e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241016@175746.8000 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406742 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241016@175746.2500 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.2800 mjqr056iqcvo0his5tphl36e8e Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175746.4490 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.5150 mjqr056iqcvo0his5tphl36e8e Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175746.6010 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.6040 mjqr056iqcvo0his5tphl36e8e 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')
20241016@175746.6330 mjqr056iqcvo0his5tphl36e8e 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
20241016@175746.6690 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.6720 mjqr056iqcvo0his5tphl36e8e Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175746.7020 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.7060 mjqr056iqcvo0his5tphl36e8e Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175746.7410 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.7440 mjqr056iqcvo0his5tphl36e8e Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175746.7870 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.7900 mjqr056iqcvo0his5tphl36e8e Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175746.8360 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.8380 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from td where ndoc = 39
20241016@175746.8500 mjqr056iqcvo0his5tphl36e8e Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175746.8660 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.8820 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175746.9010 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.9170 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175746.9450 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.9590 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175746.9720 mjqr056iqcvo0his5tphl36e8e Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175746.1036 mjqr056iqcvo0his5tphl36e8e Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175746.1049 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.1064 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175746.1079 mjqr056iqcvo0his5tphl36e8e Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff66562670ff08a17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175746.1228 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.1243 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175746.1276 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175746.1288 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175746.1299 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175746.1313 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175746.1325 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175746.1337 mjqr056iqcvo0his5tphl36e8e Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175746.1349 mjqr056iqcvo0his5tphl36e8e Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff66562670ff08a17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175746.1562 mjqr056iqcvo0his5tphl36e8e Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175746.1588 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.1603 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175746.1626 mjqr056iqcvo0his5tphl36e8e Query : select 'normal' from dummy
20241016@175746.1642 mjqr056iqcvo0his5tphl36e8e Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff66562670ff08a17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1308,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175746.1879 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.1882 mjqr056iqcvo0his5tphl36e8e Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@175746.1904 mjqr056iqcvo0his5tphl36e8e Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@175746.1917 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.1933 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175746.1960 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.1975 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175746.1984 mjqr056iqcvo0his5tphl36e8e Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175746.1996 mjqr056iqcvo0his5tphl36e8e Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@175746.2008 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.2023 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175746.2036 mjqr056iqcvo0his5tphl36e8e Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff14866670ff08a31','aut670ff66562670ff08a17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175746.2040 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.2056 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175746.2085 mjqr056iqcvo0his5tphl36e8e Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff14866670ff08a31',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',13.000 ,'aut670ff66562670ff08a17' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175746.2291 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.2294 mjqr056iqcvo0his5tphl36e8e Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@175746.2313 mjqr056iqcvo0his5tphl36e8e Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@175746.2326 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.2342 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175746.2367 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.2383 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175746.2392 mjqr056iqcvo0his5tphl36e8e Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175746.2404 mjqr056iqcvo0his5tphl36e8e Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@175746.2417 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.2432 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175746.2443 mjqr056iqcvo0his5tphl36e8e Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff62133670ff08a3b','aut670ff66562670ff08a17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175746.2447 mjqr056iqcvo0his5tphl36e8e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.2462 mjqr056iqcvo0his5tphl36e8e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175746.2489 mjqr056iqcvo0his5tphl36e8e Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff62133670ff08a3b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670ff66562670ff08a17' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241016@175746.2694 mjqr056iqcvo0his5tphl36e8e Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff66562670ff08a17','2406742','wait',39,'adm09112754980.682000002')
20241016@175746.2761 mjqr056iqcvo0his5tphl36e8e Query : use flama_phc
20241016@175746.2764 mjqr056iqcvo0his5tphl36e8e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175746.2795 mjqr056iqcvo0his5tphl36e8e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2706';
20241016@175746.2830 mjqr056iqcvo0his5tphl36e8e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2706';
20241016@175746.3970 mjqr056iqcvo0his5tphl36e8e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2706';
20241016@175746.4005 mjqr056iqcvo0his5tphl36e8e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2706';
20241016@175746.4514 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175746.4525 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175746.4585 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2707';
20241016@175746.4639 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2707';
20241016@175746.4699 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2707';
20241016@175746.4726 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2707';
20241016@175746.4773 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.4776 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175746.4835 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.4838 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175746.4877 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241016@175746.4897 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406743 and bi.ref ='324.2330.00.1' and bi.lordem =1
20241016@175746.5194 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5198 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175746.5230 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5234 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175746.5265 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5267 hm9j1c9bqbhb1dfkruu1c0bvk9 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')
20241016@175746.5294 hm9j1c9bqbhb1dfkruu1c0bvk9 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
20241016@175746.5334 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5338 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175746.5370 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5373 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175746.5675 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5721 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175746.5792 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5795 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175746.5844 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.5848 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from td where ndoc = 39
20241016@175746.5860 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175746.5873 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.5891 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175746.5910 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.5926 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175746.5955 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.5969 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175746.5982 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175746.6045 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175746.6058 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.6072 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175746.6087 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff86391670ff08a92' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175746.6239 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.6279 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175746.6313 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175746.6325 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175746.6338 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175746.6350 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175746.6362 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175746.6376 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175746.6389 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff86391670ff08a92',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175746.6633 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175746.6656 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.6673 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175746.6698 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 'normal' from dummy
20241016@175746.6713 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff86391670ff08a92',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1309,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175746.6957 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.6960 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@175746.6981 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@175746.6994 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.7009 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175746.7036 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.7050 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175746.7058 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175746.7070 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@175746.7083 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.7097 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175746.7108 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff76713670ff08aac','aut670ff86391670ff08a92' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175746.7112 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.7126 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175746.7154 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff76713670ff08aac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',15.000 ,'aut670ff86391670ff08a92' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175746.7368 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff86391670ff08a92','2406743','wait',39,'adm09112754980.682000002')
20241016@175746.7436 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : use flama_phc
20241016@175746.7439 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175746.7471 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2707';
20241016@175746.7506 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2707';
20241016@175746.7556 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2707';
20241016@175746.7582 hm9j1c9bqbhb1dfkruu1c0bvk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2707';
20241016@175746.8115 1gmdj4imn6qb02dnf742curp76 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175746.8126 1gmdj4imn6qb02dnf742curp76 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175746.8186 1gmdj4imn6qb02dnf742curp76 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2708';
20241016@175746.8240 1gmdj4imn6qb02dnf742curp76 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2708';
20241016@175746.8294 1gmdj4imn6qb02dnf742curp76 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2708';
20241016@175746.8323 1gmdj4imn6qb02dnf742curp76 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2708';
20241016@175746.8372 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.8375 1gmdj4imn6qb02dnf742curp76 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175746.8435 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.8438 1gmdj4imn6qb02dnf742curp76 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175746.8478 1gmdj4imn6qb02dnf742curp76 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241016@175746.8597 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406744 and bi.ref ='324.2335.00.1' and bi.lordem =1
20241016@175746.8879 1gmdj4imn6qb02dnf742curp76 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241016@175746.8898 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406744 and bi.ref ='324.2335.00.1' and bi.lordem =1
20241016@175746.8918 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.8921 1gmdj4imn6qb02dnf742curp76 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175746.8956 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.8959 1gmdj4imn6qb02dnf742curp76 Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175746.8990 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.8993 1gmdj4imn6qb02dnf742curp76 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')
20241016@175746.9023 1gmdj4imn6qb02dnf742curp76 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
20241016@175746.9058 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.9060 1gmdj4imn6qb02dnf742curp76 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175746.9089 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.9092 1gmdj4imn6qb02dnf742curp76 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175746.9123 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.9126 1gmdj4imn6qb02dnf742curp76 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175746.9167 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.9170 1gmdj4imn6qb02dnf742curp76 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175746.9222 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175746.9224 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from td where ndoc = 39
20241016@175746.9237 1gmdj4imn6qb02dnf742curp76 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175746.9251 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.9268 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175746.9287 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.9302 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175746.9336 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.9351 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175746.9363 1gmdj4imn6qb02dnf742curp76 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175746.9428 1gmdj4imn6qb02dnf742curp76 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175746.9441 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.9457 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175746.9513 1gmdj4imn6qb02dnf742curp76 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff25948670ff08ae4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175746.9704 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175746.9720 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175746.9754 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175746.9766 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175746.9777 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175746.9789 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175746.9801 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175746.9813 1gmdj4imn6qb02dnf742curp76 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175746.9825 1gmdj4imn6qb02dnf742curp76 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff25948670ff08ae4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175747.2000 1gmdj4imn6qb02dnf742curp76 Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175747.4200 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.5700 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175747.8000 1gmdj4imn6qb02dnf742curp76 Query : select 'normal' from dummy
20241016@175747.2210 1gmdj4imn6qb02dnf742curp76 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff25948670ff08ae4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1310,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175747.4640 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175747.4670 1gmdj4imn6qb02dnf742curp76 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241016@175747.4900 1gmdj4imn6qb02dnf742curp76 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2335.00.1'
20241016@175747.7400 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.7560 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.8090 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.8240 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.8320 1gmdj4imn6qb02dnf742curp76 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175747.8450 1gmdj4imn6qb02dnf742curp76 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2100585500a'
20241016@175747.8660 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.8820 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.8930 1gmdj4imn6qb02dnf742curp76 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff59828670ff08b15','aut670ff25948670ff08ae4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175747.8980 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.9140 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.9430 1gmdj4imn6qb02dnf742curp76 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff59828670ff08b15',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut670ff25948670ff08ae4' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175747.1163 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175747.1166 1gmdj4imn6qb02dnf742curp76 Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241016@175747.1186 1gmdj4imn6qb02dnf742curp76 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2335.00.1'
20241016@175747.1201 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.1217 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.1245 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.1260 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.1269 1gmdj4imn6qb02dnf742curp76 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175747.1282 1gmdj4imn6qb02dnf742curp76 Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2300509100a'
20241016@175747.1303 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.1318 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.1330 1gmdj4imn6qb02dnf742curp76 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff58060670ff08b1f','aut670ff25948670ff08ae4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175747.1334 1gmdj4imn6qb02dnf742curp76 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.1349 1gmdj4imn6qb02dnf742curp76 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.1379 1gmdj4imn6qb02dnf742curp76 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff58060670ff08b1f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',11.000 ,'aut670ff25948670ff08ae4' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241016@175747.1594 1gmdj4imn6qb02dnf742curp76 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff25948670ff08ae4','2406744','wait',39,'adm09112754980.682000002')
20241016@175747.1667 1gmdj4imn6qb02dnf742curp76 Query : use flama_phc
20241016@175747.1670 1gmdj4imn6qb02dnf742curp76 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175747.1700 1gmdj4imn6qb02dnf742curp76 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2708';
20241016@175747.1731 1gmdj4imn6qb02dnf742curp76 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2708';
20241016@175747.1777 1gmdj4imn6qb02dnf742curp76 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2708';
20241016@175747.1805 1gmdj4imn6qb02dnf742curp76 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2708';
20241016@175747.2363 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175747.2374 1pncv3mdndjp1cf2ih4vg2l7ce Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175747.2434 1pncv3mdndjp1cf2ih4vg2l7ce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2709';
20241016@175747.2487 1pncv3mdndjp1cf2ih4vg2l7ce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2709';
20241016@175747.2538 1pncv3mdndjp1cf2ih4vg2l7ce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2709';
20241016@175747.2564 1pncv3mdndjp1cf2ih4vg2l7ce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2709';
20241016@175747.2615 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.2619 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175747.2685 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.2689 1pncv3mdndjp1cf2ih4vg2l7ce Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175747.2728 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241016@175747.2749 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406745 and bi.ref ='324.2335.00.1' and bi.lordem =1
20241016@175747.3044 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241016@175747.3063 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406745 and bi.ref ='324.2335.00.1' and bi.lordem =1
20241016@175747.3082 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3085 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175747.3116 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3119 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175747.3151 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3154 1pncv3mdndjp1cf2ih4vg2l7ce 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')
20241016@175747.3181 1pncv3mdndjp1cf2ih4vg2l7ce 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
20241016@175747.3215 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3218 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175747.3249 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3252 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175747.3285 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3288 1pncv3mdndjp1cf2ih4vg2l7ce Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175747.3330 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3333 1pncv3mdndjp1cf2ih4vg2l7ce Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175747.3377 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.3380 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from td where ndoc = 39
20241016@175747.3392 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175747.3406 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.3423 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175747.3443 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.3458 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175747.3489 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.3505 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175747.3518 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175747.3583 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175747.3595 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.3609 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175747.3624 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff50074670ff08b55' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241016@175747.3772 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.3787 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175747.3820 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241016@175747.3832 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241016@175747.3845 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241016@175747.3856 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241016@175747.3867 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241016@175747.3880 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241016@175747.3892 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670ff50074670ff08b55',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241016@175747.4094 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 fno valor from wsftdata order by fno desc
20241016@175747.4117 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4132 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175747.4158 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 'normal' from dummy
20241016@175747.4172 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670ff50074670ff08b55',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1311,100810,0,'2024-10-16',39,'euro',0,0,2024 ,?,?)
20241016@175747.4411 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.4414 1pncv3mdndjp1cf2ih4vg2l7ce Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241016@175747.4434 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2335.00.1'
20241016@175747.4448 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4463 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.4487 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4501 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.4509 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175747.4520 1pncv3mdndjp1cf2ih4vg2l7ce Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2300509100a'
20241016@175747.4532 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4546 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.4557 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff07621670ff08b6e','aut670ff50074670ff08b55' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175747.4561 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4575 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.4601 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff07621670ff08b6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut670ff50074670ff08b55' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241016@175747.4824 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.4827 1pncv3mdndjp1cf2ih4vg2l7ce Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241016@175747.4846 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2335.00.1'
20241016@175747.4858 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4873 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.4897 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4911 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.4919 1pncv3mdndjp1cf2ih4vg2l7ce Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@175747.4931 1pncv3mdndjp1cf2ih4vg2l7ce Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2100585500b'
20241016@175747.4945 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4960 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241016@175747.4971 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670ff93350670ff08b78','aut670ff50074670ff08b55' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241016@175747.4975 1pncv3mdndjp1cf2ih4vg2l7ce Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.4989 1pncv3mdndjp1cf2ih4vg2l7ce Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241016@175747.5017 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670ff93350670ff08b78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut670ff50074670ff08b55' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241016@175747.5226 1pncv3mdndjp1cf2ih4vg2l7ce Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670ff50074670ff08b55','2406745','wait',39,'adm09112754980.682000002')
20241016@175747.5379 1pncv3mdndjp1cf2ih4vg2l7ce Query : use flama_phc
20241016@175747.5382 1pncv3mdndjp1cf2ih4vg2l7ce Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@175747.5414 1pncv3mdndjp1cf2ih4vg2l7ce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2709';
20241016@175747.5452 1pncv3mdndjp1cf2ih4vg2l7ce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2709';
20241016@175747.5496 1pncv3mdndjp1cf2ih4vg2l7ce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2709';
20241016@175747.5523 1pncv3mdndjp1cf2ih4vg2l7ce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2709';
20241016@175747.6194 f7p97c8gcao09v7dk8sno1laik Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@175747.6206 f7p97c8gcao09v7dk8sno1laik Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@175747.6264 f7p97c8gcao09v7dk8sno1laik Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2710';
20241016@175747.6319 f7p97c8gcao09v7dk8sno1laik Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2710';
20241016@175747.6377 f7p97c8gcao09v7dk8sno1laik Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2710';
20241016@175747.6405 f7p97c8gcao09v7dk8sno1laik Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2710';
20241016@175747.6457 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.6460 f7p97c8gcao09v7dk8sno1laik Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@175747.6526 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.6529 f7p97c8gcao09v7dk8sno1laik Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241016@175747.6569 f7p97c8gcao09v7dk8sno1laik Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241016@175747.6589 f7p97c8gcao09v7dk8sno1laik Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406746 and bi.ref ='324.2335.00.1' and bi.lordem =1
20241016@175747.6927 f7p97c8gcao09v7dk8sno1laik Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241016@175747.6947 f7p97c8gcao09v7dk8sno1laik Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406746 and bi.ref ='324.2335.00.1' and bi.lordem =1
20241016@175747.6965 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.6968 f7p97c8gcao09v7dk8sno1laik Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241016@175747.7002 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.7005 f7p97c8gcao09v7dk8sno1laik Query : select top 1 1 valor from td where td.ndoc = 39
20241016@175747.7035 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.7038 f7p97c8gcao09v7dk8sno1laik 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')
20241016@175747.7066 f7p97c8gcao09v7dk8sno1laik 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
20241016@175747.7101 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.7104 f7p97c8gcao09v7dk8sno1laik Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241016@175747.7133 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.7136 f7p97c8gcao09v7dk8sno1laik Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241016@175747.7165 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.7168 f7p97c8gcao09v7dk8sno1laik Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@175747.7206 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.7209 f7p97c8gcao09v7dk8sno1laik Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241016@175747.7253 f7p97c8gcao09v7dk8sno1laik Query : use flama_phc
20241016@175747.7256 f7p97c8gcao09v7dk8sno1laik Query : select 1 valor from td where ndoc = 39
20241016@175747.7268 f7p97c8gcao09v7dk8sno1laik Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241016@175747.7284 f7p97c8gcao09v7dk8sno1laik Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.7300 f7p97c8gcao09v7dk8sno1laik Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241016@175747.7322 f7p97c8gcao09v7dk8sno1laik Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.7337 f7p97c8gcao09v7dk8sno1laik Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241016@175747.7367 f7p97c8gcao09v7dk8sno1laik Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.7382 f7p97c8gcao09v7dk8sno1laik Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175747.7394 f7p97c8gcao09v7dk8sno1laik Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175747.7458 f7p97c8gcao09v7dk8sno1laik Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241016@175747.7471 f7p97c8gcao09v7dk8sno1laik Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@175747.7490 f7p97c8gcao09v7dk8sno1laik Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241016@175747.7509 f7p97c8gcao09v7dk8sno1laik Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670ff41689670ff08bb4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
