20241015@173824.9570 dcgr3s4dh70kauggn6tv7kns0a INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20241015@173824.9567 dcgr3s4dh70kauggn6tv7kns0a Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173825.1140 dcgr3s4dh70kauggn6tv7kns0a Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e997191670e9a80b9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e967602670e9a75a9' ,0,0 ,2,23.00,240000,?,?,?,?,?)
20241015@173825.5750 dcgr3s4dh70kauggn6tv7kns0a Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e967602670e9a75a9','2406755','wait',39,'adm09112754980.682000002')
20241015@173825.1018 dcgr3s4dh70kauggn6tv7kns0a Query : use flama_phc
20241015@173825.1117 dcgr3s4dh70kauggn6tv7kns0a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173825.1322 dcgr3s4dh70kauggn6tv7kns0a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2674';
20241015@173825.1622 dcgr3s4dh70kauggn6tv7kns0a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2674';
20241015@173825.1891 dcgr3s4dh70kauggn6tv7kns0a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2674';
20241015@173825.2190 dcgr3s4dh70kauggn6tv7kns0a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2674';
20241015@173825.3053 js83jaftb5mm3hn849o9pjsnd6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173825.3063 js83jaftb5mm3hn849o9pjsnd6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173825.3139 js83jaftb5mm3hn849o9pjsnd6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2675';
20241015@173825.3200 js83jaftb5mm3hn849o9pjsnd6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2675';
20241015@173825.3260 js83jaftb5mm3hn849o9pjsnd6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2675';
20241015@173825.3286 js83jaftb5mm3hn849o9pjsnd6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2675';
20241015@173825.3335 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.3338 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173825.3399 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.3402 js83jaftb5mm3hn849o9pjsnd6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1540
20241015@173825.3477 js83jaftb5mm3hn849o9pjsnd6 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'
20241015@173825.3587 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.682.00.01' and bi.lordem =1
20241015@173825.3881 js83jaftb5mm3hn849o9pjsnd6 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'
20241015@173825.3983 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.1879.00.1' and bi.lordem =2
20241015@173825.4365 js83jaftb5mm3hn849o9pjsnd6 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'
20241015@173825.4511 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2907.00.1' and bi.lordem =3
20241015@173825.4832 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2301.00.3'
20241015@173825.4854 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2301.00.3' and bi.lordem =4
20241015@173825.5129 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241015@173825.5150 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2330.00.1' and bi.lordem =5
20241015@173825.5430 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241015@173825.5450 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2362.00.1' and bi.lordem =6
20241015@173825.5740 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241015@173825.5764 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2362.00.1' and bi.lordem =6
20241015@173825.5780 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20241015@173825.5799 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2366.00.1' and bi.lordem =7
20241015@173825.6068 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20241015@173825.6089 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2366.00.1' and bi.lordem =7
20241015@173825.6105 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241015@173825.6123 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2335.00.1' and bi.lordem =8
20241015@173825.6390 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2300.00.1'
20241015@173825.6410 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2300.00.1' and bi.lordem =9
20241015@173825.6679 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241015@173825.6698 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.1317.00.1' and bi.lordem =10
20241015@173825.6967 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2326.00.1'
20241015@173825.6987 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2326.00.1' and bi.lordem =11
20241015@173825.7274 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2317.00.1'
20241015@173825.7294 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2317.00.1' and bi.lordem =12
20241015@173825.7577 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2315.00.1'
20241015@173825.7597 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='304.2315.00.1' and bi.lordem =13
20241015@173825.7887 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2388.00.1'
20241015@173825.7907 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2388.00.1' and bi.lordem =14
20241015@173825.8196 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2388.00.1'
20241015@173825.8215 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.2388.00.1' and bi.lordem =14
20241015@173825.8232 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241015@173825.8252 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406756 and bi.ref ='324.1332.00.1' and bi.lordem =15
20241015@173825.8548 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8552 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173825.8583 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8586 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173825.8615 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8618 js83jaftb5mm3hn849o9pjsnd6 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')
20241015@173825.8646 js83jaftb5mm3hn849o9pjsnd6 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
20241015@173825.8681 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8684 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20241015@173825.8713 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8716 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173825.8745 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8748 js83jaftb5mm3hn849o9pjsnd6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173825.8788 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8791 js83jaftb5mm3hn849o9pjsnd6 Query : select szadrsstamp valor from szadrs where szadrsdesc='worten angra do heroismo'
20241015@173825.8836 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.8839 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from td where ndoc = 39
20241015@173825.8851 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173825.8865 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173825.8881 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173825.8901 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173825.8915 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173825.8943 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173825.8957 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173825.8968 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173825.9034 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173825.9046 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173825.9061 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173825.9102 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e977531670e9a81da' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173825.9253 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173825.9269 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173825.9303 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173825.9315 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173825.9329 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173825.9341 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173825.9353 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173825.9364 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173825.9376 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e977531670e9a81da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173825.9576 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173825.9599 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173825.9614 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173825.9634 js83jaftb5mm3hn849o9pjsnd6 Query : select 'normal' from dummy
20241015@173825.9649 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e977531670e9a81da',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1286,100404,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173825.9875 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173825.9878 js83jaftb5mm3hn849o9pjsnd6 Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20241015@173825.9899 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241015@173826.6000 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.2100 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.4600 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.5900 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.6700 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173826.7800 js83jaftb5mm3hn849o9pjsnd6 Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20241015@173826.9000 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.1040 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.1160 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e977705670e9a8202','aut670e977531670e9a81da' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173826.1200 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.1350 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.1630 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e977705670e9a8202',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670e977531670e9a81da' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173826.3860 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.4050 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.4340 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.4510 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.4600 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173826.4740 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.4900 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.5020 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e967284670e9a820b','aut670e977531670e9a81da' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173826.5070 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.5230 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.5560 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e967284670e9a820b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e977531670e9a81da' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173826.8120 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173826.8160 js83jaftb5mm3hn849o9pjsnd6 Query : select st.usalote valor from st where st.ref = '324.1879.00.1'
20241015@173826.8380 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241015@173826.9590 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9790 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.1005 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.1022 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.1032 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173826.1045 js83jaftb5mm3hn849o9pjsnd6 Query : select sestamp valor from se where ref ='324.1879.00.1' and lote = 'r2301097100b'
20241015@173826.1056 js83jaftb5mm3hn849o9pjsnd6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.1072 js83jaftb5mm3hn849o9pjsnd6 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.1087 js83jaftb5mm3hn849o9pjsnd6 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e961175670e9a8219','aut670e977531670e9a81da' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173826.1105 js83jaftb5mm3hn849o9pjsnd6 Query : use flama_phc
20241015@173826.1108 js83jaftb5mm3hn849o9pjsnd6 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20241015@173826.1142 js83jaftb5mm3hn849o9pjsnd6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2675';
20241015@173826.1175 js83jaftb5mm3hn849o9pjsnd6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2675';
20241015@173826.1773 vjs9s86k48rohibt0djvaru9ou Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173826.1784 vjs9s86k48rohibt0djvaru9ou Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173826.1841 vjs9s86k48rohibt0djvaru9ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2676';
20241015@173826.1900 vjs9s86k48rohibt0djvaru9ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2676';
20241015@173826.1955 vjs9s86k48rohibt0djvaru9ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2676';
20241015@173826.1984 vjs9s86k48rohibt0djvaru9ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2676';
20241015@173826.2035 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.2038 vjs9s86k48rohibt0djvaru9ou Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173826.2101 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.2104 vjs9s86k48rohibt0djvaru9ou Query : select no, estab,szadrsdesc from szadrs where u_coddest=1538
20241015@173826.2181 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1847.00.1'
20241015@173826.2301 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.1847.00.1' and bi.lordem =1
20241015@173826.2580 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2301.00.3'
20241015@173826.2600 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2301.00.3' and bi.lordem =2
20241015@173826.2867 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2330.00.1'
20241015@173826.2886 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2330.00.1' and bi.lordem =3
20241015@173826.3157 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2357.00.1'
20241015@173826.3176 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2357.00.1' and bi.lordem =4
20241015@173826.3452 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2357.00.1'
20241015@173826.3471 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2357.00.1' and bi.lordem =4
20241015@173826.3487 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2362.00.1'
20241015@173826.3507 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2362.00.1' and bi.lordem =5
20241015@173826.3781 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20241015@173826.3800 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2366.00.1' and bi.lordem =6
20241015@173826.4080 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2335.00.1'
20241015@173826.4106 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2335.00.1' and bi.lordem =7
20241015@173826.4392 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20241015@173826.4411 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.1608.00.1' and bi.lordem =8
20241015@173826.4687 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2300.00.1'
20241015@173826.4705 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2300.00.1' and bi.lordem =9
20241015@173826.4987 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1317.00.1'
20241015@173826.5008 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.1317.00.1' and bi.lordem =10
20241015@173826.5292 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2326.00.1'
20241015@173826.5314 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2326.00.1' and bi.lordem =11
20241015@173826.5773 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2317.00.1'
20241015@173826.5850 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2317.00.1' and bi.lordem =12
20241015@173826.6142 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2340.00.1'
20241015@173826.6253 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2340.00.1' and bi.lordem =13
20241015@173826.6531 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.2315.00.1'
20241015@173826.6554 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='304.2315.00.1' and bi.lordem =14
20241015@173826.6842 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2388.00.1'
20241015@173826.6864 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.2388.00.1' and bi.lordem =15
20241015@173826.7152 vjs9s86k48rohibt0djvaru9ou Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241015@173826.7174 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406759 and bi.ref ='324.1332.00.1' and bi.lordem =16
20241015@173826.7469 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.7473 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173826.7510 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.7514 vjs9s86k48rohibt0djvaru9ou Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173826.7552 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.7556 vjs9s86k48rohibt0djvaru9ou 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')
20241015@173826.7587 vjs9s86k48rohibt0djvaru9ou 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
20241015@173826.7625 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.7628 vjs9s86k48rohibt0djvaru9ou Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20241015@173826.7664 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.7667 vjs9s86k48rohibt0djvaru9ou Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173826.7698 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.7701 vjs9s86k48rohibt0djvaru9ou Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173826.7904 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.7908 vjs9s86k48rohibt0djvaru9ou Query : select szadrsstamp valor from szadrs where szadrsdesc='worten praia da vitÓria'
20241015@173826.8069 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.8072 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from td where ndoc = 39
20241015@173826.8085 vjs9s86k48rohibt0djvaru9ou Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173826.8101 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.8122 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173826.8148 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.8164 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173826.8197 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.8213 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173826.8227 vjs9s86k48rohibt0djvaru9ou Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173826.8294 vjs9s86k48rohibt0djvaru9ou Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173826.8310 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.8327 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173826.8343 vjs9s86k48rohibt0djvaru9ou Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173826.8485 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.8502 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173826.8539 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173826.8555 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173826.8568 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173826.8582 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173826.8601 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173826.8615 vjs9s86k48rohibt0djvaru9ou Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173826.8629 vjs9s86k48rohibt0djvaru9ou Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e905784670e9a82c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173826.8826 vjs9s86k48rohibt0djvaru9ou Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173826.8850 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.8867 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173826.8892 vjs9s86k48rohibt0djvaru9ou Query : select 'normal' from dummy
20241015@173826.8910 vjs9s86k48rohibt0djvaru9ou Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e905784670e9a82c8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1286,100404,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173826.9145 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173826.9149 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20241015@173826.9176 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20241015@173826.9295 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9313 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.9341 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9358 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.9367 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173826.9380 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400463200a'
20241015@173826.9397 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9416 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.9431 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e988529670e9a82e5','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173826.9436 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9457 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.9491 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e988529670e9a82e5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173826.9760 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9777 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.9806 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9823 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.9834 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173826.9849 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9867 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173826.9881 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e978018670e9a82f0','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173826.9886 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173826.9901 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173826.9931 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e978018670e9a82f0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173827.1310 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.1350 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2301.00.3'
20241015@173827.1550 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2301.00.3'
20241015@173827.1710 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1890 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.2190 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2340 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.2440 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.2590 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2301.00.3' and lote = 'r2400474200a'
20241015@173827.2760 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2930 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.3060 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e907957670e9a8306','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.3100 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3250 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.3600 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e907957670e9a8306',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241015@173827.5660 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.5700 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241015@173827.5940 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241015@173827.6100 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6280 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.6600 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6760 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.6860 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.6990 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241015@173827.7130 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7280 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.7410 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e958411670e9a8311','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.7450 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7630 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.7960 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e958411670e9a8311',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241015@173827.9970 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.1001 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2357.00.1'
20241015@173827.1023 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2357.00.1'
20241015@173827.1039 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1056 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.1083 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1099 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.1109 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.1122 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2357.00.1' and lote = 'r2200239100a'
20241015@173827.1136 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1152 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.1166 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e911389670e9a831b','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.1171 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1189 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.1225 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e911389670e9a831b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20241015@173827.1434 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.1437 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2357.00.1'
20241015@173827.1458 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2357.00.1'
20241015@173827.1472 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1490 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.1521 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1537 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.1546 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.1559 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2357.00.1' and lote = 'r2200239100a'
20241015@173827.1574 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1591 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.1604 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e926504670e9a8326','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.1609 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1627 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.1659 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e926504670e9a8326',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241015@173827.1868 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.1872 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2362.00.1'
20241015@173827.1893 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241015@173827.1909 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1926 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.1957 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.1974 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.1984 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.2001 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2362.00.1' and lote = 'r2300548200a'
20241015@173827.2016 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2033 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.2047 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e910382670e9a8331','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.2053 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2070 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.2105 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e910382670e9a8331',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241015@173827.2315 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.2319 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20241015@173827.2342 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20241015@173827.2357 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2375 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.2406 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2423 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.2433 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.2447 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2300548100a'
20241015@173827.2462 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2480 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.2493 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e951141670e9a833c','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.2498 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2516 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.2548 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e951141670e9a833c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241015@173827.2757 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.2761 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241015@173827.2783 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2335.00.1'
20241015@173827.2798 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2816 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.2844 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2861 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.2871 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.2886 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2100585500a'
20241015@173827.2901 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2919 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.2934 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e917387670e9a8346','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.2939 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.2955 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.2993 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e917387670e9a8346',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241015@173827.3204 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.3207 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20241015@173827.3227 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20241015@173827.3242 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3262 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.3290 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3305 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.3314 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.3326 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20241015@173827.3340 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3355 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.3367 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e978065670e9a8351','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.3372 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3387 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.3419 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e978065670e9a8351',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241015@173827.3627 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.3630 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2300.00.1'
20241015@173827.3652 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2300.00.1'
20241015@173827.3667 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3683 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.3710 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3725 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.3734 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.3747 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2300.00.1' and lote = 'r2400499200a'
20241015@173827.3761 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3776 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.3788 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e912045670e9a835b','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.3794 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.3809 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.3839 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e912045670e9a835b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20241015@173827.4059 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.4062 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.1317.00.1'
20241015@173827.4082 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20241015@173827.4097 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4114 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.4141 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4157 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.4166 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.4179 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.1317.00.1' and lote = 'r2400458200a'
20241015@173827.4192 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4207 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.4219 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e936326670e9a8366','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.4223 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4238 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.4267 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e936326670e9a8366',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20241015@173827.4469 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.4472 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2326.00.1'
20241015@173827.4492 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2326.00.1'
20241015@173827.4510 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4525 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.4551 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4566 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.4575 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.4587 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2326.00.1' and lote = 'r2100576400a'
20241015@173827.4604 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4619 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.4631 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e965657670e9a8370','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.4635 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.4648 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.4674 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e965657670e9a8370',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,140000,?,?,?,?,?)
20241015@173827.4896 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.4900 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2317.00.1'
20241015@173827.5879 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2317.00.1'
20241015@173827.5896 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6183 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.6208 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6223 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.6231 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.6242 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2317.00.1' and lote = 'r2100576500a'
20241015@173827.6254 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6268 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.6279 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e957845670e9a8398','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.6283 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6297 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.6333 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e957845670e9a8398',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,150000,?,?,?,?,?)
20241015@173827.6546 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6561 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.6584 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6598 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.6606 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.6618 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6631 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.6642 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e940823670e9a83a1','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.6646 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.6661 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.6686 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e940823670e9a83a1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,160000,?,?,?)
20241015@173827.6883 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.6886 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2340.00.1'
20241015@173827.6905 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2340.00.1'
20241015@173827.7016 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7031 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.7055 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7068 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.7076 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.7087 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2340.00.1' and lote = 'r2100584120a'
20241015@173827.7101 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7115 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.7126 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e902324670e9a83ad','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.7129 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7143 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.7169 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e902324670e9a83ad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,180000,?,?,?,?,?)
20241015@173827.7371 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.7374 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '304.2315.00.1'
20241015@173827.7393 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.2315.00.1'
20241015@173827.7408 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7423 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.7447 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7462 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.7471 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.7482 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='304.2315.00.1' and lote = 's2300276100a'
20241015@173827.7495 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7510 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.7521 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e984267670e9a83b6','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.7526 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7540 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.7568 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e984267670e9a83b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20241015@173827.7788 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7807 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.7836 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7855 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.7864 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.7877 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7895 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.7908 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e920644670e9a83c0','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.7914 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.7931 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.7962 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e920644670e9a83c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,200000,?,?,?)
20241015@173827.8218 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.8221 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.2388.00.1'
20241015@173827.8241 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2388.00.1'
20241015@173827.8257 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8273 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.8299 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8314 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.8322 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.8335 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.2388.00.1' and lote = 'r2400490100a'
20241015@173827.8347 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8361 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.8372 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e983464670e9a83cb','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.8376 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8390 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.8416 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e983464670e9a83cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20241015@173827.8623 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.8627 vjs9s86k48rohibt0djvaru9ou Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241015@173827.8646 vjs9s86k48rohibt0djvaru9ou Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20241015@173827.8660 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8675 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.8702 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8716 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.8725 vjs9s86k48rohibt0djvaru9ou Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173827.8737 vjs9s86k48rohibt0djvaru9ou Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241015@173827.8749 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8763 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173827.8774 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e923298670e9a83d5','aut670e905784670e9a82c8' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173827.8778 vjs9s86k48rohibt0djvaru9ou Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173827.8793 vjs9s86k48rohibt0djvaru9ou Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173827.8822 vjs9s86k48rohibt0djvaru9ou Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e923298670e9a83d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut670e905784670e9a82c8' ,0,0 ,2,23.00,230000,?,?,?,?,?)
20241015@173827.9024 vjs9s86k48rohibt0djvaru9ou Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e905784670e9a82c8','2406759','wait',39,'adm09112754980.682000002')
20241015@173827.9104 vjs9s86k48rohibt0djvaru9ou Query : use flama_phc
20241015@173827.9107 vjs9s86k48rohibt0djvaru9ou Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173827.9144 vjs9s86k48rohibt0djvaru9ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2676';
20241015@173827.9177 vjs9s86k48rohibt0djvaru9ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2676';
20241015@173827.9220 vjs9s86k48rohibt0djvaru9ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2676';
20241015@173827.9245 vjs9s86k48rohibt0djvaru9ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2676';
20241015@173828.4100 6f4odpk2tfeac5ag5b9vklhblc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173828.5200 6f4odpk2tfeac5ag5b9vklhblc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173828.1070 6f4odpk2tfeac5ag5b9vklhblc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2677';
20241015@173828.1630 6f4odpk2tfeac5ag5b9vklhblc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2677';
20241015@173828.2170 6f4odpk2tfeac5ag5b9vklhblc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2677';
20241015@173828.2420 6f4odpk2tfeac5ag5b9vklhblc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2677';
20241015@173828.2900 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.2930 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173828.3600 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.3630 6f4odpk2tfeac5ag5b9vklhblc Query : select no, estab,szadrsdesc from szadrs where u_coddest=1549
20241015@173828.4410 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173828.5530 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406763 and bi.ref ='324.678.00.01' and bi.lordem =1
20241015@173828.8310 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.8340 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173828.8650 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.8680 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173828.8960 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.8990 6f4odpk2tfeac5ag5b9vklhblc 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')
20241015@173828.9250 6f4odpk2tfeac5ag5b9vklhblc 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
20241015@173828.9580 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.9610 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 ~inactivo valor from cl where no = '101557' and estab = 0 order by inactivo desc
20241015@173828.1048 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.1051 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173828.1079 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.1081 6f4odpk2tfeac5ag5b9vklhblc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173828.1119 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.1122 6f4odpk2tfeac5ag5b9vklhblc Query : select szadrsstamp valor from szadrs where szadrsdesc='jomafal'
20241015@173828.1183 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.1185 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from td where ndoc = 39
20241015@173828.1197 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173828.1210 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.1226 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173828.1244 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.1258 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173828.1284 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.1300 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173828.1312 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173828.1374 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173828.1386 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.1400 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173828.1416 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e967680670e9a8420' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173828.1554 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.1569 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173828.1604 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173828.1616 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173828.1628 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173828.1639 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173828.1650 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173828.1663 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173828.1673 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e967680670e9a8420',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173828.1864 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173828.1886 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.1901 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173828.1921 6f4odpk2tfeac5ag5b9vklhblc Query : select 'normal' from dummy
20241015@173828.1935 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e967680670e9a8420',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1287,101557,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173828.2183 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.2186 6f4odpk2tfeac5ag5b9vklhblc Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173828.2208 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173828.2346 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2365 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.2393 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2408 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.2416 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173828.2429 6f4odpk2tfeac5ag5b9vklhblc Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173828.2443 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2458 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.2470 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e904037670e9a843b','aut670e967680670e9a8420' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173828.2474 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2488 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.2514 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e904037670e9a843b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670e967680670e9a8420' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173828.2724 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2738 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.2764 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2779 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.2789 6f4odpk2tfeac5ag5b9vklhblc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173828.2802 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2817 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.2828 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e977966670e9a8444','aut670e967680670e9a8420' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173828.2832 6f4odpk2tfeac5ag5b9vklhblc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.2848 6f4odpk2tfeac5ag5b9vklhblc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.2876 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e977966670e9a8444',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e967680670e9a8420' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173828.3082 6f4odpk2tfeac5ag5b9vklhblc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e967680670e9a8420','2406763','wait',39,'adm09112754980.682000002')
20241015@173828.3149 6f4odpk2tfeac5ag5b9vklhblc Query : use flama_phc
20241015@173828.3152 6f4odpk2tfeac5ag5b9vklhblc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173828.3182 6f4odpk2tfeac5ag5b9vklhblc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2677';
20241015@173828.3212 6f4odpk2tfeac5ag5b9vklhblc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2677';
20241015@173828.3255 6f4odpk2tfeac5ag5b9vklhblc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2677';
20241015@173828.3281 6f4odpk2tfeac5ag5b9vklhblc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2677';
20241015@173828.4132 lo27s7471u2nuqm985gn5cenir Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173828.4142 lo27s7471u2nuqm985gn5cenir Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173828.4197 lo27s7471u2nuqm985gn5cenir Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2678';
20241015@173828.4252 lo27s7471u2nuqm985gn5cenir Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2678';
20241015@173828.4304 lo27s7471u2nuqm985gn5cenir Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2678';
20241015@173828.4329 lo27s7471u2nuqm985gn5cenir Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2678';
20241015@173828.4376 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.4379 lo27s7471u2nuqm985gn5cenir Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173828.4437 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.4440 lo27s7471u2nuqm985gn5cenir Query : select no, estab,szadrsdesc from szadrs where u_coddest=4197
20241015@173828.4515 lo27s7471u2nuqm985gn5cenir Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173828.4534 lo27s7471u2nuqm985gn5cenir Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406764 and bi.ref ='324.678.00.01' and bi.lordem =1
20241015@173828.4814 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.4817 lo27s7471u2nuqm985gn5cenir Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173828.4850 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.4853 lo27s7471u2nuqm985gn5cenir Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173828.4881 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.4884 lo27s7471u2nuqm985gn5cenir 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')
20241015@173828.4912 lo27s7471u2nuqm985gn5cenir 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
20241015@173828.4946 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.4949 lo27s7471u2nuqm985gn5cenir Query : select top 1 ~inactivo valor from cl where no = '102085' and estab = 0 order by inactivo desc
20241015@173828.5041 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.5044 lo27s7471u2nuqm985gn5cenir Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173828.5071 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.5074 lo27s7471u2nuqm985gn5cenir Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173828.5113 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.5115 lo27s7471u2nuqm985gn5cenir Query : select szadrsstamp valor from szadrs where szadrsdesc='montilectica 2'
20241015@173828.5158 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.5162 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from td where ndoc = 39
20241015@173828.5173 lo27s7471u2nuqm985gn5cenir Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173828.5186 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.5203 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173828.5221 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.5234 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173828.5263 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.5277 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173828.5289 lo27s7471u2nuqm985gn5cenir Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173828.5352 lo27s7471u2nuqm985gn5cenir Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173828.5365 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.5378 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173828.5394 lo27s7471u2nuqm985gn5cenir Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e956037670e9a8481' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173828.5533 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.5548 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173828.5579 lo27s7471u2nuqm985gn5cenir Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173828.5590 lo27s7471u2nuqm985gn5cenir Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173828.5602 lo27s7471u2nuqm985gn5cenir Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173828.5613 lo27s7471u2nuqm985gn5cenir Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173828.5625 lo27s7471u2nuqm985gn5cenir Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173828.5637 lo27s7471u2nuqm985gn5cenir Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173828.5648 lo27s7471u2nuqm985gn5cenir Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e956037670e9a8481',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173828.5839 lo27s7471u2nuqm985gn5cenir Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173828.5861 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.5876 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173828.5899 lo27s7471u2nuqm985gn5cenir Query : select 'normal' from dummy
20241015@173828.5914 lo27s7471u2nuqm985gn5cenir Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e956037670e9a8481',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1288,102085,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173828.6151 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.6154 lo27s7471u2nuqm985gn5cenir Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173828.6175 lo27s7471u2nuqm985gn5cenir Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173828.6188 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6204 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.6227 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6242 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.6250 lo27s7471u2nuqm985gn5cenir Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173828.6262 lo27s7471u2nuqm985gn5cenir Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173828.6273 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6286 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.6298 lo27s7471u2nuqm985gn5cenir Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e936643670e9a8499','aut670e956037670e9a8481' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173828.6303 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6317 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.6343 lo27s7471u2nuqm985gn5cenir Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e936643670e9a8499',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670e956037670e9a8481' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173828.6560 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6576 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.6601 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6615 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.6623 lo27s7471u2nuqm985gn5cenir Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173828.6635 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6649 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173828.6674 lo27s7471u2nuqm985gn5cenir Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e911052670e9a84a1','aut670e956037670e9a8481' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173828.6678 lo27s7471u2nuqm985gn5cenir Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173828.6692 lo27s7471u2nuqm985gn5cenir Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173828.6719 lo27s7471u2nuqm985gn5cenir Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e911052670e9a84a1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e956037670e9a8481' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173828.6922 lo27s7471u2nuqm985gn5cenir Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e956037670e9a8481','2406764','wait',39,'adm09112754980.682000002')
20241015@173828.6989 lo27s7471u2nuqm985gn5cenir Query : use flama_phc
20241015@173828.6992 lo27s7471u2nuqm985gn5cenir Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173828.7022 lo27s7471u2nuqm985gn5cenir Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2678';
20241015@173828.7054 lo27s7471u2nuqm985gn5cenir Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2678';
20241015@173828.7096 lo27s7471u2nuqm985gn5cenir Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2678';
20241015@173828.7121 lo27s7471u2nuqm985gn5cenir Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2678';
20241015@173828.8565 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173828.8578 r17iu1ujul76nkhnlf7ri4s5ef Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173828.8962 r17iu1ujul76nkhnlf7ri4s5ef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2679';
20241015@173828.9347 r17iu1ujul76nkhnlf7ri4s5ef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2679';
20241015@173828.9918 r17iu1ujul76nkhnlf7ri4s5ef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2679';
20241015@173829.4090 r17iu1ujul76nkhnlf7ri4s5ef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2679';
20241015@173829.7530 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173829.7950 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173829.1413 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173829.1453 r17iu1ujul76nkhnlf7ri4s5ef Query : select no, estab,szadrsdesc from szadrs where u_coddest=275
20241015@173829.1840 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20241015@173829.2300 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406765 and bi.ref ='324.4990.00.1' and bi.lordem =1
20241015@173829.3027 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241015@173829.3481 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406765 and bi.ref ='324.1321.00.1' and bi.lordem =2
20241015@173829.4194 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241015@173829.4481 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406765 and bi.ref ='324.1332.00.1' and bi.lordem =3
20241015@173829.5570 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173829.5975 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406765 and bi.ref ='324.678.00.01' and bi.lordem =4
20241015@173829.7048 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173829.7089 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173829.7461 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173829.7503 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173829.7874 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173829.7915 r17iu1ujul76nkhnlf7ri4s5ef 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')
20241015@173829.8371 r17iu1ujul76nkhnlf7ri4s5ef 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
20241015@173829.9187 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173829.9361 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20241015@173830.3840 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173830.4250 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173830.1365 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173830.1447 r17iu1ujul76nkhnlf7ri4s5ef Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173830.2420 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173830.2502 r17iu1ujul76nkhnlf7ri4s5ef Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom-electrodomÉsticos, lda.- ourem'
20241015@173830.3091 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173830.3133 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from td where ndoc = 39
20241015@173830.3380 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173830.3669 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173830.3919 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173830.4332 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173830.4589 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173830.5249 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173830.5649 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173830.5999 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173830.6337 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173830.6586 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173830.6836 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173830.7248 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e929355670e9a8692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173830.7565 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173830.7816 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173830.8516 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173830.9853 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173831.8980 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173831.1172 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173831.1381 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173831.1588 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173831.1795 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e929355670e9a8692',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173831.2246 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173831.2502 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173831.2753 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173831.3208 r17iu1ujul76nkhnlf7ri4s5ef Query : select 'normal' from dummy
20241015@173831.3497 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e929355670e9a8692',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1289,102155,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173831.4158 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173831.4201 r17iu1ujul76nkhnlf7ri4s5ef Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20241015@173831.4533 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20241015@173831.4965 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173831.5258 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173831.6993 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173831.7248 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173831.7496 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173831.7795 r17iu1ujul76nkhnlf7ri4s5ef Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20241015@173831.8489 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173831.9401 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173831.9608 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e980592670e9a87cf','aut670e929355670e9a8692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173831.9651 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173831.9685 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173831.9892 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e980592670e9a87cf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e929355670e9a8692' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173832.4000 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173832.4820 r17iu1ujul76nkhnlf7ri4s5ef Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241015@173832.8310 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1321.00.1'
20241015@173832.1269 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.1520 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173832.2096 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.2348 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173832.2512 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173832.2759 r17iu1ujul76nkhnlf7ri4s5ef Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241015@173832.3008 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.3258 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173832.3467 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e999175670e9a8849','aut670e929355670e9a8692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173832.3510 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.3760 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173832.4285 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e999175670e9a8849',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut670e929355670e9a8692' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241015@173832.4821 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173832.4878 r17iu1ujul76nkhnlf7ri4s5ef Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241015@173832.5210 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20241015@173832.5458 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.5709 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173832.6287 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.6537 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173832.6702 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173832.6950 r17iu1ujul76nkhnlf7ri4s5ef Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241015@173832.7199 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.7449 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173832.7655 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e977343670e9a88af','aut670e929355670e9a8692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173832.7739 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173832.8077 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173832.9609 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e977343670e9a88af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut670e929355670e9a8692' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241015@173833.7300 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173833.8280 r17iu1ujul76nkhnlf7ri4s5ef Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173833.1185 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173833.1434 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.1685 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173833.2260 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.3770 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173833.3934 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173833.4181 r17iu1ujul76nkhnlf7ri4s5ef Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173833.4429 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.4680 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173833.4895 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e990607670e9a896c','aut670e929355670e9a8692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173833.4939 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.5189 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173833.5426 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e990607670e9a896c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut670e929355670e9a8692' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241015@173833.5997 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.6250 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173833.6825 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.7077 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173833.7243 r17iu1ujul76nkhnlf7ri4s5ef Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173833.7490 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.7741 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173833.7948 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e972190670e9a89b6','aut670e929355670e9a8692' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173833.7991 r17iu1ujul76nkhnlf7ri4s5ef Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173833.8368 r17iu1ujul76nkhnlf7ri4s5ef Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173833.8999 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e972190670e9a89b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e929355670e9a8692' ,0,0 ,2,23.00,50000,?,?,?)
20241015@173833.9488 r17iu1ujul76nkhnlf7ri4s5ef Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e929355670e9a8692','2406765','wait',39,'adm09112754980.682000002')
20241015@173834.1070 r17iu1ujul76nkhnlf7ri4s5ef Query : use flama_phc
20241015@173834.1490 r17iu1ujul76nkhnlf7ri4s5ef Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173834.3340 r17iu1ujul76nkhnlf7ri4s5ef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2679';
20241015@173834.4670 r17iu1ujul76nkhnlf7ri4s5ef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2679';
20241015@173834.7830 r17iu1ujul76nkhnlf7ri4s5ef Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2679';
20241015@173834.1080 r17iu1ujul76nkhnlf7ri4s5ef Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2679';
20241015@173834.1811 4n016vv0s89tg0iveip1c38m4o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173834.1822 4n016vv0s89tg0iveip1c38m4o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173834.1879 4n016vv0s89tg0iveip1c38m4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2680';
20241015@173834.1936 4n016vv0s89tg0iveip1c38m4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2680';
20241015@173834.1992 4n016vv0s89tg0iveip1c38m4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2680';
20241015@173834.2021 4n016vv0s89tg0iveip1c38m4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2680';
20241015@173834.2071 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.2074 4n016vv0s89tg0iveip1c38m4o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173834.2138 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.2142 4n016vv0s89tg0iveip1c38m4o Query : select no, estab,szadrsdesc from szadrs where u_coddest=1596
20241015@173834.2216 4n016vv0s89tg0iveip1c38m4o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20241015@173834.2236 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406766 and bi.ref ='324.4990.00.1' and bi.lordem =1
20241015@173834.2530 4n016vv0s89tg0iveip1c38m4o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241015@173834.2550 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406766 and bi.ref ='324.1321.00.1' and bi.lordem =3
20241015@173834.2823 4n016vv0s89tg0iveip1c38m4o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241015@173834.2845 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406766 and bi.ref ='324.1332.00.1' and bi.lordem =4
20241015@173834.3120 4n016vv0s89tg0iveip1c38m4o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173834.3139 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406766 and bi.ref ='324.678.00.01' and bi.lordem =5
20241015@173834.3417 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3420 4n016vv0s89tg0iveip1c38m4o Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173834.3453 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3456 4n016vv0s89tg0iveip1c38m4o Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173834.3486 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3489 4n016vv0s89tg0iveip1c38m4o 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')
20241015@173834.3516 4n016vv0s89tg0iveip1c38m4o 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
20241015@173834.3551 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3554 4n016vv0s89tg0iveip1c38m4o Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20241015@173834.3584 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3587 4n016vv0s89tg0iveip1c38m4o Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173834.3618 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3620 4n016vv0s89tg0iveip1c38m4o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173834.3662 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3665 4n016vv0s89tg0iveip1c38m4o Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom-electrodomÉsticos, lda. - crainha'
20241015@173834.3710 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.3713 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from td where ndoc = 39
20241015@173834.3725 4n016vv0s89tg0iveip1c38m4o Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173834.3739 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.3756 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173834.3775 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.3790 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173834.3830 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.3845 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173834.3857 4n016vv0s89tg0iveip1c38m4o Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173834.3920 4n016vv0s89tg0iveip1c38m4o Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173834.3933 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.3948 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173834.3963 4n016vv0s89tg0iveip1c38m4o Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e968865670e9a8a5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173834.4108 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.4124 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173834.4158 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173834.4170 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173834.4182 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173834.4194 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173834.4205 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173834.4217 4n016vv0s89tg0iveip1c38m4o Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173834.4228 4n016vv0s89tg0iveip1c38m4o Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e968865670e9a8a5e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173834.4432 4n016vv0s89tg0iveip1c38m4o Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173834.4455 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.4472 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173834.4495 4n016vv0s89tg0iveip1c38m4o Query : select 'normal' from dummy
20241015@173834.4513 4n016vv0s89tg0iveip1c38m4o Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e968865670e9a8a5e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1290,102155,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173834.4752 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.4755 4n016vv0s89tg0iveip1c38m4o Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20241015@173834.4776 4n016vv0s89tg0iveip1c38m4o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20241015@173834.4790 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.4807 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.4832 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.4846 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.4855 4n016vv0s89tg0iveip1c38m4o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173834.4867 4n016vv0s89tg0iveip1c38m4o Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20241015@173834.4879 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.4894 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.4906 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e917430670e9a8a77','aut670e968865670e9a8a5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173834.4911 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.4926 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.5047 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e917430670e9a8a77',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e968865670e9a8a5e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173834.5281 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.5297 4n016vv0s89tg0iveip1c38m4o Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241015@173834.5316 4n016vv0s89tg0iveip1c38m4o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1321.00.1'
20241015@173834.5330 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.5348 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.5373 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.5391 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.5399 4n016vv0s89tg0iveip1c38m4o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173834.5411 4n016vv0s89tg0iveip1c38m4o Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241015@173834.5525 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.5546 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.5557 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e977681670e9a8a86','aut670e968865670e9a8a5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173834.5562 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.5578 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.5606 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e977681670e9a8a86',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e968865670e9a8a5e' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241015@173834.5913 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.5916 4n016vv0s89tg0iveip1c38m4o Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241015@173834.5935 4n016vv0s89tg0iveip1c38m4o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20241015@173834.5950 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.5965 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.5989 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6004 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.6012 4n016vv0s89tg0iveip1c38m4o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173834.6024 4n016vv0s89tg0iveip1c38m4o Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241015@173834.6036 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6051 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.6063 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e978375670e9a8a93','aut670e968865670e9a8a5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173834.6067 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6081 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.6109 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e978375670e9a8a93',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e968865670e9a8a5e' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241015@173834.6316 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.6319 4n016vv0s89tg0iveip1c38m4o Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173834.6338 4n016vv0s89tg0iveip1c38m4o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173834.6351 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6367 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.6391 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6406 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.6415 4n016vv0s89tg0iveip1c38m4o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173834.6426 4n016vv0s89tg0iveip1c38m4o Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173834.6438 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6454 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.6465 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e905729670e9a8a9d','aut670e968865670e9a8a5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173834.6469 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6483 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.6512 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e905729670e9a8a9d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut670e968865670e9a8a5e' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241015@173834.6954 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.6971 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.7080 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.7099 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.7121 4n016vv0s89tg0iveip1c38m4o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173834.7134 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.7150 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173834.7162 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e990347670e9a8aae','aut670e968865670e9a8a5e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173834.7168 4n016vv0s89tg0iveip1c38m4o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173834.7183 4n016vv0s89tg0iveip1c38m4o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173834.7225 4n016vv0s89tg0iveip1c38m4o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e990347670e9a8aae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e968865670e9a8a5e' ,0,0 ,2,23.00,50000,?,?,?)
20241015@173834.7459 4n016vv0s89tg0iveip1c38m4o Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e968865670e9a8a5e','2406766','wait',39,'adm09112754980.682000002')
20241015@173834.7529 4n016vv0s89tg0iveip1c38m4o Query : use flama_phc
20241015@173834.7533 4n016vv0s89tg0iveip1c38m4o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173834.7565 4n016vv0s89tg0iveip1c38m4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2680';
20241015@173834.7598 4n016vv0s89tg0iveip1c38m4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2680';
20241015@173834.7643 4n016vv0s89tg0iveip1c38m4o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2680';
20241015@173834.7673 4n016vv0s89tg0iveip1c38m4o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2680';
20241015@173834.8397 k0ej7c46vk144c87mfi6eu21ku Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173834.8408 k0ej7c46vk144c87mfi6eu21ku Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173834.8465 k0ej7c46vk144c87mfi6eu21ku Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2681';
20241015@173834.8534 k0ej7c46vk144c87mfi6eu21ku Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2681';
20241015@173834.8588 k0ej7c46vk144c87mfi6eu21ku Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2681';
20241015@173834.8615 k0ej7c46vk144c87mfi6eu21ku Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2681';
20241015@173834.8670 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173834.8673 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173834.8736 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173834.8739 k0ej7c46vk144c87mfi6eu21ku Query : select no, estab,szadrsdesc from szadrs where u_coddest=7117
20241015@173834.8820 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20241015@173834.8841 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406767 and bi.ref ='324.4990.00.1' and bi.lordem =1
20241015@173834.9138 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20241015@173834.9159 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406767 and bi.ref ='324.4990.00.1' and bi.lordem =2
20241015@173834.9429 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1321.00.1'
20241015@173834.9452 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406767 and bi.ref ='324.1321.00.1' and bi.lordem =3
20241015@173834.9722 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1332.00.1'
20241015@173834.9743 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406767 and bi.ref ='324.1332.00.1' and bi.lordem =4
20241015@173835.1000 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173835.3000 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406767 and bi.ref ='324.678.00.01' and bi.lordem =5
20241015@173835.2980 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.3010 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173835.3360 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.3390 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173835.3680 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.3710 k0ej7c46vk144c87mfi6eu21ku 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')
20241015@173835.4010 k0ej7c46vk144c87mfi6eu21ku 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
20241015@173835.4360 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.4390 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 ~inactivo valor from cl where no = '102155' and estab = 0 order by inactivo desc
20241015@173835.4690 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.4720 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173835.5040 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.5060 k0ej7c46vk144c87mfi6eu21ku Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173835.5460 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.5490 k0ej7c46vk144c87mfi6eu21ku Query : select szadrsstamp valor from szadrs where szadrsdesc='eternobom - loja leiria'
20241015@173835.5980 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.6020 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from td where ndoc = 39
20241015@173835.6150 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173835.6290 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.6460 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173835.6650 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.6800 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173835.7080 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.7230 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173835.7360 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173835.8020 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173835.8140 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.8290 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173835.8450 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e976295670e9a8b11' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173835.1756 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.1904 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173835.2246 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173835.2260 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173835.2272 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173835.2283 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173835.2296 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173835.2308 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173835.2319 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e976295670e9a8b11',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173835.2529 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173835.2552 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.2568 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173835.2590 k0ej7c46vk144c87mfi6eu21ku Query : select 'normal' from dummy
20241015@173835.2605 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e976295670e9a8b11',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1291,102155,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173835.2836 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.2840 k0ej7c46vk144c87mfi6eu21ku Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20241015@173835.2860 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20241015@173835.2874 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.2889 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.2914 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.2929 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.2937 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173835.2949 k0ej7c46vk144c87mfi6eu21ku Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20241015@173835.2962 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.2977 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.2989 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e921113670e9a8b48','aut670e976295670e9a8b11' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173835.2993 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3007 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.3035 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e921113670e9a8b48',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut670e976295670e9a8b11' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173835.3242 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.3245 k0ej7c46vk144c87mfi6eu21ku Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20241015@173835.3267 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20241015@173835.3280 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3296 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.3320 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3335 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.3343 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173835.3355 k0ej7c46vk144c87mfi6eu21ku Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20241015@173835.3367 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3382 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.3393 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e937738670e9a8b52','aut670e976295670e9a8b11' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173835.3397 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3411 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.3438 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e937738670e9a8b52',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670e976295670e9a8b11' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20241015@173835.3641 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.3645 k0ej7c46vk144c87mfi6eu21ku Query : select st.usalote valor from st where st.ref = '324.1321.00.1'
20241015@173835.3665 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1321.00.1'
20241015@173835.3679 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3698 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.3725 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3740 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.3749 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173835.3761 k0ej7c46vk144c87mfi6eu21ku Query : select sestamp valor from se where ref ='324.1321.00.1' and lote = 'r2400495200a'
20241015@173835.3774 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3788 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.3800 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e954993670e9a8b5c','aut670e976295670e9a8b11' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173835.3804 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.3819 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.3847 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e954993670e9a8b5c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut670e976295670e9a8b11' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20241015@173835.4054 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.4057 k0ej7c46vk144c87mfi6eu21ku Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20241015@173835.4075 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20241015@173835.4089 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4103 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.4128 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4142 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.4151 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173835.4163 k0ej7c46vk144c87mfi6eu21ku Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20241015@173835.4175 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4189 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.4200 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e977893670e9a8b65','aut670e976295670e9a8b11' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173835.4204 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4218 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.4245 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e977893670e9a8b65',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut670e976295670e9a8b11' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241015@173835.4453 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.4456 k0ej7c46vk144c87mfi6eu21ku Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173835.4474 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173835.4487 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4504 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.4528 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4542 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.4550 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173835.4562 k0ej7c46vk144c87mfi6eu21ku Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173835.4573 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4587 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.4598 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e972194670e9a8b6f','aut670e976295670e9a8b11' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173835.4602 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4616 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.4643 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e972194670e9a8b6f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut670e976295670e9a8b11' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20241015@173835.4857 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4872 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.4897 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4912 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.4920 k0ej7c46vk144c87mfi6eu21ku Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173835.4931 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4945 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173835.4957 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e926061670e9a8b78','aut670e976295670e9a8b11' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173835.4961 k0ej7c46vk144c87mfi6eu21ku Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173835.4975 k0ej7c46vk144c87mfi6eu21ku Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173835.5002 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e926061670e9a8b78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e976295670e9a8b11' ,0,0 ,2,23.00,60000,?,?,?)
20241015@173835.5199 k0ej7c46vk144c87mfi6eu21ku Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e976295670e9a8b11','2406767','wait',39,'adm09112754980.682000002')
20241015@173835.5269 k0ej7c46vk144c87mfi6eu21ku Query : use flama_phc
20241015@173835.5272 k0ej7c46vk144c87mfi6eu21ku Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173835.5302 k0ej7c46vk144c87mfi6eu21ku Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2681';
20241015@173835.5335 k0ej7c46vk144c87mfi6eu21ku Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2681';
20241015@173835.5378 k0ej7c46vk144c87mfi6eu21ku Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2681';
20241015@173835.5405 k0ej7c46vk144c87mfi6eu21ku Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2681';
20241015@173835.6642 1f6sqiglsaogqemo05168ukqpl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173835.6724 1f6sqiglsaogqemo05168ukqpl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173835.7218 1f6sqiglsaogqemo05168ukqpl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2682';
20241015@173835.7715 1f6sqiglsaogqemo05168ukqpl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2682';
20241015@173835.8085 1f6sqiglsaogqemo05168ukqpl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2682';
20241015@173835.8387 1f6sqiglsaogqemo05168ukqpl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2682';
20241015@173835.8771 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173835.8853 1f6sqiglsaogqemo05168ukqpl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173835.9481 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173835.9522 1f6sqiglsaogqemo05168ukqpl Query : select no, estab,szadrsdesc from szadrs where u_coddest=2926
20241015@173835.9910 1f6sqiglsaogqemo05168ukqpl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173836.1980 1f6sqiglsaogqemo05168ukqpl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406769 and bi.ref ='324.678.00.01' and bi.lordem =1
20241015@173836.8590 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.9000 1f6sqiglsaogqemo05168ukqpl Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173836.1323 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.1358 1f6sqiglsaogqemo05168ukqpl Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173836.1494 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.1536 1f6sqiglsaogqemo05168ukqpl 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')
20241015@173836.1936 1f6sqiglsaogqemo05168ukqpl 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
20241015@173836.3313 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.3435 1f6sqiglsaogqemo05168ukqpl Query : select top 1 ~inactivo valor from cl where no = '102454' and estab = 0 order by inactivo desc
20241015@173836.3917 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.3921 1f6sqiglsaogqemo05168ukqpl Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173836.4126 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.4130 1f6sqiglsaogqemo05168ukqpl Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173836.4255 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.4258 1f6sqiglsaogqemo05168ukqpl Query : select szadrsstamp valor from szadrs where szadrsdesc='carlos oliveira & cristina oliveira - electr. lda'
20241015@173836.4472 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173836.4505 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from td where ndoc = 39
20241015@173836.4718 1f6sqiglsaogqemo05168ukqpl Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173836.5006 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173836.5257 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173836.5668 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173836.5919 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173836.6628 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173836.6881 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173836.7129 1f6sqiglsaogqemo05168ukqpl Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173836.7466 1f6sqiglsaogqemo05168ukqpl Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173836.7715 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173836.7965 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173836.8255 1f6sqiglsaogqemo05168ukqpl Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e978494670e9a8cae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173836.8603 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173836.8853 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173836.9680 1f6sqiglsaogqemo05168ukqpl Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173836.9887 1f6sqiglsaogqemo05168ukqpl Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173837.1210 1f6sqiglsaogqemo05168ukqpl Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173837.3280 1f6sqiglsaogqemo05168ukqpl Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173837.5340 1f6sqiglsaogqemo05168ukqpl Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173837.7420 1f6sqiglsaogqemo05168ukqpl Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173837.9480 1f6sqiglsaogqemo05168ukqpl Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e978494670e9a8cae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173837.1396 1f6sqiglsaogqemo05168ukqpl Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173837.2877 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173837.3130 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173837.3585 1f6sqiglsaogqemo05168ukqpl Query : select 'normal' from dummy
20241015@173837.3875 1f6sqiglsaogqemo05168ukqpl Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e978494670e9a8cae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1292,102454,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173837.4487 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173837.4528 1f6sqiglsaogqemo05168ukqpl Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173837.4914 1f6sqiglsaogqemo05168ukqpl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173837.5166 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173837.5422 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173837.6004 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173837.6255 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173837.6420 1f6sqiglsaogqemo05168ukqpl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173837.6667 1f6sqiglsaogqemo05168ukqpl Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173837.6930 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173837.7181 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173837.7388 1f6sqiglsaogqemo05168ukqpl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e992359670e9a8da9','aut670e978494670e9a8cae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173837.7432 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173837.7683 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173837.8300 1f6sqiglsaogqemo05168ukqpl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e992359670e9a8da9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670e978494670e9a8cae' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173837.8889 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173837.9541 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173838.4240 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.6760 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173838.1317 1f6sqiglsaogqemo05168ukqpl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173838.2340 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.2593 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173838.2629 1f6sqiglsaogqemo05168ukqpl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e940912670e9a8e39','aut670e978494670e9a8cae' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173838.2635 1f6sqiglsaogqemo05168ukqpl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.2848 1f6sqiglsaogqemo05168ukqpl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173838.3157 1f6sqiglsaogqemo05168ukqpl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e940912670e9a8e39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e978494670e9a8cae' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173838.3655 1f6sqiglsaogqemo05168ukqpl Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e978494670e9a8cae','2406769','wait',39,'adm09112754980.682000002')
20241015@173838.4263 1f6sqiglsaogqemo05168ukqpl Query : use flama_phc
20241015@173838.4305 1f6sqiglsaogqemo05168ukqpl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173838.4464 1f6sqiglsaogqemo05168ukqpl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2682';
20241015@173838.4904 1f6sqiglsaogqemo05168ukqpl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2682';
20241015@173838.5279 1f6sqiglsaogqemo05168ukqpl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2682';
20241015@173838.5721 1f6sqiglsaogqemo05168ukqpl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2682';
20241015@173838.6724 4t6o6ugijllkq78nvurp4fogog Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173838.6734 4t6o6ugijllkq78nvurp4fogog Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173838.6789 4t6o6ugijllkq78nvurp4fogog Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2683';
20241015@173838.6845 4t6o6ugijllkq78nvurp4fogog Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2683';
20241015@173838.6899 4t6o6ugijllkq78nvurp4fogog Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2683';
20241015@173838.6926 4t6o6ugijllkq78nvurp4fogog Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2683';
20241015@173838.6985 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.6988 4t6o6ugijllkq78nvurp4fogog Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173838.7054 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7057 4t6o6ugijllkq78nvurp4fogog Query : select no, estab,szadrsdesc from szadrs where u_coddest=489
20241015@173838.7134 4t6o6ugijllkq78nvurp4fogog Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173838.7154 4t6o6ugijllkq78nvurp4fogog Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406770 and bi.ref ='324.678.00.01' and bi.lordem =1
20241015@173838.7446 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7449 4t6o6ugijllkq78nvurp4fogog Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173838.7483 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7487 4t6o6ugijllkq78nvurp4fogog Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173838.7517 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7520 4t6o6ugijllkq78nvurp4fogog 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')
20241015@173838.7549 4t6o6ugijllkq78nvurp4fogog 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
20241015@173838.7583 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7586 4t6o6ugijllkq78nvurp4fogog Query : select top 1 ~inactivo valor from cl where no = '101665' and estab = 0 order by inactivo desc
20241015@173838.7677 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7680 4t6o6ugijllkq78nvurp4fogog Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173838.7711 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7715 4t6o6ugijllkq78nvurp4fogog Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173838.7754 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7756 4t6o6ugijllkq78nvurp4fogog Query : select szadrsstamp valor from szadrs where szadrsdesc='armando faria fernandes, lda'
20241015@173838.7800 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.7803 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from td where ndoc = 39
20241015@173838.7816 4t6o6ugijllkq78nvurp4fogog Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173838.7830 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.7847 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173838.7866 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.7880 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173838.7908 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.7922 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173838.7935 4t6o6ugijllkq78nvurp4fogog Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173838.7997 4t6o6ugijllkq78nvurp4fogog Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173838.8010 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.8025 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173838.8041 4t6o6ugijllkq78nvurp4fogog Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e982372670e9a8ec1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173838.8180 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.8196 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173838.8230 4t6o6ugijllkq78nvurp4fogog Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173838.8242 4t6o6ugijllkq78nvurp4fogog Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173838.8256 4t6o6ugijllkq78nvurp4fogog Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173838.8268 4t6o6ugijllkq78nvurp4fogog Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173838.8279 4t6o6ugijllkq78nvurp4fogog Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173838.8291 4t6o6ugijllkq78nvurp4fogog Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173838.8303 4t6o6ugijllkq78nvurp4fogog Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e982372670e9a8ec1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173838.8498 4t6o6ugijllkq78nvurp4fogog Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173838.8521 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.8536 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173838.8558 4t6o6ugijllkq78nvurp4fogog Query : select 'normal' from dummy
20241015@173838.8573 4t6o6ugijllkq78nvurp4fogog Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e982372670e9a8ec1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1293,101665,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173838.8803 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.8806 4t6o6ugijllkq78nvurp4fogog Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173838.8826 4t6o6ugijllkq78nvurp4fogog Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173838.8839 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.8855 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173838.8880 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.8895 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173838.8903 4t6o6ugijllkq78nvurp4fogog Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173838.8915 4t6o6ugijllkq78nvurp4fogog Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173838.8927 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.8941 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173838.8953 4t6o6ugijllkq78nvurp4fogog Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e990291670e9a8ed9','aut670e982372670e9a8ec1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173838.8956 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.8971 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173838.9000 4t6o6ugijllkq78nvurp4fogog Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e990291670e9a8ed9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut670e982372670e9a8ec1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173838.9210 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.9225 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173838.9250 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.9264 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173838.9273 4t6o6ugijllkq78nvurp4fogog Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173838.9286 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.9303 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173838.9316 4t6o6ugijllkq78nvurp4fogog Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e956264670e9a8ee2','aut670e982372670e9a8ec1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173838.9320 4t6o6ugijllkq78nvurp4fogog Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173838.9337 4t6o6ugijllkq78nvurp4fogog Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173838.9369 4t6o6ugijllkq78nvurp4fogog Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e956264670e9a8ee2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e982372670e9a8ec1' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173838.9594 4t6o6ugijllkq78nvurp4fogog Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e982372670e9a8ec1','2406770','wait',39,'adm09112754980.682000002')
20241015@173838.9661 4t6o6ugijllkq78nvurp4fogog Query : use flama_phc
20241015@173838.9664 4t6o6ugijllkq78nvurp4fogog Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173838.9693 4t6o6ugijllkq78nvurp4fogog Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2683';
20241015@173838.9725 4t6o6ugijllkq78nvurp4fogog Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2683';
20241015@173838.9845 4t6o6ugijllkq78nvurp4fogog Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2683';
20241015@173838.9873 4t6o6ugijllkq78nvurp4fogog Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2683';
20241015@173839.5240 a1og6k8r8jekvqq3rhv053dc57 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173839.6070 a1og6k8r8jekvqq3rhv053dc57 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173839.1081 a1og6k8r8jekvqq3rhv053dc57 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2684';
20241015@173839.1518 a1og6k8r8jekvqq3rhv053dc57 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2684';
20241015@173839.1925 a1og6k8r8jekvqq3rhv053dc57 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2684';
20241015@173839.2226 a1og6k8r8jekvqq3rhv053dc57 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2684';
20241015@173839.3728 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.3770 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173839.4387 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.4428 a1og6k8r8jekvqq3rhv053dc57 Query : select no, estab,szadrsdesc from szadrs where u_coddest=557
20241015@173839.4817 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173839.5148 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406771 and bi.ref ='324.678.00.01' and bi.lordem =1
20241015@173839.6106 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173839.6396 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406771 and bi.ref ='324.678.00.01' and bi.lordem =2
20241015@173839.7118 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.7159 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173839.7532 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.7573 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173839.7945 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.7987 a1og6k8r8jekvqq3rhv053dc57 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')
20241015@173839.8442 a1og6k8r8jekvqq3rhv053dc57 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
20241015@173839.8895 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.8937 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 ~inactivo valor from cl where no = '101732' and estab = 0 order by inactivo desc
20241015@173839.9420 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.9461 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173839.9833 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173839.9875 a1og6k8r8jekvqq3rhv053dc57 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173840.1551 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173840.1599 a1og6k8r8jekvqq3rhv053dc57 Query : select szadrsstamp valor from szadrs where szadrsdesc='rosalar -r.s.&santos, distr. elect.,lda'
20241015@173840.2129 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173840.2171 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from td where ndoc = 39
20241015@173840.2419 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173840.2708 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173840.2959 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173840.3372 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173840.3623 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173840.3935 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173840.4149 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173840.4397 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173840.4702 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173840.4952 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173840.5044 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173840.5297 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e947180670e9a906b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173840.5608 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173840.5736 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173840.6252 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173840.6343 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173840.6461 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173840.6473 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173840.6485 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173840.6547 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173840.6622 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e947180670e9a906b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173840.6951 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173840.7040 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173840.7304 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173840.7758 a1og6k8r8jekvqq3rhv053dc57 Query : select 'normal' from dummy
20241015@173840.8048 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e947180670e9a906b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1294,101732,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173840.8662 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173840.8703 a1og6k8r8jekvqq3rhv053dc57 Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173840.9034 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173840.9282 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173840.9533 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173841.1274 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.1524 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173841.1690 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173841.1938 a1og6k8r8jekvqq3rhv053dc57 Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173841.2188 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.2442 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173841.2648 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e970295670e9a9135','aut670e947180670e9a906b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173841.2692 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.2944 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173841.3561 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e970295670e9a9135',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut670e947180670e9a906b' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173841.4139 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.4391 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173841.4967 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.5221 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173841.5386 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173841.5634 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.5885 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173841.6093 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e945108670e9a9189','aut670e947180670e9a906b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173841.6136 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.6389 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173841.7009 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e945108670e9a9189',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e947180670e9a906b' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173841.7646 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173841.7687 a1og6k8r8jekvqq3rhv053dc57 Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173841.8017 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173841.8264 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.8515 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173841.9091 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173841.9342 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173841.9508 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173841.9755 a1og6k8r8jekvqq3rhv053dc57 Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173842.4000 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.2560 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173842.4630 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e922168670e9a9200','aut670e947180670e9a906b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173842.5060 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.7570 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173842.1501 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e922168670e9a9200',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut670e947180670e9a906b' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241015@173842.2079 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.2330 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173842.2906 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.3157 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173842.3321 a1og6k8r8jekvqq3rhv053dc57 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173842.3570 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.3803 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173842.3815 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e951125670e9a9257','aut670e947180670e9a906b' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173842.3821 a1og6k8r8jekvqq3rhv053dc57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.4073 a1og6k8r8jekvqq3rhv053dc57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173842.4417 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e951125670e9a9257',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e947180670e9a906b' ,0,0 ,2,23.00,50000,?,?,?)
20241015@173842.4912 a1og6k8r8jekvqq3rhv053dc57 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e947180670e9a906b','2406771','wait',39,'adm09112754980.682000002')
20241015@173842.5460 a1og6k8r8jekvqq3rhv053dc57 Query : use flama_phc
20241015@173842.5502 a1og6k8r8jekvqq3rhv053dc57 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173842.6885 a1og6k8r8jekvqq3rhv053dc57 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2684';
20241015@173842.7161 a1og6k8r8jekvqq3rhv053dc57 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2684';
20241015@173842.7358 a1og6k8r8jekvqq3rhv053dc57 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2684';
20241015@173842.7448 a1og6k8r8jekvqq3rhv053dc57 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2684';
20241015@173842.8094 67uij17papvgv1kigmn4gqr0fd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173842.8105 67uij17papvgv1kigmn4gqr0fd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173842.8165 67uij17papvgv1kigmn4gqr0fd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2685';
20241015@173842.8272 67uij17papvgv1kigmn4gqr0fd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2685';
20241015@173842.8327 67uij17papvgv1kigmn4gqr0fd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2685';
20241015@173842.8355 67uij17papvgv1kigmn4gqr0fd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2685';
20241015@173842.8404 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.8407 67uij17papvgv1kigmn4gqr0fd Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173842.8471 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.8474 67uij17papvgv1kigmn4gqr0fd Query : select no, estab,szadrsdesc from szadrs where u_coddest=170
20241015@173842.8550 67uij17papvgv1kigmn4gqr0fd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173842.8570 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406772 and bi.ref ='324.678.00.01' and bi.lordem =1
20241015@173842.8855 67uij17papvgv1kigmn4gqr0fd Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.678.00.01'
20241015@173842.8874 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406772 and bi.ref ='324.678.00.01' and bi.lordem =1
20241015@173842.8890 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.8893 67uij17papvgv1kigmn4gqr0fd Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173842.8927 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.8929 67uij17papvgv1kigmn4gqr0fd Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173842.8966 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.8968 67uij17papvgv1kigmn4gqr0fd 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')
20241015@173842.8996 67uij17papvgv1kigmn4gqr0fd 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
20241015@173842.9029 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.9032 67uij17papvgv1kigmn4gqr0fd Query : select top 1 ~inactivo valor from cl where no = '102068' and estab = 0 order by inactivo desc
20241015@173842.9121 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.9123 67uij17papvgv1kigmn4gqr0fd Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173842.9153 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.9156 67uij17papvgv1kigmn4gqr0fd Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173842.9193 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.9196 67uij17papvgv1kigmn4gqr0fd Query : select szadrsstamp valor from szadrs where szadrsdesc='magalhÃes & vinha, lda.'
20241015@173842.9241 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173842.9243 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from td where ndoc = 39
20241015@173842.9255 67uij17papvgv1kigmn4gqr0fd Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173842.9269 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.9284 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173842.9303 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.9317 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173842.9345 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.9359 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173842.9372 67uij17papvgv1kigmn4gqr0fd Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173842.9436 67uij17papvgv1kigmn4gqr0fd Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173842.9449 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.9464 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173842.9479 67uij17papvgv1kigmn4gqr0fd Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e946350670e9a92e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173842.9623 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.9638 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173842.9669 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173842.9680 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173842.9691 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173842.9702 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173842.9714 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173842.9725 67uij17papvgv1kigmn4gqr0fd Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173842.9736 67uij17papvgv1kigmn4gqr0fd Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e946350670e9a92e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173842.9921 67uij17papvgv1kigmn4gqr0fd Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173842.9942 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173842.9956 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173842.9977 67uij17papvgv1kigmn4gqr0fd Query : select 'normal' from dummy
20241015@173842.9992 67uij17papvgv1kigmn4gqr0fd Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e946350670e9a92e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1295,102068,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173843.2240 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173843.2270 67uij17papvgv1kigmn4gqr0fd Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173843.2670 67uij17papvgv1kigmn4gqr0fd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173843.2810 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.2970 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.3230 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.3370 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.3460 67uij17papvgv1kigmn4gqr0fd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173843.3580 67uij17papvgv1kigmn4gqr0fd Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173843.3700 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.3840 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.3960 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e934445670e9a9309','aut670e946350670e9a92e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173843.4000 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.4140 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.4430 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e934445670e9a9309',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut670e946350670e9a92e4' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173843.6540 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.6690 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.6960 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.7100 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.7190 67uij17papvgv1kigmn4gqr0fd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173843.7310 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.7450 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.7590 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e903382670e9a9311','aut670e946350670e9a92e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173843.7640 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.7780 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.8060 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e903382670e9a9311',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e946350670e9a92e4' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173843.1003 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173843.1006 67uij17papvgv1kigmn4gqr0fd Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20241015@173843.1027 67uij17papvgv1kigmn4gqr0fd Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20241015@173843.1041 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1056 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.1082 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1096 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.1105 67uij17papvgv1kigmn4gqr0fd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173843.1117 67uij17papvgv1kigmn4gqr0fd Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20241015@173843.1129 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1145 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.1156 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e941113670e9a931b','aut670e946350670e9a92e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173843.1160 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1175 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.1203 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e941113670e9a931b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut670e946350670e9a92e4' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241015@173843.1416 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1432 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.1458 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1472 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.1481 67uij17papvgv1kigmn4gqr0fd Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173843.1493 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1508 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173843.1520 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e937549670e9a9324','aut670e946350670e9a92e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173843.1524 67uij17papvgv1kigmn4gqr0fd Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173843.1539 67uij17papvgv1kigmn4gqr0fd Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173843.1567 67uij17papvgv1kigmn4gqr0fd Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e937549670e9a9324',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e946350670e9a92e4' ,0,0 ,2,23.00,50000,?,?,?)
20241015@173843.1764 67uij17papvgv1kigmn4gqr0fd Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e946350670e9a92e4','2406772','wait',39,'adm09112754980.682000002')
20241015@173843.1834 67uij17papvgv1kigmn4gqr0fd Query : use flama_phc
20241015@173843.1837 67uij17papvgv1kigmn4gqr0fd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173843.1867 67uij17papvgv1kigmn4gqr0fd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2685';
20241015@173843.1899 67uij17papvgv1kigmn4gqr0fd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2685';
20241015@173843.1959 67uij17papvgv1kigmn4gqr0fd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2685';
20241015@173843.1985 67uij17papvgv1kigmn4gqr0fd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2685';
20241015@173843.3246 agd40m5dver0mqokg0ib4inpbo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241015@173843.3329 agd40m5dver0mqokg0ib4inpbo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241015@173843.3797 agd40m5dver0mqokg0ib4inpbo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2686';
20241015@173843.4124 agd40m5dver0mqokg0ib4inpbo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2686';
20241015@173843.4468 agd40m5dver0mqokg0ib4inpbo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2686';
20241015@173843.4768 agd40m5dver0mqokg0ib4inpbo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2686';
20241015@173843.5114 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173843.5155 agd40m5dver0mqokg0ib4inpbo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241015@173843.5774 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173843.5815 agd40m5dver0mqokg0ib4inpbo Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20241015@173843.6202 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.600.94.01'
20241015@173843.6666 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.600.94.01' and bi.lordem =1
20241015@173843.7394 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.600.94.01'
20241015@173843.7683 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.600.94.01' and bi.lordem =1
20241015@173843.7889 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2000.94.1'
20241015@173843.8352 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.2000.94.1' and bi.lordem =2
20241015@173843.9076 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.900.94.01'
20241015@173843.9543 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.900.94.01' and bi.lordem =3
20241015@173844.2630 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.900.94.01'
20241015@173844.5520 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.900.94.01' and bi.lordem =3
20241015@173844.7590 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20241015@173844.1218 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.700.94.01' and bi.lordem =4
20241015@173844.2877 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20241015@173844.3165 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.700.94.01' and bi.lordem =4
20241015@173844.3372 agd40m5dver0mqokg0ib4inpbo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20241015@173844.3836 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2067 and bo.obrano = 2406773 and bi.ref ='324.2200.94.1' and bi.lordem =5
20241015@173844.4560 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.4601 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20241015@173844.5014 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.5056 agd40m5dver0mqokg0ib4inpbo Query : select top 1 1 valor from td where td.ndoc = 39
20241015@173844.5428 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.5469 agd40m5dver0mqokg0ib4inpbo 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')
20241015@173844.5620 agd40m5dver0mqokg0ib4inpbo 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
20241015@173844.6072 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.6075 agd40m5dver0mqokg0ib4inpbo Query : select top 1 ~inactivo valor from cl where no = '199800' and estab = 0 order by inactivo desc
20241015@173844.6480 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.6522 agd40m5dver0mqokg0ib4inpbo Query : select top 1 tipodoc,regrd from td where ndoc = 39
20241015@173844.6775 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.6817 agd40m5dver0mqokg0ib4inpbo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241015@173844.7274 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.7316 agd40m5dver0mqokg0ib4inpbo Query : select szadrsstamp valor from szadrs where szadrsdesc='740 ent vnr bligeiro'
20241015@173844.7877 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173844.7919 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from td where ndoc = 39
20241015@173844.7966 agd40m5dver0mqokg0ib4inpbo Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20241015@173844.7984 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173844.8049 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173844.8194 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173844.8300 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173844.8854 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173844.9106 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173844.9354 agd40m5dver0mqokg0ib4inpbo Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173844.9690 agd40m5dver0mqokg0ib4inpbo Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20241015@173844.9938 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173845.1900 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20241015@173845.4790 agd40m5dver0mqokg0ib4inpbo Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20241015@173845.8320 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173845.1083 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20241015@173845.1782 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20241015@173845.1988 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20241015@173845.2274 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20241015@173845.2526 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20241015@173845.2732 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20241015@173845.2938 agd40m5dver0mqokg0ib4inpbo Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20241015@173845.3144 agd40m5dver0mqokg0ib4inpbo Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut670e978099670e9a94e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20241015@173845.3761 agd40m5dver0mqokg0ib4inpbo Query : select top 1 fno valor from wsftdata order by fno desc
20241015@173845.4647 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173845.4898 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20241015@173845.5351 agd40m5dver0mqokg0ib4inpbo Query : select 'normal' from dummy
20241015@173845.5640 agd40m5dver0mqokg0ib4inpbo Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut670e978099670e9a94e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1296,199800,0,'2024-10-15',39,'euro',0,0,2024 ,?,?)
20241015@173845.6199 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173845.6240 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.600.94.01'
20241015@173845.6573 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.600.94.01'
20241015@173845.7007 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173845.7259 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173845.7835 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173845.8087 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173845.8251 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173845.8498 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.600.94.01' and lote = 'r2400047200a'
20241015@173845.8748 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173845.9000 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173845.9221 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e965825670e9a95d5','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173845.9265 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173845.9518 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173846.1420 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e965825670e9a95d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20241015@173846.9420 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.1192 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173846.1772 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.2637 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173846.3232 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173846.3483 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.3735 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173846.3941 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e955639670e9a9655','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173846.3984 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.4236 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173846.4853 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e955639670e9a9655',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,20000,?,?,?)
20241015@173846.5353 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173846.5394 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.600.94.01'
20241015@173846.5725 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.600.94.01'
20241015@173846.5973 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.6117 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173846.6617 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.6642 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173846.6730 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173846.6978 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.600.94.01' and lote = 'r2400047200a'
20241015@173846.7187 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.7283 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173846.7490 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e917249670e9a96af','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173846.7533 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.7730 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173846.7957 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e917249670e9a96af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20241015@173846.8482 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.8657 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173846.8719 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173846.9933 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173846.9998 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173847.8000 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.1610 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173847.2950 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e935055670e9a9701','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173847.3400 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.5890 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173847.1210 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut670e935055670e9a9701',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,50000,?,?,?)
20241015@173847.1713 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173847.1755 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.2000.94.1'
20241015@173847.2089 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2000.94.1'
20241015@173847.2520 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.2771 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173847.3472 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.3723 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173847.3887 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173847.4134 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.2000.94.1' and lote = 'r2300916200a'
20241015@173847.4383 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.4634 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173847.4840 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e960214670e9a976b','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173847.4883 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.5133 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173847.6997 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e960214670e9a976b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20241015@173847.7497 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173847.7538 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.900.94.01'
20241015@173847.7870 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.900.94.01'
20241015@173847.8305 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.8558 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173847.9333 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173847.9585 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173847.9750 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173847.9998 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.900.94.01' and lote = 'r2300952200a'
20241015@173848.2470 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.4980 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173848.7040 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e920973670e9a9806','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173848.7470 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.9980 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173848.1614 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e920973670e9a9806',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20241015@173848.2949 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173848.3232 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.900.94.01'
20241015@173848.3695 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.900.94.01'
20241015@173848.3943 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.4194 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173848.4770 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.5021 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173848.5186 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173848.5433 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.900.94.01' and lote = 'r2300952200a'
20241015@173848.5681 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.5931 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173848.6138 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e954177670e9a988a','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173848.6181 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.6433 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173848.7051 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e954177670e9a988a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20241015@173848.7543 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173848.7584 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.700.94.01'
20241015@173848.7845 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.700.94.01'
20241015@173848.8233 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.8484 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173848.9061 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173848.9312 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173849.7100 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173849.9570 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.700.94.01' and lote = 'r2300913100a'
20241015@173849.1224 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.1477 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173849.1691 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e922505670e9a991d','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173849.1734 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.1898 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173849.1931 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e922505670e9a991d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20241015@173849.2405 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173849.2447 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.700.94.01'
20241015@173849.2777 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.700.94.01'
20241015@173849.3024 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.3293 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173849.4004 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.4428 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173849.4648 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173849.4895 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.700.94.01' and lote = 'r2300913100a'
20241015@173849.5142 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.5393 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173849.5600 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e941774670e9a997d','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173849.5644 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.5777 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173849.5809 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e941774670e9a997d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,110000,?,?,?,?,?)
20241015@173849.6346 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173849.6387 agd40m5dver0mqokg0ib4inpbo Query : select st.usalote valor from st where st.ref = '324.2200.94.1'
20241015@173849.6720 agd40m5dver0mqokg0ib4inpbo Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2200.94.1'
20241015@173849.7151 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.7403 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173849.7979 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173849.8230 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173849.8921 agd40m5dver0mqokg0ib4inpbo Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241015@173849.9681 agd40m5dver0mqokg0ib4inpbo Query : select sestamp valor from se where ref ='324.2200.94.1' and lote = 'r2400046200a'
20241015@173849.9933 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173850.6800 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20241015@173850.8300 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670e951163670e9a99f2','aut670e978099670e9a94e4' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20241015@173850.8900 agd40m5dver0mqokg0ib4inpbo Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241015@173850.2470 agd40m5dver0mqokg0ib4inpbo Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20241015@173850.8650 agd40m5dver0mqokg0ib4inpbo Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut670e951163670e9a99f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',18.000 ,'aut670e978099670e9a94e4' ,0,0 ,2,23.00,120000,?,?,?,?,?)
20241015@173850.1455 agd40m5dver0mqokg0ib4inpbo Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut670e978099670e9a94e4','2406773','wait',39,'adm09112754980.682000002')
20241015@173850.2782 agd40m5dver0mqokg0ib4inpbo Query : use flama_phc
20241015@173850.2824 agd40m5dver0mqokg0ib4inpbo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@173850.3071 agd40m5dver0mqokg0ib4inpbo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2686';
20241015@173850.3372 agd40m5dver0mqokg0ib4inpbo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2686';
20241015@173850.3634 agd40m5dver0mqokg0ib4inpbo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2686';
20241015@173850.3933 agd40m5dver0mqokg0ib4inpbo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2686';
20241015@181914.6040 ebqd0s2uqgfqa60qv0avk1u6em Query : use flama_phc
20241015@181914.6044 ebqd0s2uqgfqa60qv0avk1u6em Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@181914.6124 ebqd0s2uqgfqa60qv0avk1u6em Query : use flama_phc
20241015@181914.6127 ebqd0s2uqgfqa60qv0avk1u6em Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@183614.5385 jutugbhint8900r13ob8htmv82 Query : use flama_phc
20241015@183614.5390 jutugbhint8900r13ob8htmv82 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@183614.6627 jutugbhint8900r13ob8htmv82 Query : use flama_phc
20241015@183614.6631 jutugbhint8900r13ob8htmv82 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@191914.7547 rurqtbu0e39hvtad7hcm9fd3m6 Query : use flama_phc
20241015@191914.7551 rurqtbu0e39hvtad7hcm9fd3m6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@191914.7634 rurqtbu0e39hvtad7hcm9fd3m6 Query : use flama_phc
20241015@191914.7636 rurqtbu0e39hvtad7hcm9fd3m6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@193614.5309 v8ouujsh6jghvk1f7ncg3t4mqt Query : use flama_phc
20241015@193614.5314 v8ouujsh6jghvk1f7ncg3t4mqt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@193614.5396 v8ouujsh6jghvk1f7ncg3t4mqt Query : use flama_phc
20241015@193614.5399 v8ouujsh6jghvk1f7ncg3t4mqt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@201928.9772 ojka067btaaff7b0b66juuof1g Query : use flama_phc
20241015@201928.9777 ojka067btaaff7b0b66juuof1g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@201928.9863 ojka067btaaff7b0b66juuof1g Query : use flama_phc
20241015@201928.9866 ojka067btaaff7b0b66juuof1g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@203628.9864 727drnbc7lmnc3slkbt7607r0s Query : use flama_phc
20241015@203628.9906 727drnbc7lmnc3slkbt7607r0s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@203629.7270 727drnbc7lmnc3slkbt7607r0s Query : use flama_phc
20241015@203629.7690 727drnbc7lmnc3slkbt7607r0s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@211911.8398 fp209gveqr92o44s64k46fdct1 Query : use flama_phc
20241015@211911.8440 fp209gveqr92o44s64k46fdct1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@211911.9530 fp209gveqr92o44s64k46fdct1 Query : use flama_phc
20241015@211911.9853 fp209gveqr92o44s64k46fdct1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@213612.1137 1f92ielm2g1sa469u7t535cgk6 Query : use flama_phc
20241015@213612.1142 1f92ielm2g1sa469u7t535cgk6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@213612.1229 1f92ielm2g1sa469u7t535cgk6 Query : use flama_phc
20241015@213612.1233 1f92ielm2g1sa469u7t535cgk6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@221914.8220 egfrp7ql37bunpjqprovs1be4c Query : use flama_phc
20241015@221914.8224 egfrp7ql37bunpjqprovs1be4c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@221914.8309 egfrp7ql37bunpjqprovs1be4c Query : use flama_phc
20241015@221914.8312 egfrp7ql37bunpjqprovs1be4c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@223614.7185 tv9c5kgf4c390i988edasgci7v Query : use flama_phc
20241015@223614.7189 tv9c5kgf4c390i988edasgci7v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@223614.7301 tv9c5kgf4c390i988edasgci7v Query : use flama_phc
20241015@223614.7304 tv9c5kgf4c390i988edasgci7v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@231913.4390 589uc52c61qm231srclg0fur7v Query : use flama_phc
20241015@231913.4430 589uc52c61qm231srclg0fur7v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@231913.5530 589uc52c61qm231srclg0fur7v Query : use flama_phc
20241015@231913.5560 589uc52c61qm231srclg0fur7v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241015@233613.5100 rdm6n7bjndafbajodmum4t0lmn Query : use flama_phc
20241015@233613.5600 rdm6n7bjndafbajodmum4t0lmn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241015@233613.1690 rdm6n7bjndafbajodmum4t0lmn Query : use flama_phc
20241015@233613.1720 rdm6n7bjndafbajodmum4t0lmn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@071916.3451 3jh0g48asegffi3uv0h5ej21pr Query : use flama_phc
20241016@071916.3456 3jh0g48asegffi3uv0h5ej21pr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@071916.3599 3jh0g48asegffi3uv0h5ej21pr Query : use flama_phc
20241016@071916.3602 3jh0g48asegffi3uv0h5ej21pr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@073629.2468 2qrh0f60ljb3l17l273qvgn57u Query : use flama_phc
20241016@073629.2472 2qrh0f60ljb3l17l273qvgn57u Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@073629.2598 2qrh0f60ljb3l17l273qvgn57u Query : use flama_phc
20241016@073629.2601 2qrh0f60ljb3l17l273qvgn57u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@081911.3088 6ddg9v1hhgn3mqtpqomo2tgtd9 Query : use flama_phc
20241016@081911.3093 6ddg9v1hhgn3mqtpqomo2tgtd9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@081911.3224 6ddg9v1hhgn3mqtpqomo2tgtd9 Query : use flama_phc
20241016@081911.3227 6ddg9v1hhgn3mqtpqomo2tgtd9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@083611.2970 icidrb9sh3ku1g61m9fq1u3maf Query : use flama_phc
20241016@083611.2975 icidrb9sh3ku1g61m9fq1u3maf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@083611.3063 icidrb9sh3ku1g61m9fq1u3maf Query : use flama_phc
20241016@083611.3066 icidrb9sh3ku1g61m9fq1u3maf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@091915.2260 lq8cvd8lqt1eu69nonf12sak59 Query : use flama_phc
20241016@091915.2680 lq8cvd8lqt1eu69nonf12sak59 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@091915.2350 lq8cvd8lqt1eu69nonf12sak59 Query : use flama_phc
20241016@091915.2392 lq8cvd8lqt1eu69nonf12sak59 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@093615.4235 7h10pe6ce221jrraa87kbg6jo6 Query : use flama_phc
20241016@093615.4241 7h10pe6ce221jrraa87kbg6jo6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20241016@093615.4539 7h10pe6ce221jrraa87kbg6jo6 Query : use flama_phc
20241016@093615.4543 7h10pe6ce221jrraa87kbg6jo6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@095148.8150 7qfbli05504o3t87lv1q6h75et Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@095148.8410 7qfbli05504o3t87lv1q6h75et Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@095148.1163 7qfbli05504o3t87lv1q6h75et Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2687';
20241016@095148.1298 7qfbli05504o3t87lv1q6h75et Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2687';
20241016@095148.1400 7qfbli05504o3t87lv1q6h75et Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2687';
20241016@095148.1456 7qfbli05504o3t87lv1q6h75et Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2687';
20241016@095148.1554 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095148.1561 7qfbli05504o3t87lv1q6h75et Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@095148.1727 7qfbli05504o3t87lv1q6h75et Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1329.00.1'
20241016@095148.1853 7qfbli05504o3t87lv1q6h75et 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 = 2400495 and bi.ref ='324.1329.00.1' and bi.lordem =10000
20241016@095148.2203 7qfbli05504o3t87lv1q6h75et 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 = 'cps24050935101,388000003 ' 
20241016@095148.2633 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095148.2666 7qfbli05504o3t87lv1q6h75et Query : select top 1 1 valor from ts where ts.ndos = 61
20241016@095148.2779 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095148.2785 7qfbli05504o3t87lv1q6h75et Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20241016@095148.2900 7qfbli05504o3t87lv1q6h75et Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =61
20241016@095148.3061 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095148.3065 7qfbli05504o3t87lv1q6h75et Query : select top 1 ~inactivo valor from fl where no = '202441' and estab = 00 order by inactivo desc
20241016@095148.4177 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095148.4261 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from ts where ndos = 61
20241016@095148.4636 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095148.4975 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20241016@095148.5315 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095148.5567 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20241016@095148.5583 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095148.5737 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20241016@095148.5768 7qfbli05504o3t87lv1q6h75et Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 61
20241016@095148.6828 7qfbli05504o3t87lv1q6h75et Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241016@095148.7340 7qfbli05504o3t87lv1q6h75et Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20241016@095148.7495 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095148.7542 7qfbli05504o3t87lv1q6h75et Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202441' and estab=00
20241016@095148.7941 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095148.7962 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20241016@095148.8011 7qfbli05504o3t87lv1q6h75et Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670f734963670f7ea4b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241016@095148.8136 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095148.8554 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20241016@095148.8787 7qfbli05504o3t87lv1q6h75et Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670f734963670f7ea4b6','--','bo',1.1159280667951188182 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241016@095148.9286 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095148.9784 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20241016@095149.1420 7qfbli05504o3t87lv1q6h75et 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 ('aut670f734963670f7ea4b6','guia r. fornecedor','2024-10-16',61,2403080,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241016@095153.2635 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095153.2674 7qfbli05504o3t87lv1q6h75et Query : select st.usalote valor from st where st.ref = '324.1329.00.1'
20241016@095153.2880 7qfbli05504o3t87lv1q6h75et Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1329.00.1'
20241016@095153.3211 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095153.3750 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20241016@095153.4000 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095153.4152 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20241016@095153.4202 7qfbli05504o3t87lv1q6h75et Query : select sestamp valor from se where ref ='324.1329.00.1' and lote = 'r2400495100a'
20241016@095153.4342 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095153.4362 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20241016@095153.4495 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095153.4587 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20241016@095153.4735 7qfbli05504o3t87lv1q6h75et Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670f765362670f7ea96d',?,?,'20241016',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20241016@095153.5939 7qfbli05504o3t87lv1q6h75et Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095153.6105 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095153.6126 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20241016@095153.6262 7qfbli05504o3t87lv1q6h75et Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f767269670f7ea995','aut670f734963670f7ea4b6',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 = 'aut670f734963670f7ea4b6'
20241016@095153.6550 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095153.6824 7qfbli05504o3t87lv1q6h75et Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20241016@095153.7118 7qfbli05504o3t87lv1q6h75et 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 'aut670f767269670f7ea995',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1400, 1400*.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 ,62.28,62.28*200.48,62.28,62.28*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,62.28*1400,62.28*1400*200.48 ,73.389000,73.389000*200.48 ,73.389000,73.389000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,62.28,62.28*200.48,62.28*1400,62.28*1400*200.48,'cps24050935101,388000003 ',69.5,69.5*1400,69.5,69.5*1400,?,?,?,4 from bo bo where bo.bostamp = 'aut670f734963670f7ea4b6'
20241016@095205.6176 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095205.6216 7qfbli05504o3t87lv1q6h75et Query : declare @bostamp varchar(25) = 'aut670f734963670f7ea4b6' ,@bistamp varchar(25) = '' update bi set tecoval = qtt * ecoval ,etecoval = qtt * eecoval ,tecoval2 = qtt * ecoval2 ,etecoval2 = qtt * eecoval2 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end -- se tiver classificação e não for normal, não calcula nada update bi set ttdeb = 0 ,ettdeb = 0 ,ttmoeda = 0 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and bi.classifc <> '' and bi.classifc <> 'normal' -- no caso normal com moeda euro if exists ( select 1 from bo cross apply ( select valor moeda from para1 where descricao = 'ge_pteoueuro' ) par where bo.bostamp = @bostamp and bo.moeda = par.moeda ) begin -- sem ecovalores update bi set ettdeb = round(bi.qtt * ((bi.edebito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttdeb = round(bi.qtt * ((bi.debito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 1 -- com ecovalores update bi set ettdeb = round(bi.qtt * ( ( bi.edebito + ( iif(p.st_econotdesc = 1, - bi.eecoval2, bi.eecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.eecoval + bi.eecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttdeb = round(bi.qtt * ( ( bi.debito + ( iif(p.st_econotdesc = 1, - bi.ecoval2, bi.ecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.ecoval + bi.ecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp left join st on bi.ref = st.ref left join taxasiva tiva on bi.tabiva = tiva.codigo cross apply ( select max(valor) st_econotdesc from ( select case when valor = 's' then 1 else 0 end valor from para1 where descricao = 'st_econotdesc' union all select 0 ) a ) p where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 0 --acrescenta os descontos em valor, caso existam: update bi set ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 2) ,ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ttmoeda = 0 from bi where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end else begin update bi set ttmoeda = round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2) ,ettdeb = case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ,edebito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end ,debito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end * 200.482 from bi inner join bo2 on bi.bostamp = bo2.bo2stamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) update bi set ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 0) ,debito = round(bi.debito - (bi.qtt * bi.valdesc), 2) ,edebito = round(bi.edebito - (bi.qtt * bi.evaldesc), 2) where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end 
20241016@095225.9213 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095225.9254 7qfbli05504o3t87lv1q6h75et Query : select 1 valor from bo where bo.bostamp = 'aut670f734963670f7ea4b6'
20241016@095225.9605 7qfbli05504o3t87lv1q6h75et 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) = 'aut670f734963670f7ea4b6' declare @totaisiva table ( bostamp varchar (25), codigo numeric(1), taxa numeric (5,2), ebaseinc numeric (19,6), baseinc numeric (18,5), evalor numeric (19,6), valor numeric (18,5) ) set @prod = ( select ts.producao from bo(nolock) inner join ts(nolock) on bo.ndos = ts.ndos and bo.bostamp = @mybostamp ) set @nrdec = ( select convert(numeric(10, 0), valor) from para1(nolock) where descricao = 'de_euro' ) --set @prod = 0 --set @nrdec = 2 select @ecusto = sum(bi.epcusto * bi.qtt) ,@custo = sum(bi.pcusto * bi.qtt) ,@bo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo_1iliq = round(sum(bi.qtt * bi.epu), @nrdec) ,@bo_2iliq = round(sum(bi.ettdeb), @nrdec) ,@bo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else bi.ettdeb - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@esdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@sdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@smoe1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@total = @stot1 + @stot2 + @stot3 + @stot4 ,@etotal = @estot1 + @estot2 + @estot3 + @estot4 ,@totaldeb = @sdeb1 + @sdeb2 + @sdeb3 + @sdeb4 ,@etotaldeb = @esdeb1 + @esdeb2 + @esdeb3 + @esdeb4 ,@moetotal = @smoe1 + @smoe2 + @smoe3 + @smoe4 ,@ebo_1tvall = @ebo11_bins + @ebo21_bins + @ebo31_bins + @ebo41_bins + @ebo51_bins + @ebo61_bins + @ebo71_bins + @ebo81_bins + @ebo91_bins ,@ebo_2tvall = @ebo12_bins + @ebo22_bins + @ebo32_bins + @ebo42_bins + @ebo52_bins + @ebo62_bins + @ebo72_bins + @ebo82_bins + @ebo92_bins ,@bo_1tvall = @bo11_bins + @bo21_bins + @bo31_bins + @bo41_bins + @bo51_bins + @bo61_bins + @bo71_bins + @bo81_bins + @bo91_bins ,@bo_2tvall = @bo12_bins + @bo22_bins + @bo32_bins + @bo42_bins + @bo52_bins + @bo62_bins + @bo72_bins + @bo82_bins + @bo92_bins ,@ebo_totp1 = sum(case when bi.ivaincl = 0 then (bi.epu * bi.qtt) else round((bi.epu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@ebo_totp2 = sum(case when bi.ivaincl = 0 then (bi.edebito * bi.qtt) else round((bi.edebito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp1 = sum(case when bi.ivaincl = 0 then (bi.pu * bi.qtt) else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp2 = sum(case when bi.ivaincl = 0 then (bi.debito * bi.qtt) else round((bi.debito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@sqtt11 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt21 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt12 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt22 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt13 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt23 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt14 = sum(case when bi.stipo = 4 then bi.qtt else 0 end) ,@sqtt24 = sum(case when bi.stipo = 5 then bi.qtt else 0 end) from bi(nolock) where bi.bostamp = @mybostamp and bi.producao = case when @prod = 1 then 1 else bi.producao end and bi.composto = 0 and bi.qtt <> 0 update bo set bo.totaldeb = isnull(@totaldeb, 0) ,bo.total = isnull(@total, 0) ,bo.etotaldeb = isnull(@etotaldeb, 0) ,bo.moetotal = isnull(@moetotal, 0) ,bo.etotal = isnull(@etotal, 0) ,bo.ecusto = isnull(@ecusto, 0) ,bo.custo = isnull(@custo, 0) ,bo.bo11_bins = isnull(@bo11_bins, 0) ,bo.bo12_bins = isnull(@bo12_bins, 0) ,bo.bo21_bins = isnull(@bo21_bins, 0) ,bo.bo22_bins = isnull(@bo22_bins, 0) ,bo.bo31_bins = isnull(@bo31_bins, 0) ,bo.bo32_bins = isnull(@bo32_bins, 0) ,bo.bo41_bins = isnull(@bo41_bins, 0) ,bo.bo42_bins = isnull(@bo42_bins, 0) ,bo.bo51_bins = isnull(@bo51_bins, 0) ,bo.bo52_bins = isnull(@bo52_bins, 0) ,bo.bo61_bins = isnull(@bo61_bins, 0) ,bo.bo62_bins = isnull(@bo62_bins, 0) ,bo.ebo11_bins = isnull(@ebo11_bins, 0) ,bo.ebo12_bins = isnull(@ebo12_bins, 0) ,bo.ebo21_bins = isnull(@ebo21_bins, 0) ,bo.ebo22_bins = isnull(@ebo22_bins, 0) ,bo.ebo31_bins = isnull(@ebo31_bins, 0) ,bo.ebo32_bins = isnull(@ebo32_bins, 0) ,bo.ebo41_bins = isnull(@ebo41_bins, 0) ,bo.ebo42_bins = isnull(@ebo42_bins, 0) ,bo.ebo51_bins = isnull(@ebo51_bins, 0) ,bo.ebo52_bins = isnull(@ebo52_bins, 0) ,bo.ebo61_bins = isnull(@ebo61_bins, 0) ,bo.ebo62_bins = isnull(@ebo62_bins, 0) ,bo.bo11_iva = isnull(@bo11_iva, 0) ,bo.bo12_iva = isnull(@bo12_iva, 0) ,bo.bo21_iva = isnull(@bo21_iva, 0) ,bo.bo22_iva = isnull(@bo22_iva, 0) ,bo.bo31_iva = isnull(@bo31_iva, 0) ,bo.bo32_iva = isnull(@bo32_iva, 0) ,bo.bo41_iva = isnull(@bo41_iva, 0) ,bo.bo42_iva = isnull(@bo42_iva, 0) ,bo.bo51_iva = isnull(@bo51_iva, 0) ,bo.bo52_iva = isnull(@bo52_iva, 0) ,bo.bo61_iva = isnull(@bo61_iva, 0) ,bo.bo62_iva = isnull(@bo62_iva, 0) ,bo.ebo11_iva = isnull(@ebo11_iva, 0) ,bo.ebo12_iva = isnull(@ebo12_iva, 0) ,bo.ebo21_iva = isnull(@ebo21_iva, 0) ,bo.ebo22_iva = isnull(@ebo22_iva, 0) ,bo.ebo31_iva = isnull(@ebo31_iva, 0) ,bo.ebo32_iva = isnull(@ebo32_iva, 0) ,bo.ebo41_iva = isnull(@ebo41_iva, 0) ,bo.ebo42_iva = isnull(@ebo42_iva, 0) ,bo.ebo51_iva = isnull(@ebo51_iva, 0) ,bo.ebo52_iva = isnull(@ebo52_iva, 0) ,bo.ebo61_iva = isnull(@ebo61_iva, 0) ,bo.ebo62_iva = isnull(@ebo62_iva, 0) ,bo.esdeb1 = isnull(@esdeb1, 0) ,bo.esdeb2 = isnull(@esdeb2, 0) ,bo.esdeb3 = isnull(@esdeb3, 0) ,bo.esdeb4 = isnull(@esdeb4, 0) ,bo.sdeb1 = isnull(@sdeb1, 0) ,bo.sdeb2 = isnull(@sdeb2, 0) ,bo.sdeb3 = isnull(@sdeb3, 0) ,bo.sdeb4 = isnull(@sdeb4, 0) ,bo.smoe1 = isnull(@smoe1, 0) ,bo.smoe2 = isnull(@smoe2, 0) ,bo.smoe3 = isnull(@smoe3, 0) ,bo.smoe4 = isnull(@smoe4, 0) ,bo.estot1 = isnull(@estot1, 0) ,bo.estot2 = isnull(@estot2, 0) ,bo.estot3 = isnull(@estot3, 0) ,bo.estot4 = isnull(@estot4, 0) ,bo.stot1 = isnull(@stot1, 0) ,bo.stot2 = isnull(@stot2, 0) ,bo.stot3 = isnull(@stot3, 0) ,bo.stot4 = isnull(@stot4, 0) ,bo.ebo_1tvall = isnull(@ebo_1tvall, 0) ,bo.ebo_2tvall = isnull(@ebo_2tvall, 0) ,bo.bo_1tvall = isnull(@bo_1tvall, 0) ,bo.bo_2tvall = isnull(@bo_2tvall, 0) ,bo.ebo_totp1 = isnull(@ebo_totp1, 0) ,bo.ebo_totp2 = isnull(@ebo_totp2, 0) ,bo.bo_totp1 = isnull(@bo_totp1, 0) ,bo.bo_totp2 = isnull(@bo_totp2, 0) ,bo.sqtt11 = isnull(@sqtt11, 0) ,bo.sqtt21 = isnull(@sqtt21, 0) ,bo.sqtt12 = isnull(@sqtt12, 0) ,bo.sqtt22 = isnull(@sqtt22, 0) ,bo.sqtt13 = isnull(@sqtt13, 0) ,bo.sqtt23 = isnull(@sqtt23, 0) ,bo.sqtt14 = isnull(@sqtt14, 0) ,bo.sqtt24 = isnull(@sqtt24, 0) where bostamp = @mybostamp update bo2 set bo2.bo71_bins = isnull(@bo71_bins, 0) ,bo2.bo72_bins = isnull(@bo72_bins, 0) ,bo2.bo81_bins = isnull(@bo81_bins, 0) ,bo2.bo82_bins = isnull(@bo82_bins, 0) ,bo2.bo91_bins = isnull(@bo91_bins, 0) ,bo2.bo92_bins = isnull(@bo92_bins, 0) ,bo2.ebo71_bins = isnull(@ebo71_bins, 0) ,bo2.ebo72_bins = isnull(@ebo72_bins, 0) ,bo2.ebo81_bins = isnull(@ebo81_bins, 0) ,bo2.ebo82_bins = isnull(@ebo82_bins, 0) ,bo2.ebo91_bins = isnull(@ebo91_bins, 0) ,bo2.ebo92_bins = isnull(@ebo92_bins, 0) ,bo2.bo71_iva = isnull(@bo71_iva, 0) ,bo2.bo72_iva = isnull(@bo72_iva, 0) ,bo2.bo81_iva = isnull(@bo81_iva, 0) ,bo2.bo82_iva = isnull(@bo82_iva, 0) ,bo2.bo91_iva = isnull(@bo91_iva, 0) ,bo2.bo92_iva = isnull(@bo92_iva, 0) ,bo2.ebo71_iva = isnull(@ebo71_iva, 0) ,bo2.ebo72_iva = isnull(@ebo72_iva, 0) ,bo2.ebo81_iva = isnull(@ebo81_iva, 0) ,bo2.ebo82_iva = isnull(@ebo82_iva, 0) ,bo2.ebo91_iva = isnull(@ebo91_iva, 0) ,bo2.ebo92_iva = isnull(@ebo92_iva, 0) ,bo2.etotalciva = isnull(@etotaldeb, 0) + isnull(@ebo12_iva, 0) +isnull(@ebo22_iva, 0) +isnull(@ebo32_iva, 0) +isnull(@ebo42_iva, 0) +isnull(@ebo52_iva, 0) +isnull(@ebo62_iva, 0) +isnull(@ebo72_iva, 0) +isnull(@ebo82_iva, 0) +isnull(@ebo92_iva, 0) --,bo2.mtotalciva =isnull(@moetotal, 0) where bo2stamp = @mybostamp -- trata os bot select @userinis = usrinis from bo where bo.bostamp=@mybostamp insert into @totaisiva ( bostamp, codigo, taxa, ebaseinc, baseinc, evalor, valor ) select @mybostamp,codigo,taxa ,case when (@ebo11_bins <>0) then @ebo11_bins else @ebo12_bins end ,case when (@ebo11_bins <>0) then @bo11_bins else @bo12_bins end ,case when (@ebo11_bins <>0) then @ebo11_iva else @ebo12_iva end ,case when (@ebo11_bins <>0) then @bo11_iva else @bo12_iva end from taxasiva where codigo = 1 union all select @mybostamp,codigo,taxa ,case when (@ebo21_bins <>0) then @ebo21_bins else @ebo22_bins end ,case when (@ebo21_bins <>0) then @bo21_bins else @bo22_bins end ,case when (@ebo21_bins <>0) then @ebo21_iva else @ebo22_iva end ,case when (@ebo21_bins <>0) then @bo21_iva else @bo22_iva end from taxasiva where codigo = 2 union all select @mybostamp,codigo,taxa ,case when (@ebo31_bins <>0) then @ebo31_bins else @ebo32_bins end ,case when (@ebo31_bins <>0) then @bo31_bins else @bo32_bins end ,case when (@ebo31_bins <>0) then @ebo31_iva else @ebo32_iva end ,case when (@ebo31_bins <>0) then @bo31_iva else @bo32_iva end from taxasiva where codigo = 3 union all select @mybostamp,codigo,taxa ,case when (@ebo41_bins <>0) then @ebo41_bins else @ebo42_bins end ,case when (@ebo41_bins <>0) then @bo41_bins else @bo42_bins end ,case when (@ebo41_bins <>0) then @ebo41_iva else @ebo42_iva end ,case when (@ebo41_bins <>0) then @bo41_iva else @bo42_iva end from taxasiva where codigo = 4 union all select @mybostamp,codigo,taxa ,case when (@ebo51_bins <>0) then @ebo51_bins else @ebo52_bins end ,case when (@ebo51_bins <>0) then @bo51_bins else @bo52_bins end ,case when (@ebo51_bins <>0) then @ebo51_iva else @ebo52_iva end ,case when (@ebo51_bins <>0) then @bo51_iva else @bo52_iva end from taxasiva where codigo = 5 union all select @mybostamp,codigo,taxa ,case when (@ebo61_bins <>0) then @ebo61_bins else @ebo62_bins end ,case when (@ebo61_bins <>0) then @bo61_bins else @bo62_bins end ,case when (@ebo61_bins <>0) then @ebo61_iva else @ebo62_iva end ,case when (@ebo61_bins <>0) then @bo61_iva else @bo62_iva end from taxasiva where codigo = 6 union all select @mybostamp,codigo,taxa ,case when (@ebo71_bins <>0) then @ebo71_bins else @ebo72_bins end ,case when (@ebo71_bins <>0) then @bo71_bins else @bo72_bins end ,case when (@ebo71_bins <>0) then @ebo71_iva else @ebo72_iva end ,case when (@ebo71_bins <>0) then @bo71_iva else @bo72_iva end from taxasiva where codigo = 7 union all select @mybostamp,codigo,taxa ,case when (@ebo81_bins <>0) then @ebo81_bins else @ebo82_bins end ,case when (@ebo81_bins <>0) then @bo81_bins else @bo82_bins end ,case when (@ebo81_bins <>0) then @ebo81_iva else @ebo82_iva end ,case when (@ebo81_bins <>0) then @bo81_iva else @bo82_iva end from taxasiva where codigo = 8 union all select @mybostamp,codigo,taxa ,case when (@ebo91_bins <>0) then @ebo91_bins else @ebo92_bins end ,case when (@ebo91_bins <>0) then @bo91_bins else @bo92_bins end ,case when (@ebo91_bins <>0) then @ebo91_iva else @ebo92_iva end ,case when (@ebo91_bins <>0) then @bo91_iva else @bo92_iva end from taxasiva where codigo = 9 update bot set ebaseinc = totiva.ebaseinc, baseinc = totiva.baseinc, evalor = totiva.evalor, valor = totiva.valor, usrinis = @userinis, usrdata = convert (date,getdate()), usrhora = convert (time,getdate()) from @totaisiva totiva inner join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo insert into bot ( botstamp ,bostamp ,codigo ,taxa ,ebaseinc ,baseinc ,evalor ,valor ,ousrinis ,ousrdata ,ousrhora ,usrinis ,usrdata ,usrhora ) select ( left(@userinis,3) + 'tt' + left(newid(),5) + right(newid(),5) + left(newid(),5) + right(newid(),5)) stamp ,@mybostamp stampbo ,totiva.codigo ,totiva.taxa ,totiva.ebaseinc ,totiva.baseinc ,totiva.evalor ,totiva.valor ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) from @totaisiva totiva left join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo where bot.botstamp is null -- atualiza os campo bi.series e bi.series2, caso tenha equipamentos update bi set series = s1, series2=s2 from bi inner join ( select distinct bistamp,ser.s1, ser.s2 from boma cross apply (select stuff ( ( select ',' + rtrim(serie) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s1 , stuff ( ( select ',' + rtrim(serie2) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s2 ) ser where boma.bostamp = @mybostamp ) myboma on bi.bistamp = myboma.bistamp where bi.bostamp = @mybostamp 
20241016@095229.6307 7qfbli05504o3t87lv1q6h75et Query : use flama_phc
20241016@095229.6311 7qfbli05504o3t87lv1q6h75et Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20241016@095229.6414 7qfbli05504o3t87lv1q6h75et Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2687';
20241016@095229.7007 7qfbli05504o3t87lv1q6h75et Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2687';
20241016@095229.8064 ehmj9tcn3pf1khnkq58qouoj3p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@095229.8075 ehmj9tcn3pf1khnkq58qouoj3p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@095229.8134 ehmj9tcn3pf1khnkq58qouoj3p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2688';
20241016@095229.8186 ehmj9tcn3pf1khnkq58qouoj3p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2688';
20241016@095229.8241 ehmj9tcn3pf1khnkq58qouoj3p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2688';
20241016@095229.8269 ehmj9tcn3pf1khnkq58qouoj3p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2688';
20241016@095229.9129 bigoqnu6t7o5tts5jq029gkrvp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20241016@095229.9188 bigoqnu6t7o5tts5jq029gkrvp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20241016@095229.9274 bigoqnu6t7o5tts5jq029gkrvp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2689';
20241016@095229.9426 bigoqnu6t7o5tts5jq029gkrvp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2689';
20241016@095229.9793 bigoqnu6t7o5tts5jq029gkrvp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='2689';
20241016@095230.9400 bigoqnu6t7o5tts5jq029gkrvp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='2689';
20241016@095230.2930 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095230.2990 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20241016@095230.4860 bigoqnu6t7o5tts5jq029gkrvp Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20241016@095230.5610 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.421.00.04'
20241016@095230.7720 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='304.421.00.04' and bi.lordem =10000
20241016@095230.1161 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456301,691000001 ' 
20241016@095230.2738 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.318.09.00'
20241016@095230.2860 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='323.318.09.00' and bi.lordem =20000
20241016@095230.3323 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456381,285000002 ' 
20241016@095230.3609 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1426.00.1'
20241016@095230.3697 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1426.00.1' and bi.lordem =30000
20241016@095230.3992 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456398,324000003 ' 
20241016@095230.4676 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1608.00.1'
20241016@095230.4916 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1608.00.1' and bi.lordem =40000
20241016@095230.5437 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456417,512000004 ' 
20241016@095230.5826 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1817.00.1'
20241016@095230.6011 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1817.00.1' and bi.lordem =50000
20241016@095230.6546 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456434,243000005 ' 
20241016@095230.6910 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1833.00.2'
20241016@095230.7089 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1833.00.2' and bi.lordem =60000
20241016@095230.7497 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456455,177000006 ' 
20241016@095230.7857 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1834.00.1'
20241016@095230.7993 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1834.00.1' and bi.lordem =70000
20241016@095230.8483 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456475,038000007 ' 
20241016@095230.8813 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1871.00.4'
20241016@095230.8930 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1871.00.4' and bi.lordem =80000
20241016@095230.9341 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456490,878000008 ' 
20241016@095230.9741 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1896.00.1'
20241016@095230.9865 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1896.00.1' and bi.lordem =90000
20241016@095231.2390 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456507,672000009 ' 
20241016@095231.6990 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2330.00.1'
20241016@095231.8330 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.2330.00.1' and bi.lordem =100000
20241016@095231.1239 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456525,823000010 ' 
20241016@095231.1779 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2335.00.1'
20241016@095231.2016 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.2335.00.1' and bi.lordem =110000
20241016@095231.2498 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456538,138000011 ' 
20241016@095231.3927 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4990.00.1'
20241016@095231.4325 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.4990.00.1' and bi.lordem =120000
20241016@095231.4990 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456549,902000012 ' 
20241016@095231.5437 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.644.00.01'
20241016@095231.5590 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.644.00.01' and bi.lordem =130000
20241016@095231.6001 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456570,058000013 ' 
20241016@095231.6356 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.648.00.01'
20241016@095231.6540 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.648.00.01' and bi.lordem =140000
20241016@095231.6980 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456599,795000014 ' 
20241016@095231.7392 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.724.00.01'
20241016@095231.7626 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.724.00.01' and bi.lordem =150000
20241016@095231.8013 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456600,626000015 ' 
20241016@095231.8420 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20241016@095231.8552 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.948.00.01' and bi.lordem =160000
20241016@095231.8939 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456600,892000016 ' 
20241016@095231.9332 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20241016@095231.9459 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.958.00.01' and bi.lordem =170000
20241016@095231.9866 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456601,207000017 ' 
20241016@095232.2880 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.966.00.01'
20241016@095232.4700 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.966.00.01' and bi.lordem =180000
20241016@095232.8780 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456673,299000018 ' 
20241016@095232.1435 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1332.00.1'
20241016@095232.1575 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1332.00.1' and bi.lordem =200000
20241016@095232.1988 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456795,540000020 ' 
20241016@095232.2366 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1805.00.1'
20241016@095232.2560 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1805.00.1' and bi.lordem =210000
20241016@095232.3038 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456817,611000021 ' 
20241016@095232.3443 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1805.00.1'
20241016@095232.3486 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1805.00.1' and bi.lordem =210000
20241016@095232.3527 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456817,611000021 ' 
20241016@095232.3576 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1817.00.1'
20241016@095232.3607 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.1817.00.1' and bi.lordem =220000
20241016@095232.3960 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456837,619000022 ' 
20241016@095232.4308 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2301.00.3'
20241016@095232.4437 bigoqnu6t7o5tts5jq029gkrvp 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 = 0002369 and bi.ref ='324.2301.00.3' and bi.lordem =230000
20241016@095232.5110 bigoqnu6t7o5tts5jq029gkrvp 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 = 'az24101456848,573000023 ' 
20241016@095232.5500 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.5504 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 1 valor from ts where ts.ndos = 5
20241016@095232.5605 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.5625 bigoqnu6t7o5tts5jq029gkrvp Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20241016@095232.5683 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20241016@095232.6590 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.7130 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20241016@095232.7285 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.7289 bigoqnu6t7o5tts5jq029gkrvp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20241016@095232.7388 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.7406 bigoqnu6t7o5tts5jq029gkrvp Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20241016@095232.7491 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.7494 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from ts where ndos = 5
20241016@095232.7526 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095232.7561 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20241016@095232.7597 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095232.7625 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20241016@095232.7640 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095232.7674 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20241016@095232.7701 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20241016@095232.7834 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241016@095232.7956 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20241016@095232.8102 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.8108 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20241016@095232.8743 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095232.8780 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20241016@095232.8813 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut670f731649670f7ed0c5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20241016@095232.8907 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095232.8948 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20241016@095232.8978 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut670f731649670f7ed0c5','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20241016','10:22',?,?)
20241016@095232.9251 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095232.9306 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20241016@095232.9350 bigoqnu6t7o5tts5jq029gkrvp 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 ('aut670f731649670f7ed0c5','trf entre armazéns a','2024-10-16',5,512,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20241016@095232.9839 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.9862 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20241016@095232.9892 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095232.9901 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '304.421.00.04'
20241016@095233.7000 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.9000 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '304.421.00.04' and sa.armazem = 133 
20241016@095233.1390 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.1420 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '304.421.00.04'
20241016@095233.1830 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.421.00.04'
20241016@095233.3560 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.3750 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.4130 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.4480 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.4720 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '241001'
20241016@095233.4910 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095233.5230 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.5540 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.5710 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f771609670f7ed10c','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.9370 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.9770 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.1012 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f771609670f7ed10c',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,10000 ,25.6,25.6*200.48,25.6,25.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,25.6*4.000,25.6*4.000*200.48 ,12.108000,12.108000*200.48 ,12.108000,12.108000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.6,25.6*200.48,25.6*4.000,25.6*4.000*200.48,'az24101456301,691000001 ',25.6,25.6*4.000,25.6,25.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.1382 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.1386 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '323.318.09.00'
20241016@095233.1487 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.1513 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '323.318.09.00'
20241016@095233.1558 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.1562 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '323.318.09.00' and sa.armazem = 133 
20241016@095233.1758 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.1761 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '323.318.09.00'
20241016@095233.1806 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.318.09.00'
20241016@095233.1980 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.2020 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.2072 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.2104 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.2135 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='323.318.09.00' and lote = 'r2400053200a'
20241016@095233.2206 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095233.2244 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.2282 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.2315 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f768094670f7ed136','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.2516 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.2555 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.2591 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f768094670f7ed136',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,140.8,140.8*200.48,140.8,140.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,140.8*1.000,140.8*1.000*200.48 ,67.424000,67.424000*200.48 ,67.424000,67.424000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,140.8,140.8*200.48,140.8*1.000,140.8*1.000*200.48,'az24101456381,285000002 ',140.8,140.8*1.000,140.8,140.8*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.2931 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.2956 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1426.00.1'
20241016@095233.2986 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.2989 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1426.00.1'
20241016@095233.3008 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.3028 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1426.00.1' and sa.armazem = 133 
20241016@095233.3137 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.3140 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1426.00.1'
20241016@095233.3198 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1426.00.1'
20241016@095233.3357 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.3394 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.3430 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.3469 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.3478 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1426.00.1' and lote = 'r2100465200a'
20241016@095233.3516 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095233.3547 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.3580 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.3611 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f752710670f7ed156','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.3785 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.3827 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.3992 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f752710670f7ed156',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,30000 ,42.9,42.9*200.48,42.9,42.9*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,42.9*4.000,42.9*4.000*200.48 ,20.193000,20.193000*200.48 ,20.193000,20.193000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,42.9,42.9*200.48,42.9*4.000,42.9*4.000*200.48,'az24101456398,324000003 ',42.9,42.9*4.000,42.9,42.9*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.4301 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.4322 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20241016@095233.4351 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.4354 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1608.00.1'
20241016@095233.4393 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.4396 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1608.00.1' and sa.armazem = 133 
20241016@095233.4478 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.4480 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1608.00.1'
20241016@095233.4517 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1608.00.1'
20241016@095233.4676 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.4714 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.4745 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.4775 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.4788 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2400237100a'
20241016@095233.4826 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095233.4862 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.4917 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.4990 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f769322670f7ed176','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.5455 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.6491 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.6722 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f769322670f7ed176',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 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*6.000,28.8*6.000*200.48 ,12.576000,12.576000*200.48 ,12.576000,12.576000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*6.000,28.8*6.000*200.48,'az24101456417,512000004 ',28.8,28.8*6.000,28.8,28.8*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.7042 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.7046 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1817.00.1'
20241016@095233.7085 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.7101 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20241016@095233.7123 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.7145 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1817.00.1' and sa.armazem = 133 
20241016@095233.7250 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.7253 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20241016@095233.7291 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1817.00.1'
20241016@095233.7452 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.7489 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.7519 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.7554 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.7564 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1817.00.1' and lote = 'r2400379200a'
20241016@095233.7600 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095233.7611 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.7644 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.7675 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f740138670f7ed1b9','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.7830 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.7867 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.7904 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f740138670f7ed1b9',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,50000 ,52.5,52.5*200.48,52.5,52.5*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,52.5*1.000,52.5*1.000*200.48 ,25.122000,25.122000*200.48 ,25.122000,25.122000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,52.5,52.5*200.48,52.5*1.000,52.5*1.000*200.48,'az24101456434,243000005 ',52.5,52.5*1.000,52.5,52.5*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.8219 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.8223 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20241016@095233.8257 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.8260 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1833.00.2'
20241016@095233.8309 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.8312 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1833.00.2' and sa.armazem = 133 
20241016@095233.8400 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.8402 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1833.00.2'
20241016@095233.8439 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1833.00.2'
20241016@095233.8599 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.8634 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.8647 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.8678 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.8691 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2301257100a'
20241016@095233.8729 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095233.8746 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.8779 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095233.8810 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f765075670f7ed1d5','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.8971 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.9009 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095233.9046 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f765075670f7ed1d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,75,75*200.48,75,75*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,75*1.000,75*1.000*200.48 ,33.760000,33.760000*200.48 ,33.760000,33.760000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,75,75*200.48,75*1.000,75*1.000*200.48,'az24101456455,177000006 ',75,75*1.000,75,75*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095233.9394 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.9414 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1834.00.1'
20241016@095233.9436 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.9439 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20241016@095233.9478 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.9481 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1834.00.1' and sa.armazem = 133 
20241016@095233.9654 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095233.9658 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1834.00.1'
20241016@095233.9778 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1834.00.1'
20241016@095233.9954 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095233.9994 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.2600 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.4200 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.1120 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1834.00.1' and lote = 'r2400214200a'
20241016@095234.1540 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095234.1820 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.1990 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.2970 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f788127670f7ed204','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.4650 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.5450 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.5850 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f788127670f7ed204',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,70000 ,60,60*200.48,60,60*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,60*1.000,60*1.000*200.48 ,28.440000,28.440000*200.48 ,28.440000,28.440000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,60,60*200.48,60*1.000,60*1.000*200.48,'az24101456475,038000007 ',60,60*1.000,60,60*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.8990 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.9250 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1871.00.4'
20241016@095234.9630 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.9660 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1871.00.4'
20241016@095234.1000 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.1003 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1871.00.4' and sa.armazem = 133 
20241016@095234.1225 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.1228 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1871.00.4'
20241016@095234.1270 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1871.00.4'
20241016@095234.1430 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.1466 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.1494 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.1513 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.1541 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1871.00.4' and lote = 'r2400125200a'
20241016@095234.1569 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095234.1585 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.1619 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.1645 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f763713670f7ed226','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.1810 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.1937 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.1979 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f763713670f7ed226',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,80000 ,0,0*200.48,0,0*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,0*1.000,0*1.000*200.48 ,39.478000,39.478000*200.48 ,39.478000,39.478000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,0,0*200.48,0*1.000,0*1.000*200.48,'az24101456490,878000008 ',0,0*1.000,0,0*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.2304 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.2308 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.1896.00.1'
20241016@095234.2346 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.2349 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1896.00.1'
20241016@095234.2389 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.2392 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1896.00.1' and sa.armazem = 133 
20241016@095234.2535 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.2539 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.1896.00.1'
20241016@095234.2584 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1896.00.1'
20241016@095234.2790 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.2808 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.2843 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.2879 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.2906 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.1896.00.1' and lote = 'r2101190100a'
20241016@095234.2946 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095234.2973 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.2994 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.3027 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f726546670f7ed248','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.3193 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.3233 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.3269 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f726546670f7ed248',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,90000 ,108.8,108.8*200.48,108.8,108.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,108.8*1.000,108.8*1.000*200.48 ,54.672000,54.672000*200.48 ,54.672000,54.672000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,108.8,108.8*200.48,108.8*1.000,108.8*1.000*200.48,'az24101456507,672000009 ',108.8,108.8*1.000,108.8,108.8*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.3582 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.3586 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20241016@095234.3601 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.3604 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.2330.00.1'
20241016@095234.3627 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.3630 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2330.00.1' and sa.armazem = 133 
20241016@095234.3696 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.3699 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.2330.00.1'
20241016@095234.3718 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20241016@095234.3831 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.3847 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.3860 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.3876 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.3885 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2100584800a'
20241016@095234.3899 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095234.3911 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.3927 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.3939 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f785851670f7ed25f','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.4071 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.4088 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.4104 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f785851670f7ed25f',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,100000 ,73.6,73.6*200.48,73.6,73.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,73.6*1.000,73.6*1.000*200.48 ,30.217000,30.217000*200.48 ,30.217000,30.217000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,73.6,73.6*200.48,73.6*1.000,73.6*1.000*200.48,'az24101456525,823000010 ',73.6,73.6*1.000,73.6,73.6*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.4349 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.4354 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20241016@095234.4368 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.4372 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.2335.00.1'
20241016@095234.4388 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.4391 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2335.00.1' and sa.armazem = 133 
20241016@095234.4451 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.4454 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.2335.00.1'
20241016@095234.4473 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2335.00.1'
20241016@095234.4589 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.4604 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.4617 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.4632 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.4734 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2100585500a'
20241016@095234.4984 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095234.5233 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.5487 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.5776 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f745628670f7ed27f','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.6022 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.6161 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.6491 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f745628670f7ed27f',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 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,83.2*1.000,83.2*1.000*200.48 ,34.058000,34.058000*200.48 ,34.058000,34.058000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*1.000,83.2*1.000*200.48,'az24101456538,138000011 ',83.2,83.2*1.000,83.2,83.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095234.7150 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.7201 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20241016@095234.7607 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.7611 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20241016@095234.8249 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.8252 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4990.00.1' and sa.armazem = 133 
20241016@095234.8337 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095234.8380 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20241016@095234.8583 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20241016@095234.9047 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.9090 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095234.9119 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.9135 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.9304 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20241016@095234.9382 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095234.9491 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095234.9744 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095234.9941 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f714805670f7ed2e7','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095235.1010 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.1210 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095235.1390 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f714805670f7ed2e7',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,120000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*2.000,28.8*2.000*200.48 ,12.265000,12.265000*200.48 ,12.265000,12.265000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*2.000,28.8*2.000*200.48,'az24101456549,902000012 ',28.8,28.8*2.000,28.8,28.8*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095235.6160 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.6570 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.644.00.01'
20241016@095235.9060 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.9480 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.644.00.01'
20241016@095235.1140 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.1144 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.644.00.01' and sa.armazem = 133 
20241016@095235.1315 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.1318 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.644.00.01'
20241016@095235.1337 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.644.00.01'
20241016@095235.1638 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.1788 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095235.2038 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.2290 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095235.2709 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.644.00.01' and lote = 'r2400749200a'
20241016@095235.2795 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095235.2813 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.2952 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095235.3053 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f740584670f7ed344','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095235.3463 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.3900 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095235.4191 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f740584670f7ed344',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,130000 ,76.8,76.8*200.48,76.8,76.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,76.8*1.000,76.8*1.000*200.48 ,26.104000,26.104000*200.48 ,26.104000,26.104000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,76.8,76.8*200.48,76.8*1.000,76.8*1.000*200.48,'az24101456570,058000013 ',76.8,76.8*1.000,76.8,76.8*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095235.4797 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.4805 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.648.00.01'
20241016@095235.5078 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.5082 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.648.00.01'
20241016@095235.5102 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.5161 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.648.00.01' and sa.armazem = 133 
20241016@095235.5676 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.5717 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.648.00.01'
20241016@095235.6255 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.648.00.01'
20241016@095235.6474 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.6496 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095235.6508 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.6529 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095235.6538 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.648.00.01' and lote = 'r2400750200a'
20241016@095235.6756 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095235.6769 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.7090 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095235.7298 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f779281670f7ed3a5','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095235.7617 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095235.7748 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095235.7878 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f779281670f7ed3a5',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,140000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*1.000,83.2*1.000*200.48 ,29.112000,29.112000*200.48 ,29.112000,29.112000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*1.000,83.2*1.000*200.48,'az24101456599,795000014 ',83.2,83.2*1.000,83.2,83.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095235.8292 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.8330 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.724.00.01'
20241016@095235.8346 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.8403 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.724.00.01'
20241016@095235.8693 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095235.8735 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.724.00.01' and sa.armazem = 133 
20241016@095236.2270 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.2690 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.724.00.01'
20241016@095236.3110 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.724.00.01'
20241016@095236.6620 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.7240 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095236.9100 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.1161 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095236.1326 bigoqnu6t7o5tts5jq029gkrvp Query : select sestamp valor from se where ref ='324.724.00.01' and lote = '11/18'
20241016@095236.1473 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20241016@095236.1600 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.1621 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20241016@095236.1678 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut670f746942670f7ed427','aut670f731649670f7ed0c5',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095236.1968 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.2158 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095236.2897 bigoqnu6t7o5tts5jq029gkrvp Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut670f746942670f7ed427',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 ,22.4,22.4*200.48,22.4,22.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,22.4*4.000,22.4*4.000*200.48 ,9.919000,9.919000*200.48 ,9.919000,9.919000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,22.4,22.4*200.48,22.4*4.000,22.4*4.000*200.48,'az24101456600,626000015 ',22.4,22.4*4.000,22.4,22.4*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut670f731649670f7ed0c5'
20241016@095236.3734 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.3856 bigoqnu6t7o5tts5jq029gkrvp Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20241016@095236.4289 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.4371 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.948.00.01'
20241016@095236.4864 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.4906 bigoqnu6t7o5tts5jq029gkrvp Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.948.00.01' and sa.armazem = 133 
20241016@095236.5139 bigoqnu6t7o5tts5jq029gkrvp Query : use flama_phc
20241016@095236.5181 bigoqnu6t7o5tts5jq029gkrvp Query : select st.stns valor from st where st.ref = '324.948.00.01'
20241016@095236.5512 bigoqnu6t7o5tts5jq029gkrvp Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20241016@095236.5882 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20241016@095236.6016 bigoqnu6t7o5tts5jq029gkrvp Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20241016@095236.6029 bigoqnu6t7o5tts5jq029gkrvp Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
