20240826@183629.1155 1cpini4n3bba7imhbikbm4gm1u INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240826@183629.1152 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405569 and bi.ref ='324.642.00.01' and bi.lordem =1
20240826@183629.1507 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1510 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183629.1544 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1547 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183629.1575 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1578 1cpini4n3bba7imhbikbm4gm1u 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')
20240826@183629.1604 1cpini4n3bba7imhbikbm4gm1u 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
20240826@183629.1637 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1642 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240826@183629.1670 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1672 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183629.1700 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1703 1cpini4n3bba7imhbikbm4gm1u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183629.1740 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1743 1cpini4n3bba7imhbikbm4gm1u Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda- braganÇa'
20240826@183629.1788 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.1790 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from td where ndoc = 39
20240826@183629.1803 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183629.1816 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.1832 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183629.1852 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.1867 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183629.1892 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.1907 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183629.1919 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183629.1990 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183629.2003 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.2026 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183629.2241 1cpini4n3bba7imhbikbm4gm1u Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb7457466ccbd1d2e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183629.2544 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.2564 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183629.2596 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183629.2608 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183629.2621 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183629.2633 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183629.2644 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183629.2656 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183629.2670 1cpini4n3bba7imhbikbm4gm1u Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb7457466ccbd1d2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183629.2945 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183629.2965 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.2983 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183629.3007 1cpini4n3bba7imhbikbm4gm1u Query : select 'normal' from dummy
20240826@183629.3022 1cpini4n3bba7imhbikbm4gm1u Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb7457466ccbd1d2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',492,101621,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183629.3329 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.3333 1cpini4n3bba7imhbikbm4gm1u Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240826@183629.3356 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240826@183629.3370 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.3387 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183629.3412 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.3427 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183629.3435 1cpini4n3bba7imhbikbm4gm1u Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183629.3446 1cpini4n3bba7imhbikbm4gm1u Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240826@183629.3459 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.3474 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183629.3485 1cpini4n3bba7imhbikbm4gm1u Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb7251066ccbd1d54','aut66ccb7457466ccbd1d2e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183629.3489 1cpini4n3bba7imhbikbm4gm1u Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.3505 1cpini4n3bba7imhbikbm4gm1u Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183629.3534 1cpini4n3bba7imhbikbm4gm1u Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb7251066ccbd1d54',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66ccb7457466ccbd1d2e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183629.3831 1cpini4n3bba7imhbikbm4gm1u Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb7457466ccbd1d2e','2405569','wait',39,'adm09112754980.682000002')
20240826@183629.4022 1cpini4n3bba7imhbikbm4gm1u Query : use flama_phc
20240826@183629.4026 1cpini4n3bba7imhbikbm4gm1u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183629.4059 1cpini4n3bba7imhbikbm4gm1u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1693';
20240826@183629.4087 1cpini4n3bba7imhbikbm4gm1u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1693';
20240826@183629.4125 1cpini4n3bba7imhbikbm4gm1u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1693';
20240826@183629.4148 1cpini4n3bba7imhbikbm4gm1u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1693';
20240826@183629.4647 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183629.4659 8sc0ua8c5jr3t67v3kiqu54mvt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183629.4712 8sc0ua8c5jr3t67v3kiqu54mvt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1694';
20240826@183629.4767 8sc0ua8c5jr3t67v3kiqu54mvt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1694';
20240826@183629.4816 8sc0ua8c5jr3t67v3kiqu54mvt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1694';
20240826@183629.4839 8sc0ua8c5jr3t67v3kiqu54mvt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1694';
20240826@183629.4886 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.4889 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183629.4949 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.4952 8sc0ua8c5jr3t67v3kiqu54mvt Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20240826@183629.5037 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240826@183629.5059 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405570 and bi.ref ='324.642.00.01' and bi.lordem =1
20240826@183629.5419 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240826@183629.5440 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405570 and bi.ref ='324.642.00.01' and bi.lordem =1
20240826@183629.5458 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5461 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183629.5491 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5494 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183629.5524 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5527 8sc0ua8c5jr3t67v3kiqu54mvt 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')
20240826@183629.5558 8sc0ua8c5jr3t67v3kiqu54mvt 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
20240826@183629.5594 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5597 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20240826@183629.5626 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5629 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183629.5659 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5662 8sc0ua8c5jr3t67v3kiqu54mvt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183629.5701 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5704 8sc0ua8c5jr3t67v3kiqu54mvt Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda-aveiro'
20240826@183629.5750 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.5752 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from td where ndoc = 39
20240826@183629.5898 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183629.5912 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.5929 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183629.5951 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.5966 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183629.5995 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.6010 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183629.6022 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183629.6092 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183629.6105 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.6121 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183629.6137 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb5496366ccbd1d93' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183629.6402 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.6422 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183629.6458 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183629.6470 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183629.6482 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183629.6493 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183629.6506 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183629.6519 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183629.6532 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb5496366ccbd1d93',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183629.6818 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183629.6840 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.6856 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183629.6880 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 'normal' from dummy
20240826@183629.6896 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb5496366ccbd1d93',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',493,101621,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183629.7244 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.7248 8sc0ua8c5jr3t67v3kiqu54mvt Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240826@183629.7271 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240826@183629.7288 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7305 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183629.7330 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7344 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183629.7354 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183629.7366 8sc0ua8c5jr3t67v3kiqu54mvt Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240826@183629.7379 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7394 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183629.7406 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb6863866ccbd1db4','aut66ccb5496366ccbd1d93' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183629.7417 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7431 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183629.7461 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb6863866ccbd1db4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66ccb5496366ccbd1d93' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183629.7752 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.7756 8sc0ua8c5jr3t67v3kiqu54mvt Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240826@183629.7778 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240826@183629.7795 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7813 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183629.7841 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7856 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183629.7864 8sc0ua8c5jr3t67v3kiqu54mvt Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183629.7876 8sc0ua8c5jr3t67v3kiqu54mvt Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240826@183629.7888 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7905 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183629.7916 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb8610266ccbd1dc0','aut66ccb5496366ccbd1d93' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183629.7921 8sc0ua8c5jr3t67v3kiqu54mvt Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183629.7938 8sc0ua8c5jr3t67v3kiqu54mvt Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183629.7968 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb8610266ccbd1dc0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66ccb5496366ccbd1d93' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240826@183629.8254 8sc0ua8c5jr3t67v3kiqu54mvt Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb5496366ccbd1d93','2405570','wait',39,'adm09112754980.682000002')
20240826@183629.8327 8sc0ua8c5jr3t67v3kiqu54mvt Query : use flama_phc
20240826@183629.8330 8sc0ua8c5jr3t67v3kiqu54mvt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183629.8360 8sc0ua8c5jr3t67v3kiqu54mvt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1694';
20240826@183629.8387 8sc0ua8c5jr3t67v3kiqu54mvt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1694';
20240826@183629.8424 8sc0ua8c5jr3t67v3kiqu54mvt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1694';
20240826@183629.8447 8sc0ua8c5jr3t67v3kiqu54mvt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1694';
20240826@183629.8952 gttf8o7an08ktnot5gt51ghclv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240826@183629.8963 gttf8o7an08ktnot5gt51ghclv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240826@183629.9015 gttf8o7an08ktnot5gt51ghclv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1695';
20240826@183629.9073 gttf8o7an08ktnot5gt51ghclv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1695';
20240826@183629.9122 gttf8o7an08ktnot5gt51ghclv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1695';
20240826@183629.9145 gttf8o7an08ktnot5gt51ghclv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1695';
20240826@183629.9189 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183629.9192 gttf8o7an08ktnot5gt51ghclv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240826@183629.9254 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183629.9257 gttf8o7an08ktnot5gt51ghclv Query : select no, estab,szadrsdesc from szadrs where u_coddest=2117
20240826@183629.9349 gttf8o7an08ktnot5gt51ghclv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240826@183629.9534 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405577 and bi.ref ='324.1824.00.1' and bi.lordem =1
20240826@183629.9930 gttf8o7an08ktnot5gt51ghclv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240826@183629.9951 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405577 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240826@183630.3900 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.3940 gttf8o7an08ktnot5gt51ghclv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240826@183630.4270 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.4300 gttf8o7an08ktnot5gt51ghclv Query : select top 1 1 valor from td where td.ndoc = 39
20240826@183630.4750 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.4780 gttf8o7an08ktnot5gt51ghclv 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')
20240826@183630.5290 gttf8o7an08ktnot5gt51ghclv 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
20240826@183630.5630 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.5660 gttf8o7an08ktnot5gt51ghclv Query : select top 1 ~inactivo valor from cl where no = '102420' and estab = 0 order by inactivo desc
20240826@183630.7070 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.7100 gttf8o7an08ktnot5gt51ghclv Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240826@183630.7400 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.7430 gttf8o7an08ktnot5gt51ghclv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240826@183630.7820 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.7840 gttf8o7an08ktnot5gt51ghclv Query : select szadrsstamp valor from szadrs where szadrsdesc='ri - eletrodomesticos lda'
20240826@183630.8310 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.8340 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from td where ndoc = 39
20240826@183630.8470 gttf8o7an08ktnot5gt51ghclv Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240826@183630.8630 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.8800 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183630.8990 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.9140 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183630.9430 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.9580 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183630.9710 gttf8o7an08ktnot5gt51ghclv Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183630.1039 gttf8o7an08ktnot5gt51ghclv Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240826@183630.1053 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.1068 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240826@183630.1083 gttf8o7an08ktnot5gt51ghclv Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66ccb2774666ccbd1e17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240826@183630.1274 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.1292 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240826@183630.1325 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240826@183630.1337 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240826@183630.1352 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240826@183630.1364 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240826@183630.1376 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240826@183630.1387 gttf8o7an08ktnot5gt51ghclv Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240826@183630.1399 gttf8o7an08ktnot5gt51ghclv Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66ccb2774666ccbd1e17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240826@183630.1659 gttf8o7an08ktnot5gt51ghclv Query : select top 1 fno valor from wsftdata order by fno desc
20240826@183630.1678 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.1695 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240826@183630.1718 gttf8o7an08ktnot5gt51ghclv Query : select 'normal' from dummy
20240826@183630.1733 gttf8o7an08ktnot5gt51ghclv Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66ccb2774666ccbd1e17',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',494,102420,0,'2024-08-26',39,'euro',0,0,2024 ,?,?)
20240826@183630.2069 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.2072 gttf8o7an08ktnot5gt51ghclv Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240826@183630.2095 gttf8o7an08ktnot5gt51ghclv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240826@183630.2267 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.2283 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.2310 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.2325 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.2333 gttf8o7an08ktnot5gt51ghclv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183630.2345 gttf8o7an08ktnot5gt51ghclv Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240826@183630.2358 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.2373 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.2384 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb7961666ccbd1e39','aut66ccb2774666ccbd1e17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183630.2388 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.2403 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.3750 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb7961666ccbd1e39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66ccb2774666ccbd1e17' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240826@183630.4042 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4060 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.4084 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4097 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.4105 gttf8o7an08ktnot5gt51ghclv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183630.4117 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4131 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.4141 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb2160066ccbd1e64','aut66ccb2774666ccbd1e17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183630.4145 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4160 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.4185 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb2160066ccbd1e64',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb2774666ccbd1e17' ,0,0 ,2,23.00,20000,?,?,?)
20240826@183630.4463 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.4466 gttf8o7an08ktnot5gt51ghclv Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240826@183630.4488 gttf8o7an08ktnot5gt51ghclv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240826@183630.4503 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4520 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.4545 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4561 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.4570 gttf8o7an08ktnot5gt51ghclv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183630.4582 gttf8o7an08ktnot5gt51ghclv Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240826@183630.4595 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4610 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.4622 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb4571766ccbd1e70','aut66ccb2774666ccbd1e17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183630.4626 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4640 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.4669 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66ccb4571766ccbd1e70',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66ccb2774666ccbd1e17' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240826@183630.4956 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.4973 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.4998 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.5013 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.5021 gttf8o7an08ktnot5gt51ghclv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240826@183630.5034 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.5048 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240826@183630.5060 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ccb4317566ccbd1e7a','aut66ccb2774666ccbd1e17' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240826@183630.5066 gttf8o7an08ktnot5gt51ghclv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240826@183630.5082 gttf8o7an08ktnot5gt51ghclv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240826@183630.5111 gttf8o7an08ktnot5gt51ghclv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66ccb4317566ccbd1e7a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66ccb2774666ccbd1e17' ,0,0 ,2,23.00,50000,?,?,?)
20240826@183630.5404 gttf8o7an08ktnot5gt51ghclv Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66ccb2774666ccbd1e17','2405577','wait',39,'adm09112754980.682000002')
20240826@183630.5479 gttf8o7an08ktnot5gt51ghclv Query : use flama_phc
20240826@183630.5483 gttf8o7an08ktnot5gt51ghclv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240826@183630.5513 gttf8o7an08ktnot5gt51ghclv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1695';
20240826@183630.5542 gttf8o7an08ktnot5gt51ghclv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1695';
20240826@183630.5583 gttf8o7an08ktnot5gt51ghclv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1695';
20240826@183630.5608 gttf8o7an08ktnot5gt51ghclv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1695';

20240828@074540.3834 bnen593m4i4quduuq9sf0sh9um Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1696';
20240828@074540.3960 bnen593m4i4quduuq9sf0sh9um Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1696';
20240828@074540.4013 bnen593m4i4quduuq9sf0sh9um Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1696';
20240828@074540.4105 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074540.4110 bnen593m4i4quduuq9sf0sh9um Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074540.4314 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074540.4345 bnen593m4i4quduuq9sf0sh9um Query : select no, estab,szadrsdesc from szadrs where u_coddest=2448
20240828@074540.4518 bnen593m4i4quduuq9sf0sh9um Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240828@074540.5898 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405560 and bi.ref ='304.421.00.04' and bi.lordem =1
20240828@074540.6428 bnen593m4i4quduuq9sf0sh9um 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'
20240828@074540.6669 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405560 and bi.ref ='324.1608.00.1' and bi.lordem =2
20240828@074540.7263 bnen593m4i4quduuq9sf0sh9um Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240828@074540.7476 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405560 and bi.ref ='324.5500.00.1' and bi.lordem =3
20240828@074540.7918 bnen593m4i4quduuq9sf0sh9um Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240828@074540.8295 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405560 and bi.ref ='324.4960.00.1' and bi.lordem =4
20240828@074540.9196 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074540.9237 bnen593m4i4quduuq9sf0sh9um Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074541.1130 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074541.1171 bnen593m4i4quduuq9sf0sh9um Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074541.1851 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074541.1858 bnen593m4i4quduuq9sf0sh9um 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')
20240828@074541.2189 bnen593m4i4quduuq9sf0sh9um 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
20240828@074541.2910 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074541.2953 bnen593m4i4quduuq9sf0sh9um Query : select top 1 ~inactivo valor from cl where no = '101889' and estab = 0 order by inactivo desc
20240828@074541.3575 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074541.3618 bnen593m4i4quduuq9sf0sh9um Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074541.3944 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074541.3986 bnen593m4i4quduuq9sf0sh9um Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074541.4524 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074541.4566 bnen593m4i4quduuq9sf0sh9um Query : select szadrsstamp valor from szadrs where szadrsdesc='cooplecnorte,crl'
20240828@074541.4914 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074541.4918 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from td where ndoc = 39
20240828@074541.5095 bnen593m4i4quduuq9sf0sh9um Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074541.5351 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074541.6388 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074541.6746 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074541.6778 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074541.7161 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074541.7378 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074541.7629 bnen593m4i4quduuq9sf0sh9um Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074541.8377 bnen593m4i4quduuq9sf0sh9um Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074541.8872 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074541.8892 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074541.9584 bnen593m4i4quduuq9sf0sh9um Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec4786866cec795ba' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074542.2412 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074542.2659 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074542.3337 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074542.3584 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074542.3912 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074542.4118 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074542.4538 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074542.4920 bnen593m4i4quduuq9sf0sh9um Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074542.5340 bnen593m4i4quduuq9sf0sh9um Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec4786866cec795ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074543.7490 bnen593m4i4quduuq9sf0sh9um Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074543.9450 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074543.1187 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074543.1650 bnen593m4i4quduuq9sf0sh9um Query : select 'normal' from dummy
20240828@074543.1826 bnen593m4i4quduuq9sf0sh9um Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec4786866cec795ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',495,101889,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074543.6456 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074543.6497 bnen593m4i4quduuq9sf0sh9um Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240828@074543.6912 bnen593m4i4quduuq9sf0sh9um Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240828@074543.7229 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074543.7487 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074543.7729 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074543.7985 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074543.8419 bnen593m4i4quduuq9sf0sh9um Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074543.8685 bnen593m4i4quduuq9sf0sh9um Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240828@074543.9346 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074543.9498 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074543.9514 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6935666cec797e4','aut66cec4786866cec795ba' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074543.9885 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074544.1370 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074544.3870 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6935666cec797e4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66cec4786866cec795ba' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074544.5591 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074544.5692 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074544.5736 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074544.6002 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074544.6019 bnen593m4i4quduuq9sf0sh9um Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074544.6277 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074544.6530 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074544.6739 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec4188566cec79899','aut66cec4786866cec795ba' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074544.6784 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074544.6855 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074544.7042 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec4188566cec79899',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec4786866cec795ba' ,0,0 ,2,23.00,20000,?,?,?)
20240828@074544.7666 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074544.7747 bnen593m4i4quduuq9sf0sh9um Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20240828@074544.8085 bnen593m4i4quduuq9sf0sh9um Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074544.9525 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074544.9664 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074544.9839 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.1960 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074545.3920 bnen593m4i4quduuq9sf0sh9um Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074545.6750 bnen593m4i4quduuq9sf0sh9um Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2100202100a'
20240828@074545.1083 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.1199 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074545.1213 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec3854166cec7991a','aut66cec4786866cec795ba' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074545.1220 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.1248 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074545.1624 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec3854166cec7991a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cec4786866cec795ba' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240828@074545.2382 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074545.2425 bnen593m4i4quduuq9sf0sh9um Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20240828@074545.2765 bnen593m4i4quduuq9sf0sh9um Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20240828@074545.3212 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.3326 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074545.3368 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.3645 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074545.3657 bnen593m4i4quduuq9sf0sh9um Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074545.3836 bnen593m4i4quduuq9sf0sh9um Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20240828@074545.4087 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.4343 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074545.4587 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec7211266cec79963','aut66cec4786866cec795ba' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074545.4593 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.4766 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074545.4839 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec7211266cec79963',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66cec4786866cec795ba' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240828@074545.5474 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074545.5478 bnen593m4i4quduuq9sf0sh9um Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240828@074545.5832 bnen593m4i4quduuq9sf0sh9um Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4960.00.1'
20240828@074545.6411 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.6533 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074545.6777 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.6890 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074545.7067 bnen593m4i4quduuq9sf0sh9um Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074545.7097 bnen593m4i4quduuq9sf0sh9um Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240828@074545.7407 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.7684 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074545.7895 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6449366cec799b4','aut66cec4786866cec795ba' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074545.7938 bnen593m4i4quduuq9sf0sh9um Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074545.7958 bnen593m4i4quduuq9sf0sh9um Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074545.8126 bnen593m4i4quduuq9sf0sh9um Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6449366cec799b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cec4786866cec795ba' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240828@074545.8652 bnen593m4i4quduuq9sf0sh9um Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec4786866cec795ba','2405560','wait',39,'adm09112754980.682000002')
20240828@074545.9209 bnen593m4i4quduuq9sf0sh9um Query : use flama_phc
20240828@074545.9251 bnen593m4i4quduuq9sf0sh9um Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074545.9510 bnen593m4i4quduuq9sf0sh9um Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1696';
20240828@074545.9669 bnen593m4i4quduuq9sf0sh9um Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1696';
20240828@074545.9796 bnen593m4i4quduuq9sf0sh9um Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1696';
20240828@074546.1200 bnen593m4i4quduuq9sf0sh9um Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1696';
20240828@074546.7740 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@074546.8610 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@074546.1017 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1697';
20240828@074546.1077 j2l1f4qhgg8qh5nt494mg2nnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1697';
20240828@074546.1129 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1697';
20240828@074546.1158 j2l1f4qhgg8qh5nt494mg2nnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1697';
20240828@074546.1208 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.1212 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074546.1290 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.1294 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240828@074546.1391 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8152.00.1'
20240828@074546.1557 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405571 and bi.ref ='327.8152.00.1' and bi.lordem =1
20240828@074546.1942 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8152.00.1'
20240828@074546.1966 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405571 and bi.ref ='327.8152.00.1' and bi.lordem =2
20240828@074546.2328 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2331 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074546.2370 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2375 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074546.2408 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2412 j2l1f4qhgg8qh5nt494mg2nnk9 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')
20240828@074546.2448 j2l1f4qhgg8qh5nt494mg2nnk9 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
20240828@074546.2491 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2494 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240828@074546.2752 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2756 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074546.2795 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2799 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074546.2877 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2890 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-plaza large formats rainha'
20240828@074546.2951 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.2955 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from td where ndoc = 39
20240828@074546.2973 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074546.2992 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.3013 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074546.3036 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.3055 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074546.3093 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.3112 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074546.3127 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074546.3203 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074546.3220 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.3240 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074546.3262 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec9343566cec79a4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074546.3480 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.3504 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074546.3553 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074546.3571 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074546.3588 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074546.3603 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074546.3618 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074546.3633 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074546.3649 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec9343566cec79a4c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074546.3946 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074546.3970 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.3990 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074546.4017 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 'normal' from dummy
20240828@074546.4035 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec9343566cec79a4c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',496,100810,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074546.4351 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.4355 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select st.usalote valor from st where st.ref = '327.8152.00.1'
20240828@074546.4383 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8152.00.1'
20240828@074546.4541 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.4561 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.4594 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.4624 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.4635 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074546.4649 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select sestamp valor from se where ref ='327.8152.00.1' and lote = 'r2400077200a'
20240828@074546.4675 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.4700 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.4717 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec3645466cec79a72','aut66cec9343566cec79a4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074546.4722 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.4741 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.4775 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec3645466cec79a72',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66cec9343566cec79a4c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074546.5070 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5090 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.5122 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5141 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.5152 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074546.5168 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5189 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.5205 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec0360966cec79a7e','aut66cec9343566cec79a4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074546.5211 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5301 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.5341 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec0360966cec79a7e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec9343566cec79a4c' ,0,0 ,2,23.00,20000,?,?,?)
20240828@074546.5632 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.5636 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select st.usalote valor from st where st.ref = '327.8152.00.1'
20240828@074546.5670 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '327.8152.00.1'
20240828@074546.5686 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5707 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.5738 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5755 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.5768 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074546.5785 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select sestamp valor from se where ref ='327.8152.00.1' and lote = 'r2400077200a'
20240828@074546.5802 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5824 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.5840 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6119966cec79a8d','aut66cec9343566cec79a4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074546.5846 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.5864 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.5901 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6119966cec79a8d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66cec9343566cec79a4c' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240828@074546.6419 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.6441 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.6471 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.6495 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.6506 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074546.6522 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.6540 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074546.6554 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec4655066cec79a9f','aut66cec9343566cec79a4c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074546.6560 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074546.6578 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074546.6613 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec4655066cec79a9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec9343566cec79a4c' ,0,0 ,2,23.00,50000,?,?,?)
20240828@074546.6909 j2l1f4qhgg8qh5nt494mg2nnk9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec9343566cec79a4c','2405571','wait',39,'adm09112754980.682000002')
20240828@074546.6987 j2l1f4qhgg8qh5nt494mg2nnk9 Query : use flama_phc
20240828@074546.6992 j2l1f4qhgg8qh5nt494mg2nnk9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074546.7031 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1697';
20240828@074546.7064 j2l1f4qhgg8qh5nt494mg2nnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1697';
20240828@074546.7106 j2l1f4qhgg8qh5nt494mg2nnk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1697';
20240828@074546.7134 j2l1f4qhgg8qh5nt494mg2nnk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1697';
20240828@074546.8035 cualok7csd0sppj20pvpckggsn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@074546.8048 cualok7csd0sppj20pvpckggsn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@074546.9493 cualok7csd0sppj20pvpckggsn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1698';
20240828@074546.9823 cualok7csd0sppj20pvpckggsn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1698';
20240828@074547.1650 cualok7csd0sppj20pvpckggsn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1698';
20240828@074547.3810 cualok7csd0sppj20pvpckggsn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1698';
20240828@074547.5560 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.5610 cualok7csd0sppj20pvpckggsn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074547.8840 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.9630 cualok7csd0sppj20pvpckggsn Query : select no, estab,szadrsdesc from szadrs where u_coddest=5546
20240828@074547.1403 cualok7csd0sppj20pvpckggsn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4020.00.1'
20240828@074547.1926 cualok7csd0sppj20pvpckggsn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405574 and bi.ref ='304.4020.00.1' and bi.lordem =1
20240828@074547.2772 cualok7csd0sppj20pvpckggsn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4020.00.1'
20240828@074547.2870 cualok7csd0sppj20pvpckggsn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405574 and bi.ref ='304.4020.00.1' and bi.lordem =1
20240828@074547.3080 cualok7csd0sppj20pvpckggsn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240828@074547.3675 cualok7csd0sppj20pvpckggsn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405574 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240828@074547.4335 cualok7csd0sppj20pvpckggsn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240828@074547.4361 cualok7csd0sppj20pvpckggsn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405574 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240828@074547.4394 cualok7csd0sppj20pvpckggsn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240828@074547.4675 cualok7csd0sppj20pvpckggsn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405574 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240828@074547.4808 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.4813 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074547.5249 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.5292 cualok7csd0sppj20pvpckggsn Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074547.5671 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.5713 cualok7csd0sppj20pvpckggsn 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')
20240828@074547.5934 cualok7csd0sppj20pvpckggsn 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
20240828@074547.6057 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.6061 cualok7csd0sppj20pvpckggsn Query : select top 1 ~inactivo valor from cl where no = '199506' and estab = 0 order by inactivo desc
20240828@074547.7592 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.7698 cualok7csd0sppj20pvpckggsn Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074547.8112 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.8154 cualok7csd0sppj20pvpckggsn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074547.8573 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.8615 cualok7csd0sppj20pvpckggsn Query : select szadrsstamp valor from szadrs where szadrsdesc='199506 - itmp alimentar, s.a.'
20240828@074547.8889 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074547.8931 cualok7csd0sppj20pvpckggsn Query : select 1 valor from td where ndoc = 39
20240828@074547.8996 cualok7csd0sppj20pvpckggsn Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074547.9128 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074547.9382 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074547.9782 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074547.9842 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074547.9973 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.1770 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074548.3120 cualok7csd0sppj20pvpckggsn Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074548.6660 cualok7csd0sppj20pvpckggsn Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074548.9150 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.1169 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074548.1236 cualok7csd0sppj20pvpckggsn Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074548.1576 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.1686 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074548.2027 cualok7csd0sppj20pvpckggsn Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074548.2236 cualok7csd0sppj20pvpckggsn Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074548.2443 cualok7csd0sppj20pvpckggsn Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074548.2653 cualok7csd0sppj20pvpckggsn Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074548.2746 cualok7csd0sppj20pvpckggsn Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074548.2802 cualok7csd0sppj20pvpckggsn Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074548.2904 cualok7csd0sppj20pvpckggsn Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec2943166cec79c07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074548.3373 cualok7csd0sppj20pvpckggsn Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074548.3441 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.3574 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074548.4030 cualok7csd0sppj20pvpckggsn Query : select 'normal' from dummy
20240828@074548.4242 cualok7csd0sppj20pvpckggsn Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec2943166cec79c07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',497,199506,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074548.5714 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074548.5800 cualok7csd0sppj20pvpckggsn Query : select st.usalote valor from st where st.ref = '304.4020.00.1'
20240828@074548.6027 cualok7csd0sppj20pvpckggsn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4020.00.1'
20240828@074548.6563 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.6820 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074548.7058 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.7166 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074548.7176 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074548.7196 cualok7csd0sppj20pvpckggsn Query : select sestamp valor from se where ref ='304.4020.00.1' and lote = '240409'
20240828@074548.7455 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.7478 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074548.7609 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec9635466cec79cb6','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074548.7653 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.7908 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074548.8473 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec9635466cec79cb6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074548.8998 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074548.9040 cualok7csd0sppj20pvpckggsn Query : select st.usalote valor from st where st.ref = '304.4020.00.1'
20240828@074548.9196 cualok7csd0sppj20pvpckggsn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4020.00.1'
20240828@074548.9444 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074548.9699 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074549.3600 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.1890 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074549.2020 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074549.2180 cualok7csd0sppj20pvpckggsn Query : select sestamp valor from se where ref ='304.4020.00.1' and lote = '240409'
20240828@074549.2450 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.5250 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074549.5410 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2431966cec79d05','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074549.5460 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.8000 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074549.1400 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec2431966cec79d05',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240828@074549.1914 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074549.1956 cualok7csd0sppj20pvpckggsn Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240828@074549.2113 cualok7csd0sppj20pvpckggsn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240828@074549.2634 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.2890 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074549.3521 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.3553 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074549.3645 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074549.3833 cualok7csd0sppj20pvpckggsn Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240828@074549.3850 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.4269 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074549.4655 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec4084166cec79d5d','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074549.4741 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.5011 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074549.5176 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec4084166cec79d5d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',10.000 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240828@074549.5729 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.5745 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074549.6237 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.6489 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074549.6501 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074549.6554 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.6650 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074549.6663 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec5923766cec79da0','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074549.6668 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.6763 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074549.7028 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec5923766cec79da0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,40000,?,?,?)
20240828@074549.8101 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074549.8389 cualok7csd0sppj20pvpckggsn Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240828@074549.8939 cualok7csd0sppj20pvpckggsn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240828@074549.8952 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.8973 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074549.9226 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074549.9467 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074549.9633 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074550.7200 cualok7csd0sppj20pvpckggsn Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240828@074550.3260 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.6460 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074550.9110 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec7044766cec79e07','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074550.9990 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.1158 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074550.2005 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec7044766cec79e07',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240828@074550.2448 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.2696 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074550.2723 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.3008 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074550.3173 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074550.3420 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.3473 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074550.3602 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec0518666cec79e53','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074550.3606 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.3621 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074550.3883 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec0518666cec79e53',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,70000,?,?,?)
20240828@074550.4503 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074550.4544 cualok7csd0sppj20pvpckggsn Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20240828@074550.4882 cualok7csd0sppj20pvpckggsn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20240828@074550.4905 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.5047 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074550.5078 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.5172 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074550.5338 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074550.5783 cualok7csd0sppj20pvpckggsn Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2301210200a'
20240828@074550.6032 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.6284 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074550.6636 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec1945266cec79e93','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074550.6720 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.6863 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074550.6898 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec1945266cec79e93',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240828@074550.7669 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.7922 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074550.8273 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.8412 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074550.8421 cualok7csd0sppj20pvpckggsn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074550.8433 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.8449 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074550.8466 cualok7csd0sppj20pvpckggsn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2281466cec79ecd','aut66cec2943166cec79c07' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074550.8470 cualok7csd0sppj20pvpckggsn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074550.8485 cualok7csd0sppj20pvpckggsn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074550.8742 cualok7csd0sppj20pvpckggsn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec2281466cec79ecd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec2943166cec79c07' ,0,0 ,2,23.00,100000,?,?,?)
20240828@074550.9308 cualok7csd0sppj20pvpckggsn Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec2943166cec79c07','2405574','wait',39,'adm09112754980.682000002')
20240828@074550.9855 cualok7csd0sppj20pvpckggsn Query : use flama_phc
20240828@074550.9858 cualok7csd0sppj20pvpckggsn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074550.9894 cualok7csd0sppj20pvpckggsn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1698';
20240828@074551.1460 cualok7csd0sppj20pvpckggsn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1698';
20240828@074551.1594 cualok7csd0sppj20pvpckggsn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1698';
20240828@074551.1760 cualok7csd0sppj20pvpckggsn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1698';
20240828@074551.2274 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@074551.2288 i7rhmldvoqdrfcs6ute4rjejrl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@074551.2340 i7rhmldvoqdrfcs6ute4rjejrl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1699';
20240828@074551.2395 i7rhmldvoqdrfcs6ute4rjejrl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1699';
20240828@074551.2443 i7rhmldvoqdrfcs6ute4rjejrl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1699';
20240828@074551.2465 i7rhmldvoqdrfcs6ute4rjejrl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1699';
20240828@074551.2514 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.2517 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074551.2645 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.2648 i7rhmldvoqdrfcs6ute4rjejrl Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20240828@074551.2732 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240828@074551.2892 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405575 and bi.ref ='304.422.00.07' and bi.lordem =1
20240828@074551.3238 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240828@074551.3443 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405575 and bi.ref ='304.421.00.04' and bi.lordem =2
20240828@074551.3793 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240828@074551.3822 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405575 and bi.ref ='304.421.00.04' and bi.lordem =2
20240828@074551.3843 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240828@074551.4007 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405575 and bi.ref ='324.4521.00.1' and bi.lordem =3
20240828@074551.4419 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1528.00.1'
20240828@074551.4660 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405575 and bi.ref ='324.1528.00.1' and bi.lordem =4
20240828@074551.5014 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240828@074551.5037 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405575 and bi.ref ='324.4960.00.1' and bi.lordem =5
20240828@074551.5376 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.5380 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074551.5429 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.5433 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074551.5510 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.5560 i7rhmldvoqdrfcs6ute4rjejrl 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')
20240828@074551.5681 i7rhmldvoqdrfcs6ute4rjejrl 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
20240828@074551.5794 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.5822 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 ~inactivo valor from cl where no = '101900' and estab = 0 order by inactivo desc
20240828@074551.6017 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.6021 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074551.6090 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.6095 i7rhmldvoqdrfcs6ute4rjejrl Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074551.6141 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.6144 i7rhmldvoqdrfcs6ute4rjejrl Query : select szadrsstamp valor from szadrs where szadrsdesc='101900 - pd - alfena n/p'
20240828@074551.6236 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.6254 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from td where ndoc = 39
20240828@074551.6480 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074551.6497 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.6512 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074551.6530 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.6545 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074551.6585 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.6598 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074551.6612 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074551.6689 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074551.6702 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.6719 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074551.6733 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074551.6933 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.6952 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074551.6987 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074551.6999 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074551.7014 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074551.7025 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074551.7036 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074551.7051 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074551.7062 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec5097266cec79fa1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074551.7341 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074551.7364 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.7380 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074551.7404 i7rhmldvoqdrfcs6ute4rjejrl Query : select 'normal' from dummy
20240828@074551.7419 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec5097266cec79fa1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',498,101900,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074551.7800 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.7803 i7rhmldvoqdrfcs6ute4rjejrl Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20240828@074551.7830 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.422.00.07'
20240828@074551.7983 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.7998 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.8022 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.8037 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.8046 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074551.8057 i7rhmldvoqdrfcs6ute4rjejrl Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '240647'
20240828@074551.8078 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.8094 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.8105 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec9457766cec79fc5','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074551.8109 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.8125 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.8152 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec9457766cec79fc5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074551.8440 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.8444 i7rhmldvoqdrfcs6ute4rjejrl Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240828@074551.8463 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240828@074551.8476 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.8491 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.8517 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.8533 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.8541 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074551.8552 i7rhmldvoqdrfcs6ute4rjejrl Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240828@074551.8632 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.8653 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.8665 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec5717766cec79fd2','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074551.8669 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.8694 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.8723 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec5717766cec79fd2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240828@074551.9060 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9077 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.9103 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9118 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.9126 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074551.9138 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9153 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.9164 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec9210266cec79fdf','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074551.9168 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9183 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.9216 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec9210266cec79fdf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,30000,?,?,?)
20240828@074551.9475 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074551.9478 i7rhmldvoqdrfcs6ute4rjejrl Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240828@074551.9498 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20240828@074551.9512 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9528 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.9555 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9573 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.9582 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074551.9595 i7rhmldvoqdrfcs6ute4rjejrl Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240828@074551.9608 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9622 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074551.9634 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6503966cec79fea','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074551.9638 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9653 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.9682 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6503966cec79fea',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240828@074551.9948 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074551.9968 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074551.9996 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.2800 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.3700 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074552.5000 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.6400 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.7500 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec7029066cec7a001','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074552.7900 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.9300 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074552.1200 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec7029066cec7a001',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,60000,?,?,?)
20240828@074552.3670 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074552.3700 i7rhmldvoqdrfcs6ute4rjejrl Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240828@074552.3900 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4521.00.1'
20240828@074552.5390 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.5550 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074552.5790 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.5930 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.6010 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074552.6130 i7rhmldvoqdrfcs6ute4rjejrl Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240828@074552.6360 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.6500 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.6620 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec4681266cec7a00f','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074552.6660 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.6920 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074552.7190 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec4681266cec7a00f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240828@074552.9990 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074552.1002 i7rhmldvoqdrfcs6ute4rjejrl Query : select st.usalote valor from st where st.ref = '324.1528.00.1'
20240828@074552.1029 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1528.00.1'
20240828@074552.1182 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1199 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074552.1227 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1305 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.1314 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074552.1331 i7rhmldvoqdrfcs6ute4rjejrl Query : select sestamp valor from se where ref ='324.1528.00.1' and lote = 'r2200263100a'
20240828@074552.1351 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1368 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.1379 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6229766cec7a020','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074552.1383 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1459 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074552.1511 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6229766cec7a020',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240828@074552.1773 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074552.1776 i7rhmldvoqdrfcs6ute4rjejrl Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20240828@074552.1795 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4960.00.1'
20240828@074552.1809 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1824 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074552.1848 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1862 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.1871 i7rhmldvoqdrfcs6ute4rjejrl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074552.1883 i7rhmldvoqdrfcs6ute4rjejrl Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20240828@074552.1895 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1909 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074552.1921 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec8992466cec7a02e','aut66cec5097266cec79fa1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074552.1925 i7rhmldvoqdrfcs6ute4rjejrl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074552.1940 i7rhmldvoqdrfcs6ute4rjejrl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074552.1967 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec8992466cec7a02e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec5097266cec79fa1' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240828@074552.2219 i7rhmldvoqdrfcs6ute4rjejrl Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec5097266cec79fa1','2405575','wait',39,'adm09112754980.682000002')
20240828@074552.2306 i7rhmldvoqdrfcs6ute4rjejrl Query : use flama_phc
20240828@074552.2309 i7rhmldvoqdrfcs6ute4rjejrl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074552.2343 i7rhmldvoqdrfcs6ute4rjejrl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1699';
20240828@074552.2370 i7rhmldvoqdrfcs6ute4rjejrl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1699';
20240828@074552.2406 i7rhmldvoqdrfcs6ute4rjejrl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1699';
20240828@074552.2429 i7rhmldvoqdrfcs6ute4rjejrl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1699';
20240828@074552.3012 6bco8j43hm9f2uvim64gu4s06t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@074552.3023 6bco8j43hm9f2uvim64gu4s06t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@074552.3072 6bco8j43hm9f2uvim64gu4s06t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1700';
20240828@074552.3124 6bco8j43hm9f2uvim64gu4s06t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1700';
20240828@074552.3176 6bco8j43hm9f2uvim64gu4s06t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1700';
20240828@074552.3202 6bco8j43hm9f2uvim64gu4s06t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1700';
20240828@074552.3248 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074552.3252 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074552.3313 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074552.3316 6bco8j43hm9f2uvim64gu4s06t Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20240828@074552.3403 6bco8j43hm9f2uvim64gu4s06t 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'
20240828@074552.3557 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.4990.00.1' and bi.lordem =2
20240828@074552.3880 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240828@074552.3900 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.5500.00.1' and bi.lordem =3
20240828@074552.4562 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240828@074552.5378 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.1684.00.1' and bi.lordem =4
20240828@074552.5716 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240828@074552.5863 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.5342.00.1' and bi.lordem =6
20240828@074552.6176 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20240828@074552.6328 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.1675.00.2' and bi.lordem =8
20240828@074552.6654 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1675.3015'
20240828@074552.6805 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='325.1675.3015' and bi.lordem =10
20240828@074552.7181 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20240828@074552.7342 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.1685.00.1' and bi.lordem =11
20240828@074552.7802 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240828@074552.7971 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.1690.00.1' and bi.lordem =13
20240828@074552.8323 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240828@074552.8345 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.1690.00.1' and bi.lordem =13
20240828@074552.8365 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5347.00.1'
20240828@074552.8550 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.5347.00.1' and bi.lordem =14
20240828@074552.8894 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240828@074552.9057 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.642.00.01' and bi.lordem =15
20240828@074552.9392 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240828@074552.9413 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.642.00.01' and bi.lordem =15
20240828@074552.9429 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5343.00.1'
20240828@074552.9615 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.5343.00.1' and bi.lordem =16
20240828@074552.9959 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1221.00.1'
20240828@074553.5020 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.1221.00.1' and bi.lordem =18
20240828@074553.8530 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1405.00.1'
20240828@074553.1031 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.1405.00.1' and bi.lordem =20
20240828@074553.1378 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4421.00.1'
20240828@074553.1545 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.4421.00.1' and bi.lordem =22
20240828@074553.1932 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4906.00.1'
20240828@074553.2127 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.4906.00.1' and bi.lordem =24
20240828@074553.2477 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240828@074553.2649 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405578 and bi.ref ='324.4970.00.1' and bi.lordem =25
20240828@074553.2980 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.2983 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074553.3053 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.3056 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074553.3106 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.3110 6bco8j43hm9f2uvim64gu4s06t 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')
20240828@074553.3140 6bco8j43hm9f2uvim64gu4s06t 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
20240828@074553.3180 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.3183 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 ~inactivo valor from cl where no = '100327' and estab = 0 order by inactivo desc
20240828@074553.3311 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.3314 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074553.3343 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.3346 6bco8j43hm9f2uvim64gu4s06t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074553.3385 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.3388 6bco8j43hm9f2uvim64gu4s06t Query : select szadrsstamp valor from szadrs where szadrsdesc='discoteca juvenil, lda.'
20240828@074553.3436 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.3439 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from td where ndoc = 39
20240828@074553.3461 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074553.3475 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.3491 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074553.3527 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.3543 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074553.3570 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.3584 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074553.3596 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074553.3664 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074553.3677 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.3691 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074553.3706 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074553.3888 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.3905 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074553.3938 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074553.3951 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074553.3962 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074553.3973 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074553.3984 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074553.3995 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074553.4007 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec5266566cec7a157',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074553.4262 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074553.4281 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.4297 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074553.4320 6bco8j43hm9f2uvim64gu4s06t Query : select 'normal' from dummy
20240828@074553.4335 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec5266566cec7a157',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',499,100327,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074553.4633 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.4636 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20240828@074553.4658 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074553.4810 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.4825 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.4849 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.4863 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.4871 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.4883 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20240828@074553.4896 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.4910 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.4921 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec7374466cec7a177','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.4926 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.4941 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.4968 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec7374466cec7a177',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',14.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074553.5232 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.5236 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20240828@074553.5256 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20240828@074553.5275 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.5292 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.5316 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.5330 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.5339 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.5350 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20240828@074553.5362 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.5378 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.5389 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6432266cec7a182','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.5393 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.5408 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.5458 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6432266cec7a182',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240828@074553.5726 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.5729 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240828@074553.5754 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1684.00.1'
20240828@074553.5909 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.5926 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.5953 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.5967 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.5976 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.5988 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240828@074553.6001 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6015 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.6026 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec9121166cec7a192','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.6030 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6044 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.6070 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec9121166cec7a192',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240828@074553.6328 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.6331 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20240828@074553.6351 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5342.00.1'
20240828@074553.6500 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6516 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.6540 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6554 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.6562 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.6573 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2301282200a'
20240828@074553.6587 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6602 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.6614 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6340666cec7a1a0','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.6618 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6633 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.6659 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6340666cec7a1a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240828@074553.6945 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6961 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.6985 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.6999 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.7007 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.7018 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.7032 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.7061 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2562366cec7a1ab','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.7065 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.7079 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.7106 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec2562366cec7a1ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,50000,?,?,?)
20240828@074553.7366 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.7369 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20240828@074553.7389 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20240828@074553.7543 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.7559 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.7584 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.7598 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.7606 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.7618 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2200299200a'
20240828@074553.7639 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.7653 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.7665 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec0257966cec7a1ba','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.7670 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.7684 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.7711 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec0257966cec7a1ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240828@074553.8028 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.8032 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '325.1675.3015'
20240828@074553.8052 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '325.1675.3015'
20240828@074553.8322 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.8339 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.8363 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.8377 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.8385 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.8397 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='325.1675.3015' and lote = '801'
20240828@074553.8429 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.8444 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.8456 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec5368766cec7a1cd','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.8460 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.8475 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.8503 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec5368766cec7a1cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240828@074553.8775 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.8778 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240828@074553.8799 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1685.00.1'
20240828@074553.8962 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.8979 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.9005 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.9021 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.9029 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.9064 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240828@074553.9081 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.9102 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.9116 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6873266cec7a1dd','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.9121 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.9139 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.9171 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6873266cec7a1dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,90000,?,?,?,?,?)
20240828@074553.9549 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074553.9553 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240828@074553.9576 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1690.00.1'
20240828@074553.9792 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.9811 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.9838 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.9856 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.9866 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074553.9880 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240828@074553.9895 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.9913 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074553.9926 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2992666cec7a1f1','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074553.9931 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074553.9949 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074553.9983 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec2992666cec7a1f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240828@074554.4510 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4700 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.4980 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.5140 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.5220 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.5350 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.5510 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.5640 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2595666cec7a20d','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.5690 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.5870 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.6180 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec2595666cec7a20d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,110000,?,?,?)
20240828@074554.9520 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.9550 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240828@074554.9760 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1690.00.1'
20240828@074554.9900 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1007 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.1034 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1054 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.1063 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.1075 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240828@074554.1088 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1103 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.1115 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec1733666cec7a21a','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.1119 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1153 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.1180 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec1733666cec7a21a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',7.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240828@074554.1453 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1469 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.1495 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1510 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.1518 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.1530 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1545 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.1557 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2757766cec7a225','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.1560 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.1574 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.1601 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec2757766cec7a225',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,140000,?,?,?)
20240828@074554.1942 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.1945 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.5347.00.1'
20240828@074554.1965 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5347.00.1'
20240828@074554.2123 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2141 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.2165 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2181 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.2189 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.2200 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.5347.00.1' and lote = 'r2300915100a'
20240828@074554.2324 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2341 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.2353 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec5226566cec7a238','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.2357 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2374 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.2413 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec5226566cec7a238',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240828@074554.2723 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2740 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.2789 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2804 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.2831 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.2843 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2859 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.2884 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec0767866cec7a245','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.2892 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.2921 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.2950 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec0767866cec7a245',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,170000,?,?,?)
20240828@074554.3232 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.3244 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240828@074554.3266 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240828@074554.3427 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.3443 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.3469 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.3483 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.3491 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.3505 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240828@074554.3602 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.3618 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.3634 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec0941866cec7a257','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.3638 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.3653 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.3702 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec0941866cec7a257',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240828@074554.3982 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.3993 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.642.00.01'
20240828@074554.4013 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.642.00.01'
20240828@074554.4026 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4041 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.4064 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4078 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.4086 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.4098 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.642.00.01' and lote = 'r2100892200a'
20240828@074554.4109 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4126 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.4138 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec3538566cec7a264','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.4141 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4177 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.4204 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec3538566cec7a264',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,200000,?,?,?,?,?)
20240828@074554.4464 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.4468 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20240828@074554.4488 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20240828@074554.4633 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4649 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.4673 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4687 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.4695 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.4707 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2300915100a'
20240828@074554.4719 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4733 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.4744 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec8666366cec7a273','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.4748 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.4761 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.4789 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec8666366cec7a273',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',48.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,210000,?,?,?,?,?)
20240828@074554.5080 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.5096 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.5120 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.5134 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.5144 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.5155 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.5169 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.5181 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec1571366cec7a27d','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.5185 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.5198 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.5225 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec1571366cec7a27d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,220000,?,?,?)
20240828@074554.5623 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.5666 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.1221.00.1'
20240828@074554.5948 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1221.00.1'
20240828@074554.6842 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.6974 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.6998 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7012 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.7020 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.7032 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.1221.00.1' and lote = 'r2101229200a'
20240828@074554.7052 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7067 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.7078 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec7140066cec7a2ac','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.7082 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7095 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.7120 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec7140066cec7a2ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,240000,?,?,?,?,?)
20240828@074554.7383 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7398 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.7444 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7457 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.7465 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.7478 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7494 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.7504 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec8371366cec7a2b6','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.7509 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7522 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.7547 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec8371366cec7a2b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,250000,?,?,?)
20240828@074554.7807 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.7810 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.1405.00.1'
20240828@074554.7832 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1405.00.1'
20240828@074554.7981 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.7996 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.8095 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.8110 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.8119 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.8130 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.1405.00.1' and lote = 'r2100212200a'
20240828@074554.8150 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.8164 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.8175 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec8771666cec7a2c6','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.8180 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.8275 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.9373 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec8771666cec7a2c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,270000,?,?,?,?,?)
20240828@074554.9632 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074554.9635 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20240828@074554.9656 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4421.00.1'
20240828@074554.9829 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.9845 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074554.9870 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.9885 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.9893 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074554.9905 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2100324100a'
20240828@074554.9930 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.9944 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074554.9955 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6649066cec7a2f2','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074554.9959 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074554.9974 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074555.4000 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6649066cec7a2f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,280000,?,?,?,?,?)
20240828@074555.3130 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074555.3170 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20240828@074555.3860 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4906.00.1'
20240828@074555.5510 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.5660 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074555.5900 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.6040 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074555.6120 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074555.6230 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20240828@074555.6430 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.6570 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074555.6680 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec4733266cec7a30f','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074555.6720 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.6860 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074555.7140 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec4733266cec7a30f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,290000,?,?,?,?,?)
20240828@074555.9840 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1000 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074555.1025 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1039 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074555.1047 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074555.1058 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1073 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074555.1084 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec4986066cec7a319','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074555.1088 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1161 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074555.1191 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec4986066cec7a319',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,300000,?,?,?)
20240828@074555.1450 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074555.1453 6bco8j43hm9f2uvim64gu4s06t Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240828@074555.1477 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240828@074555.1635 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1650 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074555.1677 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1691 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074555.1700 6bco8j43hm9f2uvim64gu4s06t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074555.1711 6bco8j43hm9f2uvim64gu4s06t Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240828@074555.1730 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1744 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074555.1755 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec9718166cec7a32a','aut66cec5266566cec7a157' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074555.1758 6bco8j43hm9f2uvim64gu4s06t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.1772 6bco8j43hm9f2uvim64gu4s06t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074555.1798 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec9718166cec7a32a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec5266566cec7a157' ,0,0 ,2,23.00,320000,?,?,?,?,?)
20240828@074555.2053 6bco8j43hm9f2uvim64gu4s06t Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec5266566cec7a157','2405578','wait',39,'adm09112754980.682000002')
20240828@074555.2120 6bco8j43hm9f2uvim64gu4s06t Query : use flama_phc
20240828@074555.2123 6bco8j43hm9f2uvim64gu4s06t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074555.2156 6bco8j43hm9f2uvim64gu4s06t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1700';
20240828@074555.2182 6bco8j43hm9f2uvim64gu4s06t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1700';
20240828@074555.2220 6bco8j43hm9f2uvim64gu4s06t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1700';
20240828@074555.2242 6bco8j43hm9f2uvim64gu4s06t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1700';
20240828@074555.3085 lvro546fdk4rit1ap6e1j73iid Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@074555.3101 lvro546fdk4rit1ap6e1j73iid Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@074555.3198 lvro546fdk4rit1ap6e1j73iid Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1701';
20240828@074555.3250 lvro546fdk4rit1ap6e1j73iid Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1701';
20240828@074555.3297 lvro546fdk4rit1ap6e1j73iid Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1701';
20240828@074555.3320 lvro546fdk4rit1ap6e1j73iid Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1701';
20240828@074555.3371 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.3374 lvro546fdk4rit1ap6e1j73iid Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074555.3434 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.3437 lvro546fdk4rit1ap6e1j73iid Query : select no, estab,szadrsdesc from szadrs where u_coddest=2915
20240828@074555.3524 lvro546fdk4rit1ap6e1j73iid Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240828@074555.3737 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405581 and bi.ref ='324.670.00.01' and bi.lordem =1
20240828@074555.4062 lvro546fdk4rit1ap6e1j73iid Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240828@074555.4082 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405581 and bi.ref ='324.670.00.01' and bi.lordem =1
20240828@074555.4098 lvro546fdk4rit1ap6e1j73iid Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.670.00.01'
20240828@074555.4116 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405581 and bi.ref ='324.670.00.01' and bi.lordem =1
20240828@074555.4134 lvro546fdk4rit1ap6e1j73iid Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240828@074555.4375 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405581 and bi.ref ='324.958.00.01' and bi.lordem =2
20240828@074555.4773 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.4777 lvro546fdk4rit1ap6e1j73iid Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074555.4933 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.4940 lvro546fdk4rit1ap6e1j73iid Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074555.5063 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.5067 lvro546fdk4rit1ap6e1j73iid 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')
20240828@074555.5175 lvro546fdk4rit1ap6e1j73iid 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
20240828@074555.5258 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.5265 lvro546fdk4rit1ap6e1j73iid Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240828@074555.5456 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.5465 lvro546fdk4rit1ap6e1j73iid Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074555.5660 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.5666 lvro546fdk4rit1ap6e1j73iid Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074555.5767 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.5829 lvro546fdk4rit1ap6e1j73iid Query : select szadrsstamp valor from szadrs where szadrsdesc='vitoriadis, s.l.'
20240828@074555.6098 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074555.6140 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from td where ndoc = 39
20240828@074555.7457 lvro546fdk4rit1ap6e1j73iid Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074555.7673 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.7846 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074555.8146 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.8290 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074555.8800 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.8946 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074555.9132 lvro546fdk4rit1ap6e1j73iid Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074555.9406 lvro546fdk4rit1ap6e1j73iid Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074555.9637 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074555.9889 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074556.1490 lvro546fdk4rit1ap6e1j73iid Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec3185766cec7a3de' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074556.4470 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.7190 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074556.1671 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074556.1685 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074556.1696 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074556.1708 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074556.1720 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074556.1731 lvro546fdk4rit1ap6e1j73iid Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074556.1742 lvro546fdk4rit1ap6e1j73iid Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec3185766cec7a3de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074556.2015 lvro546fdk4rit1ap6e1j73iid Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074556.2035 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.2051 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074556.2072 lvro546fdk4rit1ap6e1j73iid Query : select 'normal' from dummy
20240828@074556.2087 lvro546fdk4rit1ap6e1j73iid Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec3185766cec7a3de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',500,200500,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074556.2368 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074556.2371 lvro546fdk4rit1ap6e1j73iid Query : select st.usalote valor from st where st.ref = '324.670.00.01'
20240828@074556.2393 lvro546fdk4rit1ap6e1j73iid Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.670.00.01'
20240828@074556.2535 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.2550 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.2586 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.2600 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.2608 lvro546fdk4rit1ap6e1j73iid Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074556.2620 lvro546fdk4rit1ap6e1j73iid Query : select sestamp valor from se where ref ='324.670.00.01' and lote = 'r2300533200a'
20240828@074556.2641 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.2655 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.2677 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec0005966cec7a440','aut66cec3185766cec7a3de' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074556.2681 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.2695 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.2721 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec0005966cec7a440',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66cec3185766cec7a3de' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074556.2969 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074556.2973 lvro546fdk4rit1ap6e1j73iid Query : select st.usalote valor from st where st.ref = '324.670.00.01'
20240828@074556.2993 lvro546fdk4rit1ap6e1j73iid Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.670.00.01'
20240828@074556.3006 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3022 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.3048 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3064 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.3072 lvro546fdk4rit1ap6e1j73iid Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074556.3085 lvro546fdk4rit1ap6e1j73iid Query : select sestamp valor from se where ref ='324.670.00.01' and lote = 'r2300533200a'
20240828@074556.3098 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3112 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.3123 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2454166cec7a44b','aut66cec3185766cec7a3de' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074556.3128 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3145 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.3173 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec2454166cec7a44b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec3185766cec7a3de' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240828@074556.3430 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074556.3433 lvro546fdk4rit1ap6e1j73iid Query : select st.usalote valor from st where st.ref = '324.670.00.01'
20240828@074556.3453 lvro546fdk4rit1ap6e1j73iid Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.670.00.01'
20240828@074556.3466 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3481 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.3506 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3520 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.3528 lvro546fdk4rit1ap6e1j73iid Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074556.3540 lvro546fdk4rit1ap6e1j73iid Query : select sestamp valor from se where ref ='324.670.00.01' and lote = 'r2300533200a'
20240828@074556.3552 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3567 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.3580 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec2440766cec7a456','aut66cec3185766cec7a3de' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074556.3584 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.3598 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.3625 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec2440766cec7a456',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66cec3185766cec7a3de' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240828@074556.3899 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074556.3902 lvro546fdk4rit1ap6e1j73iid Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240828@074556.3923 lvro546fdk4rit1ap6e1j73iid Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20240828@074556.4076 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.4095 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.4124 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.4139 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.4148 lvro546fdk4rit1ap6e1j73iid Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074556.4159 lvro546fdk4rit1ap6e1j73iid Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240828@074556.4181 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.4198 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.4210 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec7839766cec7a466','aut66cec3185766cec7a3de' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074556.4215 lvro546fdk4rit1ap6e1j73iid Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.4230 lvro546fdk4rit1ap6e1j73iid Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.4258 lvro546fdk4rit1ap6e1j73iid Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec7839766cec7a466',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66cec3185766cec7a3de' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240828@074556.4547 lvro546fdk4rit1ap6e1j73iid Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec3185766cec7a3de','2405581','wait',39,'adm09112754980.682000002')
20240828@074556.4625 lvro546fdk4rit1ap6e1j73iid Query : use flama_phc
20240828@074556.4628 lvro546fdk4rit1ap6e1j73iid Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074556.4661 lvro546fdk4rit1ap6e1j73iid Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1701';
20240828@074556.4692 lvro546fdk4rit1ap6e1j73iid Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1701';
20240828@074556.4739 lvro546fdk4rit1ap6e1j73iid Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1701';
20240828@074556.4764 lvro546fdk4rit1ap6e1j73iid Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1701';
20240828@074556.5267 g0ohbr8jfcan24667majpkmmpf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@074556.5279 g0ohbr8jfcan24667majpkmmpf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@074556.5332 g0ohbr8jfcan24667majpkmmpf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1702';
20240828@074556.5385 g0ohbr8jfcan24667majpkmmpf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1702';
20240828@074556.5436 g0ohbr8jfcan24667majpkmmpf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1702';
20240828@074556.5460 g0ohbr8jfcan24667majpkmmpf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1702';
20240828@074556.5508 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.5511 g0ohbr8jfcan24667majpkmmpf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074556.5577 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.5580 g0ohbr8jfcan24667majpkmmpf Query : select no, estab,szadrsdesc from szadrs where u_coddest=4774
20240828@074556.5664 g0ohbr8jfcan24667majpkmmpf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20240828@074556.5822 g0ohbr8jfcan24667majpkmmpf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405588 and bi.ref ='324.1461.00.1' and bi.lordem =1
20240828@074556.6137 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6141 g0ohbr8jfcan24667majpkmmpf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074556.6172 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6175 g0ohbr8jfcan24667majpkmmpf Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074556.6204 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6207 g0ohbr8jfcan24667majpkmmpf 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')
20240828@074556.6235 g0ohbr8jfcan24667majpkmmpf 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
20240828@074556.6274 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6278 g0ohbr8jfcan24667majpkmmpf Query : select top 1 ~inactivo valor from cl where no = '100800' and estab = 0 order by inactivo desc
20240828@074556.6401 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6403 g0ohbr8jfcan24667majpkmmpf Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074556.6432 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6435 g0ohbr8jfcan24667majpkmmpf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074556.6472 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6475 g0ohbr8jfcan24667majpkmmpf Query : select szadrsstamp valor from szadrs where szadrsdesc='100800 - modelo continente hipermercados, sa'
20240828@074556.6519 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.6522 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from td where ndoc = 39
20240828@074556.6534 g0ohbr8jfcan24667majpkmmpf Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074556.6547 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.6563 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074556.6581 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.6595 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074556.6622 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.6636 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074556.6648 g0ohbr8jfcan24667majpkmmpf Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074556.6723 g0ohbr8jfcan24667majpkmmpf Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074556.6736 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.6751 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074556.6767 g0ohbr8jfcan24667majpkmmpf Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec0336866cec7a4a2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074556.6946 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.6964 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074556.6999 g0ohbr8jfcan24667majpkmmpf Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074556.7011 g0ohbr8jfcan24667majpkmmpf Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074556.7024 g0ohbr8jfcan24667majpkmmpf Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074556.7036 g0ohbr8jfcan24667majpkmmpf Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074556.7049 g0ohbr8jfcan24667majpkmmpf Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074556.7060 g0ohbr8jfcan24667majpkmmpf Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074556.7072 g0ohbr8jfcan24667majpkmmpf Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec0336866cec7a4a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074556.7332 g0ohbr8jfcan24667majpkmmpf Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074556.7353 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.7371 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074556.7395 g0ohbr8jfcan24667majpkmmpf Query : select 'normal' from dummy
20240828@074556.7411 g0ohbr8jfcan24667majpkmmpf Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec0336866cec7a4a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',501,100800,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074556.7755 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.7758 g0ohbr8jfcan24667majpkmmpf Query : select st.usalote valor from st where st.ref = '324.1461.00.1'
20240828@074556.7781 g0ohbr8jfcan24667majpkmmpf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1461.00.1'
20240828@074556.7972 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.7990 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.8021 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.8037 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.8046 g0ohbr8jfcan24667majpkmmpf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074556.8064 g0ohbr8jfcan24667majpkmmpf Query : select sestamp valor from se where ref ='324.1461.00.1' and lote = 'r2100463200a'
20240828@074556.8083 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.8099 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074556.8111 g0ohbr8jfcan24667majpkmmpf Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec8127666cec7a4c5','aut66cec0336866cec7a4a2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074556.8115 g0ohbr8jfcan24667majpkmmpf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074556.8130 g0ohbr8jfcan24667majpkmmpf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074556.8159 g0ohbr8jfcan24667majpkmmpf Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec8127666cec7a4c5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66cec0336866cec7a4a2' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074556.8424 g0ohbr8jfcan24667majpkmmpf Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec0336866cec7a4a2','2405588','wait',39,'adm09112754980.682000002')
20240828@074556.8501 g0ohbr8jfcan24667majpkmmpf Query : use flama_phc
20240828@074556.8504 g0ohbr8jfcan24667majpkmmpf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074556.8533 g0ohbr8jfcan24667majpkmmpf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1702';
20240828@074556.8559 g0ohbr8jfcan24667majpkmmpf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1702';
20240828@074556.8596 g0ohbr8jfcan24667majpkmmpf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1702';
20240828@074556.8619 g0ohbr8jfcan24667majpkmmpf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1702';
20240828@074556.9156 djk6lu5g0o8764nv38jdbg37j3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@074556.9167 djk6lu5g0o8764nv38jdbg37j3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@074556.9216 djk6lu5g0o8764nv38jdbg37j3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1703';
20240828@074556.9272 djk6lu5g0o8764nv38jdbg37j3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1703';
20240828@074556.9319 djk6lu5g0o8764nv38jdbg37j3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1703';
20240828@074556.9344 djk6lu5g0o8764nv38jdbg37j3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1703';
20240828@074556.9389 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074556.9392 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@074556.9476 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074556.9479 djk6lu5g0o8764nv38jdbg37j3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20240828@074556.9566 djk6lu5g0o8764nv38jdbg37j3 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'
20240828@074556.9720 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405589 and bi.ref ='324.600.94.01' and bi.lordem =1
20240828@074557.7600 djk6lu5g0o8764nv38jdbg37j3 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'
20240828@074557.2320 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405589 and bi.ref ='324.2000.94.1' and bi.lordem =2
20240828@074557.5410 djk6lu5g0o8764nv38jdbg37j3 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'
20240828@074557.6910 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405589 and bi.ref ='324.900.94.01' and bi.lordem =3
20240828@074557.1012 djk6lu5g0o8764nv38jdbg37j3 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'
20240828@074557.1033 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405589 and bi.ref ='324.900.94.01' and bi.lordem =3
20240828@074557.1051 djk6lu5g0o8764nv38jdbg37j3 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'
20240828@074557.1203 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405589 and bi.ref ='324.700.94.01' and bi.lordem =4
20240828@074557.1537 djk6lu5g0o8764nv38jdbg37j3 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'
20240828@074557.1690 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2055 and bo.obrano = 2405589 and bi.ref ='324.2200.94.1' and bi.lordem =5
20240828@074557.2015 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2018 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@074557.2053 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2056 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 1 valor from td where td.ndoc = 39
20240828@074557.2091 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2094 djk6lu5g0o8764nv38jdbg37j3 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')
20240828@074557.2122 djk6lu5g0o8764nv38jdbg37j3 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
20240828@074557.2155 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2158 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 ~inactivo valor from cl where no = '199800' and estab = 0 order by inactivo desc
20240828@074557.2280 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2283 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@074557.2313 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2316 djk6lu5g0o8764nv38jdbg37j3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@074557.2354 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2357 djk6lu5g0o8764nv38jdbg37j3 Query : select szadrsstamp valor from szadrs where szadrsdesc='740 ent vnr bligeiro'
20240828@074557.2401 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.2404 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from td where ndoc = 39
20240828@074557.2416 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@074557.2430 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.2446 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074557.2466 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.2481 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074557.2511 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.2526 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074557.2544 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074557.2613 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@074557.2626 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.2641 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@074557.2668 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@074557.2843 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.2861 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@074557.2894 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@074557.2905 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@074557.2957 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@074557.2968 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@074557.2979 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@074557.2990 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@074557.3006 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cec4866566cec7a53e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@074557.3275 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 fno valor from wsftdata order by fno desc
20240828@074557.3297 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.3315 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@074557.3339 djk6lu5g0o8764nv38jdbg37j3 Query : select 'normal' from dummy
20240828@074557.3405 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cec4866566cec7a53e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',502,199800,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@074557.3706 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.3710 djk6lu5g0o8764nv38jdbg37j3 Query : select st.usalote valor from st where st.ref = '324.600.94.01'
20240828@074557.3739 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074557.3889 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.3905 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.3930 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.3945 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.3955 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074557.3968 djk6lu5g0o8764nv38jdbg37j3 Query : select sestamp valor from se where ref ='324.600.94.01' and lote = 'r2400047200a'
20240828@074557.3981 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.3995 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.4006 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec9794566cec7a561','aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074557.4010 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.4024 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.4051 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec9794566cec7a561',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',16.000 ,'aut66cec4866566cec7a53e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240828@074557.4311 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.4327 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.4352 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.4367 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.4376 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074557.4388 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.4402 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.4413 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec7858266cec7a56b','aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074557.4417 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.4431 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.4457 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cec7858266cec7a56b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cec4866566cec7a53e' ,0,0 ,2,23.00,20000,?,?,?)
20240828@074557.4715 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.4719 djk6lu5g0o8764nv38jdbg37j3 Query : select st.usalote valor from st where st.ref = '324.2000.94.1'
20240828@074557.4739 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074557.4886 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.4903 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.4929 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.4945 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.4954 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074557.4967 djk6lu5g0o8764nv38jdbg37j3 Query : select sestamp valor from se where ref ='324.2000.94.1' and lote = 'r2300916200a'
20240828@074557.4981 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.5004 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.5016 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec5570066cec7a579','aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074557.5020 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.5034 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.5062 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec5570066cec7a579',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',56.000 ,'aut66cec4866566cec7a53e' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240828@074557.6314 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.6388 djk6lu5g0o8764nv38jdbg37j3 Query : select st.usalote valor from st where st.ref = '324.900.94.01'
20240828@074557.6754 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074557.6912 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.6929 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.6956 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.6972 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.6981 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074557.6995 djk6lu5g0o8764nv38jdbg37j3 Query : select sestamp valor from se where ref ='324.900.94.01' and lote = 'r2300952200a'
20240828@074557.7017 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.7033 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.7046 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec1560266cec7a5ab','aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074557.7050 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.7067 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.7098 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec1560266cec7a5ab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',34.000 ,'aut66cec4866566cec7a53e' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240828@074557.7350 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.7354 djk6lu5g0o8764nv38jdbg37j3 Query : select st.usalote valor from st where st.ref = '324.900.94.01'
20240828@074557.7376 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074557.7391 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.7412 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.7441 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.7457 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.7466 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074557.7480 djk6lu5g0o8764nv38jdbg37j3 Query : select sestamp valor from se where ref ='324.900.94.01' and lote = 'r2300952200a'
20240828@074557.7497 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.7513 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.7527 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec4138866cec7a5b7','aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074557.7531 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.7547 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.7579 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec4138866cec7a5b7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut66cec4866566cec7a53e' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240828@074557.7834 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.7838 djk6lu5g0o8764nv38jdbg37j3 Query : select st.usalote valor from st where st.ref = '324.700.94.01'
20240828@074557.7861 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074557.8012 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8030 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.8059 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8076 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.8086 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074557.8100 djk6lu5g0o8764nv38jdbg37j3 Query : select sestamp valor from se where ref ='324.700.94.01' and lote = 'r2300913100a'
20240828@074557.8115 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8131 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.8145 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec6980366cec7a5c6','aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074557.8149 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8165 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.8197 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec6980366cec7a5c6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',36.000 ,'aut66cec4866566cec7a53e' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240828@074557.8445 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.8449 djk6lu5g0o8764nv38jdbg37j3 Query : select st.usalote valor from st where st.ref = '324.2200.94.1'
20240828@074557.8471 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@074557.8618 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8635 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.8663 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8678 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.8687 djk6lu5g0o8764nv38jdbg37j3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@074557.8701 djk6lu5g0o8764nv38jdbg37j3 Query : select sestamp valor from se where ref ='324.2200.94.1' and lote = 'r2400046200a'
20240828@074557.8715 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8731 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@074557.8745 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cec0623566cec7a5d4','aut66cec4866566cec7a53e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@074557.8749 djk6lu5g0o8764nv38jdbg37j3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@074557.8765 djk6lu5g0o8764nv38jdbg37j3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@074557.8796 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66cec0623566cec7a5d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',21.000 ,'aut66cec4866566cec7a53e' ,0,0 ,2,23.00,80000,?,?,?,?,?)
20240828@074557.9055 djk6lu5g0o8764nv38jdbg37j3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66cec4866566cec7a53e','2405589','wait',39,'adm09112754980.682000002')
20240828@074557.9131 djk6lu5g0o8764nv38jdbg37j3 Query : use flama_phc
20240828@074557.9135 djk6lu5g0o8764nv38jdbg37j3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@074557.9165 djk6lu5g0o8764nv38jdbg37j3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1703';
20240828@074557.9193 djk6lu5g0o8764nv38jdbg37j3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1703';
20240828@074557.9230 djk6lu5g0o8764nv38jdbg37j3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1703';
20240828@074557.9256 djk6lu5g0o8764nv38jdbg37j3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1703';

20240828@091740.7643 ch7l22ln3qtcv4uihaneinbigl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1704';
20240828@091740.7709 ch7l22ln3qtcv4uihaneinbigl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1704';
20240828@091740.7737 ch7l22ln3qtcv4uihaneinbigl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1704';
20240828@091740.7791 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091740.7795 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@091740.7898 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1833.00.2'
20240828@091740.8031 ch7l22ln3qtcv4uihaneinbigl 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 = 2400401 and bi.ref ='324.1833.00.2' and bi.lordem =1
20240828@091740.8413 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091740.8738 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 1 valor from ts where ts.ndos = 61
20240828@091740.8843 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091740.8847 ch7l22ln3qtcv4uihaneinbigl 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')
20240828@091740.8913 ch7l22ln3qtcv4uihaneinbigl 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
20240828@091740.9090 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091740.9093 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20240828@091740.9233 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091740.9236 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from ts where ndos = 61
20240828@091740.9324 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091740.9741 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240828@091740.9793 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091740.9810 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240828@091740.9822 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091740.9863 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240828@091740.9874 ch7l22ln3qtcv4uihaneinbigl 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
20240828@091741.1500 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240828@091741.1260 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240828@091741.1460 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091741.1530 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20240828@091741.2490 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.2820 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240828@091741.3240 ch7l22ln3qtcv4uihaneinbigl Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ced0526366cedd2503',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240828@091741.4240 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.4440 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240828@091741.4590 ch7l22ln3qtcv4uihaneinbigl Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ced0526366cedd2503','--','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240828@091741.6620 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.6820 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240828@091741.6970 ch7l22ln3qtcv4uihaneinbigl 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 ('aut66ced0526366cedd2503','guia r. fornecedor','2024-08-28',61,2402369,?,?,?,?,?,?,?,?,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')
20240828@091741.1467 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091741.1472 ch7l22ln3qtcv4uihaneinbigl Query : select st.usalote valor from st where st.ref = '324.1833.00.2'
20240828@091741.1651 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@091741.1810 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.1829 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240828@091741.1847 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.1864 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240828@091741.1875 ch7l22ln3qtcv4uihaneinbigl Query : select sestamp valor from se where ref ='324.1833.00.2' and lote = 'r2400401200a'
20240828@091741.1935 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.1953 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240828@091741.1963 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.1979 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240828@091741.1994 ch7l22ln3qtcv4uihaneinbigl Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66ced3022666cedd252f',?,?,'20240828',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240828@091741.2599 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@091741.2651 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.2670 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240828@091741.2686 ch7l22ln3qtcv4uihaneinbigl Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66ced7067366cedd2540','aut66ced0526366cedd2503',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 = 'aut66ced0526366cedd2503'
20240828@091741.2931 ch7l22ln3qtcv4uihaneinbigl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@091741.2957 ch7l22ln3qtcv4uihaneinbigl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240828@091741.2979 ch7l22ln3qtcv4uihaneinbigl 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,eslvu,slvu,esltt,sltt,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,obistamp ,stipo) select 'aut66ced7067366cedd2540',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1336, 1336*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,0,0*200.48,0,0*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,0*1336,0*1336*200.48 ,34.151000,34.151000*200.48 ,34.151000,34.151000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0*200.48,0*1336,0*1336*200.48,0,0*1336,0,0*1336,?,?,?,4 from bo bo where bo.bostamp = 'aut66ced0526366cedd2503'
20240828@091741.3411 ch7l22ln3qtcv4uihaneinbigl Query : use flama_phc
20240828@091741.3416 ch7l22ln3qtcv4uihaneinbigl Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -110
20240828@091741.3513 ch7l22ln3qtcv4uihaneinbigl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1704';
20240828@091741.3546 ch7l22ln3qtcv4uihaneinbigl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1704';

20240828@100441.6975 tng5ip7org2vvjc4egsk2bsn5c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1705';
20240828@100441.7835 tng5ip7org2vvjc4egsk2bsn5c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1705';
20240828@100441.8667 tng5ip7org2vvjc4egsk2bsn5c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1705';
20240828@100441.9260 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100441.9383 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@100442.1226 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1832.00.2'
20240828@100442.2478 tng5ip7org2vvjc4egsk2bsn5c 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 = 2400401 and bi.ref ='324.1832.00.2' and bi.lordem =15000
20240828@100442.4890 tng5ip7org2vvjc4egsk2bsn5c 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 = 'cps24041043738,562000003 ' 
20240828@100442.6784 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100442.6935 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 1 valor from ts where ts.ndos = 61
20240828@100442.7753 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100442.7867 tng5ip7org2vvjc4egsk2bsn5c 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')
20240828@100442.8242 tng5ip7org2vvjc4egsk2bsn5c 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
20240828@100442.8643 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100442.8726 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20240828@100442.8924 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100442.8929 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from ts where ndos = 61
20240828@100442.9277 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100442.9737 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240828@100442.9819 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100442.9895 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240828@100442.9952 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.4500 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240828@100443.6000 tng5ip7org2vvjc4egsk2bsn5c 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
20240828@100443.4180 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240828@100443.6610 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240828@100443.8360 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100443.9190 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20240828@100443.1330 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.1367 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240828@100443.1412 tng5ip7org2vvjc4egsk2bsn5c Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cee3723266cee82b14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240828@100443.1503 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.1527 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240828@100443.1546 tng5ip7org2vvjc4egsk2bsn5c Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cee3723266cee82b14','--','bo',7.8667120027201632097 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240828@100443.1971 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.2188 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240828@100443.2353 tng5ip7org2vvjc4egsk2bsn5c 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 ('aut66cee3723266cee82b14','guia r. fornecedor','2024-08-28',61,2402371,?,?,?,?,?,?,?,?,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')
20240828@100443.3875 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100443.3981 tng5ip7org2vvjc4egsk2bsn5c Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20240828@100443.5126 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20240828@100443.5299 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.5484 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240828@100443.5537 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.5563 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240828@100443.5576 tng5ip7org2vvjc4egsk2bsn5c Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2400401150a'
20240828@100443.5645 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.5743 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240828@100443.5770 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.5821 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240828@100443.5871 tng5ip7org2vvjc4egsk2bsn5c Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cee2860566cee82b8c',?,?,'20240828',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240828@100443.6078 tng5ip7org2vvjc4egsk2bsn5c Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@100443.6587 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.6844 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240828@100443.7196 tng5ip7org2vvjc4egsk2bsn5c Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66cee0611266cee82ba0','aut66cee3723266cee82b14',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 = 'aut66cee3723266cee82b14'
20240828@100443.7849 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100443.8177 tng5ip7org2vvjc4egsk2bsn5c Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240828@100443.8454 tng5ip7org2vvjc4egsk2bsn5c 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 'aut66cee0611266cee82ba0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1336, 1336*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,29.41,29.41*200.48,29.41,29.41*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,29.41*1336,29.41*1336*200.48 ,32.334000,32.334000*200.48 ,32.334000,32.334000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.41,29.41*200.48,29.41*1336,29.41*1336*200.48,'cps24041043738,562000003 ',231.36,231.36*1336,231.36,231.36*1336,?,?,?,4 from bo bo where bo.bostamp = 'aut66cee3723266cee82b14'
20240828@100454.6604 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100454.6625 tng5ip7org2vvjc4egsk2bsn5c Query : declare @bostamp varchar(25) = 'aut66cee3723266cee82b14' ,@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 
20240828@100501.1872 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100501.1915 tng5ip7org2vvjc4egsk2bsn5c Query : select 1 valor from bo where bo.bostamp = 'aut66cee3723266cee82b14'
20240828@100501.2346 tng5ip7org2vvjc4egsk2bsn5c 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) = 'aut66cee3723266cee82b14' 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 
20240828@100501.7996 tng5ip7org2vvjc4egsk2bsn5c Query : use flama_phc
20240828@100501.7999 tng5ip7org2vvjc4egsk2bsn5c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@100501.8084 tng5ip7org2vvjc4egsk2bsn5c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1705';
20240828@100501.8182 tng5ip7org2vvjc4egsk2bsn5c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1705';
20240828@100501.9620 ggf96fdpcpnnj79je4obcb5n0g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240828@100501.9632 ggf96fdpcpnnj79je4obcb5n0g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240828@100501.9685 ggf96fdpcpnnj79je4obcb5n0g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1706';
20240828@100501.9744 ggf96fdpcpnnj79je4obcb5n0g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1706';
20240828@100501.9796 ggf96fdpcpnnj79je4obcb5n0g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1706';
20240828@100502.9700 ggf96fdpcpnnj79je4obcb5n0g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1706';
20240828@100502.3970 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100502.4430 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@100502.1106 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20240828@100502.1580 ggf96fdpcpnnj79je4obcb5n0g 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 = 2400403 and bi.ref ='324.692.00.01' and bi.lordem =90000
20240828@100502.3237 ggf96fdpcpnnj79je4obcb5n0g 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 = 'cps24041051869,299000002 ' 
20240828@100502.4194 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100502.4238 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 1 valor from ts where ts.ndos = 61
20240828@100502.4614 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100502.4656 ggf96fdpcpnnj79je4obcb5n0g 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')
20240828@100502.5118 ggf96fdpcpnnj79je4obcb5n0g 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
20240828@100502.5583 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100502.5626 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 ~inactivo valor from fl where no = '202532' and estab = 00 order by inactivo desc
20240828@100502.6301 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100502.6327 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from ts where ndos = 61
20240828@100502.6363 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.6398 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240828@100502.6429 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.6447 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240828@100502.6457 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.6479 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240828@100502.6488 ggf96fdpcpnnj79je4obcb5n0g 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
20240828@100502.6511 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240828@100502.6538 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240828@100502.6558 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100502.6566 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202532' and estab=00
20240828@100502.6667 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.6687 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240828@100502.6701 ggf96fdpcpnnj79je4obcb5n0g Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cee5394366cee83ea0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240828@100502.6707 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.6791 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240828@100502.6853 ggf96fdpcpnnj79je4obcb5n0g Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cee5394366cee83ea0','--','bo',1.1161637040099214551 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240828@100502.6863 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.6959 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240828@100502.6975 ggf96fdpcpnnj79je4obcb5n0g 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 ('aut66cee5394366cee83ea0','guia r. fornecedor','2024-08-28',61,2402372,?,?,?,?,?,?,?,?,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')
20240828@100502.8001 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100502.8004 ggf96fdpcpnnj79je4obcb5n0g Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20240828@100502.8430 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.692.00.01'
20240828@100502.9188 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.9442 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240828@100502.9691 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100502.9949 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240828@100503.1160 ggf96fdpcpnnj79je4obcb5n0g Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400403900a'
20240828@100503.3250 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100503.5790 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240828@100503.7500 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100503.1030 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240828@100503.1237 ggf96fdpcpnnj79je4obcb5n0g Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cee7402366cee83f12',?,?,'20240828',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240828@100503.1423 ggf96fdpcpnnj79je4obcb5n0g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@100503.1679 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100503.2209 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240828@100503.2423 ggf96fdpcpnnj79je4obcb5n0g Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66cee1648366cee83f29','aut66cee5394366cee83ea0',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 = 'aut66cee5394366cee83ea0'
20240828@100503.2767 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@100503.3056 ggf96fdpcpnnj79je4obcb5n0g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240828@100503.3353 ggf96fdpcpnnj79je4obcb5n0g 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 'aut66cee1648366cee83f29',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1044, 1044*.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 ,24.19,24.19*200.48,24.19,24.19*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,24.19*1044,24.19*1044*200.48 ,28.805000,28.805000*200.48 ,28.805000,28.805000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,24.19,24.19*200.48,24.19*1044,24.19*1044*200.48,'cps24041051869,299000002 ',27,27*1044,27,27*1044,?,?,?,4 from bo bo where bo.bostamp = 'aut66cee5394366cee83ea0'
20240828@100503.4967 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100503.4979 ggf96fdpcpnnj79je4obcb5n0g Query : declare @bostamp varchar(25) = 'aut66cee5394366cee83ea0' ,@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 
20240828@100503.8073 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100503.8077 ggf96fdpcpnnj79je4obcb5n0g Query : select 1 valor from bo where bo.bostamp = 'aut66cee5394366cee83ea0'
20240828@100503.8094 ggf96fdpcpnnj79je4obcb5n0g 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) = 'aut66cee5394366cee83ea0' 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 
20240828@100504.2892 ggf96fdpcpnnj79je4obcb5n0g Query : use flama_phc
20240828@100504.2934 ggf96fdpcpnnj79je4obcb5n0g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240828@100504.3423 ggf96fdpcpnnj79je4obcb5n0g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1706';
20240828@100504.3789 ggf96fdpcpnnj79je4obcb5n0g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1706';

20240828@112242.3096 94mke9kc2r1jkknulcd5565q0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1707';
20240828@112242.3160 94mke9kc2r1jkknulcd5565q0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1707';
20240828@112242.3187 94mke9kc2r1jkknulcd5565q0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1707';
20240828@112242.3246 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.3251 94mke9kc2r1jkknulcd5565q0t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240828@112242.3353 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.3356 94mke9kc2r1jkknulcd5565q0t Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20240828@112242.3448 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240828@112242.3618 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.736.00.01'
20240828@112242.3761 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4910.00.1'
20240828@112242.3901 94mke9kc2r1jkknulcd5565q0t 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'
20240828@112242.4057 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240828@112242.4205 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240828@112242.4361 94mke9kc2r1jkknulcd5565q0t 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'
20240828@112242.4499 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20240828@112242.4638 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1406.00.1'
20240828@112242.4785 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240828@112242.4931 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20240828@112242.5073 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240828@112242.5214 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.719.00.01'
20240828@112242.5359 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240828@112242.5503 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2221.00.1'
20240828@112242.5630 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1221.00.1'
20240828@112242.5762 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240828@112242.5909 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5361.00.1'
20240828@112242.6053 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240828@112242.7367 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20240828@112242.7538 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.675.00.01'
20240828@112242.7558 94mke9kc2r1jkknulcd5565q0t Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.939.00.01'
20240828@112242.7719 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.7723 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240828@112242.7920 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.7924 94mke9kc2r1jkknulcd5565q0t Query : select top 1 1 valor from td where td.ndoc = 39
20240828@112242.8028 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.8031 94mke9kc2r1jkknulcd5565q0t 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')
20240828@112242.8098 94mke9kc2r1jkknulcd5565q0t 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
20240828@112242.8232 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.8236 94mke9kc2r1jkknulcd5565q0t Query : select top 1 ~inactivo valor from cl where no = '100404' and estab = 0 order by inactivo desc
20240828@112242.8356 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.8360 94mke9kc2r1jkknulcd5565q0t Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240828@112242.8454 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.8457 94mke9kc2r1jkknulcd5565q0t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240828@112242.8531 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.8535 94mke9kc2r1jkknulcd5565q0t Query : select szadrsstamp valor from szadrs where szadrsdesc='bitranlis, agentes transitára'
20240828@112242.8588 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112242.8592 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from td where ndoc = 39
20240828@112242.8667 94mke9kc2r1jkknulcd5565q0t Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240828@112242.8733 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112242.9022 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@112242.9081 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112242.9106 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@112242.9143 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112242.9161 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@112242.9178 94mke9kc2r1jkknulcd5565q0t Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@112242.9378 94mke9kc2r1jkknulcd5565q0t Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240828@112242.9481 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112242.9500 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240828@112242.9546 94mke9kc2r1jkknulcd5565q0t Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240828@112242.9859 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112242.9879 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240828@112242.9925 94mke9kc2r1jkknulcd5565q0t Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240828@112243.2700 94mke9kc2r1jkknulcd5565q0t Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240828@112243.1120 94mke9kc2r1jkknulcd5565q0t Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240828@112243.1880 94mke9kc2r1jkknulcd5565q0t Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240828@112243.3030 94mke9kc2r1jkknulcd5565q0t Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240828@112243.3820 94mke9kc2r1jkknulcd5565q0t Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240828@112243.4610 94mke9kc2r1jkknulcd5565q0t Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66cef1947066cefa72e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240828@112243.9660 94mke9kc2r1jkknulcd5565q0t Query : select top 1 fno valor from wsftdata order by fno desc
20240828@112243.1063 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.1093 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240828@112243.1128 94mke9kc2r1jkknulcd5565q0t Query : select 'normal' from dummy
20240828@112243.1181 94mke9kc2r1jkknulcd5565q0t Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66cef1947066cefa72e0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',503,100404,0,'2024-08-28',39,'euro',0,0,2024 ,?,?)
20240828@112243.1718 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.1722 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240828@112243.1857 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20240828@112243.2039 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.2059 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.2092 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.2109 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.2121 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.2165 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240828@112243.2236 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.2253 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.2269 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef6096666cefa7336','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.2333 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.2352 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.2392 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef6096666cefa7336',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,10000,?,?,?,?)
20240828@112243.2806 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.2810 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.736.00.01'
20240828@112243.2837 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.736.00.01'
20240828@112243.2991 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.3009 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.3043 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.3066 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.3077 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.3092 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.736.00.01' and lote = 'r2400239300a'
20240828@112243.3112 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.3129 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.3144 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef3491366cefa734b','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.3149 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.3167 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.3205 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef3491366cefa734b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,20000,?,?,?,?)
20240828@112243.3844 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.3886 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.4910.00.1'
20240828@112243.4502 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4910.00.1'
20240828@112243.4669 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.4688 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.4721 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.4741 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.4754 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.4773 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.4910.00.1' and lote = 'r2100754100a'
20240828@112243.4797 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.4814 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.4829 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef7736966cefa7375','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.4834 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.4852 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.4896 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef7736966cefa7375',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,30000,?,?,?,?)
20240828@112243.5187 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.5191 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20240828@112243.5217 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@112243.5370 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5389 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.5418 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5437 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.5454 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.5468 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2400401100a'
20240828@112243.5483 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5499 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.5512 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef2284866cefa7385','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.5516 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5533 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.5565 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef2284866cefa7385',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,40000,?,?,?,?)
20240828@112243.5835 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5854 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.5890 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5906 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.5916 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.5930 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5946 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.5959 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef1075866cefa7390','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.5963 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.5980 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.6016 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cef1075866cefa7390',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,50000,?,?,?)
20240828@112243.6302 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.6306 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240828@112243.6331 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240828@112243.6488 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.6506 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.6535 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.6551 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.6560 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.6575 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301178100a'
20240828@112243.6592 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.6611 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.6625 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef7513666cefa73a0','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.6630 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.6648 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.6685 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef7513666cefa73a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,70000,?,?,?,?)
20240828@112243.6951 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.6970 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.7006 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.7023 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.7033 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.7048 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.7065 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.7235 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef0510466cefa73ac','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.7241 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.7262 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.7303 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cef0510466cefa73ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,80000,?,?,?)
20240828@112243.7591 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.7594 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20240828@112243.7621 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.946.00.01'
20240828@112243.7781 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.7799 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.7829 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.7847 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.7859 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.7872 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20240828@112243.7896 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.7915 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.7930 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef7599466cefa73c0','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.7936 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.7953 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.7988 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef7599466cefa73c0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,100000,?,?,?,?)
20240828@112243.8271 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.8275 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.1608.00.1'
20240828@112243.8305 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240828@112243.8465 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.8483 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.8513 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.8532 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.8542 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.8557 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.1608.00.1' and lote = 'r2100202100a'
20240828@112243.8584 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.8601 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.8613 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef7186066cefa73d1','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.8618 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.8637 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.8669 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef7186066cefa73d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,110000,?,?,?,?)
20240828@112243.8929 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112243.8932 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.1266.00.1'
20240828@112243.8954 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1266.00.1'
20240828@112243.9112 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9130 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.9160 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9176 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.9187 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.9202 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.1266.00.1' and lote = 'r2100597100a'
20240828@112243.9224 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9240 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.9256 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef7182466cefa73e1','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.9261 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9279 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.9311 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef7182466cefa73e1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,120000,?,?,?,?)
20240828@112243.9588 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9609 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.9640 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9656 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.9666 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112243.9682 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9701 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112243.9716 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef3837866cefa73ec','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112243.9721 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112243.9736 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112243.9767 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66cef3837866cefa73ec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,130000,?,?,?)
20240828@112244.5000 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112244.5400 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.1406.00.1'
20240828@112244.8200 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1406.00.1'
20240828@112244.1380 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.1401 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112244.1467 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.1485 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112244.1496 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112244.1511 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.1406.00.1' and lote = '10/20'
20240828@112244.1540 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.1556 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112244.1571 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef9128966cefa7425','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112244.1575 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.1593 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112244.1627 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef9128966cefa7425',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,150000,?,?,?,?)
20240828@112244.1949 94mke9kc2r1jkknulcd5565q0t Query : use flama_phc
20240828@112244.1952 94mke9kc2r1jkknulcd5565q0t Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240828@112244.1977 94mke9kc2r1jkknulcd5565q0t Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1690.00.1'
20240828@112244.2148 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.2167 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112244.2202 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.2219 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112244.2229 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112244.2243 94mke9kc2r1jkknulcd5565q0t Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240828@112244.2259 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.2279 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112244.2293 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef9064966cefa7437','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240828@112244.2299 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.2316 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112244.2352 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66cef9064966cefa7437',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut66cef1947066cefa72e0' ,0,0 ,2,23.00,160000,?,?,?,?)
20240828@112244.2658 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.2677 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240828@112244.2706 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.2726 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112244.2738 94mke9kc2r1jkknulcd5565q0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240828@112244.2755 94mke9kc2r1jkknulcd5565q0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240828@112244.2774 94mke9kc2r1jkknulcd5565q0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240828@112244.2788 94mke9kc2r1jkknulcd5565q0t Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66cef6100066cefa7443','aut66cef1947066cefa72e0' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
