20241203@190202.8655 v6qk7tk9ntciofmjja8pndrf1a Query : use flama_phc
20241203@190202.8659 v6qk7tk9ntciofmjja8pndrf1a Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20241203@190202.8679 v6qk7tk9ntciofmjja8pndrf1a Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.649.00.01'
20241203@190202.8694 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.8711 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190202.8739 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.8755 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190202.8764 v6qk7tk9ntciofmjja8pndrf1a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190202.8777 v6qk7tk9ntciofmjja8pndrf1a Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400406200a'
20241203@190202.8791 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.8807 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190202.8823 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut674f594586674f55aad6','aut674f516299674f55a8c5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241203@190202.8829 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.8854 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190202.8890 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut674f594586674f55aad6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut674f516299674f55a8c5' ,0,0 ,2,23.00,340000,?,?,?,?,?)
20241203@190202.9255 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9275 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190202.9306 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9324 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190202.9357 v6qk7tk9ntciofmjja8pndrf1a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190202.9371 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9388 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190202.9416 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut674f559597674f55aae4','aut674f516299674f55a8c5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241203@190202.9421 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9438 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190202.9471 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut674f559597674f55aae4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut674f516299674f55a8c5' ,0,0 ,2,23.00,350000,?,?,?)
20241203@190202.9749 v6qk7tk9ntciofmjja8pndrf1a Query : use flama_phc
20241203@190202.9752 v6qk7tk9ntciofmjja8pndrf1a Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20241203@190202.9774 v6qk7tk9ntciofmjja8pndrf1a Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.649.00.01'
20241203@190202.9790 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9807 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190202.9837 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9853 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190202.9863 v6qk7tk9ntciofmjja8pndrf1a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190202.9878 v6qk7tk9ntciofmjja8pndrf1a Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400406200a'
20241203@190202.9892 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9909 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190202.9922 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut674f526327674f55aaf1','aut674f516299674f55a8c5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241203@190202.9927 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190202.9943 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190202.9977 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut674f526327674f55aaf1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut674f516299674f55a8c5' ,0,0 ,2,23.00,370000,?,?,?,?,?)
20241203@190203.3300 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190203.3510 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190203.3810 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190203.4000 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190203.4100 v6qk7tk9ntciofmjja8pndrf1a Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190203.4470 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190203.4660 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241203@190203.4790 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut674f540747674f55ab0a','aut674f516299674f55a8c5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241203@190203.4840 v6qk7tk9ntciofmjja8pndrf1a Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190203.4990 v6qk7tk9ntciofmjja8pndrf1a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241203@190203.5300 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut674f540747674f55ab0a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut674f516299674f55a8c5' ,0,0 ,2,23.00,380000,?,?,?)
20241203@190203.8250 v6qk7tk9ntciofmjja8pndrf1a Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut674f516299674f55a8c5','2408196','wait',39,'adm09112754980.682000002')
20241203@190203.9370 v6qk7tk9ntciofmjja8pndrf1a Query : use flama_phc
20241203@190203.9410 v6qk7tk9ntciofmjja8pndrf1a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241203@190203.9720 v6qk7tk9ntciofmjja8pndrf1a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3664';
20241203@190203.1011 v6qk7tk9ntciofmjja8pndrf1a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3664';
20241203@190203.1060 v6qk7tk9ntciofmjja8pndrf1a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3664';
20241203@190203.1093 v6qk7tk9ntciofmjja8pndrf1a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3664';
20241203@190203.1764 91icvklosnvbka8ictnlikrk24 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241203@190203.1775 91icvklosnvbka8ictnlikrk24 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241203@190203.1841 91icvklosnvbka8ictnlikrk24 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3665';
20241203@190203.1908 91icvklosnvbka8ictnlikrk24 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3665';
20241203@190203.1969 91icvklosnvbka8ictnlikrk24 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3665';
20241203@190203.2003 91icvklosnvbka8ictnlikrk24 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3665';
20241203@190203.2895 bqnv2291h8olb3epbt4n7rdhai Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241203@190203.2908 bqnv2291h8olb3epbt4n7rdhai Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241203@190203.2982 bqnv2291h8olb3epbt4n7rdhai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3666';
20241203@190203.3054 bqnv2291h8olb3epbt4n7rdhai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3666';
20241203@190203.3114 bqnv2291h8olb3epbt4n7rdhai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3666';
20241203@190203.3185 bqnv2291h8olb3epbt4n7rdhai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3666';
20241203@190203.3406 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190203.3410 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241203@190203.3487 bqnv2291h8olb3epbt4n7rdhai Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20241203@190203.3712 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1461.00.1'
20241203@190203.3903 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.1461.00.1' and bi.lordem =10000
20241203@190203.5345 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357616,582000001 ' 
20241203@190203.5667 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1462.00.1'
20241203@190203.5787 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.1462.00.1' and bi.lordem =20000
20241203@190203.6120 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357647,829000002 ' 
20241203@190203.6446 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20241203@190203.6583 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.692.00.01' and bi.lordem =30000
20241203@190203.7023 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357665,720000003 ' 
20241203@190203.7358 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.645.00.01'
20241203@190203.7478 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.645.00.01' and bi.lordem =32500
20241203@190203.7842 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357870,592000011 ' 
20241203@190203.8178 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.642.00.01'
20241203@190203.8369 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.642.00.01' and bi.lordem =35000
20241203@190203.8718 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357836,727000010 ' 
20241203@190203.9055 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '321.162.40.00'
20241203@190203.9187 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='321.162.40.00' and bi.lordem =37500
20241203@190203.9572 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357896,166000012 ' 
20241203@190203.9912 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2031.00.1'
20241203@190204.6400 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.2031.00.1' and bi.lordem =40000
20241203@190204.4660 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357690,199000004 ' 
20241203@190204.8260 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2066.00.1'
20241203@190204.9820 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.2066.00.1' and bi.lordem =50000
20241203@190204.1345 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357707,608000005 ' 
20241203@190204.1676 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1317.00.1'
20241203@190204.1805 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.1317.00.1' and bi.lordem =60000
20241203@190204.2156 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357757,673000006 ' 
20241203@190204.2547 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1317.00.1'
20241203@190204.2570 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.1317.00.1' and bi.lordem =60000
20241203@190204.2593 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357757,673000006 ' 
20241203@190204.2613 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2362.00.1'
20241203@190204.2768 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.2362.00.1' and bi.lordem =70000
20241203@190204.3321 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357772,304000007 ' 
20241203@190204.3797 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2362.00.1'
20241203@190204.3856 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.2362.00.1' and bi.lordem =70000
20241203@190204.3920 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357772,304000007 ' 
20241203@190204.4003 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.367.09.00'
20241203@190204.4969 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='323.367.09.00' and bi.lordem =80000
20241203@190204.5725 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357800,642000008 ' 
20241203@190204.6048 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.367.09.00'
20241203@190204.6068 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='323.367.09.00' and bi.lordem =80000
20241203@190204.6090 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357800,642000008 ' 
20241203@190204.6111 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1862.00.1'
20241203@190204.6236 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000045 and bi.ref ='324.1862.00.1' and bi.lordem =90000
20241203@190204.6611 bqnv2291h8olb3epbt4n7rdhai 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 = 'pll24120357826,591000009 ' 
20241203@190204.6990 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190204.6993 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 1 valor from ts where ts.ndos = 5
20241203@190204.7101 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190204.7104 bqnv2291h8olb3epbt4n7rdhai 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')
20241203@190204.7134 bqnv2291h8olb3epbt4n7rdhai 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
20241203@190204.7305 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190204.7308 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20241203@190204.7424 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190204.7427 bqnv2291h8olb3epbt4n7rdhai Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241203@190204.7467 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190204.7470 bqnv2291h8olb3epbt4n7rdhai Query : select szadrsstamp valor from szadrs where szadrsdesc='flama-fab.louÇas e electrodomesticos,sa'
20241203@190204.7518 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190204.7521 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from ts where ndos = 5
20241203@190204.7614 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190204.7631 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241203@190204.7644 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190204.7659 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241203@190204.7668 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190204.7683 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241203@190204.7717 bqnv2291h8olb3epbt4n7rdhai 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
20241203@190204.7860 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241203@190204.8016 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241203@190204.8124 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190204.8131 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100999' and estab=0
20241203@190204.8229 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190204.8247 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241203@190204.8264 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut674f560264674f55acc6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241203@190204.8343 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190204.8361 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241203@190204.8378 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut674f560264674f55acc6','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241203','19:32',?,?)
20241203@190204.9017 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190204.9038 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241203@190204.9055 bqnv2291h8olb3epbt4n7rdhai 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 ('aut674f560264674f55acc6','trf entre armazéns a','2024-12-03',5,579,?,?,?,?,?,?,?,?,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',?)
20241203@190205.4730 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.4770 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.1461.00.1'
20241203@190205.4920 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.4950 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1461.00.1'
20241203@190205.7230 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.7270 bqnv2291h8olb3epbt4n7rdhai 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.1461.00.1' and sa.armazem = 133 
20241203@190205.8030 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.8070 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1461.00.1'
20241203@190205.8300 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190205.9920 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.1008 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.1022 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.1037 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.1046 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.1461.00.1' and lote = 'r2100211200a'
20241203@190205.1072 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190205.1085 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.1101 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.1114 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f541465674f55ad1a','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190205.1576 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.1596 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.1613 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f541465674f55ad1a',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,10000 ,99.99,99.99*200.48,99.99,99.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,99.99*6.000,99.99*6.000*200.48 ,29.860000,29.860000*200.48 ,29.860000,29.860000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,99.99,99.99*200.48,99.99*6.000,99.99*6.000*200.48,'pll24120357616,582000001 ',99.99,99.99*6.000,99.99,99.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190205.2203 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.2220 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20241203@190205.2236 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.2239 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20241203@190205.2255 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.2258 bqnv2291h8olb3epbt4n7rdhai 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.1462.00.1' and sa.armazem = 133 
20241203@190205.2335 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.2338 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20241203@190205.2358 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1462.00.1'
20241203@190205.2570 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.2610 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.2622 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.2916 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.2925 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2100463100a'
20241203@190205.2953 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190205.2967 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.2984 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.2999 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f539460674f55ad48','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190205.3176 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.3195 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.3212 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f539460674f55ad48',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,20000 ,99.99,99.99*200.48,99.99,99.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,99.99*10.000,99.99*10.000*200.48 ,30.730000,30.730000*200.48 ,30.730000,30.730000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,99.99,99.99*200.48,99.99*10.000,99.99*10.000*200.48,'pll24120357647,829000002 ',99.99,99.99*10.000,99.99,99.99*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190205.3546 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.3551 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20241203@190205.3564 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.3567 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241203@190205.3585 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.3588 bqnv2291h8olb3epbt4n7rdhai 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 
20241203@190205.3660 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.3663 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.692.00.01'
20241203@190205.3704 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190205.3720 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.3736 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.3749 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.3764 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.3773 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400211200a'
20241203@190205.3793 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190205.3807 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.3822 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.3835 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f589055674f55ad5c','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190205.4004 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.4028 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.4044 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f589055674f55ad5c',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,30000 ,129.99,129.99*200.48,129.99,129.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,129.99*10.000,129.99*10.000*200.48 ,31.488000,31.488000*200.48 ,31.488000,31.488000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,129.99,129.99*200.48,129.99*10.000,129.99*10.000*200.48,'pll24120357665,720000003 ',129.99,129.99*10.000,129.99,129.99*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190205.4760 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.5351 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20241203@190205.5371 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.5375 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.645.00.01'
20241203@190205.5392 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.5395 bqnv2291h8olb3epbt4n7rdhai Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.645.00.01' and sa.armazem = 133 
20241203@190205.5473 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.5476 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.645.00.01'
20241203@190205.5496 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.645.00.01'
20241203@190205.5654 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.5671 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.5683 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.5698 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.5715 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2301175100a'
20241203@190205.5736 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190205.5750 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.5782 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.5795 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f530174674f55ad8c','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190205.6007 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.6026 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.6043 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f530174674f55ad8c',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,40000 ,59.99,59.99*200.48,59.99,59.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,59.99*6.000,59.99*6.000*200.48 ,17.538000,17.538000*200.48 ,17.538000,17.538000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,59.99,59.99*200.48,59.99*6.000,59.99*6.000*200.48,'pll24120357870,592000011 ',59.99,59.99*6.000,59.99,59.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190205.6391 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.6396 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20241203@190205.6475 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.6479 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.642.00.01'
20241203@190205.6498 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.6501 bqnv2291h8olb3epbt4n7rdhai Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.642.00.01' and sa.armazem = 133 
20241203@190205.6604 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.6608 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.642.00.01'
20241203@190205.6629 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190205.6804 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.6821 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.6834 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.6848 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.6857 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20241203@190205.6884 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190205.6897 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.6913 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.6925 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f578896674f55ada8','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190205.7102 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.7120 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.7137 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f578896674f55ada8',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,50000 ,84.99,84.99*200.48,84.99,84.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,84.99*6.000,84.99*6.000*200.48 ,18.573000,18.573000*200.48 ,18.573000,18.573000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,84.99,84.99*200.48,84.99*6.000,84.99*6.000*200.48,'pll24120357836,727000010 ',84.99,84.99*6.000,84.99,84.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190205.7472 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.7476 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '321.162.40.00'
20241203@190205.7493 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.7496 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '321.162.40.00'
20241203@190205.7513 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.7516 bqnv2291h8olb3epbt4n7rdhai 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 = '321.162.40.00' and sa.armazem = 133 
20241203@190205.7590 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.7592 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '321.162.40.00'
20241203@190205.7611 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '321.162.40.00'
20241203@190205.7777 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.7793 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.7806 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.7820 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.7829 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='321.162.40.00' and lote = '1'
20241203@190205.7851 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190205.7865 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.7880 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.7954 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f537657674f55adc0','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190205.8139 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.8159 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.8177 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f537657674f55adc0',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 ,69.99,69.99*200.48,69.99,69.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,69.99*6.000,69.99*6.000*200.48 ,19.985000,19.985000*200.48 ,19.985000,19.985000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,69.99,69.99*200.48,69.99*6.000,69.99*6.000*200.48,'pll24120357896,166000012 ',69.99,69.99*6.000,69.99,69.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190205.8527 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.8532 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20241203@190205.8551 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.8554 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2031.00.1'
20241203@190205.8573 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.8576 bqnv2291h8olb3epbt4n7rdhai 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.2031.00.1' and sa.armazem = 133 
20241203@190205.8652 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190205.8655 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2031.00.1'
20241203@190205.8675 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20241203@190205.8833 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.8850 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.8864 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.8880 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.8889 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20241203@190205.8910 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190205.8923 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.8938 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190205.8952 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f570476674f55add9','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190205.9138 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190205.9158 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190205.9180 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f570476674f55add9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 24.000, 24.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 ,29.99,29.99*200.48,29.99,29.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,29.99*24.000,29.99*24.000*200.48 ,8.924000,8.924000*200.48 ,8.924000,8.924000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.99,29.99*200.48,29.99*24.000,29.99*24.000*200.48,'pll24120357690,199000004 ',29.99,29.99*24.000,29.99,29.99*24.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190205.9925 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.1046 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20241203@190206.1382 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.1386 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2066.00.1'
20241203@190206.1406 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.1409 bqnv2291h8olb3epbt4n7rdhai 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.2066.00.1' and sa.armazem = 133 
20241203@190206.1502 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.1506 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2066.00.1'
20241203@190206.1530 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2066.00.1'
20241203@190206.1717 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.1735 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.1748 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.1766 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.1777 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20241203@190206.1799 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.1813 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.1831 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.1844 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f572750674f55ae2c','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.2029 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.2055 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.2075 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f572750674f55ae2c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 24.000, 24.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 ,49.99,49.99*200.48,49.99,49.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,49.99*24.000,49.99*24.000*200.48 ,14.971000,14.971000*200.48 ,14.971000,14.971000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,49.99,49.99*200.48,49.99*24.000,49.99*24.000*200.48,'pll24120357707,608000005 ',49.99,49.99*24.000,49.99,49.99*24.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.2440 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.2445 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241203@190206.2461 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.2464 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1317.00.1'
20241203@190206.2481 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.2484 bqnv2291h8olb3epbt4n7rdhai 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.1317.00.1' and sa.armazem = 133 
20241203@190206.2558 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.2561 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1317.00.1'
20241203@190206.2581 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190206.2940 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.2963 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.2979 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.2996 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.3007 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400459200a'
20241203@190206.3030 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.3042 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.3058 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.3074 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f589479674f55ae4a','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.3247 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.3267 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.3287 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f589479674f55ae4a',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,90000 ,179.99,179.99*200.48,179.99,179.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,179.99*3.000,179.99*3.000*200.48 ,50.590000,50.590000*200.48 ,50.590000,50.590000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,179.99,179.99*200.48,179.99*3.000,179.99*3.000*200.48,'pll24120357757,673000006 ',179.99,179.99*3.000,179.99,179.99*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.3624 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.3628 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241203@190206.3644 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.3647 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1317.00.1'
20241203@190206.3665 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.3668 bqnv2291h8olb3epbt4n7rdhai 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.1317.00.1' and sa.armazem = 133 
20241203@190206.3693 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.3696 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1317.00.1'
20241203@190206.3719 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190206.3736 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.3754 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.3769 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.3785 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.3795 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400459200a'
20241203@190206.3810 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.3824 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.3840 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.3853 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f541338674f55ae5d','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.4033 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.4055 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.4073 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f541338674f55ae5d',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,100000 ,179.99,179.99*200.48,179.99,179.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,179.99*3.000,179.99*3.000*200.48 ,50.590000,50.590000*200.48 ,50.590000,50.590000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,179.99,179.99*200.48,179.99*3.000,179.99*3.000*200.48,'pll24120357757,673000006 ',179.99,179.99*3.000,179.99,179.99*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.4689 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.4696 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241203@190206.4718 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.4721 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2362.00.1'
20241203@190206.4736 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.4738 bqnv2291h8olb3epbt4n7rdhai 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.2362.00.1' and sa.armazem = 133 
20241203@190206.4814 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.4816 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2362.00.1'
20241203@190206.4834 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190206.4996 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.5013 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.5025 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.5039 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.5048 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2400498400a'
20241203@190206.5068 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.5085 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.5101 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.5116 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f588981674f55ae7c','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.5329 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.5354 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.5382 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f588981674f55ae7c',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,110000 ,96.99,96.99*200.48,96.99,96.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,96.99*1.000,96.99*1.000*200.48 ,24.972000,24.972000*200.48 ,24.972000,24.972000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96.99,96.99*200.48,96.99*1.000,96.99*1.000*200.48,'pll24120357772,304000007 ',96.99,96.99*1.000,96.99,96.99*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.5754 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.5761 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241203@190206.5781 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.5785 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2362.00.1'
20241203@190206.5803 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.5806 bqnv2291h8olb3epbt4n7rdhai 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.2362.00.1' and sa.armazem = 133 
20241203@190206.5830 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.5834 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.2362.00.1'
20241203@190206.5853 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190206.5868 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.5886 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.5899 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.5915 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.5924 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2400498400a'
20241203@190206.5937 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.5952 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.5970 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.5983 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f573628674f55ae91','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.6162 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.6182 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.6198 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f573628674f55ae91',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,120000 ,96.99,96.99*200.48,96.99,96.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,96.99*3.000,96.99*3.000*200.48 ,24.972000,24.972000*200.48 ,24.972000,24.972000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96.99,96.99*200.48,96.99*3.000,96.99*3.000*200.48,'pll24120357772,304000007 ',96.99,96.99*3.000,96.99,96.99*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.6549 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.6553 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20241203@190206.6568 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.6571 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '323.367.09.00'
20241203@190206.6588 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.6591 bqnv2291h8olb3epbt4n7rdhai 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 = '323.367.09.00' and sa.armazem = 133 
20241203@190206.6671 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.6674 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '323.367.09.00'
20241203@190206.6695 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20241203@190206.6718 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.6735 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.6749 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.6767 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.6775 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20241203@190206.6788 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.6801 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.6818 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.6831 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f521348674f55aea6','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.7008 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.7027 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.7043 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f521348674f55aea6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,130000 ,219.99,219.99*200.48,219.99,219.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,219.99*2.000,219.99*2.000*200.48 ,67.460000,67.460000*200.48 ,67.460000,67.460000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,219.99,219.99*200.48,219.99*2.000,219.99*2.000*200.48,'pll24120357800,642000008 ',219.99,219.99*2.000,219.99,219.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.7478 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.7495 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20241203@190206.7512 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.7515 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '323.367.09.00'
20241203@190206.7533 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.7536 bqnv2291h8olb3epbt4n7rdhai 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 = '323.367.09.00' and sa.armazem = 133 
20241203@190206.7559 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.7562 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '323.367.09.00'
20241203@190206.7582 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20241203@190206.7596 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.7613 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.7630 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.7646 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.7655 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20241203@190206.7667 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.7680 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.7694 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.7707 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f519095674f55aebb','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.7893 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.7919 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.7936 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f519095674f55aebb',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,140000 ,219.99,219.99*200.48,219.99,219.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,219.99*8.000,219.99*8.000*200.48 ,67.460000,67.460000*200.48 ,67.460000,67.460000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,219.99,219.99*200.48,219.99*8.000,219.99*8.000*200.48,'pll24120357800,642000008 ',219.99,219.99*8.000,219.99,219.99*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.8331 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.8337 bqnv2291h8olb3epbt4n7rdhai Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20241203@190206.8353 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.8356 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241203@190206.8373 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.8376 bqnv2291h8olb3epbt4n7rdhai Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1862.00.1' and sa.armazem = 133 
20241203@190206.8453 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.8456 bqnv2291h8olb3epbt4n7rdhai Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20241203@190206.8476 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1862.00.1'
20241203@190206.8642 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.8660 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.8674 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.8688 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.8697 bqnv2291h8olb3epbt4n7rdhai Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20241203@190206.8720 bqnv2291h8olb3epbt4n7rdhai Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190206.8733 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.8748 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190206.8761 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f511284674f55aed5','aut674f560264674f55acc6',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 = 'aut674f560264674f55acc6'
20241203@190206.8936 bqnv2291h8olb3epbt4n7rdhai Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190206.8957 bqnv2291h8olb3epbt4n7rdhai Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190206.8975 bqnv2291h8olb3epbt4n7rdhai 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 'aut674f511284674f55aed5',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,150000 ,119.99,119.99*200.48,119.99,119.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,119.99*4.000,119.99*4.000*200.48 ,42.473000,42.473000*200.48 ,42.473000,42.473000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,119.99,119.99*200.48,119.99*4.000,119.99*4.000*200.48,'pll24120357826,591000009 ',119.99,119.99*4.000,119.99,119.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f560264674f55acc6'
20241203@190206.9308 bqnv2291h8olb3epbt4n7rdhai Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut674f560264674f55acc6','','wait',5,'adm12071144683,938000003','')
20241203@190206.9413 bqnv2291h8olb3epbt4n7rdhai Query : use flama_phc
20241203@190206.9416 bqnv2291h8olb3epbt4n7rdhai Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241203@190206.9469 bqnv2291h8olb3epbt4n7rdhai Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3666';
20241203@190207.4090 bqnv2291h8olb3epbt4n7rdhai Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3666';
20241203@190207.1327 d1q774d6aclgcjs5i2uq7a1epn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241203@190207.1339 d1q774d6aclgcjs5i2uq7a1epn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241203@190207.1406 d1q774d6aclgcjs5i2uq7a1epn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3667';
20241203@190207.1471 d1q774d6aclgcjs5i2uq7a1epn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3667';
20241203@190207.1539 d1q774d6aclgcjs5i2uq7a1epn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3667';
20241203@190207.1583 d1q774d6aclgcjs5i2uq7a1epn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3667';
20241203@190207.1903 mob6oreiho7d2e6ntkik2t8v8o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241203@190207.1916 mob6oreiho7d2e6ntkik2t8v8o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241203@190207.1986 mob6oreiho7d2e6ntkik2t8v8o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3668';
20241203@190207.2056 mob6oreiho7d2e6ntkik2t8v8o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3668';
20241203@190207.2133 mob6oreiho7d2e6ntkik2t8v8o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3668';
20241203@190207.2170 mob6oreiho7d2e6ntkik2t8v8o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3668';
20241203@190207.2229 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.2233 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241203@190207.2301 mob6oreiho7d2e6ntkik2t8v8o Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241203@190207.2396 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.969.00.01'
20241203@190207.2523 mob6oreiho7d2e6ntkik2t8v8o 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 = 0002912 and bi.ref ='324.969.00.01' and bi.lordem =10000
20241203@190207.2887 mob6oreiho7d2e6ntkik2t8v8o 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 = 'az24120364655,821000001 ' 
20241203@190207.3234 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20241203@190207.3363 mob6oreiho7d2e6ntkik2t8v8o 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 = 0002912 and bi.ref ='324.4970.00.1' and bi.lordem =20000
20241203@190207.3753 mob6oreiho7d2e6ntkik2t8v8o 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 = 'az24120364850,122000002 ' 
20241203@190207.4098 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.4102 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 1 valor from ts where ts.ndos = 5
20241203@190207.4135 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.4138 mob6oreiho7d2e6ntkik2t8v8o 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')
20241203@190207.4168 mob6oreiho7d2e6ntkik2t8v8o 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
20241203@190207.4495 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.4499 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241203@190207.4647 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.4650 mob6oreiho7d2e6ntkik2t8v8o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241203@190207.4691 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.4694 mob6oreiho7d2e6ntkik2t8v8o Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241203@190207.4771 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.4774 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from ts where ndos = 5
20241203@190207.4788 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.4806 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241203@190207.4820 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.4836 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241203@190207.4845 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.4860 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241203@190207.4869 mob6oreiho7d2e6ntkik2t8v8o 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
20241203@190207.4884 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241203@190207.4911 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241203@190207.4926 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.4932 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241203@190207.5032 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.5048 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241203@190207.5061 mob6oreiho7d2e6ntkik2t8v8o Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut674f509117674f55af78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241203@190207.5065 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.5080 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241203@190207.5290 mob6oreiho7d2e6ntkik2t8v8o Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut674f509117674f55af78','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241203','19:32',?,?)
20241203@190207.5499 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.5521 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241203@190207.5540 mob6oreiho7d2e6ntkik2t8v8o 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 ('aut674f509117674f55af78','trf entre armazéns a','2024-12-03',5,580,?,?,?,?,?,?,?,?,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',?)
20241203@190207.5980 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.5984 mob6oreiho7d2e6ntkik2t8v8o Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20241203@190207.6000 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.6004 mob6oreiho7d2e6ntkik2t8v8o Query : select st.stns valor from st where st.ref = '324.969.00.01'
20241203@190207.6023 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.6026 mob6oreiho7d2e6ntkik2t8v8o Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.969.00.01' and sa.armazem = 133 
20241203@190207.6108 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.6111 mob6oreiho7d2e6ntkik2t8v8o Query : select st.stns valor from st where st.ref = '324.969.00.01'
20241203@190207.6133 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241203@190207.6329 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.6347 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190207.6361 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.6376 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190207.6384 mob6oreiho7d2e6ntkik2t8v8o Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20241203@190207.6408 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190207.6423 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.6439 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190207.6452 mob6oreiho7d2e6ntkik2t8v8o Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f567282674f55af9c','aut674f509117674f55af78',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 = 'aut674f509117674f55af78'
20241203@190207.6638 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.6659 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190207.6674 mob6oreiho7d2e6ntkik2t8v8o 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 'aut674f567282674f55af9c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 42.000, 42.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,35.2,35.2*200.48,35.2,35.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,35.2*42.000,35.2*42.000*200.48 ,15.817000,15.817000*200.48 ,15.817000,15.817000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,35.2,35.2*200.48,35.2*42.000,35.2*42.000*200.48,'az24120364655,821000001 ',35.2,35.2*42.000,35.2,35.2*42.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f509117674f55af78'
20241203@190207.7043 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.7048 mob6oreiho7d2e6ntkik2t8v8o Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241203@190207.7064 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.7067 mob6oreiho7d2e6ntkik2t8v8o Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20241203@190207.7084 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.7086 mob6oreiho7d2e6ntkik2t8v8o 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.4970.00.1' and sa.armazem = 133 
20241203@190207.7154 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.7157 mob6oreiho7d2e6ntkik2t8v8o Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20241203@190207.7175 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241203@190207.7331 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.7348 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190207.7361 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.7375 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190207.7384 mob6oreiho7d2e6ntkik2t8v8o Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241203@190207.7397 mob6oreiho7d2e6ntkik2t8v8o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241203@190207.7410 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.7424 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241203@190207.7436 mob6oreiho7d2e6ntkik2t8v8o Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut674f574278674f55afb4','aut674f509117674f55af78',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 = 'aut674f509117674f55af78'
20241203@190207.7609 mob6oreiho7d2e6ntkik2t8v8o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241203@190207.7629 mob6oreiho7d2e6ntkik2t8v8o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241203@190207.7644 mob6oreiho7d2e6ntkik2t8v8o 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 'aut674f574278674f55afb4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20.000, 20.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,27.6,27.6*200.48,27.6,27.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,27.6*20.000,27.6*20.000*200.48 ,9.098000,9.098000*200.48 ,9.098000,9.098000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,27.6,27.6*200.48,27.6*20.000,27.6*20.000*200.48,'az24120364850,122000002 ',27.6,27.6*20.000,27.6,27.6*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut674f509117674f55af78'
20241203@190207.7986 mob6oreiho7d2e6ntkik2t8v8o Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut674f509117674f55af78','','wait',5,'adm12071144683,938000003','')
20241203@190207.8067 mob6oreiho7d2e6ntkik2t8v8o Query : use flama_phc
20241203@190207.8071 mob6oreiho7d2e6ntkik2t8v8o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241203@190207.8130 mob6oreiho7d2e6ntkik2t8v8o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3668';
20241203@190207.8169 mob6oreiho7d2e6ntkik2t8v8o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3668';

20241204@081904.8937 1or51321p5bro7aihmhma9s8bd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3669';
20241204@081904.9015 1or51321p5bro7aihmhma9s8bd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3669';
20241204@081904.9046 1or51321p5bro7aihmhma9s8bd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3669';
20241204@081904.9089 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081904.9093 1or51321p5bro7aihmhma9s8bd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@081904.9200 1or51321p5bro7aihmhma9s8bd Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1831.00.2'
20241204@081904.9314 1or51321p5bro7aihmhma9s8bd 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 = 2400922 and bi.ref ='324.1831.00.2' and bi.lordem =20000
20241204@081904.9764 1or51321p5bro7aihmhma9s8bd 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 = 'cps24072353160,190000002 ' 
20241204@081905.1260 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081905.1320 1or51321p5bro7aihmhma9s8bd Query : select top 1 1 valor from ts where ts.ndos = 61
20241204@081905.2540 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081905.2580 1or51321p5bro7aihmhma9s8bd 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')
20241204@081905.3310 1or51321p5bro7aihmhma9s8bd 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
20241204@081905.4760 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081905.4800 1or51321p5bro7aihmhma9s8bd Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20241204@081905.6420 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081905.6450 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from ts where ndos = 61
20241204@081905.7140 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081905.1120 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241204@081905.1205 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081905.1222 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241204@081905.1263 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081905.1278 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241204@081905.1290 1or51321p5bro7aihmhma9s8bd 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
20241204@081905.1415 1or51321p5bro7aihmhma9s8bd Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241204@081905.1599 1or51321p5bro7aihmhma9s8bd Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241204@081905.1623 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081905.1630 1or51321p5bro7aihmhma9s8bd Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20241204@081905.1759 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081905.1792 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241204@081905.1859 1or51321p5bro7aihmhma9s8bd Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67501183926750107927',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241204@081905.1941 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081905.1956 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241204@081905.1969 1or51321p5bro7aihmhma9s8bd Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67501183926750107927','--','bo',7.9178644763860369609 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241204@081905.2251 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081905.2268 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241204@081905.2281 1or51321p5bro7aihmhma9s8bd 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 ('aut67501183926750107927','guia r. fornecedor','2024-12-04',61,2403755,?,?,?,?,?,?,?,?,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')
20241204@081908.3094 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081908.3098 1or51321p5bro7aihmhma9s8bd Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241204@081908.3213 1or51321p5bro7aihmhma9s8bd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20241204@081908.3378 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081908.3396 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241204@081908.3410 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081908.3425 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241204@081908.3435 1or51321p5bro7aihmhma9s8bd Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2400922200a'
20241204@081908.3489 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081908.3505 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241204@081908.3514 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081908.3529 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241204@081908.3541 1or51321p5bro7aihmhma9s8bd Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67501746046750107c55',?,?,'20241204',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241204@081908.4732 1or51321p5bro7aihmhma9s8bd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@081908.4808 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081908.4826 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241204@081908.4839 1or51321p5bro7aihmhma9s8bd Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67501161266750107c75','aut67501183926750107927',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 = 'aut67501183926750107927'
20241204@081908.5000 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@081908.5016 1or51321p5bro7aihmhma9s8bd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241204@081908.5034 1or51321p5bro7aihmhma9s8bd 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 'aut67501161266750107c75',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1336, 1336*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,29.22,29.22*200.48,29.22,29.22*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,29.22*1336,29.22*1336*200.48 ,31.370000,31.370000*200.48 ,31.370000,31.370000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.22,29.22*200.48,29.22*1336,29.22*1336*200.48,'cps24072353160,190000002 ',231.36,231.36*1336,231.36,231.36*1336,?,?,?,4 from bo bo where bo.bostamp = 'aut67501183926750107927'
20241204@081931.4037 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081931.4043 1or51321p5bro7aihmhma9s8bd Query : declare @bostamp varchar(25) = 'aut67501183926750107927' ,@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 
20241204@081938.2055 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081938.2058 1or51321p5bro7aihmhma9s8bd Query : select 1 valor from bo where bo.bostamp = 'aut67501183926750107927'
20241204@081938.2157 1or51321p5bro7aihmhma9s8bd 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) = 'aut67501183926750107927' 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 
20241204@081940.6158 1or51321p5bro7aihmhma9s8bd Query : use flama_phc
20241204@081940.6162 1or51321p5bro7aihmhma9s8bd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@081940.6214 1or51321p5bro7aihmhma9s8bd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3669';
20241204@081940.6257 1or51321p5bro7aihmhma9s8bd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3669';

20241204@105148.9571 n9hnpnr34l2jetpejn6hrldmka Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3670';
20241204@105148.9749 n9hnpnr34l2jetpejn6hrldmka Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3670';
20241204@105149.2130 n9hnpnr34l2jetpejn6hrldmka Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3670';
20241204@105149.3170 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105149.3200 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@105149.5150 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105149.5230 n9hnpnr34l2jetpejn6hrldmka Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20241204@105149.6500 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2186.00.1'
20241204@105149.8540 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='304.2186.00.1' and bi.lordem =1
20241204@105149.1272 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241204@105149.2543 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.1879.00.1' and bi.lordem =2
20241204@105149.3320 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20241204@105149.4106 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.4988.00.1' and bi.lordem =3
20241204@105149.4706 n9hnpnr34l2jetpejn6hrldmka 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'
20241204@105149.4916 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.2907.00.1' and bi.lordem =4
20241204@105149.5400 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241204@105149.5622 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.682.00.01' and bi.lordem =6
20241204@105149.6084 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20241204@105149.6399 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.649.00.01' and bi.lordem =7
20241204@105149.6839 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20241204@105149.7087 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.675.00.01' and bi.lordem =8
20241204@105149.7648 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20241204@105149.7750 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.675.00.01' and bi.lordem =8
20241204@105149.7913 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20241204@105149.8202 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.686.00.01' and bi.lordem =9
20241204@105149.8657 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.679.00.01'
20241204@105149.8917 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.679.00.01' and bi.lordem =10
20241204@105149.9467 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.729.00.01'
20241204@105150.5960 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.729.00.01' and bi.lordem =11
20241204@105150.1516 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20241204@105150.1977 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.4970.00.1' and bi.lordem =12
20241204@105150.2902 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20241204@105150.3575 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408208 and bi.ref ='324.736.00.01' and bi.lordem =13
20241204@105150.5547 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105150.5618 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@105150.6688 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105150.6707 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 1 valor from td where td.ndoc = 39
20241204@105150.7117 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105150.7132 n9hnpnr34l2jetpejn6hrldmka 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')
20241204@105150.7593 n9hnpnr34l2jetpejn6hrldmka 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
20241204@105150.7935 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105150.8004 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20241204@105150.9647 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105150.9703 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@105151.4930 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105151.4960 n9hnpnr34l2jetpejn6hrldmka Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@105151.6270 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105151.6300 n9hnpnr34l2jetpejn6hrldmka Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20241204@105151.1201 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105151.1215 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from td where ndoc = 39
20241204@105151.1411 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@105151.1587 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.2376 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@105151.2760 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.3303 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@105151.4194 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.4229 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@105151.4265 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@105151.4637 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@105151.4814 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.4910 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@105151.5021 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@105151.5374 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.5440 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@105151.5565 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@105151.5728 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@105151.5873 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@105151.6099 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@105151.6253 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@105151.6378 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@105151.6482 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67503873996750344768',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@105151.6866 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 fno valor from wsftdata order by fno desc
20241204@105151.7015 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.7107 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@105151.7181 n9hnpnr34l2jetpejn6hrldmka Query : select 'normal' from dummy
20241204@105151.7269 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67503873996750344768',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2186,100404,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@105151.7710 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105151.7719 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '304.2186.00.1'
20241204@105151.8084 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2186.00.1'
20241204@105151.8291 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.8338 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105151.8406 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.8444 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105151.8470 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105151.8540 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='304.2186.00.1' and lote = '241301'
20241204@105151.8645 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.8748 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105151.8792 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675038336167503447d3','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105151.8876 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.8916 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105151.9054 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675038336167503447d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@105151.9446 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.9491 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105151.9834 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.9879 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105151.9912 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105151.9949 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105151.9988 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.5600 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675031982767503447f2','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105152.1170 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.1470 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.2350 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675031982767503447f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,20000,?,?,?)
20241204@105152.7420 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105152.7600 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20241204@105152.8020 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20241204@105152.1023 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.1075 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.1157 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.1230 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.1257 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105152.1308 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2400283200a'
20241204@105152.1357 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.1415 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.1451 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503538696750344821','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105152.1527 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.1577 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.1664 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503538696750344821',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241204@105152.2017 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.2090 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.2195 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.2235 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.2325 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105152.2360 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.2419 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.2454 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503771046750344839','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105152.2463 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.2501 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.2618 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67503771046750344839',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,50000,?,?,?)
20241204@105152.2987 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105152.2995 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20241204@105152.3046 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20241204@105152.3252 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.3317 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.3426 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.3462 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.3482 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105152.3517 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20241204@105152.3549 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.3619 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.3647 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503749036750344856','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105152.3657 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.3717 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.3804 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503749036750344856',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241204@105152.4280 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105152.4328 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20241204@105152.4517 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@105152.4979 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.5521 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.5984 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.6059 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.6086 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105152.6129 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20241204@105152.6243 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.6352 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.6441 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503136366750344898','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105152.6451 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.6521 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.6661 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503136366750344898',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241204@105152.7240 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105152.7259 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241204@105152.7324 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20241204@105152.7532 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.7594 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.7799 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.7915 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.7949 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105152.8025 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400223100a'
20241204@105152.8069 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.8112 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.8179 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675037725967503448c5','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105152.8190 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.8249 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.8457 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675037725967503448c5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241204@105152.9169 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.9422 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105152.9506 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.9558 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.9642 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105152.9680 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105152.9759 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105152.9921 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675034523467503448ec','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105152.9934 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.2000 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.2110 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675034523467503448ec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,100000,?,?,?)
20241204@105153.6690 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105153.6780 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20241204@105153.8450 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.649.00.01'
20241204@105153.1088 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.1161 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.1271 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.1314 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.1336 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105153.1380 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400682200a'
20241204@105153.1450 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.1548 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.1619 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503639506750344923','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105153.1628 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.1722 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.1938 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503639506750344923',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20241204@105153.2317 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.2374 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.2501 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.2576 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.2602 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105153.2659 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.2828 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.2950 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503320666750344940','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105153.2995 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.3115 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.3302 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67503320666750344940',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,130000,?,?,?)
20241204@105153.3719 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105153.3735 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241204@105153.3865 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20241204@105153.4169 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.4236 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.4314 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.4377 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.4396 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105153.4439 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400407200a'
20241204@105153.4495 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.4540 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.4583 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6750331127675034496d','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105153.4602 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.4646 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.4857 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6750331127675034496d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20241204@105153.5362 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.5434 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.5608 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.5680 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.5729 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105153.5771 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.5838 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.5889 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6750330702675034498c','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105153.5900 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.5968 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.6121 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6750330702675034498c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,160000,?,?,?)
20241204@105153.6760 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105153.6768 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20241204@105153.6880 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20241204@105153.6954 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.7026 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.7220 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.7289 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.7342 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105153.7380 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400407200a'
20241204@105153.7427 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.7497 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.7549 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675036276467503449b5','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105153.7576 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.7640 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.7776 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675036276467503449b5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20241204@105153.8276 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.8341 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.8439 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.8576 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.8639 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105153.8704 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.8759 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105153.8813 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675037384467503449d4','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105153.8825 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.8890 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.9071 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675037384467503449d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,190000,?,?,?)
20241204@105153.9442 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105153.9449 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20241204@105153.9559 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.686.00.01'
20241204@105153.9761 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105153.9844 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105153.9982 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.5800 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105154.1870 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105154.5540 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400127100a'
20241204@105154.2026 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.2242 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105154.2382 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503632996750344a31','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105154.2392 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.2475 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105154.2911 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503632996750344a31',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20241204@105154.3523 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.3554 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105154.3660 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.3711 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105154.3865 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105154.4308 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.4836 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105154.5524 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503112846750344a69','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105154.5568 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.6137 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105154.6618 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67503112846750344a69',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,220000,?,?,?)
20241204@105154.7006 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105154.7187 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20241204@105154.7501 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.679.00.01'
20241204@105154.8012 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.8533 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105154.8732 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105154.8817 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105154.9535 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105155.3880 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.679.00.01' and lote = 'r2400685200a'
20241204@105155.1242 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.1316 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105155.1345 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503765166750344b1e','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105155.1355 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.1549 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105155.2708 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503765166750344b1e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,240000,?,?,?,?,?)
20241204@105155.3884 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.4716 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105155.5176 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.5236 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105155.5263 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105155.5305 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.5345 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105155.5382 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503567436750344b81','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105155.5393 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.5440 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105155.5599 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67503567436750344b81',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,250000,?,?,?)
20241204@105155.6087 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105155.6095 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.729.00.01'
20241204@105155.6133 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.729.00.01'
20241204@105155.6323 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.6381 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105155.6461 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.6499 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105155.6599 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105155.6649 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.729.00.01' and lote = 'r2400238100a'
20241204@105155.6704 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.6765 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105155.6814 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503451746750344ba3','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105155.6824 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.6981 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105155.7396 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503451746750344ba3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,270000,?,?,?,?,?)
20241204@105155.8109 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.8215 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105155.9241 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105155.9460 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105155.9587 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105155.9797 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105156.4800 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105156.1168 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503157276750344bef','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105156.1418 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105156.2448 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105156.2670 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67503157276750344bef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503873996750344768' ,0,0 ,2,23.00,280000,?,?,?)
20241204@105156.3103 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105156.3180 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241204@105156.4120 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241204@105156.4971 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105156.5243 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105156.5935 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105156.5978 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105156.6010 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105156.6670 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241204@105156.6892 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105156.7669 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105156.8296 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503554956750344ca8','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105156.8345 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105156.8433 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105156.8502 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503554956750344ca8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,300000,?,?,?,?,?)
20241204@105156.9561 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105156.9593 n9hnpnr34l2jetpejn6hrldmka Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20241204@105156.9638 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.736.00.01'
20241204@105157.2050 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105157.2620 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105157.3660 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105157.7350 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105157.1220 n9hnpnr34l2jetpejn6hrldmka Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105157.1585 n9hnpnr34l2jetpejn6hrldmka Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20241204@105157.1632 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105157.1658 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105157.1699 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503128586750344d27','aut67503873996750344768' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105157.1711 n9hnpnr34l2jetpejn6hrldmka Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105157.1778 n9hnpnr34l2jetpejn6hrldmka Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105157.1859 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503128586750344d27',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67503873996750344768' ,0,0 ,2,23.00,310000,?,?,?,?,?)
20241204@105157.2492 n9hnpnr34l2jetpejn6hrldmka Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67503873996750344768','2408208','wait',39,'adm09112754980.682000002')
20241204@105157.3801 n9hnpnr34l2jetpejn6hrldmka Query : use flama_phc
20241204@105157.3812 n9hnpnr34l2jetpejn6hrldmka Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@105157.3942 n9hnpnr34l2jetpejn6hrldmka Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3670';
20241204@105157.4069 n9hnpnr34l2jetpejn6hrldmka Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3670';
20241204@105157.4153 n9hnpnr34l2jetpejn6hrldmka Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3670';
20241204@105157.4251 n9hnpnr34l2jetpejn6hrldmka Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3670';
20241204@105157.4854 qdeut3ame4quos8tk6gljs5qnc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241204@105157.4882 qdeut3ame4quos8tk6gljs5qnc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241204@105157.4949 qdeut3ame4quos8tk6gljs5qnc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3671';
20241204@105157.5008 qdeut3ame4quos8tk6gljs5qnc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3671';
20241204@105157.5097 qdeut3ame4quos8tk6gljs5qnc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3671';
20241204@105157.5130 qdeut3ame4quos8tk6gljs5qnc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3671';
20241204@105157.5199 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105157.5202 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@105157.5280 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105157.5283 qdeut3ame4quos8tk6gljs5qnc Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20241204@105157.5334 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2186.00.1'
20241204@105157.5356 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='304.2186.00.1' and bi.lordem =1
20241204@105157.5684 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20241204@105157.5705 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.4988.00.1' and bi.lordem =2
20241204@105157.6048 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2160.00.1'
20241204@105157.6201 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.2160.00.1' and bi.lordem =3
20241204@105157.6734 qdeut3ame4quos8tk6gljs5qnc 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'
20241204@105157.6755 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.2907.00.1' and bi.lordem =4
20241204@105157.7084 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20241204@105157.7441 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.2231.00.2' and bi.lordem =5
20241204@105157.7862 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241204@105157.8016 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.657.00.01' and bi.lordem =7
20241204@105157.8335 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20241204@105157.8362 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.682.00.01' and bi.lordem =8
20241204@105157.8744 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20241204@105157.8917 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.692.00.01' and bi.lordem =9
20241204@105157.9449 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20241204@105157.9471 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.649.00.01' and bi.lordem =10
20241204@105157.9806 qdeut3ame4quos8tk6gljs5qnc 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'
20241204@105157.9966 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408211 and bi.ref ='324.1461.00.1' and bi.lordem =11
20241204@105158.2870 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.2900 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@105158.3270 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.3300 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 1 valor from td where td.ndoc = 39
20241204@105158.3610 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.3640 qdeut3ame4quos8tk6gljs5qnc 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')
20241204@105158.3930 qdeut3ame4quos8tk6gljs5qnc 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
20241204@105158.4300 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.4330 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20241204@105158.4650 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.4680 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@105158.4990 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.5020 qdeut3ame4quos8tk6gljs5qnc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@105158.5470 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.5500 qdeut3ame4quos8tk6gljs5qnc Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20241204@105158.6000 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.6030 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from td where ndoc = 39
20241204@105158.6150 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@105158.6280 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.6450 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@105158.6880 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.7040 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@105158.7310 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.7460 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@105158.7580 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@105158.8170 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@105158.8290 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.8450 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@105158.8620 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67503174646750344e12' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@105158.1037 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.1053 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@105158.1085 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@105158.1098 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@105158.1110 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@105158.1122 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@105158.1133 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@105158.1145 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@105158.1156 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut67503174646750344e12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@105158.1412 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 fno valor from wsftdata order by fno desc
20241204@105158.1438 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.1454 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@105158.1476 qdeut3ame4quos8tk6gljs5qnc Query : select 'normal' from dummy
20241204@105158.1491 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut67503174646750344e12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2187,100404,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@105158.1788 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.1791 qdeut3ame4quos8tk6gljs5qnc Query : select st.usalote valor from st where st.ref = '304.2186.00.1'
20241204@105158.1812 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.2186.00.1'
20241204@105158.1826 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.1842 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.1866 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.1880 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.1888 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105158.1901 qdeut3ame4quos8tk6gljs5qnc Query : select sestamp valor from se where ref ='304.2186.00.1' and lote = '241301'
20241204@105158.1913 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.1927 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.1938 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503860796750344e2e','aut67503174646750344e12' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105158.1942 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.1957 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.1984 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503860796750344e2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67503174646750344e12' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@105158.2266 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.2283 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.2311 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.2326 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.2335 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105158.2348 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.2362 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.2373 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503560836750344e39','aut67503174646750344e12' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105158.2377 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.2393 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.2421 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67503560836750344e39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut67503174646750344e12' ,0,0 ,2,23.00,20000,?,?,?)
20241204@105158.2823 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.2865 qdeut3ame4quos8tk6gljs5qnc Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20241204@105158.2962 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20241204@105158.2976 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.2992 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.3018 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.3033 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.3065 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105158.3077 qdeut3ame4quos8tk6gljs5qnc Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20241204@105158.3089 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.3104 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.3116 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503564596750344e4b','aut67503174646750344e12' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105158.3121 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.3135 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.3183 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503564596750344e4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut67503174646750344e12' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241204@105158.4488 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.4493 qdeut3ame4quos8tk6gljs5qnc Query : select st.usalote valor from st where st.ref = '324.2160.00.1'
20241204@105158.4515 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2160.00.1'
20241204@105158.4663 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.4679 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.4704 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.4718 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.4727 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105158.4738 qdeut3ame4quos8tk6gljs5qnc Query : select sestamp valor from se where ref ='324.2160.00.1' and lote = 'r2300936200a'
20241204@105158.4758 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.4772 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.4839 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503354026750344e74','aut67503174646750344e12' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105158.4843 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.4859 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.4885 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503354026750344e74',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut67503174646750344e12' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241204@105158.5175 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.5178 qdeut3ame4quos8tk6gljs5qnc Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20241204@105158.5199 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@105158.5214 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.5229 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.5255 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.5270 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.5279 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105158.5293 qdeut3ame4quos8tk6gljs5qnc Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20241204@105158.5306 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.5321 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.5332 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503545306750344e81','aut67503174646750344e12' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105158.5336 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.5351 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.5379 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut67503545306750344e81',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67503174646750344e12' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20241204@105158.5642 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.5645 qdeut3ame4quos8tk6gljs5qnc Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20241204@105158.5665 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2231.00.2'
20241204@105158.5808 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.5824 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@105158.5849 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.5864 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.5873 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@105158.5884 qdeut3ame4quos8tk6gljs5qnc Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r230114127'
20241204@105158.5894 qdeut3ame4quos8tk6gljs5qnc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@105158.5909 qdeut3ame4quos8tk6gljs5qnc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@105158.5920 qdeut3ame4quos8tk6gljs5qnc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67503058836750344e8f','aut67503174646750344e12' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@105158.5948 qdeut3ame4quos8tk6gljs5qnc Query : use flama_phc
20241204@105158.5951 qdeut3ame4quos8tk6gljs5qnc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241204@105158.6033 qdeut3ame4quos8tk6gljs5qnc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3671';
20241204@105158.6071 qdeut3ame4quos8tk6gljs5qnc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3671';

20241204@135714.4089 h7t8p42p7o90o14fn18i8des1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3672';
20241204@135714.4213 h7t8p42p7o90o14fn18i8des1d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3672';
20241204@135714.4271 h7t8p42p7o90o14fn18i8des1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3672';
20241204@135714.4347 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135714.4350 h7t8p42p7o90o14fn18i8des1d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@135714.4419 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135714.4429 h7t8p42p7o90o14fn18i8des1d Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20241204@135714.4476 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20241204@135714.4503 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.4970.00.1' and bi.lordem =1
20241204@135714.4866 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20241204@135714.5023 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1705.00.1' and bi.lordem =2
20241204@135714.5342 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2028.00.2'
20241204@135714.5487 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.2028.00.2' and bi.lordem =3
20241204@135714.5829 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20241204@135714.6011 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1462.00.1' and bi.lordem =4
20241204@135714.6368 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20241204@135714.6530 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1803.00.1' and bi.lordem =5
20241204@135714.6871 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20241204@135714.7029 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.727.00.01' and bi.lordem =6
20241204@135714.7355 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20241204@135714.7383 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1879.00.1' and bi.lordem =7
20241204@135714.7709 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20241204@135714.7859 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1643.00.1' and bi.lordem =9
20241204@135714.8179 h7t8p42p7o90o14fn18i8des1d 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'
20241204@135714.8225 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.2907.00.1' and bi.lordem =10
20241204@135714.8585 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20241204@135714.8750 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1831.00.2' and bi.lordem =11
20241204@135714.9087 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20241204@135714.9245 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1832.00.2' and bi.lordem =12
20241204@135714.9880 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20241204@135715.5700 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.945.00.01' and bi.lordem =13
20241204@135715.3910 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20241204@135715.4170 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.657.00.01' and bi.lordem =14
20241204@135715.7520 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20241204@135715.7790 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.692.00.01' and bi.lordem =15
20241204@135715.1152 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4965.00.1'
20241204@135715.1325 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.4965.00.1' and bi.lordem =16
20241204@135715.1681 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4966.00.1'
20241204@135715.1839 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.4966.00.1' and bi.lordem =17
20241204@135715.2176 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20241204@135715.2330 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.946.00.01' and bi.lordem =18
20241204@135715.4427 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20241204@135715.4591 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1805.00.1' and bi.lordem =19
20241204@135715.4933 h7t8p42p7o90o14fn18i8des1d Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1805.00.1'
20241204@135715.4965 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2082 and bo.obrano = 2408221 and bi.ref ='324.1805.00.1' and bi.lordem =19
20241204@135715.4983 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.4986 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@135715.5024 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.5027 h7t8p42p7o90o14fn18i8des1d Query : select top 1 1 valor from td where td.ndoc = 39
20241204@135715.5062 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.5065 h7t8p42p7o90o14fn18i8des1d 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')
20241204@135715.5103 h7t8p42p7o90o14fn18i8des1d 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
20241204@135715.5151 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.5154 h7t8p42p7o90o14fn18i8des1d Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20241204@135715.5207 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.5210 h7t8p42p7o90o14fn18i8des1d Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@135715.5247 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.5250 h7t8p42p7o90o14fn18i8des1d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@135715.5304 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.5307 h7t8p42p7o90o14fn18i8des1d Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20241204@135715.5354 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.5359 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from td where ndoc = 39
20241204@135715.5377 h7t8p42p7o90o14fn18i8des1d Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@135715.5396 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.5418 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@135715.5466 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.5481 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@135715.5527 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.5545 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@135715.5558 h7t8p42p7o90o14fn18i8des1d Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@135715.5619 h7t8p42p7o90o14fn18i8des1d Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@135715.5657 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.5672 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@135715.5695 h7t8p42p7o90o14fn18i8des1d Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@135715.5959 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.5975 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@135715.6012 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@135715.6026 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@135715.6038 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@135715.6049 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@135715.6063 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@135715.6074 h7t8p42p7o90o14fn18i8des1d Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@135715.6086 h7t8p42p7o90o14fn18i8des1d Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut675053030867505fbb87',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@135715.6619 h7t8p42p7o90o14fn18i8des1d Query : select top 1 fno valor from wsftdata order by fno desc
20241204@135715.6660 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.6677 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@135715.6713 h7t8p42p7o90o14fn18i8des1d Query : select 'normal' from dummy
20241204@135715.6746 h7t8p42p7o90o14fn18i8des1d Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut675053030867505fbb87',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2187,100404,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@135715.7183 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.7186 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241204@135715.7233 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241204@135715.7253 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.7269 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135715.7296 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.7320 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135715.7329 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135715.7347 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241204@135715.7374 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.7388 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135715.7400 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675053849367505fbbb4','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135715.7431 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.7447 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135715.7481 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675053849367505fbbb4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@135715.7905 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.7908 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20241204@135715.7991 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20241204@135715.8260 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.8335 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135715.8425 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.8502 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135715.8511 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135715.8583 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20241204@135715.8602 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.8618 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135715.8648 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675056101267505fbbd2','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135715.8653 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.8669 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135715.8697 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675056101267505fbbd2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241204@135715.8962 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135715.8966 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.2028.00.2'
20241204@135715.8988 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2028.00.2'
20241204@135715.9153 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.9168 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135715.9194 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.9213 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135715.9228 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135715.9241 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.2028.00.2' and lote = 'r2100875100a'
20241204@135715.9268 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135715.9887 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.4400 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675059868367505fbbe2','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.4440 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4620 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.4920 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675059868367505fbbe2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241204@135716.8450 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.8650 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.8910 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9250 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.9330 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.9470 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9640 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.9760 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675053476367505fbc17','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.9810 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9960 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.1035 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675053476367505fbc17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,40000,?,?,?)
20241204@135716.1304 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.1307 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20241204@135716.1347 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1462.00.1'
20241204@135716.1494 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.1518 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.1547 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.1563 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.1572 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.1585 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2100463100a'
20241204@135716.1599 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.1616 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.1628 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675053931267505fbc27','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.1632 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.1647 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.1682 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675053931267505fbc27',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20241204@135716.1961 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.1964 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1803.00.1'
20241204@135716.1992 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1803.00.1'
20241204@135716.2141 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.2158 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.2184 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.2198 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.2207 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.2221 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1803.00.1' and lote = 'r2400480200a'
20241204@135716.2234 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.2268 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.2279 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675055124767505fbc36','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.2290 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.2306 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.2335 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675055124767505fbc36',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241204@135716.2620 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.2624 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20241204@135716.2646 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20241204@135716.2988 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3005 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.3031 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3045 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.3054 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.3065 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2301222100a'
20241204@135716.3086 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3101 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.3112 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675054028067505fbc4b','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.3116 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3131 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.3158 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675054028067505fbc4b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241204@135716.3588 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3652 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.3681 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3696 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.3705 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.3718 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3732 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.3745 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675051040467505fbc5a','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.3751 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.3766 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.3794 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675051040467505fbc5a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,90000,?,?,?)
20241204@135716.4075 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.4078 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20241204@135716.4096 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1879.00.1'
20241204@135716.4116 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4132 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.4161 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4181 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.4190 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.4222 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2400283200a'
20241204@135716.4241 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4256 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.4267 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675051097267505fbc67','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.4272 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4288 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.4324 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675051097267505fbc67',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241204@135716.4633 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4651 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.4677 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4692 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.4700 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.4712 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4736 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.4750 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675050505567505fbc73','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.4754 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.4771 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.4825 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675050505567505fbc73',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,120000,?,?,?)
20241204@135716.5124 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.5127 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20241204@135716.5147 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1643.00.1'
20241204@135716.5367 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.5384 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.5410 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.5425 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.5434 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.5446 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20241204@135716.5474 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.5490 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.5569 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675055717467505fbc85','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.5574 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.5617 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.5648 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675055717467505fbc85',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20241204@135716.5939 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.5942 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20241204@135716.5974 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@135716.5997 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6013 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.6041 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6058 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.6067 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.6078 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20241204@135716.6091 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6105 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.6117 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675058129967505fbc94','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.6121 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6136 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.6164 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675058129967505fbc94',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20241204@135716.6483 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.6486 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1831.00.2'
20241204@135716.6507 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1831.00.2'
20241204@135716.6659 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6674 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.6700 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6733 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.6741 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.6754 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1831.00.2' and lote = 'r2400922200a'
20241204@135716.6768 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6783 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.6795 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675054505867505fbca5','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.6798 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.6813 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.6850 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675054505867505fbca5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20241204@135716.7145 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7162 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.7186 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7209 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.7217 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.7230 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7245 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.7256 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675057469967505fbcb0','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.7260 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7275 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.7316 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675057469967505fbcb0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,170000,?,?,?)
20241204@135716.7586 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.7589 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20241204@135716.7609 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20241204@135716.7778 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7795 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.7821 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7835 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.7851 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.7864 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2301257100a'
20241204@135716.7884 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7898 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.7924 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675055795567505fbcc0','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.7928 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.7943 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.7971 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675055795567505fbcc0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20241204@135716.8253 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.8269 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.8296 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.8328 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.8337 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.8349 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.8364 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.8376 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675055421567505fbccb','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.8380 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.8394 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.8430 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675055421567505fbccb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,200000,?,?,?)
20241204@135716.8897 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.8901 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20241204@135716.8922 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20241204@135716.9069 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9085 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.9112 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9127 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.9136 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135716.9148 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2400091100a'
20241204@135716.9202 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9372 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135716.9384 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675052415467505fbce0','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135716.9389 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9404 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.9461 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675052415467505fbce0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20241204@135716.9746 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135716.9750 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20241204@135716.9769 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20241204@135716.9924 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9939 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135716.9965 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135716.9998 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.8000 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.2000 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301178100a'
20241204@135717.4000 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.5500 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.6700 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675054146267505fbd00','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.7100 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.9300 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.1240 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675054146267505fbd00',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,230000,?,?,?,?,?)
20241204@135717.5440 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.5600 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.5870 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6010 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.6160 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.6300 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6450 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.6830 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675052791167505fbd0f','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.6870 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.7020 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.7330 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675052791167505fbd0f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,240000,?,?,?)
20241204@135717.1071 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135717.1075 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20241204@135717.1115 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@135717.1272 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.1288 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.1491 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.1566 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.1576 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.1647 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400211200a'
20241204@135717.1667 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.1684 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.1696 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675053619367505fbd28','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.1700 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.1716 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.1744 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675053619367505fbd28',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,260000,?,?,?,?,?)
20241204@135717.2058 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.3308 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.3336 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.3380 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.3392 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.3405 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.3421 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.3451 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675057402467505fbd53','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.3456 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.3470 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.3498 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut675057402467505fbd53',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,270000,?,?,?)
20241204@135717.3772 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135717.3776 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.4965.00.1'
20241204@135717.3799 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4965.00.1'
20241204@135717.3961 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.3976 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.4002 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.4018 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.4026 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.4046 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.4965.00.1' and lote = 'r2301278300a'
20241204@135717.4062 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.4076 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.4089 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675057849767505fbd63','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.4093 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.4108 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.4151 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675057849767505fbd63',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,290000,?,?,?,?,?)
20241204@135717.4421 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135717.4425 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.4966.00.1'
20241204@135717.4446 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4966.00.1'
20241204@135717.4611 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.4627 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.4653 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.4667 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.4676 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.4688 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.4966.00.1' and lote = 'r2300825100a'
20241204@135717.4713 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.4731 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.4744 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675053479867505fbd73','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.4748 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.4762 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.4809 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675053479867505fbd73',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,300000,?,?,?,?,?)
20241204@135717.5114 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135717.5119 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20241204@135717.5139 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.946.00.01'
20241204@135717.5317 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.5334 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.5362 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.5377 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.5385 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.5397 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20241204@135717.5418 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.5433 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.5445 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675058745667505fbd84','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.5449 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.5472 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.5503 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675058745667505fbd84',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,310000,?,?,?,?,?)
20241204@135717.5819 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135717.5822 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20241204@135717.5844 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@135717.6045 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6061 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.6087 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6102 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.6110 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.6122 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400291200a'
20241204@135717.6136 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6152 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.6163 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675051898167505fbd95','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.6168 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6342 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.6405 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675051898167505fbd95',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,320000,?,?,?,?,?)
20241204@135717.6700 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135717.6704 h7t8p42p7o90o14fn18i8des1d Query : select st.usalote valor from st where st.ref = '324.1805.00.1'
20241204@135717.6733 h7t8p42p7o90o14fn18i8des1d Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@135717.6751 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6767 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.6811 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6826 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.6838 h7t8p42p7o90o14fn18i8des1d Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@135717.6851 h7t8p42p7o90o14fn18i8des1d Query : select sestamp valor from se where ref ='324.1805.00.1' and lote = 'r2400291200a'
20241204@135717.6863 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6877 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@135717.6897 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675056444067505fbda7','aut675053030867505fbb87' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@135717.6902 h7t8p42p7o90o14fn18i8des1d Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@135717.6917 h7t8p42p7o90o14fn18i8des1d Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@135717.6945 h7t8p42p7o90o14fn18i8des1d Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675056444067505fbda7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut675053030867505fbb87' ,0,0 ,2,23.00,330000,?,?,?,?,?)
20241204@135717.7414 h7t8p42p7o90o14fn18i8des1d Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut675053030867505fbb87','2408221','wait',39,'adm09112754980.682000002')
20241204@135717.7503 h7t8p42p7o90o14fn18i8des1d Query : use flama_phc
20241204@135717.7506 h7t8p42p7o90o14fn18i8des1d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@135717.7537 h7t8p42p7o90o14fn18i8des1d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3672';
20241204@135717.7583 h7t8p42p7o90o14fn18i8des1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3672';
20241204@135717.7631 h7t8p42p7o90o14fn18i8des1d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3672';
20241204@135717.7663 h7t8p42p7o90o14fn18i8des1d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3672';

20241204@144217.1305 mfn6au3jj1iq6giia0uals87j1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3673';
20241204@144217.1381 mfn6au3jj1iq6giia0uals87j1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3673';
20241204@144217.1411 mfn6au3jj1iq6giia0uals87j1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3673';
20241204@144217.1466 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.1469 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@144217.1564 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.1567 mfn6au3jj1iq6giia0uals87j1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241204@144217.1652 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20241204@144217.1811 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408190 and bi.ref ='324.938.00.01' and bi.lordem =1
20241204@144217.2137 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20241204@144217.2160 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408190 and bi.ref ='324.938.00.01' and bi.lordem =1
20241204@144217.2177 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2180 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@144217.2215 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2218 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 1 valor from td where td.ndoc = 39
20241204@144217.2247 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2249 mfn6au3jj1iq6giia0uals87j1 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')
20241204@144217.2281 mfn6au3jj1iq6giia0uals87j1 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
20241204@144217.2316 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2318 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241204@144217.2516 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2519 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@144217.2549 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2552 mfn6au3jj1iq6giia0uals87j1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@144217.2590 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2593 mfn6au3jj1iq6giia0uals87j1 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241204@144217.2668 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.2671 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from td where ndoc = 39
20241204@144217.2683 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@144217.2697 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.2911 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144217.2931 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.2948 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144217.2975 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.2990 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144217.3015 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144217.3071 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144217.3084 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.3099 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144217.3114 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut675060036567506a4949' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@144217.3499 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.4105 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144217.4156 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@144217.4168 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@144217.4179 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@144217.4231 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@144217.4625 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@144217.4640 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@144217.4653 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut675060036567506a4949',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@144217.4934 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 fno valor from wsftdata order by fno desc
20241204@144217.4961 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.4976 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144217.5004 mfn6au3jj1iq6giia0uals87j1 Query : select 'normal' from dummy
20241204@144217.5019 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut675060036567506a4949',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2188,100810,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@144217.5374 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.5377 mfn6au3jj1iq6giia0uals87j1 Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20241204@144217.5399 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.938.00.01'
20241204@144217.5541 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.5557 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144217.5582 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.5596 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144217.5604 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144217.5617 mfn6au3jj1iq6giia0uals87j1 Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20241204@144217.5632 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.5648 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144217.5659 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675066499167506a4989','aut675060036567506a4949' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144217.5663 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.5678 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144217.5706 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675066499167506a4989',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',40.000 ,'aut675060036567506a4949' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@144217.6138 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.6141 mfn6au3jj1iq6giia0uals87j1 Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20241204@144217.6160 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.938.00.01'
20241204@144217.6173 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.6189 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144217.6213 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.6227 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144217.6235 mfn6au3jj1iq6giia0uals87j1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144217.6247 mfn6au3jj1iq6giia0uals87j1 Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20241204@144217.6260 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.6276 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144217.6288 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675067396867506a4998','aut675060036567506a4949' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144217.6292 mfn6au3jj1iq6giia0uals87j1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144217.6306 mfn6au3jj1iq6giia0uals87j1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144217.6331 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675067396867506a4998',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut675060036567506a4949' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241204@144217.6813 mfn6au3jj1iq6giia0uals87j1 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut675060036567506a4949','2408190','wait',39,'adm09112754980.682000002')
20241204@144217.6890 mfn6au3jj1iq6giia0uals87j1 Query : use flama_phc
20241204@144217.6893 mfn6au3jj1iq6giia0uals87j1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@144217.6922 mfn6au3jj1iq6giia0uals87j1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3673';
20241204@144217.6959 mfn6au3jj1iq6giia0uals87j1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3673';
20241204@144217.7008 mfn6au3jj1iq6giia0uals87j1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3673';
20241204@144217.7037 mfn6au3jj1iq6giia0uals87j1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3673';
20241204@144217.7531 394k3l6crrr99qoid5s0q7dlt9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241204@144217.7545 394k3l6crrr99qoid5s0q7dlt9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241204@144217.7622 394k3l6crrr99qoid5s0q7dlt9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3674';
20241204@144217.8214 394k3l6crrr99qoid5s0q7dlt9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3674';
20241204@144217.8912 394k3l6crrr99qoid5s0q7dlt9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3674';
20241204@144217.8950 394k3l6crrr99qoid5s0q7dlt9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3674';
20241204@144217.9047 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9050 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@144217.9114 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9117 394k3l6crrr99qoid5s0q7dlt9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241204@144217.9162 394k3l6crrr99qoid5s0q7dlt9 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'
20241204@144217.9323 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408191 and bi.ref ='324.2221.00.1' and bi.lordem =1
20241204@144217.9645 394k3l6crrr99qoid5s0q7dlt9 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'
20241204@144217.9665 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408191 and bi.ref ='324.2221.00.1' and bi.lordem =1
20241204@144217.9682 394k3l6crrr99qoid5s0q7dlt9 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'
20241204@144217.9702 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408191 and bi.ref ='324.2221.00.1' and bi.lordem =1
20241204@144217.9718 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9721 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@144217.9753 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9756 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 1 valor from td where td.ndoc = 39
20241204@144217.9786 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9788 394k3l6crrr99qoid5s0q7dlt9 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')
20241204@144217.9818 394k3l6crrr99qoid5s0q7dlt9 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
20241204@144217.9852 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9855 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241204@144217.9884 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9887 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@144217.9916 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9919 394k3l6crrr99qoid5s0q7dlt9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@144217.9959 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144217.9962 394k3l6crrr99qoid5s0q7dlt9 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241204@144218.8000 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144218.1100 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from td where ndoc = 39
20241204@144218.2300 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@144218.3700 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.5500 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144218.7400 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.8800 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144218.1160 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.1330 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144218.1460 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144218.2290 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144218.2420 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.2570 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144218.2720 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut675060475367506a4a03' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@144218.4490 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.4690 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144218.5020 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@144218.5410 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@144218.5520 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@144218.5640 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@144218.5760 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@144218.5870 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@144218.5980 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut675060475367506a4a03',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@144218.8600 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 fno valor from wsftdata order by fno desc
20241204@144218.9070 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.9220 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144218.9450 394k3l6crrr99qoid5s0q7dlt9 Query : select 'normal' from dummy
20241204@144218.9590 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut675060475367506a4a03',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2189,100810,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@144218.1276 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144218.1279 394k3l6crrr99qoid5s0q7dlt9 Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20241204@144218.1300 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@144218.1430 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.1446 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.1472 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.1488 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.1497 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144218.1509 394k3l6crrr99qoid5s0q7dlt9 Query : select sestamp valor from se where ref ='324.2221.00.1' and lote = 'r2301280100a'
20241204@144218.1523 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.1538 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.1550 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675068285767506a4a25','aut675060475367506a4a03' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144218.1554 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.1568 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.1597 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675068285767506a4a25',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut675060475367506a4a03' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@144218.1883 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144218.1886 394k3l6crrr99qoid5s0q7dlt9 Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20241204@144218.1910 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@144218.1923 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.1941 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.1968 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.1984 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.1993 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144218.2006 394k3l6crrr99qoid5s0q7dlt9 Query : select sestamp valor from se where ref ='324.2221.00.1' and lote = 'r2301280100a'
20241204@144218.2019 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.2040 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.2052 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675066161367506a4a31','aut675060475367506a4a03' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144218.2056 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.2071 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.2101 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675066161367506a4a31',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut675060475367506a4a03' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241204@144218.2360 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144218.2363 394k3l6crrr99qoid5s0q7dlt9 Query : select st.usalote valor from st where st.ref = '324.2221.00.1'
20241204@144218.2382 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@144218.2396 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.2411 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.2438 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.2453 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.2462 394k3l6crrr99qoid5s0q7dlt9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144218.2513 394k3l6crrr99qoid5s0q7dlt9 Query : select sestamp valor from se where ref ='324.2221.00.1' and lote = 'r2301280100a'
20241204@144218.2612 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.2631 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.2643 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675064270467506a4a3f','aut675060475367506a4a03' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144218.2647 394k3l6crrr99qoid5s0q7dlt9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.2662 394k3l6crrr99qoid5s0q7dlt9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.2694 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675064270467506a4a3f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut675060475367506a4a03' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241204@144218.2974 394k3l6crrr99qoid5s0q7dlt9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut675060475367506a4a03','2408191','wait',39,'adm09112754980.682000002')
20241204@144218.3044 394k3l6crrr99qoid5s0q7dlt9 Query : use flama_phc
20241204@144218.3047 394k3l6crrr99qoid5s0q7dlt9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@144218.3075 394k3l6crrr99qoid5s0q7dlt9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3674';
20241204@144218.3112 394k3l6crrr99qoid5s0q7dlt9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3674';
20241204@144218.3175 394k3l6crrr99qoid5s0q7dlt9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3674';
20241204@144218.3205 394k3l6crrr99qoid5s0q7dlt9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3674';
20241204@144218.3693 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241204@144218.3703 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241204@144218.3765 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3675';
20241204@144218.3825 b3eoa0o7k5e9r5hq5db5h2ac39 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3675';
20241204@144218.3886 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3675';
20241204@144218.3915 b3eoa0o7k5e9r5hq5db5h2ac39 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3675';
20241204@144218.3969 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.3972 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@144218.4032 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.4037 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241204@144218.4088 b3eoa0o7k5e9r5hq5db5h2ac39 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'
20241204@144218.4110 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408192 and bi.ref ='324.2907.00.1' and bi.lordem =1
20241204@144218.4463 b3eoa0o7k5e9r5hq5db5h2ac39 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'
20241204@144218.4487 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408192 and bi.ref ='324.2907.00.1' and bi.lordem =1
20241204@144218.4505 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.4508 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@144218.4542 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.4545 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 1 valor from td where td.ndoc = 39
20241204@144218.4575 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.4578 b3eoa0o7k5e9r5hq5db5h2ac39 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')
20241204@144218.4606 b3eoa0o7k5e9r5hq5db5h2ac39 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
20241204@144218.4642 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.4645 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241204@144218.5477 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.5560 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@144218.6926 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.6929 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@144218.6975 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.6978 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241204@144218.7022 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.7026 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from td where ndoc = 39
20241204@144218.7040 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@144218.7053 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.7070 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144218.7090 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.7104 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144218.7132 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.7146 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144218.7158 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144218.7213 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144218.7225 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.7240 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144218.7537 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut675060463167506a4aae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@144218.8042 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.8325 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144218.8731 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@144218.8771 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@144218.8820 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@144218.8833 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@144218.8844 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@144218.8855 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@144218.8866 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut675060463167506a4aae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@144218.9124 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 fno valor from wsftdata order by fno desc
20241204@144218.9152 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.9168 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144218.9191 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 'normal' from dummy
20241204@144218.9207 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut675060463167506a4aae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2190,100810,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@144218.9524 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.9527 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20241204@144218.9549 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@144218.9563 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.9578 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.9603 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.9617 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.9625 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144218.9636 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20241204@144218.9647 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.9661 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144218.9672 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675064509867506a4aeb','aut675060463167506a4aae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144218.9676 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144218.9689 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144218.9716 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675064509867506a4aeb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut675060463167506a4aae' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@144218.9986 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144218.9988 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20241204@144219.7000 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241204@144219.2000 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.3700 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.6100 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.7500 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.8500 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144219.9600 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20241204@144219.1080 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.1240 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.1370 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675069769967506a4b02','aut675060463167506a4aae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144219.1410 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.1570 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.2080 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675069769967506a4b02',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',192.000 ,'aut675060463167506a4aae' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241204@144219.4760 b3eoa0o7k5e9r5hq5db5h2ac39 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut675060463167506a4aae','2408192','wait',39,'adm09112754980.682000002')
20241204@144219.5470 b3eoa0o7k5e9r5hq5db5h2ac39 Query : use flama_phc
20241204@144219.5500 b3eoa0o7k5e9r5hq5db5h2ac39 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@144219.5790 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3675';
20241204@144219.6140 b3eoa0o7k5e9r5hq5db5h2ac39 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3675';
20241204@144219.6620 b3eoa0o7k5e9r5hq5db5h2ac39 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3675';
20241204@144219.6910 b3eoa0o7k5e9r5hq5db5h2ac39 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3675';
20241204@144219.1166 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241204@144219.1178 f2c3u5mlgahu68dnaq3u5ta05v Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241204@144219.1243 f2c3u5mlgahu68dnaq3u5ta05v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3676';
20241204@144219.1301 f2c3u5mlgahu68dnaq3u5ta05v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3676';
20241204@144219.1365 f2c3u5mlgahu68dnaq3u5ta05v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3676';
20241204@144219.1397 f2c3u5mlgahu68dnaq3u5ta05v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3676';
20241204@144219.1453 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.1456 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@144219.1518 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.1521 f2c3u5mlgahu68dnaq3u5ta05v Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241204@144219.1567 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20241204@144219.1613 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20241204@144219.1936 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20241204@144219.1958 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20241204@144219.1976 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20241204@144219.1996 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20241204@144219.2014 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20241204@144219.2034 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20241204@144219.2051 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20241204@144219.2070 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408193 and bi.ref ='324.4970.00.1' and bi.lordem =1
20241204@144219.2090 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2093 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@144219.2125 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2128 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 1 valor from td where td.ndoc = 39
20241204@144219.2158 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2161 f2c3u5mlgahu68dnaq3u5ta05v 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')
20241204@144219.2190 f2c3u5mlgahu68dnaq3u5ta05v 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
20241204@144219.2224 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2227 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241204@144219.2257 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2260 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@144219.2290 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2293 f2c3u5mlgahu68dnaq3u5ta05v Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@144219.2333 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2336 f2c3u5mlgahu68dnaq3u5ta05v Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241204@144219.2381 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.2384 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from td where ndoc = 39
20241204@144219.2397 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@144219.2411 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.2428 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144219.2448 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.2463 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144219.2493 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.2520 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144219.2534 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144219.2593 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144219.2606 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.2750 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144219.2766 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut675064599967506a4b3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@144219.2961 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.2978 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144219.3011 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@144219.3024 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@144219.3036 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@144219.3048 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@144219.3061 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@144219.3073 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@144219.3085 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut675064599967506a4b3d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@144219.3338 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 fno valor from wsftdata order by fno desc
20241204@144219.3365 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.3382 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144219.3404 f2c3u5mlgahu68dnaq3u5ta05v Query : select 'normal' from dummy
20241204@144219.3422 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut675064599967506a4b3d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2191,100810,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@144219.3761 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.3764 f2c3u5mlgahu68dnaq3u5ta05v Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241204@144219.3786 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241204@144219.3800 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.3816 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.3843 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.3858 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.3866 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144219.3881 f2c3u5mlgahu68dnaq3u5ta05v Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241204@144219.3894 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.3908 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.3920 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675066008767506a4b5f','aut675064599967506a4b3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144219.3924 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.3939 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.3967 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675066008767506a4b5f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut675064599967506a4b3d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@144219.4240 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.4243 f2c3u5mlgahu68dnaq3u5ta05v Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241204@144219.4263 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241204@144219.4277 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.4293 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.4319 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.4335 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.4344 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144219.4356 f2c3u5mlgahu68dnaq3u5ta05v Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241204@144219.4368 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.4382 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.4394 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675067338067506a4b6a','aut675064599967506a4b3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144219.4398 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.4411 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.4440 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675067338067506a4b6a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut675064599967506a4b3d' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241204@144219.5010 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.5092 f2c3u5mlgahu68dnaq3u5ta05v Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241204@144219.5522 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241204@144219.5877 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.5896 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.5924 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.5966 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.5975 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144219.5988 f2c3u5mlgahu68dnaq3u5ta05v Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241204@144219.6001 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6016 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.6030 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675061790067506a4b92','aut675064599967506a4b3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144219.6034 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6048 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.6083 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675061790067506a4b92',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut675064599967506a4b3d' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241204@144219.6349 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.6352 f2c3u5mlgahu68dnaq3u5ta05v Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241204@144219.6374 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241204@144219.6388 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6407 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.6431 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6445 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.6453 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144219.6464 f2c3u5mlgahu68dnaq3u5ta05v Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241204@144219.6475 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6490 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.6502 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675064989467506a4b9e','aut675064599967506a4b3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144219.6506 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6520 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.6548 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675064989467506a4b9e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut675064599967506a4b3d' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241204@144219.6806 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.6809 f2c3u5mlgahu68dnaq3u5ta05v Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20241204@144219.6827 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20241204@144219.6840 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6855 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.6879 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6894 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.6902 f2c3u5mlgahu68dnaq3u5ta05v Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144219.6914 f2c3u5mlgahu68dnaq3u5ta05v Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400492200a'
20241204@144219.6926 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.6947 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144219.6982 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675063387667506a4ba9','aut675064599967506a4b3d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144219.6987 f2c3u5mlgahu68dnaq3u5ta05v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.7001 f2c3u5mlgahu68dnaq3u5ta05v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144219.7027 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675063387667506a4ba9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut675064599967506a4b3d' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241204@144219.7293 f2c3u5mlgahu68dnaq3u5ta05v Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut675064599967506a4b3d','2408193','wait',39,'adm09112754980.682000002')
20241204@144219.7362 f2c3u5mlgahu68dnaq3u5ta05v Query : use flama_phc
20241204@144219.7365 f2c3u5mlgahu68dnaq3u5ta05v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@144219.7394 f2c3u5mlgahu68dnaq3u5ta05v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3676';
20241204@144219.7429 f2c3u5mlgahu68dnaq3u5ta05v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3676';
20241204@144219.7475 f2c3u5mlgahu68dnaq3u5ta05v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3676';
20241204@144219.7566 f2c3u5mlgahu68dnaq3u5ta05v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3676';
20241204@144219.8122 prs3bhsfgghi8tkcs1pcb59psg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241204@144219.8133 prs3bhsfgghi8tkcs1pcb59psg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241204@144219.8196 prs3bhsfgghi8tkcs1pcb59psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3677';
20241204@144219.8259 prs3bhsfgghi8tkcs1pcb59psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3677';
20241204@144219.8320 prs3bhsfgghi8tkcs1pcb59psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3677';
20241204@144219.8353 prs3bhsfgghi8tkcs1pcb59psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3677';
20241204@144219.8407 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.8409 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@144219.8471 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.8473 prs3bhsfgghi8tkcs1pcb59psg Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241204@144219.8517 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2223.00.1'
20241204@144219.8683 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408194 and bi.ref ='324.2223.00.1' and bi.lordem =1
20241204@144219.9021 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2223.00.1'
20241204@144219.9040 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408194 and bi.ref ='324.2223.00.1' and bi.lordem =1
20241204@144219.9057 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9059 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@144219.9090 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9093 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 1 valor from td where td.ndoc = 39
20241204@144219.9122 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9125 prs3bhsfgghi8tkcs1pcb59psg 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')
20241204@144219.9159 prs3bhsfgghi8tkcs1pcb59psg 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
20241204@144219.9193 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9196 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241204@144219.9227 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9230 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@144219.9260 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9262 prs3bhsfgghi8tkcs1pcb59psg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@144219.9301 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9303 prs3bhsfgghi8tkcs1pcb59psg Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241204@144219.9347 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144219.9350 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from td where ndoc = 39
20241204@144219.9362 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@144219.9376 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.9392 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144219.9410 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.9424 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144219.9453 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.9493 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144219.9506 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144219.9565 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144219.9578 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.9618 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144219.9633 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut675065135867506a4be8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@144219.9812 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144219.9833 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144219.9865 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@144219.9877 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@144219.9888 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@144219.9900 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@144219.9911 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@144219.9923 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@144219.9934 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut675065135867506a4be8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@144220.1860 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 fno valor from wsftdata order by fno desc
20241204@144220.2130 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.2280 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144220.2500 prs3bhsfgghi8tkcs1pcb59psg Query : select 'normal' from dummy
20241204@144220.2640 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut675065135867506a4be8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2192,100810,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@144220.5640 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144220.5670 prs3bhsfgghi8tkcs1pcb59psg Query : select st.usalote valor from st where st.ref = '324.2223.00.1'
20241204@144220.6140 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2223.00.1'
20241204@144220.7700 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7910 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.8170 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.8320 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.8420 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144220.8550 prs3bhsfgghi8tkcs1pcb59psg Query : select sestamp valor from se where ref ='324.2223.00.1' and lote = 'r2300829100a'
20241204@144220.8760 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.8930 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.9060 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675060412967506a4c15','aut675065135867506a4be8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144220.9100 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.9260 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.9570 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675060412967506a4c15',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut675065135867506a4be8' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@144220.1472 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144220.1557 prs3bhsfgghi8tkcs1pcb59psg Query : select st.usalote valor from st where st.ref = '324.2223.00.1'
20241204@144220.2218 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2223.00.1'
20241204@144220.2450 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.2471 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.2499 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.2513 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.2523 prs3bhsfgghi8tkcs1pcb59psg Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144220.2536 prs3bhsfgghi8tkcs1pcb59psg Query : select sestamp valor from se where ref ='324.2223.00.1' and lote = 'r2301280100a'
20241204@144220.2558 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.2573 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.2585 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675064397467506a4c3e','aut675065135867506a4be8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144220.2589 prs3bhsfgghi8tkcs1pcb59psg Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.2604 prs3bhsfgghi8tkcs1pcb59psg Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.2636 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675064397467506a4c3e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut675065135867506a4be8' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241204@144220.3030 prs3bhsfgghi8tkcs1pcb59psg Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut675065135867506a4be8','2408194','wait',39,'adm09112754980.682000002')
20241204@144220.3099 prs3bhsfgghi8tkcs1pcb59psg Query : use flama_phc
20241204@144220.3102 prs3bhsfgghi8tkcs1pcb59psg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241204@144220.3132 prs3bhsfgghi8tkcs1pcb59psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3677';
20241204@144220.3169 prs3bhsfgghi8tkcs1pcb59psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3677';
20241204@144220.3240 prs3bhsfgghi8tkcs1pcb59psg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3677';
20241204@144220.3271 prs3bhsfgghi8tkcs1pcb59psg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3677';
20241204@144220.3778 n8h52b29uigkq6cn731qmriud1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241204@144220.3789 n8h52b29uigkq6cn731qmriud1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241204@144220.3850 n8h52b29uigkq6cn731qmriud1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3678';
20241204@144220.3910 n8h52b29uigkq6cn731qmriud1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3678';
20241204@144220.3969 n8h52b29uigkq6cn731qmriud1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='3678';
20241204@144220.3998 n8h52b29uigkq6cn731qmriud1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='3678';
20241204@144220.4053 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4056 n8h52b29uigkq6cn731qmriud1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241204@144220.4116 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4119 n8h52b29uigkq6cn731qmriud1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20241204@144220.4164 n8h52b29uigkq6cn731qmriud1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20241204@144220.4322 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408195 and bi.ref ='324.2224.00.1' and bi.lordem =1
20241204@144220.4673 n8h52b29uigkq6cn731qmriud1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20241204@144220.4694 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408195 and bi.ref ='324.2224.00.1' and bi.lordem =1
20241204@144220.4711 n8h52b29uigkq6cn731qmriud1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20241204@144220.4730 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2081 and bo.obrano = 2408195 and bi.ref ='324.2224.00.1' and bi.lordem =1
20241204@144220.4748 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4751 n8h52b29uigkq6cn731qmriud1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241204@144220.4782 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4785 n8h52b29uigkq6cn731qmriud1 Query : select top 1 1 valor from td where td.ndoc = 39
20241204@144220.4814 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4817 n8h52b29uigkq6cn731qmriud1 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')
20241204@144220.4846 n8h52b29uigkq6cn731qmriud1 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
20241204@144220.4882 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4885 n8h52b29uigkq6cn731qmriud1 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20241204@144220.4915 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4918 n8h52b29uigkq6cn731qmriud1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241204@144220.4948 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4951 n8h52b29uigkq6cn731qmriud1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241204@144220.4990 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.4992 n8h52b29uigkq6cn731qmriud1 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20241204@144220.5037 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.5040 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from td where ndoc = 39
20241204@144220.5053 n8h52b29uigkq6cn731qmriud1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241204@144220.5067 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.5084 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144220.5103 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.5117 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144220.5169 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.5196 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144220.5209 n8h52b29uigkq6cn731qmriud1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144220.5262 n8h52b29uigkq6cn731qmriud1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241204@144220.5274 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.5289 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241204@144220.5304 n8h52b29uigkq6cn731qmriud1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut675061462967506a4c7f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241204@144220.5520 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.5681 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241204@144220.5712 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241204@144220.5723 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241204@144220.5734 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241204@144220.5746 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241204@144220.5759 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241204@144220.5770 n8h52b29uigkq6cn731qmriud1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241204@144220.5781 n8h52b29uigkq6cn731qmriud1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut675061462967506a4c7f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241204@144220.6034 n8h52b29uigkq6cn731qmriud1 Query : select top 1 fno valor from wsftdata order by fno desc
20241204@144220.6063 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.6077 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241204@144220.6099 n8h52b29uigkq6cn731qmriud1 Query : select 'normal' from dummy
20241204@144220.6113 n8h52b29uigkq6cn731qmriud1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut675061462967506a4c7f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2193,100810,0,'2024-12-04',39,'euro',0,0,2024 ,?,?)
20241204@144220.6407 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.6412 n8h52b29uigkq6cn731qmriud1 Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20241204@144220.6433 n8h52b29uigkq6cn731qmriud1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2224.00.1'
20241204@144220.6577 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.6594 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.6642 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.6656 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.6664 n8h52b29uigkq6cn731qmriud1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144220.6675 n8h52b29uigkq6cn731qmriud1 Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20241204@144220.6690 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.6703 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.6715 n8h52b29uigkq6cn731qmriud1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675066293267506a4ca3','aut675061462967506a4c7f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144220.6719 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.6732 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.6760 n8h52b29uigkq6cn731qmriud1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675066293267506a4ca3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut675061462967506a4c7f' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241204@144220.7020 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.7023 n8h52b29uigkq6cn731qmriud1 Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20241204@144220.7044 n8h52b29uigkq6cn731qmriud1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2224.00.1'
20241204@144220.7057 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7071 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.7097 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7111 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.7119 n8h52b29uigkq6cn731qmriud1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144220.7130 n8h52b29uigkq6cn731qmriud1 Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20241204@144220.7142 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7156 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.7166 n8h52b29uigkq6cn731qmriud1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675065449167506a4cae','aut675061462967506a4c7f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144220.7170 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7184 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.7210 n8h52b29uigkq6cn731qmriud1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut675065449167506a4cae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut675061462967506a4c7f' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241204@144220.7469 n8h52b29uigkq6cn731qmriud1 Query : use flama_phc
20241204@144220.7472 n8h52b29uigkq6cn731qmriud1 Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20241204@144220.7492 n8h52b29uigkq6cn731qmriud1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2224.00.1'
20241204@144220.7505 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7519 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241204@144220.7543 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7557 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.7565 n8h52b29uigkq6cn731qmriud1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241204@144220.7579 n8h52b29uigkq6cn731qmriud1 Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301280100a'
20241204@144220.7591 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241204@144220.7606 n8h52b29uigkq6cn731qmriud1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241204@144220.7616 n8h52b29uigkq6cn731qmriud1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut675064653267506a4cb9','aut675061462967506a4c7f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241204@144220.7622 n8h52b29uigkq6cn731qmriud1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
