20250226@132248.1586 ve7kpvi7pev47sf986787fl9hn INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20250226@132248.1584 ve7kpvi7pev47sf986787fl9hn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5544';
20250226@132248.1675 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132248.1680 ve7kpvi7pev47sf986787fl9hn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250226@132248.1768 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132248.1772 ve7kpvi7pev47sf986787fl9hn Query : select no, estab,szadrsdesc from szadrs where u_coddest=2448
20250226@132248.1876 ve7kpvi7pev47sf986787fl9hn Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 119 and bo.boano = 2025 and bo.obrano = 0000361 
20250226@132248.2731 ve7kpvi7pev47sf986787fl9hn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20250226@132248.3271 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,0970000-2 ' 
20250226@132248.3962 ve7kpvi7pev47sf986787fl9hn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1670.00.1'
20250226@132248.4462 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,1230000-3 ' 
20250226@132248.4933 ve7kpvi7pev47sf986787fl9hn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20250226@132248.5309 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,1370000-4 ' 
20250226@132248.6184 ve7kpvi7pev47sf986787fl9hn 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'
20250226@132248.6520 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,1570000-5 ' 
20250226@132248.7041 ve7kpvi7pev47sf986787fl9hn 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'
20250226@132248.7244 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,1870000-6 ' 
20250226@132248.7674 ve7kpvi7pev47sf986787fl9hn 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'
20250226@132248.7711 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,2070000-7 ' 
20250226@132248.8095 ve7kpvi7pev47sf986787fl9hn 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'
20250226@132248.8383 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,2280000-8 ' 
20250226@132248.8893 ve7kpvi7pev47sf986787fl9hn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20250226@132248.9107 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,2480000-9 ' 
20250226@132248.9494 ve7kpvi7pev47sf986787fl9hn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.711.00.01'
20250226@132248.9700 ve7kpvi7pev47sf986787fl9hn Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022644900,279000-10 ' 
20250226@132249.9100 ve7kpvi7pev47sf986787fl9hn Query : select top 1 tpdesc, tpstamp from bo where bostamp ='evc25022634282.596000002 '
20250226@132249.2370 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.2410 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250226@132249.2810 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.2840 ve7kpvi7pev47sf986787fl9hn Query : select top 1 1 valor from td where td.ndoc = 39
20250226@132249.3170 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.3200 ve7kpvi7pev47sf986787fl9hn 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')
20250226@132249.3480 ve7kpvi7pev47sf986787fl9hn 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 ,temserie useserialnumber from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250226@132249.3930 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.3960 ve7kpvi7pev47sf986787fl9hn Query : select top 1 ~inactivo valor from cl where no = '101889' and estab = 0 order by inactivo desc
20250226@132249.5430 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.5460 ve7kpvi7pev47sf986787fl9hn Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250226@132249.5820 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.5880 ve7kpvi7pev47sf986787fl9hn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250226@132249.6320 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.6370 ve7kpvi7pev47sf986787fl9hn Query : select szadrsstamp valor from szadrs where szadrsdesc='cooplecnorte,crl'
20250226@132249.7280 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.7640 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from td where ndoc = 39
20250226@132249.8670 ve7kpvi7pev47sf986787fl9hn Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250226@132249.9290 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.9740 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250226@132249.1158 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.1179 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250226@132249.1227 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.1272 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250226@132249.1292 ve7kpvi7pev47sf986787fl9hn Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250226@132249.1480 ve7kpvi7pev47sf986787fl9hn Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250226@132249.2753 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.2757 ve7kpvi7pev47sf986787fl9hn Query : select top 1 clstamp valor from cl where no = '101889' and estab = 0 order by inactivo desc
20250226@132249.2884 ve7kpvi7pev47sf986787fl9hn Query : select diames,mesesnaopag,formapag,descricao,dias,vencimento from tp where tpstamp = 'ris18062265070,900914145 '
20250226@132249.2925 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.2949 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250226@132249.2968 ve7kpvi7pev47sf986787fl9hn Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250226@132249.3141 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.3198 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250226@132249.3545 ve7kpvi7pev47sf986787fl9hn Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp='evc25022634282.596000002 '
20250226@132249.3925 ve7kpvi7pev47sf986787fl9hn Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp='evc25022634282.596000002 '
20250226@132249.4167 ve7kpvi7pev47sf986787fl9hn Query : select top 1 bo.u_codposen valor from bo where bo.bostamp='evc25022634282.596000002 '
20250226@132249.4437 ve7kpvi7pev47sf986787fl9hn Query : select top 1 bo.u_localenv valor from bo where bo.bostamp='evc25022634282.596000002 '
20250226@132249.4692 ve7kpvi7pev47sf986787fl9hn Query : select top 1 bo.trab5 valor from bo where bo.bostamp='evc25022634282.596000002 '
20250226@132249.4819 ve7kpvi7pev47sf986787fl9hn Query : select top 1 bo.serie valor from bo where bo.bostamp='evc25022634282.596000002 '
20250226@132249.4916 ve7kpvi7pev47sf986787fl9hn Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,formapag,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ,dataentrega ) values ('aut67bf19234667bf15a91f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?,?,?)
20250226@132249.5168 ve7kpvi7pev47sf986787fl9hn Query : select top 1 fno valor from wsftdata order by fno desc
20250226@132249.5206 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.5246 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250226@132249.5276 ve7kpvi7pev47sf986787fl9hn Query : select 'normal' from dummy
20250226@132249.5291 ve7kpvi7pev47sf986787fl9hn Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,pdata,tpdesc,tpstamp,cdata,chora,carga,descar,site ,classe ,encomenda ,u_hdesc ,u_ddesc ) values ('aut67bf19234667bf15a91f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3103,101889,0,'2025-02-26',39,'euro',0,0,2025 ,'2025-04-27',?,'ris18062265070,900914145 ','20250226','1352',?,?,?,?,?,?,?)
20250226@132249.5584 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.5587 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20250226@132249.5603 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.5606 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.948.00.01'
20250226@132249.5624 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.5627 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.948.00.01' and sa.armazem = 133 
20250226@132249.5713 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.5715 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.948.00.01'
20250226@132249.5729 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.5732 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.948.00.01'
20250226@132249.5752 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20250226@132249.5928 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.5949 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.5995 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.6013 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.6022 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132249.6034 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2400703100a'
20250226@132249.6056 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.6073 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.6085 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf11658167bf15a993','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132249.6090 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.6106 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.6184 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf11658167bf15a993',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.0000 ,'aut67bf19234667bf15a91f' ,30.100000,0 ,2,23.00,10000,?,?,?,?,?,?,?,?,?)
20250226@132249.6508 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.6511 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20250226@132249.6526 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.6529 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.1670.00.1'
20250226@132249.6545 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.6548 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1670.00.1' and sa.armazem = 133 
20250226@132249.6635 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.6638 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.1670.00.1'
20250226@132249.6650 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.6653 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.1670.00.1'
20250226@132249.6685 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1670.00.1'
20250226@132249.6966 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.7022 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.7105 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.7128 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.7137 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132249.7149 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20250226@132249.7175 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.7197 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.7209 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf13446867bf15a9af','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132249.7216 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.7232 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.7262 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf13446867bf15a9af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.0000 ,'aut67bf19234667bf15a91f' ,54.400000,0 ,2,23.00,20000,?,?,?,?,?,?,?,?,?)
20250226@132249.7503 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.7507 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20250226@132249.7522 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.7525 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.4723.00.2'
20250226@132249.7547 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.7550 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4723.00.2' and sa.armazem = 133 
20250226@132249.7647 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.7650 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.4723.00.2'
20250226@132249.7663 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.7666 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.4723.00.2'
20250226@132249.7689 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20250226@132249.7870 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.7905 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.8059 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.8076 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.8085 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132249.8105 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20250226@132249.8188 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.8208 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.8221 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf13627267bf15a9c7','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132249.8239 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.8268 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.8302 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf13627267bf15a9c7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.0000 ,'aut67bf19234667bf15a91f' ,32.000000,0 ,2,23.00,30000,?,?,?,?,?,?,?,?,?)
20250226@132249.8574 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.8579 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '304.422.00.07'
20250226@132249.8600 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.8603 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.422.00.07'
20250226@132249.8620 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.8623 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '304.422.00.07' and sa.armazem = 133 
20250226@132249.8712 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.8714 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.422.00.07'
20250226@132249.8728 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.8731 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.422.00.07'
20250226@132249.8757 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20250226@132249.8926 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.8945 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.8978 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.8993 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.9002 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132249.9015 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='304.422.00.07' and lote = '241228'
20250226@132249.9048 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.9064 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.9075 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf16606667bf15a9dc','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132249.9080 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.9095 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.9125 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf16606667bf15a9dc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.0000 ,'aut67bf19234667bf15a91f' ,22.400000,0 ,2,23.00,40000,?,?,?,?,?,?,?,?,?)
20250226@132249.9380 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.9384 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20250226@132249.9399 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.9401 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.421.00.04'
20250226@132249.9426 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.9448 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '304.421.00.04' and sa.armazem = 133 
20250226@132249.9538 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.9540 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.421.00.04'
20250226@132249.9553 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132249.9556 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.421.00.04'
20250226@132249.9575 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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'
20250226@132249.9751 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.9769 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.9795 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.9810 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.9819 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132249.9831 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '242059'
20250226@132249.9857 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.9874 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132249.9886 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf16749567bf15a9f0','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132249.9891 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132249.9906 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132249.9934 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf16749567bf15a9f0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.0000 ,'aut67bf19234667bf15a91f' ,25.600000,0 ,2,23.00,50000,?,?,?,?,?,?,?,?,?)
20250226@132250.2460 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2500 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20250226@132250.2660 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2690 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250226@132250.2840 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2870 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4990.00.1' and sa.armazem = 133 
20250226@132250.3100 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.3130 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250226@132250.3250 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.3270 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250226@132250.3700 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250226@132250.3850 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.4050 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.4330 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.4490 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.4570 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132250.4790 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20250226@132250.4920 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.5100 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.5220 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf13544167bf15aa0c','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132250.5270 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.5430 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.5730 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf13544167bf15aa0c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.0000 ,'aut67bf19234667bf15a91f' ,28.800000,0 ,2,23.00,60000,?,?,?,?,?,?,?,?,?)
20250226@132250.9130 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.9170 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20250226@132250.9320 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.9350 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.727.00.01'
20250226@132250.9530 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.9560 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.727.00.01' and sa.armazem = 133 
20250226@132250.1041 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.1044 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.727.00.01'
20250226@132250.1057 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.1059 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.727.00.01'
20250226@132250.1111 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.727.00.01'
20250226@132250.1337 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.1367 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.1405 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.1422 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.1431 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132250.1446 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2400693100a'
20250226@132250.1461 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.1478 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.1490 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf18808967bf15aa23','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132250.1494 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.1510 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.1540 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf18808967bf15aa23',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.0000 ,'aut67bf19234667bf15a91f' ,19.200000,0 ,2,23.00,70000,?,?,?,?,?,?,?,?,?)
20250226@132250.1849 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.1853 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20250226@132250.1868 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.1871 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.4320.00.1'
20250226@132250.1888 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.1892 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '304.4320.00.1' and sa.armazem = 133 
20250226@132250.1979 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.1982 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.4320.00.1'
20250226@132250.1997 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2000 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '304.4320.00.1'
20250226@132250.2041 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4320.00.1'
20250226@132250.2224 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.2241 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.2278 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.2295 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.2305 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132250.2318 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '242060'
20250226@132250.2340 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.2378 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.2395 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf19796167bf15aa39','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132250.2400 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.2416 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.2445 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf19796167bf15aa39',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.0000 ,'aut67bf19234667bf15a91f' ,28.800000,0 ,2,23.00,80000,?,?,?,?,?,?,?,?,?)
20250226@132250.2721 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2725 ve7kpvi7pev47sf986787fl9hn Query : select st.usalote valor from st where st.ref = '324.711.00.01'
20250226@132250.2744 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2748 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.711.00.01'
20250226@132250.2769 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2772 ve7kpvi7pev47sf986787fl9hn Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.711.00.01' and sa.armazem = 133 
20250226@132250.2872 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2875 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.711.00.01'
20250226@132250.2888 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.2891 ve7kpvi7pev47sf986787fl9hn Query : select st.stns valor from st where st.ref = '324.711.00.01'
20250226@132250.2913 ve7kpvi7pev47sf986787fl9hn Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.711.00.01'
20250226@132250.3084 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.3102 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.3128 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.3142 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.3152 ve7kpvi7pev47sf986787fl9hn Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250226@132250.3170 ve7kpvi7pev47sf986787fl9hn Query : select sestamp valor from se where ref ='324.711.00.01' and lote = 'r2401063200a'
20250226@132250.3186 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.3203 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250226@132250.3225 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67bf12325767bf15aa4d','aut67bf19234667bf15a91f' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250226@132250.3229 ve7kpvi7pev47sf986787fl9hn Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250226@132250.3252 ve7kpvi7pev47sf986787fl9hn Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250226@132250.3282 ve7kpvi7pev47sf986787fl9hn Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67bf12325767bf15aa4d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.0000 ,'aut67bf19234667bf15a91f' ,16.000000,0 ,2,23.00,90000,?,?,?,?,?,?,?,?,?)
20250226@132250.3538 ve7kpvi7pev47sf986787fl9hn Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67bf19234667bf15a91f','','wait',39,'adm09112754980.682000002')
20250226@132250.3611 ve7kpvi7pev47sf986787fl9hn Query : use flama_phc
20250226@132250.3615 ve7kpvi7pev47sf986787fl9hn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250226@132250.3647 ve7kpvi7pev47sf986787fl9hn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5544';
20250226@132250.3707 ve7kpvi7pev47sf986787fl9hn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5544';
20250226@132250.3771 ve7kpvi7pev47sf986787fl9hn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5544';
20250226@132250.3816 ve7kpvi7pev47sf986787fl9hn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5544';

20250226@162358.6735 ev3662bfsosck02hs7ef4hp9ke Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5545';
20250226@162358.6810 ev3662bfsosck02hs7ef4hp9ke Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5545';
20250226@162358.6865 ev3662bfsosck02hs7ef4hp9ke Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5545';
20250226@162358.6934 ev3662bfsosck02hs7ef4hp9ke Query : use flama_phc
20250226@162358.6938 ev3662bfsosck02hs7ef4hp9ke Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250226@162358.7007 ev3662bfsosck02hs7ef4hp9ke Query : use flama_phc
20250226@162358.7010 ev3662bfsosck02hs7ef4hp9ke Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20250226@162358.7129 ev3662bfsosck02hs7ef4hp9ke Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501421 
20250226@162358.7563 ev3662bfsosck02hs7ef4hp9ke Query : use flama_phc
20250226@162358.7566 ev3662bfsosck02hs7ef4hp9ke Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250226@162358.7603 ev3662bfsosck02hs7ef4hp9ke Query : use flama_phc
20250226@162358.7629 ev3662bfsosck02hs7ef4hp9ke Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250226@162358.7694 ev3662bfsosck02hs7ef4hp9ke Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250226@162358.7744 ev3662bfsosck02hs7ef4hp9ke Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5545';
20250226@162358.7793 ev3662bfsosck02hs7ef4hp9ke Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5545';
20250226@162358.8867 ae0sp7afj88m5d7gl2d5mhhsq1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250226@162358.8878 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250226@162358.8955 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5546';
20250226@162358.9034 ae0sp7afj88m5d7gl2d5mhhsq1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5546';
20250226@162358.9157 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5546';
20250226@162358.9208 ae0sp7afj88m5d7gl2d5mhhsq1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5546';
20250226@162358.9280 ae0sp7afj88m5d7gl2d5mhhsq1 Query : use flama_phc
20250226@162358.9284 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250226@162358.9366 ae0sp7afj88m5d7gl2d5mhhsq1 Query : use flama_phc
20250226@162358.9370 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250226@162358.9464 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501425 
20250226@162358.9904 ae0sp7afj88m5d7gl2d5mhhsq1 Query : use flama_phc
20250226@162358.9908 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250226@162358.9942 ae0sp7afj88m5d7gl2d5mhhsq1 Query : use flama_phc
20250226@162358.9946 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250226@162358.9964 ae0sp7afj88m5d7gl2d5mhhsq1 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250226@162358.9993 ae0sp7afj88m5d7gl2d5mhhsq1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5546';
20250226@162359.7300 ae0sp7afj88m5d7gl2d5mhhsq1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5546';
20250226@162359.6530 miqiuldp3g34bsfnpl48aqov04 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250226@162359.6640 miqiuldp3g34bsfnpl48aqov04 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250226@162359.8260 miqiuldp3g34bsfnpl48aqov04 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5547';
20250226@162359.2381 miqiuldp3g34bsfnpl48aqov04 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5547';
20250226@162359.2550 miqiuldp3g34bsfnpl48aqov04 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5547';
20250226@162359.2615 miqiuldp3g34bsfnpl48aqov04 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5547';
20250226@162359.2719 miqiuldp3g34bsfnpl48aqov04 Query : use flama_phc
20250226@162359.2722 miqiuldp3g34bsfnpl48aqov04 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250226@162359.2872 miqiuldp3g34bsfnpl48aqov04 Query : use flama_phc
20250226@162359.2889 miqiuldp3g34bsfnpl48aqov04 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250226@162359.3055 miqiuldp3g34bsfnpl48aqov04 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501426 
20250226@162359.3548 miqiuldp3g34bsfnpl48aqov04 Query : use flama_phc
20250226@162359.3552 miqiuldp3g34bsfnpl48aqov04 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250226@162359.3585 miqiuldp3g34bsfnpl48aqov04 Query : use flama_phc
20250226@162359.3588 miqiuldp3g34bsfnpl48aqov04 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250226@162359.3644 miqiuldp3g34bsfnpl48aqov04 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250226@162359.3820 miqiuldp3g34bsfnpl48aqov04 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5547';
20250226@162359.3875 miqiuldp3g34bsfnpl48aqov04 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5547';
20250226@162359.4453 bk9ldv035ulq6qrudv6hv91vjg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250226@162359.4464 bk9ldv035ulq6qrudv6hv91vjg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250226@162359.4552 bk9ldv035ulq6qrudv6hv91vjg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5548';
20250226@162359.4644 bk9ldv035ulq6qrudv6hv91vjg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5548';
20250226@162359.4716 bk9ldv035ulq6qrudv6hv91vjg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5548';
20250226@162359.4758 bk9ldv035ulq6qrudv6hv91vjg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5548';
20250226@162359.4834 bk9ldv035ulq6qrudv6hv91vjg Query : use flama_phc
20250226@162359.4837 bk9ldv035ulq6qrudv6hv91vjg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250226@162359.4911 bk9ldv035ulq6qrudv6hv91vjg Query : use flama_phc
20250226@162359.4914 bk9ldv035ulq6qrudv6hv91vjg Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250226@162359.4963 bk9ldv035ulq6qrudv6hv91vjg Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501427 
20250226@162359.5412 bk9ldv035ulq6qrudv6hv91vjg Query : use flama_phc
20250226@162359.5416 bk9ldv035ulq6qrudv6hv91vjg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250226@162359.5451 bk9ldv035ulq6qrudv6hv91vjg Query : use flama_phc
20250226@162359.5454 bk9ldv035ulq6qrudv6hv91vjg Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250226@162359.5471 bk9ldv035ulq6qrudv6hv91vjg Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250226@162359.5494 bk9ldv035ulq6qrudv6hv91vjg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5548';
20250226@162359.5761 bk9ldv035ulq6qrudv6hv91vjg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5548';
20250226@162359.6344 kiruq3rp3leh3qvi0om2c757of Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250226@162359.6355 kiruq3rp3leh3qvi0om2c757of Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250226@162359.6635 kiruq3rp3leh3qvi0om2c757of Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5549';
20250226@162359.6729 kiruq3rp3leh3qvi0om2c757of Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5549';
20250226@162359.6805 kiruq3rp3leh3qvi0om2c757of Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5549';
20250226@162359.6853 kiruq3rp3leh3qvi0om2c757of Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5549';
20250226@162359.6919 kiruq3rp3leh3qvi0om2c757of Query : use flama_phc
20250226@162359.6923 kiruq3rp3leh3qvi0om2c757of Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250226@162359.7002 kiruq3rp3leh3qvi0om2c757of Query : use flama_phc
20250226@162359.7005 kiruq3rp3leh3qvi0om2c757of Query : select no, estab,szadrsdesc from szadrs where u_coddest=9486
20250226@162359.7150 kiruq3rp3leh3qvi0om2c757of Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501431 
20250226@162359.7604 kiruq3rp3leh3qvi0om2c757of Query : use flama_phc
20250226@162359.7607 kiruq3rp3leh3qvi0om2c757of Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250226@162359.7638 kiruq3rp3leh3qvi0om2c757of Query : use flama_phc
20250226@162359.7645 kiruq3rp3leh3qvi0om2c757of Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250226@162359.7664 kiruq3rp3leh3qvi0om2c757of Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250226@162359.7699 kiruq3rp3leh3qvi0om2c757of Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5549';
20250226@162359.7778 kiruq3rp3leh3qvi0om2c757of Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5549';
20250226@162359.8886 k6q0u8re57puvvi923j7h9ehq9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250226@162359.9927 k6q0u8re57puvvi923j7h9ehq9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250226@162400.8300 k6q0u8re57puvvi923j7h9ehq9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5550';
20250226@162400.1634 k6q0u8re57puvvi923j7h9ehq9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5550';
20250226@162400.2129 k6q0u8re57puvvi923j7h9ehq9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5550';
20250226@162400.2406 k6q0u8re57puvvi923j7h9ehq9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5550';
20250226@162400.2859 k6q0u8re57puvvi923j7h9ehq9 Query : use flama_phc
20250226@162400.2863 k6q0u8re57puvvi923j7h9ehq9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250226@162400.2971 k6q0u8re57puvvi923j7h9ehq9 Query : use flama_phc
20250226@162400.2991 k6q0u8re57puvvi923j7h9ehq9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=743
20250226@162400.3171 k6q0u8re57puvvi923j7h9ehq9 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501432 
20250226@162400.3966 k6q0u8re57puvvi923j7h9ehq9 Query : use flama_phc
20250226@162400.3972 k6q0u8re57puvvi923j7h9ehq9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250226@162400.4018 k6q0u8re57puvvi923j7h9ehq9 Query : use flama_phc
20250226@162400.4021 k6q0u8re57puvvi923j7h9ehq9 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250226@162400.4049 k6q0u8re57puvvi923j7h9ehq9 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250226@162400.4081 k6q0u8re57puvvi923j7h9ehq9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5550';
20250226@162400.4147 k6q0u8re57puvvi923j7h9ehq9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5550';

20250227@073420.6846 fn9tbaror8cnkf5957dfslabgr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5551';
20250227@073420.6934 fn9tbaror8cnkf5957dfslabgr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5551';
20250227@073420.6982 fn9tbaror8cnkf5957dfslabgr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5551';
20250227@073420.7047 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073420.7051 fn9tbaror8cnkf5957dfslabgr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@073420.7152 fn9tbaror8cnkf5957dfslabgr Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20250227@073420.7298 fn9tbaror8cnkf5957dfslabgr 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 = 2401187 and bi.ref ='324.1847.00.1' and bi.lordem =20000
20250227@073420.7706 fn9tbaror8cnkf5957dfslabgr 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 = 'cps24101846126,100000002 ' 
20250227@073420.8074 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073420.8078 fn9tbaror8cnkf5957dfslabgr Query : select top 1 1 valor from ts where ts.ndos = 61
20250227@073420.8187 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073420.8191 fn9tbaror8cnkf5957dfslabgr 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')
20250227@073420.8275 fn9tbaror8cnkf5957dfslabgr 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
20250227@073420.8450 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073420.8454 fn9tbaror8cnkf5957dfslabgr Query : select top 1 ~inactivo valor from fl where no = '202241' and estab = 00 order by inactivo desc
20250227@073420.8618 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073420.8621 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from ts where ndos = 61
20250227@073420.8718 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073420.9053 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250227@073420.9121 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073420.9138 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250227@073420.9150 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073420.9165 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250227@073420.9175 fn9tbaror8cnkf5957dfslabgr 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
20250227@073420.9308 fn9tbaror8cnkf5957dfslabgr Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250227@073420.9497 fn9tbaror8cnkf5957dfslabgr Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250227@073420.9519 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073420.9526 fn9tbaror8cnkf5957dfslabgr Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202241' and estab=00
20250227@073420.9606 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073420.9627 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250227@073420.9668 fn9tbaror8cnkf5957dfslabgr Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c013474767c0157ce8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250227@073420.9758 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073420.9778 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250227@073420.9792 fn9tbaror8cnkf5957dfslabgr Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c013474767c0157ce8','--','bo',7.8614173228346456692 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250227@073421.1040 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073421.1260 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250227@073421.1400 fn9tbaror8cnkf5957dfslabgr 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 ('aut67c013474767c0157ce8','guia r. fornecedor','2025-02-27',61,2500775,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250227@073424.2933 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073424.2937 fn9tbaror8cnkf5957dfslabgr Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20250227@073424.3321 fn9tbaror8cnkf5957dfslabgr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250227@073424.3525 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073424.3546 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250227@073424.3567 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073424.3584 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250227@073424.3595 fn9tbaror8cnkf5957dfslabgr Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2401187200a'
20250227@073424.3666 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073424.3685 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250227@073424.3697 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073424.3714 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250227@073424.3729 fn9tbaror8cnkf5957dfslabgr Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c019569067c015805a',?,?,'20250227',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250227@073424.4620 fn9tbaror8cnkf5957dfslabgr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250227@073424.4673 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073424.4691 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250227@073424.4704 fn9tbaror8cnkf5957dfslabgr Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c012770167c0158072','aut67c013474767c0157ce8',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 = 'aut67c013474767c0157ce8'
20250227@073424.5046 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@073424.5067 fn9tbaror8cnkf5957dfslabgr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250227@073424.5090 fn9tbaror8cnkf5957dfslabgr 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 'aut67c012770167c0158072',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 ,25.4,25.4*200.48,25.4,25.4*200.48 ,0,0,'un ','' ,bo.marcada,1 ,25.4*1336,25.4*1336*200.48 ,26.283000,26.283000*200.48 ,26.283000,26.283000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.4,25.4*200.48,25.4*1336,25.4*1336*200.48,'cps24101846126,100000002 ',199.68,199.68*1336,199.68,199.68*1336,?,?,?,4 from bo bo where bo.bostamp = 'aut67c013474767c0157ce8'
20250227@073432.8515 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073432.8520 fn9tbaror8cnkf5957dfslabgr Query : declare @bostamp varchar(25) = 'aut67c013474767c0157ce8' ,@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 
20250227@073446.4532 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073446.4535 fn9tbaror8cnkf5957dfslabgr Query : select 1 valor from bo where bo.bostamp = 'aut67c013474767c0157ce8'
20250227@073446.4641 fn9tbaror8cnkf5957dfslabgr 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) = 'aut67c013474767c0157ce8' 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 
20250227@073448.8900 fn9tbaror8cnkf5957dfslabgr Query : use flama_phc
20250227@073448.8903 fn9tbaror8cnkf5957dfslabgr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250227@073448.8957 fn9tbaror8cnkf5957dfslabgr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5551';
20250227@073448.9004 fn9tbaror8cnkf5957dfslabgr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5551';

20250227@080452.3527 mbf2fiff90rmbqhib7lho75ts8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5552';
20250227@080452.3634 mbf2fiff90rmbqhib7lho75ts8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5552';
20250227@080452.3695 mbf2fiff90rmbqhib7lho75ts8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5552';
20250227@080452.3803 mbf2fiff90rmbqhib7lho75ts8 Query : use flama_phc
20250227@080452.3807 mbf2fiff90rmbqhib7lho75ts8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@080452.3910 mbf2fiff90rmbqhib7lho75ts8 Query : use flama_phc
20250227@080452.3914 mbf2fiff90rmbqhib7lho75ts8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1800
20250227@080452.4051 mbf2fiff90rmbqhib7lho75ts8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501440 
20250227@080452.4638 mbf2fiff90rmbqhib7lho75ts8 Query : use flama_phc
20250227@080452.4642 mbf2fiff90rmbqhib7lho75ts8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@080452.4979 mbf2fiff90rmbqhib7lho75ts8 Query : use flama_phc
20250227@080452.4983 mbf2fiff90rmbqhib7lho75ts8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@080452.5087 mbf2fiff90rmbqhib7lho75ts8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@080452.5227 mbf2fiff90rmbqhib7lho75ts8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5552';
20250227@080452.6036 mbf2fiff90rmbqhib7lho75ts8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5552';

20250227@141600.2245 1gajtptkda838vhfmgm517kver Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5553';
20250227@141600.2321 1gajtptkda838vhfmgm517kver Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5553';
20250227@141600.3680 1gajtptkda838vhfmgm517kver Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5553';
20250227@141600.3784 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141600.3789 1gajtptkda838vhfmgm517kver Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@141600.3944 1gajtptkda838vhfmgm517kver Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9902.00.1'
20250227@141600.4084 1gajtptkda838vhfmgm517kver 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 = 2401260 and bi.ref ='328.9902.00.1' and bi.lordem =20000
20250227@141600.4522 1gajtptkda838vhfmgm517kver 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 = 'cps24103145386,481000002 ' 
20250227@141600.4905 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141600.4909 1gajtptkda838vhfmgm517kver Query : select top 1 1 valor from ts where ts.ndos = 61
20250227@141600.5010 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141600.5018 1gajtptkda838vhfmgm517kver 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')
20250227@141600.5092 1gajtptkda838vhfmgm517kver 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
20250227@141600.5256 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141600.5260 1gajtptkda838vhfmgm517kver Query : select top 1 ~inactivo valor from fl where no = '202530' and estab = 00 order by inactivo desc
20250227@141600.5417 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141600.5420 1gajtptkda838vhfmgm517kver Query : select 1 valor from ts where ndos = 61
20250227@141600.5523 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141600.5925 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250227@141600.5997 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141600.6067 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250227@141600.6129 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141600.6162 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250227@141600.6211 1gajtptkda838vhfmgm517kver 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
20250227@141600.6602 1gajtptkda838vhfmgm517kver Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250227@141600.6989 1gajtptkda838vhfmgm517kver Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250227@141600.7246 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141600.7328 1gajtptkda838vhfmgm517kver Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202530' and estab=00
20250227@141600.7564 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141600.7581 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250227@141600.7646 1gajtptkda838vhfmgm517kver Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c070718067c073a0b0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250227@141600.7699 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141600.7863 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250227@141600.7884 1gajtptkda838vhfmgm517kver Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c070718067c073a0b0','--','bo',7.8601005619639160011 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250227@141600.8093 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141600.8224 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250227@141600.8266 1gajtptkda838vhfmgm517kver 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 ('aut67c070718067c073a0b0','guia r. fornecedor','2025-02-27',61,2500791,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250227@141603.1684 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141603.1688 1gajtptkda838vhfmgm517kver Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20250227@141603.1776 1gajtptkda838vhfmgm517kver Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20250227@141603.1893 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141603.1908 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250227@141603.1923 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141603.1938 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250227@141603.1947 1gajtptkda838vhfmgm517kver Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2401260200a'
20250227@141603.2000 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141603.2016 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250227@141603.2027 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141603.2042 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250227@141603.2057 1gajtptkda838vhfmgm517kver Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c079554467c073a331',?,?,'20250227',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250227@141603.2539 1gajtptkda838vhfmgm517kver Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250227@141603.2590 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141603.2610 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250227@141603.2624 1gajtptkda838vhfmgm517kver Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c075494167c073a33f','aut67c070718067c073a0b0',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 = 'aut67c070718067c073a0b0'
20250227@141603.2780 1gajtptkda838vhfmgm517kver Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250227@141603.2802 1gajtptkda838vhfmgm517kver Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250227@141603.2821 1gajtptkda838vhfmgm517kver 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 'aut67c075494167c073a33f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 216, 216*.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 ,135.24,135.24*200.48,135.24,135.24*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,135.24*216,135.24*216*200.48 ,164.541000,164.541000*200.48 ,164.541000,164.541000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,135.24,135.24*200.48,135.24*216,135.24*216*200.48,'cps24103145386,481000002 ',1063,1063*216,1063,1063*216,?,?,?,4 from bo bo where bo.bostamp = 'aut67c070718067c073a0b0'
20250227@141612.2949 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141612.2954 1gajtptkda838vhfmgm517kver Query : declare @bostamp varchar(25) = 'aut67c070718067c073a0b0' ,@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 
20250227@141631.3787 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141631.3827 1gajtptkda838vhfmgm517kver Query : select 1 valor from bo where bo.bostamp = 'aut67c070718067c073a0b0'
20250227@141631.4186 1gajtptkda838vhfmgm517kver 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) = 'aut67c070718067c073a0b0' 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 
20250227@141635.6002 1gajtptkda838vhfmgm517kver Query : use flama_phc
20250227@141635.6045 1gajtptkda838vhfmgm517kver Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250227@141635.6522 1gajtptkda838vhfmgm517kver Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5553';
20250227@141635.6861 1gajtptkda838vhfmgm517kver Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5553';

20250227@163318.6076 25rd9vlsm231fn12k95ttgf36o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5554';
20250227@163318.6144 25rd9vlsm231fn12k95ttgf36o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5554';
20250227@163318.6188 25rd9vlsm231fn12k95ttgf36o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5554';
20250227@163318.6277 25rd9vlsm231fn12k95ttgf36o Query : use flama_phc
20250227@163318.6281 25rd9vlsm231fn12k95ttgf36o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163318.6350 25rd9vlsm231fn12k95ttgf36o Query : use flama_phc
20250227@163318.6353 25rd9vlsm231fn12k95ttgf36o Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250227@163318.6439 25rd9vlsm231fn12k95ttgf36o Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501266 
20250227@163318.6943 25rd9vlsm231fn12k95ttgf36o Query : use flama_phc
20250227@163318.6946 25rd9vlsm231fn12k95ttgf36o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163318.7001 25rd9vlsm231fn12k95ttgf36o Query : use flama_phc
20250227@163318.7004 25rd9vlsm231fn12k95ttgf36o Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163318.7066 25rd9vlsm231fn12k95ttgf36o Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163318.7104 25rd9vlsm231fn12k95ttgf36o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5554';
20250227@163318.7147 25rd9vlsm231fn12k95ttgf36o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5554';
20250227@163318.7932 fblvmsvio7pou91m4qjsfca33r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250227@163318.7943 fblvmsvio7pou91m4qjsfca33r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250227@163318.8018 fblvmsvio7pou91m4qjsfca33r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5555';
20250227@163318.8087 fblvmsvio7pou91m4qjsfca33r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5555';
20250227@163318.8155 fblvmsvio7pou91m4qjsfca33r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5555';
20250227@163318.8196 fblvmsvio7pou91m4qjsfca33r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5555';
20250227@163318.8277 fblvmsvio7pou91m4qjsfca33r Query : use flama_phc
20250227@163318.8280 fblvmsvio7pou91m4qjsfca33r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163318.8340 fblvmsvio7pou91m4qjsfca33r Query : use flama_phc
20250227@163318.8343 fblvmsvio7pou91m4qjsfca33r Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20250227@163318.8422 fblvmsvio7pou91m4qjsfca33r Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501408 
20250227@163318.8791 fblvmsvio7pou91m4qjsfca33r Query : use flama_phc
20250227@163318.8794 fblvmsvio7pou91m4qjsfca33r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163318.8824 fblvmsvio7pou91m4qjsfca33r Query : use flama_phc
20250227@163318.8827 fblvmsvio7pou91m4qjsfca33r Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163318.8844 fblvmsvio7pou91m4qjsfca33r Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163318.8890 fblvmsvio7pou91m4qjsfca33r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5555';
20250227@163318.8933 fblvmsvio7pou91m4qjsfca33r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5555';
20250227@163318.9571 0u8rq5voh6ibg5jh9d8o1kmnfe Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250227@163318.9583 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250227@163318.9656 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5556';
20250227@163318.9727 0u8rq5voh6ibg5jh9d8o1kmnfe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5556';
20250227@163318.9800 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5556';
20250227@163318.9840 0u8rq5voh6ibg5jh9d8o1kmnfe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5556';
20250227@163318.9902 0u8rq5voh6ibg5jh9d8o1kmnfe Query : use flama_phc
20250227@163318.9905 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163318.9966 0u8rq5voh6ibg5jh9d8o1kmnfe Query : use flama_phc
20250227@163318.9976 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20250227@163319.3500 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501409 
20250227@163319.4430 0u8rq5voh6ibg5jh9d8o1kmnfe Query : use flama_phc
20250227@163319.4460 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163319.5380 0u8rq5voh6ibg5jh9d8o1kmnfe Query : use flama_phc
20250227@163319.5420 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163319.5570 0u8rq5voh6ibg5jh9d8o1kmnfe Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163319.6500 0u8rq5voh6ibg5jh9d8o1kmnfe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5556';
20250227@163319.7070 0u8rq5voh6ibg5jh9d8o1kmnfe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5556';
20250227@163319.1262 d8ie4mmhg4dbsaar73k6iolas9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250227@163319.1273 d8ie4mmhg4dbsaar73k6iolas9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250227@163319.1348 d8ie4mmhg4dbsaar73k6iolas9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5557';
20250227@163319.1569 d8ie4mmhg4dbsaar73k6iolas9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5557';
20250227@163319.1662 d8ie4mmhg4dbsaar73k6iolas9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5557';
20250227@163319.1731 d8ie4mmhg4dbsaar73k6iolas9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5557';
20250227@163319.1815 d8ie4mmhg4dbsaar73k6iolas9 Query : use flama_phc
20250227@163319.1818 d8ie4mmhg4dbsaar73k6iolas9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163319.1901 d8ie4mmhg4dbsaar73k6iolas9 Query : use flama_phc
20250227@163319.1905 d8ie4mmhg4dbsaar73k6iolas9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250227@163319.1954 d8ie4mmhg4dbsaar73k6iolas9 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501444 
20250227@163319.2376 d8ie4mmhg4dbsaar73k6iolas9 Query : use flama_phc
20250227@163319.2379 d8ie4mmhg4dbsaar73k6iolas9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163319.2409 d8ie4mmhg4dbsaar73k6iolas9 Query : use flama_phc
20250227@163319.2412 d8ie4mmhg4dbsaar73k6iolas9 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163319.2435 d8ie4mmhg4dbsaar73k6iolas9 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163319.2455 d8ie4mmhg4dbsaar73k6iolas9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5557';
20250227@163319.2503 d8ie4mmhg4dbsaar73k6iolas9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5557';
20250227@163319.3111 rjqshb27qs7rt9r0ua7j0n30b8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250227@163319.3151 rjqshb27qs7rt9r0ua7j0n30b8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250227@163319.3232 rjqshb27qs7rt9r0ua7j0n30b8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5558';
20250227@163319.3427 rjqshb27qs7rt9r0ua7j0n30b8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5558';
20250227@163319.3612 rjqshb27qs7rt9r0ua7j0n30b8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5558';
20250227@163319.3672 rjqshb27qs7rt9r0ua7j0n30b8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5558';
20250227@163319.3764 rjqshb27qs7rt9r0ua7j0n30b8 Query : use flama_phc
20250227@163319.3768 rjqshb27qs7rt9r0ua7j0n30b8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163319.3841 rjqshb27qs7rt9r0ua7j0n30b8 Query : use flama_phc
20250227@163319.3844 rjqshb27qs7rt9r0ua7j0n30b8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250227@163319.3891 rjqshb27qs7rt9r0ua7j0n30b8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501445 
20250227@163319.4267 rjqshb27qs7rt9r0ua7j0n30b8 Query : use flama_phc
20250227@163319.4271 rjqshb27qs7rt9r0ua7j0n30b8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163319.4299 rjqshb27qs7rt9r0ua7j0n30b8 Query : use flama_phc
20250227@163319.4302 rjqshb27qs7rt9r0ua7j0n30b8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163319.4317 rjqshb27qs7rt9r0ua7j0n30b8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163319.4353 rjqshb27qs7rt9r0ua7j0n30b8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5558';
20250227@163319.4397 rjqshb27qs7rt9r0ua7j0n30b8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5558';
20250227@163319.5037 76fsu5pvbas3mjbk778rucn12b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250227@163319.5048 76fsu5pvbas3mjbk778rucn12b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250227@163319.5363 76fsu5pvbas3mjbk778rucn12b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5559';
20250227@163319.5745 76fsu5pvbas3mjbk778rucn12b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5559';
20250227@163319.5836 76fsu5pvbas3mjbk778rucn12b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5559';
20250227@163319.5880 76fsu5pvbas3mjbk778rucn12b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5559';
20250227@163319.5948 76fsu5pvbas3mjbk778rucn12b Query : use flama_phc
20250227@163319.5951 76fsu5pvbas3mjbk778rucn12b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163319.6032 76fsu5pvbas3mjbk778rucn12b Query : use flama_phc
20250227@163319.6036 76fsu5pvbas3mjbk778rucn12b Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250227@163319.6092 76fsu5pvbas3mjbk778rucn12b Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501446 
20250227@163319.6475 76fsu5pvbas3mjbk778rucn12b Query : use flama_phc
20250227@163319.6478 76fsu5pvbas3mjbk778rucn12b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163319.6510 76fsu5pvbas3mjbk778rucn12b Query : use flama_phc
20250227@163319.6513 76fsu5pvbas3mjbk778rucn12b Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163319.6532 76fsu5pvbas3mjbk778rucn12b Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163319.6561 76fsu5pvbas3mjbk778rucn12b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5559';
20250227@163319.6614 76fsu5pvbas3mjbk778rucn12b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5559';
20250227@163319.7153 tfj1h9r41tqomj4e2ihq0debec Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250227@163319.7164 tfj1h9r41tqomj4e2ihq0debec Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250227@163319.7243 tfj1h9r41tqomj4e2ihq0debec Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5560';
20250227@163319.7324 tfj1h9r41tqomj4e2ihq0debec Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5560';
20250227@163319.7394 tfj1h9r41tqomj4e2ihq0debec Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5560';
20250227@163319.7448 tfj1h9r41tqomj4e2ihq0debec Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5560';
20250227@163319.7532 tfj1h9r41tqomj4e2ihq0debec Query : use flama_phc
20250227@163319.7536 tfj1h9r41tqomj4e2ihq0debec Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163319.7602 tfj1h9r41tqomj4e2ihq0debec Query : use flama_phc
20250227@163319.7605 tfj1h9r41tqomj4e2ihq0debec Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250227@163319.7671 tfj1h9r41tqomj4e2ihq0debec Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501448 
20250227@163319.8209 tfj1h9r41tqomj4e2ihq0debec Query : use flama_phc
20250227@163319.8213 tfj1h9r41tqomj4e2ihq0debec Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163319.8253 tfj1h9r41tqomj4e2ihq0debec Query : use flama_phc
20250227@163319.8256 tfj1h9r41tqomj4e2ihq0debec Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163319.8272 tfj1h9r41tqomj4e2ihq0debec Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163319.8296 tfj1h9r41tqomj4e2ihq0debec Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5560';
20250227@163319.8347 tfj1h9r41tqomj4e2ihq0debec Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5560';
20250227@163319.8946 41lqmjmu2bvru20c72o4di5e7e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250227@163319.8957 41lqmjmu2bvru20c72o4di5e7e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250227@163319.9077 41lqmjmu2bvru20c72o4di5e7e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5561';
20250227@163319.9162 41lqmjmu2bvru20c72o4di5e7e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5561';
20250227@163319.9291 41lqmjmu2bvru20c72o4di5e7e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5561';
20250227@163319.9384 41lqmjmu2bvru20c72o4di5e7e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5561';
20250227@163319.9584 41lqmjmu2bvru20c72o4di5e7e Query : use flama_phc
20250227@163319.9588 41lqmjmu2bvru20c72o4di5e7e Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250227@163319.9773 41lqmjmu2bvru20c72o4di5e7e Query : use flama_phc
20250227@163319.9807 41lqmjmu2bvru20c72o4di5e7e Query : select no, estab,szadrsdesc from szadrs where u_coddest=7778
20250227@163320.1000 41lqmjmu2bvru20c72o4di5e7e Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501450 
20250227@163320.4280 41lqmjmu2bvru20c72o4di5e7e Query : use flama_phc
20250227@163320.4310 41lqmjmu2bvru20c72o4di5e7e Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250227@163320.5590 41lqmjmu2bvru20c72o4di5e7e Query : use flama_phc
20250227@163320.5630 41lqmjmu2bvru20c72o4di5e7e Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250227@163320.5960 41lqmjmu2bvru20c72o4di5e7e Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250227@163320.6310 41lqmjmu2bvru20c72o4di5e7e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5561';
20250227@163320.6770 41lqmjmu2bvru20c72o4di5e7e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5561';

20250228@092815.5414 clpmfojb6gju2geis37njkd3n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5562';
20250228@092815.5495 clpmfojb6gju2geis37njkd3n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5562';
20250228@092815.5531 clpmfojb6gju2geis37njkd3n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5562';
20250228@092815.7393 mub3g0lhokteptjru558lvi70g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@092815.7408 mub3g0lhokteptjru558lvi70g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@092815.7486 mub3g0lhokteptjru558lvi70g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5563';
20250228@092815.7561 mub3g0lhokteptjru558lvi70g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5563';
20250228@092815.7637 mub3g0lhokteptjru558lvi70g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5563';
20250228@092815.7675 mub3g0lhokteptjru558lvi70g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5563';
20250228@092815.7733 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092815.7737 mub3g0lhokteptjru558lvi70g Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@092815.7837 mub3g0lhokteptjru558lvi70g Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20250228@092815.7935 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1675.00.2'
20250228@092815.8032 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.1675.00.2' and bi.lordem =10000
20250228@092815.8383 mub3g0lhokteptjru558lvi70g 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 = 'az25022756898,777000001 ' 
20250228@092815.8699 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1675.00.2'
20250228@092815.8720 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.1675.00.2' and bi.lordem =10000
20250228@092815.8742 mub3g0lhokteptjru558lvi70g 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 = 'az25022756898,777000001 ' 
20250228@092815.8766 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2031.00.1'
20250228@092815.8860 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.2031.00.1' and bi.lordem =20000
20250228@092815.9171 mub3g0lhokteptjru558lvi70g 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 = 'az25022759321,486000002 ' 
20250228@092815.9457 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1308.00.1'
20250228@092815.9550 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.1308.00.1' and bi.lordem =30000
20250228@092815.9860 mub3g0lhokteptjru558lvi70g 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 = 'az25022759390,409000003 ' 
20250228@092816.1530 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4980.00.1'
20250228@092816.2450 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.4980.00.1' and bi.lordem =40000
20250228@092816.6810 mub3g0lhokteptjru558lvi70g 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 = 'az25022759403,072000004 ' 
20250228@092816.1006 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4990.00.1'
20250228@092816.1090 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.4990.00.1' and bi.lordem =50000
20250228@092816.2416 mub3g0lhokteptjru558lvi70g 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 = 'az25022759410,907000005 ' 
20250228@092816.2762 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4990.00.1'
20250228@092816.2931 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.4990.00.1' and bi.lordem =50000
20250228@092816.3147 mub3g0lhokteptjru558lvi70g 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 = 'az25022759410,907000005 ' 
20250228@092816.3188 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1646.00.1'
20250228@092816.3281 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.1646.00.1' and bi.lordem =60000
20250228@092816.3613 mub3g0lhokteptjru558lvi70g 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 = 'az25022759419,764000006 ' 
20250228@092816.3906 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4960.00.1'
20250228@092816.3994 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.4960.00.1' and bi.lordem =70000
20250228@092816.4304 mub3g0lhokteptjru558lvi70g 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 = 'az25022759431,575000007 ' 
20250228@092816.4599 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1716.00.1'
20250228@092816.4711 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.1716.00.1' and bi.lordem =80000
20250228@092816.5032 mub3g0lhokteptjru558lvi70g 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 = 'az25022759453,930000008 ' 
20250228@092816.5349 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4961.00.1'
20250228@092816.5466 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.4961.00.1' and bi.lordem =90000
20250228@092816.5985 mub3g0lhokteptjru558lvi70g 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 = 'az25022759472,520000009 ' 
20250228@092816.6433 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4962.00.1'
20250228@092816.6523 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.4962.00.1' and bi.lordem =100000
20250228@092816.6844 mub3g0lhokteptjru558lvi70g 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 = 'az25022759512,114000010 ' 
20250228@092816.8405 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1862.00.1'
20250228@092816.9217 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.1862.00.1' and bi.lordem =110000
20250228@092816.9553 mub3g0lhokteptjru558lvi70g 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 = 'az25022759717,859000011 ' 
20250228@092816.9857 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1862.00.1'
20250228@092816.9879 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.1862.00.1' and bi.lordem =110000
20250228@092816.9903 mub3g0lhokteptjru558lvi70g 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 = 'az25022759717,859000011 ' 
20250228@092816.9924 mub3g0lhokteptjru558lvi70g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20250228@092817.8000 mub3g0lhokteptjru558lvi70g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000547 and bi.ref ='324.5501.00.1' and bi.lordem =120000
20250228@092817.3140 mub3g0lhokteptjru558lvi70g 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 = 'az25022759739,154000012 ' 
20250228@092817.6060 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6090 mub3g0lhokteptjru558lvi70g Query : select top 1 1 valor from ts where ts.ndos = 5
20250228@092817.6820 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6850 mub3g0lhokteptjru558lvi70g 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')
20250228@092817.7540 mub3g0lhokteptjru558lvi70g Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20250228@092817.8640 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.8670 mub3g0lhokteptjru558lvi70g Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20250228@092817.9620 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.9920 mub3g0lhokteptjru558lvi70g Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@092817.1060 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.1063 mub3g0lhokteptjru558lvi70g Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20250228@092817.1111 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.1114 mub3g0lhokteptjru558lvi70g Query : select 1 valor from ts where ndos = 5
20250228@092817.1163 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.1486 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20250228@092817.1690 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.1773 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20250228@092817.1906 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.1925 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20250228@092817.1936 mub3g0lhokteptjru558lvi70g Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20250228@092817.2029 mub3g0lhokteptjru558lvi70g Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250228@092817.2155 mub3g0lhokteptjru558lvi70g Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250228@092817.2494 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.2509 mub3g0lhokteptjru558lvi70g Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20250228@092817.2593 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.2612 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20250228@092817.2647 mub3g0lhokteptjru558lvi70g Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c185430367c181b13c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250228@092817.2726 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.2742 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20250228@092817.2754 mub3g0lhokteptjru558lvi70g Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut67c185430367c181b13c','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20250228','09:58',?,?)
20250228@092817.3319 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.3339 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20250228@092817.3361 mub3g0lhokteptjru558lvi70g Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut67c185430367c181b13c','trf entre armazéns a','2025-02-28',5,84,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20250228@092817.3972 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.3976 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250228@092817.4060 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.4063 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250228@092817.4135 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.4138 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1675.00.2' and sa.armazem = 133 
20250228@092817.4197 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.4199 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250228@092817.4222 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250228@092817.4324 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.4339 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.4354 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.4375 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.4387 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2401094200a'
20250228@092817.4447 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092817.4483 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.4500 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.4512 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c187703367c181b16d','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.5307 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.5381 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.5399 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c187703367c181b16d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,57.6*8.000,57.6*8.000*200.48 ,19.800000,19.800000*200.48 ,19.800000,19.800000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,57.6,57.6*200.48,57.6*8.000,57.6*8.000*200.48,'az25022756898,777000001 ',57.6,57.6*8.000,57.6,57.6*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.6042 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6047 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250228@092817.6061 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6065 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250228@092817.6087 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6091 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1675.00.2' and sa.armazem = 133 
20250228@092817.6118 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6121 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250228@092817.6141 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250228@092817.6155 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.6175 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.6188 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.6203 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.6211 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2401094200a'
20250228@092817.6224 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092817.6236 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.6250 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.6271 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c183359667c181b198','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.6421 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.6438 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.6454 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c183359667c181b198',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,57.6*4.000,57.6*4.000*200.48 ,19.800000,19.800000*200.48 ,19.800000,19.800000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,57.6,57.6*200.48,57.6*4.000,57.6*4.000*200.48,'az25022756898,777000001 ',57.6,57.6*4.000,57.6,57.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.6728 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6732 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.2031.00.1'
20250228@092817.6748 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6750 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.2031.00.1'
20250228@092817.6767 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6770 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2031.00.1' and sa.armazem = 133 
20250228@092817.6832 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.6835 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.2031.00.1'
20250228@092817.6863 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2031.00.1'
20250228@092817.6978 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.6994 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.7007 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.7021 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.7029 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.2031.00.1' and lote = 'r2100232100a'
20250228@092817.7057 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092817.7069 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.7084 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.7106 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c185034267c181b1ac','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.7253 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.7271 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.7292 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c185034267c181b1ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,23.7,23.7*200.48,23.7,23.7*200.48 ,0,0,'un ','' ,bo.marcada,1 ,23.7*12.000,23.7*12.000*200.48 ,8.924000,8.924000*200.48 ,8.924000,8.924000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,23.7,23.7*200.48,23.7*12.000,23.7*12.000*200.48,'az25022759321,486000002 ',23.7,23.7*12.000,23.7,23.7*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.7553 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.7557 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.1308.00.1'
20250228@092817.7573 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.7576 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1308.00.1'
20250228@092817.7593 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.7595 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1308.00.1' and sa.armazem = 133 
20250228@092817.8816 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.8819 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1308.00.1'
20250228@092817.8846 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1308.00.1'
20250228@092817.8970 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.8997 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.9010 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.9024 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.9032 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.1308.00.1' and lote = 'r2401317200a'
20250228@092817.9044 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092817.9056 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.9070 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.9081 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c184306167c181b1dd','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.9267 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.9286 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.9301 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c184306167c181b1dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 10.000, 10.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*10.000,96*10.000*200.48 ,45.671000,45.671000*200.48 ,45.671000,45.671000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*10.000,96*10.000*200.48,'az25022759390,409000003 ',96,96*10.000,96,96*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092817.9578 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.9583 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20250228@092817.9598 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.9600 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4980.00.1'
20250228@092817.9618 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.9621 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4980.00.1' and sa.armazem = 133 
20250228@092817.9699 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092817.9702 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4980.00.1'
20250228@092817.9720 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4980.00.1'
20250228@092817.9835 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.9851 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092817.9863 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.9877 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.9885 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2401064200a'
20250228@092817.9898 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092817.9910 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092817.9924 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092817.9935 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c186683167c181b1f1','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.7400 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.9900 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.1160 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c186683167c181b1f1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20.000, 20.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un ','' ,bo.marcada,1 ,28.8*20.000,28.8*20.000*200.48 ,10.001000,10.001000*200.48 ,10.001000,10.001000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*20.000,28.8*20.000*200.48,'az25022759403,072000004 ',28.8,28.8*20.000,28.8,28.8*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.3980 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.4030 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20250228@092818.4190 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.4220 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250228@092818.4390 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.4410 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4990.00.1' and sa.armazem = 133 
20250228@092818.5120 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5150 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250228@092818.5350 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250228@092818.6490 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.6650 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.6780 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.6920 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.7010 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20250228@092818.7230 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.7370 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.7530 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.7670 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c187523367c181b211','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.9050 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.9230 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.9390 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c187523367c181b211',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 10.000, 10.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*10.000,28.8*10.000*200.48 ,12.265000,12.265000*200.48 ,12.265000,12.265000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*10.000,28.8*10.000*200.48,'az25022759410,907000005 ',28.8,28.8*10.000,28.8,28.8*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.1197 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.1201 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20250228@092818.1217 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.1220 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250228@092818.1237 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.1240 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4990.00.1' and sa.armazem = 133 
20250228@092818.1301 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.1304 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250228@092818.1324 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250228@092818.1338 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.1355 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.1368 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.1384 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.1403 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20250228@092818.1416 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.1429 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.1444 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.1457 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c187479167c181b222','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.1607 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.1626 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.1657 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c187479167c181b222',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,70000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*2.000,28.8*2.000*200.48 ,12.265000,12.265000*200.48 ,12.265000,12.265000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*2.000,28.8*2.000*200.48,'az25022759410,907000005 ',28.8,28.8*2.000,28.8,28.8*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.2020 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.2028 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20250228@092818.2103 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.2107 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250228@092818.2255 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.2298 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1646.00.1' and sa.armazem = 133 
20250228@092818.2381 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.2384 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250228@092818.2403 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20250228@092818.2519 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.2537 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.2551 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.2565 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.2573 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2400725100a'
20250228@092818.2592 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.2604 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.2619 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.2630 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c182269967c181b23f','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.2780 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.2797 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.2813 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c182269967c181b23f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 20.000, 20.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,80000 ,108.8,108.8*200.48,108.8,108.8*200.48 ,0,0,'un ','' ,bo.marcada,1 ,108.8*20.000,108.8*20.000*200.48 ,43.504000,43.504000*200.48 ,43.504000,43.504000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,108.8,108.8*200.48,108.8*20.000,108.8*20.000*200.48,'az25022759419,764000006 ',108.8,108.8*20.000,108.8,108.8*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.3083 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.3087 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20250228@092818.3101 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.3104 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20250228@092818.3124 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.3127 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4960.00.1' and sa.armazem = 133 
20250228@092818.3202 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.3204 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20250228@092818.3230 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250228@092818.3347 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.3369 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.3387 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.3406 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.3418 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20250228@092818.3440 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.3455 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.3475 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.3489 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c188509767c181b254','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.3662 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.3683 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.3701 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c188509767c181b254',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 24.000, 24.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,90000 ,19.2,19.2*200.48,19.2,19.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,19.2*24.000,19.2*24.000*200.48 ,6.102000,6.102000*200.48 ,6.102000,6.102000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.2,19.2*200.48,19.2*24.000,19.2*24.000*200.48,'az25022759431,575000007 ',19.2,19.2*24.000,19.2,19.2*24.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.3964 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.3968 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20250228@092818.3983 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.3985 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1716.00.1'
20250228@092818.4003 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.4006 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1716.00.1' and sa.armazem = 133 
20250228@092818.4361 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.4364 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1716.00.1'
20250228@092818.4395 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1716.00.1'
20250228@092818.4515 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.4532 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.4546 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.4562 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.4571 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20250228@092818.4598 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.4613 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.4630 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.4642 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c188590067c181b270','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.4798 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.4815 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.4831 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c188590067c181b270',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,100000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*12.000,28.8*12.000*200.48 ,11.292000,11.292000*200.48 ,11.292000,11.292000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*12.000,28.8*12.000*200.48,'az25022759453,930000008 ',28.8,28.8*12.000,28.8,28.8*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.5088 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5092 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.4961.00.1'
20250228@092818.5107 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5110 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4961.00.1'
20250228@092818.5126 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5129 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4961.00.1' and sa.armazem = 133 
20250228@092818.5194 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5197 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4961.00.1'
20250228@092818.5219 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4961.00.1'
20250228@092818.5344 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.5360 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.5372 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.5386 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.5394 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.4961.00.1' and lote = 'r2101092200a'
20250228@092818.5418 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.5430 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.5444 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.5455 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c184702667c181b284','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.5598 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.5613 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.5628 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c184702667c181b284',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 24.000, 24.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,110000 ,32,32*200.48,32,32*200.48 ,0,0,'un ','' ,bo.marcada,1 ,32*24.000,32*24.000*200.48 ,13.698000,13.698000*200.48 ,13.698000,13.698000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*24.000,32*24.000*200.48,'az25022759472,520000009 ',32,32*24.000,32,32*24.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.5875 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5880 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.4962.00.1'
20250228@092818.5895 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5897 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4962.00.1'
20250228@092818.5913 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5915 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4962.00.1' and sa.armazem = 133 
20250228@092818.5992 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.5995 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.4962.00.1'
20250228@092818.6013 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4962.00.1'
20250228@092818.6136 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.6152 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.6164 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.6179 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.6187 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.4962.00.1' and lote = 'r2101092100a'
20250228@092818.6206 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.6219 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.6232 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.6244 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c184430567c181b297','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.6387 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.6403 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.6418 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c184430567c181b297',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 16.000, 16.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,120000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*16.000,32*16.000*200.48 ,13.716000,13.716000*200.48 ,13.716000,13.716000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*16.000,32*16.000*200.48,'az25022759512,114000010 ',32,32*16.000,32,32*16.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.6751 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.6755 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20250228@092818.6770 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.6773 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20250228@092818.6789 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.6791 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1862.00.1' and sa.armazem = 133 
20250228@092818.6852 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.6855 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20250228@092818.6873 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1862.00.1'
20250228@092818.7118 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.7300 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.7312 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.7327 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.7336 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20250228@092818.7356 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.7376 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.7391 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.7402 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c187739267c181b2b4','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.7547 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.7564 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.7584 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c187739267c181b2b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,130000 ,90,90*200.48,90,90*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,90*6.000,90*6.000*200.48 ,42.473000,42.473000*200.48 ,42.473000,42.473000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,90,90*200.48,90*6.000,90*6.000*200.48,'az25022759717,859000011 ',90,90*6.000,90,90*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.7861 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.7865 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20250228@092818.7879 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.7882 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20250228@092818.7898 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.7900 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1862.00.1' and sa.armazem = 133 
20250228@092818.7923 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.7925 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20250228@092818.7951 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1862.00.1'
20250228@092818.7970 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.7987 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.8002 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.8017 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.8025 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20250228@092818.8038 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.8050 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.8066 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.8078 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c187988067c181b2c4','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.8233 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.8250 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.8266 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c187988067c181b2c4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,140000 ,90,90*200.48,90,90*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,90*4.000,90*4.000*200.48 ,42.473000,42.473000*200.48 ,42.473000,42.473000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,90,90*200.48,90*4.000,90*4.000*200.48,'az25022759717,859000011 ',90,90*4.000,90,90*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.8526 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.8530 mub3g0lhokteptjru558lvi70g Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20250228@092818.8546 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.8549 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20250228@092818.8567 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.8570 mub3g0lhokteptjru558lvi70g Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5501.00.1' and sa.armazem = 133 
20250228@092818.8635 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.8638 mub3g0lhokteptjru558lvi70g Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20250228@092818.8656 mub3g0lhokteptjru558lvi70g Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20250228@092818.8776 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.8792 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.8805 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.8821 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.8829 mub3g0lhokteptjru558lvi70g Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2401101100a'
20250228@092818.8843 mub3g0lhokteptjru558lvi70g Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@092818.8856 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.8871 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250228@092818.8883 mub3g0lhokteptjru558lvi70g Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c183411867c181b2d8','aut67c185430367c181b13c',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.9033 mub3g0lhokteptjru558lvi70g Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@092818.9050 mub3g0lhokteptjru558lvi70g Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250228@092818.9066 mub3g0lhokteptjru558lvi70g Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67c183411867c181b2d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,150000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*12.000,64*12.000*200.48 ,18.463000,18.463000*200.48 ,18.463000,18.463000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*12.000,64*12.000*200.48,'az25022759739,154000012 ',64,64*12.000,64,64*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c185430367c181b13c'
20250228@092818.9327 mub3g0lhokteptjru558lvi70g Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut67c185430367c181b13c','','wait',5,'adm12071144683,938000003','')
20250228@092818.9426 mub3g0lhokteptjru558lvi70g Query : use flama_phc
20250228@092818.9430 mub3g0lhokteptjru558lvi70g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250228@092818.9489 mub3g0lhokteptjru558lvi70g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5563';
20250228@092818.9535 mub3g0lhokteptjru558lvi70g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5563';

20250228@094437.7465 rh0u62aimop5h0j5h548c6qtr2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5564';
20250228@094437.7532 rh0u62aimop5h0j5h548c6qtr2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5564';
20250228@094437.7573 rh0u62aimop5h0j5h548c6qtr2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5564';
20250228@094437.8510 3cpccon87cnu1745so956rs7qo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@094437.8523 3cpccon87cnu1745so956rs7qo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@094437.8597 3cpccon87cnu1745so956rs7qo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5565';
20250228@094437.8659 3cpccon87cnu1745so956rs7qo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5565';
20250228@094437.8727 3cpccon87cnu1745so956rs7qo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5565';
20250228@094437.8762 3cpccon87cnu1745so956rs7qo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5565';
20250228@094437.8812 3cpccon87cnu1745so956rs7qo Query : use flama_phc
20250228@094437.8815 3cpccon87cnu1745so956rs7qo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@094437.8916 3cpccon87cnu1745so956rs7qo Query : select no, estab,szadrsdesc from szadrs where u_coddest=00000001
20250228@094437.9006 3cpccon87cnu1745so956rs7qo Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9902.00.1'
20250228@094437.9108 3cpccon87cnu1745so956rs7qo Query : use flama_phc
20250228@094437.9111 3cpccon87cnu1745so956rs7qo Query : select top 1 1 valor from ts where ts.ndos = 5
20250228@094437.9141 3cpccon87cnu1745so956rs7qo Query : use flama_phc
20250228@094437.9144 3cpccon87cnu1745so956rs7qo 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')
20250228@094437.9210 3cpccon87cnu1745so956rs7qo Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20250228@094437.9246 3cpccon87cnu1745so956rs7qo Query : use flama_phc
20250228@094437.9249 3cpccon87cnu1745so956rs7qo Query : select top 1 ~inactivo valor from fl where no = '102245' and estab = 0 order by inactivo desc
20250228@094437.9348 3cpccon87cnu1745so956rs7qo Query : use flama_phc
20250228@094437.9351 3cpccon87cnu1745so956rs7qo Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250228@094437.9465 3cpccon87cnu1745so956rs7qo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5565';
20250228@094437.9511 3cpccon87cnu1745so956rs7qo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5565';

20250228@140449.7730 ve94pudhf2j6ai761kj7me3v7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5566';
20250228@140449.8500 ve94pudhf2j6ai761kj7me3v7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5566';
20250228@140449.9060 ve94pudhf2j6ai761kj7me3v7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5566';
20250228@140449.1062 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140449.1066 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@140449.1175 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20250228@140449.1289 ve94pudhf2j6ai761kj7me3v7l 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 = 2401240 and bi.ref ='324.958.00.01' and bi.lordem =20000
20250228@140449.1727 ve94pudhf2j6ai761kj7me3v7l 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 = 'cps24102962103,475000002 ' 
20250228@140449.2123 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140449.2127 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 1 valor from ts where ts.ndos = 61
20250228@140449.2204 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140449.2208 ve94pudhf2j6ai761kj7me3v7l 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')
20250228@140449.2271 ve94pudhf2j6ai761kj7me3v7l 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
20250228@140449.2405 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140449.2408 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 ~inactivo valor from fl where no = '202300' and estab = 00 order by inactivo desc
20250228@140449.2525 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140449.2528 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from ts where ndos = 61
20250228@140449.2550 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140449.2575 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250228@140449.2647 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140449.2670 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250228@140449.2682 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140449.2697 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250228@140449.2707 ve94pudhf2j6ai761kj7me3v7l 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
20250228@140449.2800 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250228@140449.2884 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250228@140449.2905 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140449.2912 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202300' and estab=00
20250228@140449.3188 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140449.3208 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250228@140449.3231 ve94pudhf2j6ai761kj7me3v7l Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c1c5849167c1c28146',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250228@140449.3296 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140449.3314 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250228@140449.3327 ve94pudhf2j6ai761kj7me3v7l Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c1c5849167c1c28146','--','bo',7.8651685393258426966 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250228@140449.3546 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140449.3630 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250228@140449.3648 ve94pudhf2j6ai761kj7me3v7l 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 ('aut67c1c5849167c1c28146','guia r. fornecedor','2025-02-28',61,2500806,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250228@140452.2950 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140452.2954 ve94pudhf2j6ai761kj7me3v7l Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20250228@140452.2987 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250228@140452.3126 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140452.3143 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250228@140452.3170 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140452.3187 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250228@140452.3198 ve94pudhf2j6ai761kj7me3v7l Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2401240200a'
20250228@140452.3219 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140452.3235 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250228@140452.3245 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140452.3262 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250228@140452.3276 ve94pudhf2j6ai761kj7me3v7l Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c1c9705567c1c2844f',?,?,'20250228',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250228@140452.3826 ve94pudhf2j6ai761kj7me3v7l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250228@140452.3860 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140452.3877 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250228@140452.3892 ve94pudhf2j6ai761kj7me3v7l Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c1c2712967c1c2845e','aut67c1c5849167c1c28146',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 = 'aut67c1c5849167c1c28146'
20250228@140452.4126 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250228@140452.4146 ve94pudhf2j6ai761kj7me3v7l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250228@140452.4166 ve94pudhf2j6ai761kj7me3v7l 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 'aut67c1c2712967c1c2845e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4268, 4268*.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 ,6.23,6.23*200.48,6.23,6.23*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,6.23*4268,6.23*4268*200.48 ,8.220000,8.220000*200.48 ,8.220000,8.220000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,6.23,6.23*200.48,6.23*4268,6.23*4268*200.48,'cps24102962103,475000002 ',49,49*4268,49,49*4268,?,?,?,4 from bo bo where bo.bostamp = 'aut67c1c5849167c1c28146'
20250228@140503.9899 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140503.9912 ve94pudhf2j6ai761kj7me3v7l Query : declare @bostamp varchar(25) = 'aut67c1c5849167c1c28146' ,@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 
20250228@140517.1400 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140517.1430 ve94pudhf2j6ai761kj7me3v7l Query : select 1 valor from bo where bo.bostamp = 'aut67c1c5849167c1c28146'
20250228@140517.8160 ve94pudhf2j6ai761kj7me3v7l 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) = 'aut67c1c5849167c1c28146' 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 
20250228@140519.8768 ve94pudhf2j6ai761kj7me3v7l Query : use flama_phc
20250228@140519.8774 ve94pudhf2j6ai761kj7me3v7l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250228@140519.8837 ve94pudhf2j6ai761kj7me3v7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5566';
20250228@140519.8890 ve94pudhf2j6ai761kj7me3v7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5566';

20250228@165644.7522 sui59tp0ico9raf6pmcmi605p4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5567';
20250228@165644.7600 sui59tp0ico9raf6pmcmi605p4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5567';
20250228@165644.7648 sui59tp0ico9raf6pmcmi605p4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5567';
20250228@165644.7719 sui59tp0ico9raf6pmcmi605p4 Query : use flama_phc
20250228@165644.7723 sui59tp0ico9raf6pmcmi605p4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165644.7827 sui59tp0ico9raf6pmcmi605p4 Query : use flama_phc
20250228@165644.7830 sui59tp0ico9raf6pmcmi605p4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20250228@165644.7923 sui59tp0ico9raf6pmcmi605p4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501447 
20250228@165644.8314 sui59tp0ico9raf6pmcmi605p4 Query : use flama_phc
20250228@165644.8317 sui59tp0ico9raf6pmcmi605p4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165644.8383 sui59tp0ico9raf6pmcmi605p4 Query : use flama_phc
20250228@165644.8387 sui59tp0ico9raf6pmcmi605p4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165644.8468 sui59tp0ico9raf6pmcmi605p4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165644.8525 sui59tp0ico9raf6pmcmi605p4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5567';
20250228@165644.8588 sui59tp0ico9raf6pmcmi605p4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5567';
20250228@165644.9115 4tqn6pt3pdee0e2c2vj0hqji8d Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165644.9126 4tqn6pt3pdee0e2c2vj0hqji8d Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165644.9211 4tqn6pt3pdee0e2c2vj0hqji8d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5568';
20250228@165644.9294 4tqn6pt3pdee0e2c2vj0hqji8d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5568';
20250228@165644.9376 4tqn6pt3pdee0e2c2vj0hqji8d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5568';
20250228@165644.9416 4tqn6pt3pdee0e2c2vj0hqji8d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5568';
20250228@165644.9482 4tqn6pt3pdee0e2c2vj0hqji8d Query : use flama_phc
20250228@165644.9486 4tqn6pt3pdee0e2c2vj0hqji8d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165645.9210 4tqn6pt3pdee0e2c2vj0hqji8d Query : use flama_phc
20250228@165645.9260 4tqn6pt3pdee0e2c2vj0hqji8d Query : select no, estab,szadrsdesc from szadrs where u_coddest=1957
20250228@165645.1013 4tqn6pt3pdee0e2c2vj0hqji8d Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501449 
20250228@165645.1535 4tqn6pt3pdee0e2c2vj0hqji8d Query : use flama_phc
20250228@165645.1539 4tqn6pt3pdee0e2c2vj0hqji8d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165645.1688 4tqn6pt3pdee0e2c2vj0hqji8d Query : use flama_phc
20250228@165645.1693 4tqn6pt3pdee0e2c2vj0hqji8d Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165645.1749 4tqn6pt3pdee0e2c2vj0hqji8d Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165645.1776 4tqn6pt3pdee0e2c2vj0hqji8d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5568';
20250228@165645.1826 4tqn6pt3pdee0e2c2vj0hqji8d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5568';
20250228@165645.2396 hki1hns4j7o4guoujsgmi6skk3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165645.2406 hki1hns4j7o4guoujsgmi6skk3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165645.2492 hki1hns4j7o4guoujsgmi6skk3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5569';
20250228@165645.2560 hki1hns4j7o4guoujsgmi6skk3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5569';
20250228@165645.2642 hki1hns4j7o4guoujsgmi6skk3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5569';
20250228@165645.2683 hki1hns4j7o4guoujsgmi6skk3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5569';
20250228@165645.2751 hki1hns4j7o4guoujsgmi6skk3 Query : use flama_phc
20250228@165645.2755 hki1hns4j7o4guoujsgmi6skk3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165645.2847 hki1hns4j7o4guoujsgmi6skk3 Query : use flama_phc
20250228@165645.2852 hki1hns4j7o4guoujsgmi6skk3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20250228@165645.2972 hki1hns4j7o4guoujsgmi6skk3 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501454 
20250228@165645.3371 hki1hns4j7o4guoujsgmi6skk3 Query : use flama_phc
20250228@165645.3375 hki1hns4j7o4guoujsgmi6skk3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165645.3409 hki1hns4j7o4guoujsgmi6skk3 Query : use flama_phc
20250228@165645.3413 hki1hns4j7o4guoujsgmi6skk3 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165645.3432 hki1hns4j7o4guoujsgmi6skk3 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165645.3461 hki1hns4j7o4guoujsgmi6skk3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5569';
20250228@165645.3510 hki1hns4j7o4guoujsgmi6skk3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5569';
20250228@165645.4102 d0e8fvh099k8ottj1dskctv202 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165645.4115 d0e8fvh099k8ottj1dskctv202 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165645.4201 d0e8fvh099k8ottj1dskctv202 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5570';
20250228@165645.4287 d0e8fvh099k8ottj1dskctv202 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5570';
20250228@165645.4431 d0e8fvh099k8ottj1dskctv202 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5570';
20250228@165645.4478 d0e8fvh099k8ottj1dskctv202 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5570';
20250228@165645.4554 d0e8fvh099k8ottj1dskctv202 Query : use flama_phc
20250228@165645.4558 d0e8fvh099k8ottj1dskctv202 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165645.4625 d0e8fvh099k8ottj1dskctv202 Query : use flama_phc
20250228@165645.4628 d0e8fvh099k8ottj1dskctv202 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250228@165645.4726 d0e8fvh099k8ottj1dskctv202 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501455 
20250228@165645.5156 d0e8fvh099k8ottj1dskctv202 Query : use flama_phc
20250228@165645.5160 d0e8fvh099k8ottj1dskctv202 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165645.5209 d0e8fvh099k8ottj1dskctv202 Query : use flama_phc
20250228@165645.5213 d0e8fvh099k8ottj1dskctv202 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165645.5232 d0e8fvh099k8ottj1dskctv202 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165645.5253 d0e8fvh099k8ottj1dskctv202 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5570';
20250228@165645.5312 d0e8fvh099k8ottj1dskctv202 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5570';
20250228@165645.6005 nns0o6e8sn72atbp402vgpqhrj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165645.6018 nns0o6e8sn72atbp402vgpqhrj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165645.6103 nns0o6e8sn72atbp402vgpqhrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5571';
20250228@165645.6281 nns0o6e8sn72atbp402vgpqhrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5571';
20250228@165645.6364 nns0o6e8sn72atbp402vgpqhrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5571';
20250228@165645.6412 nns0o6e8sn72atbp402vgpqhrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5571';
20250228@165645.6485 nns0o6e8sn72atbp402vgpqhrj Query : use flama_phc
20250228@165645.6489 nns0o6e8sn72atbp402vgpqhrj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165645.6563 nns0o6e8sn72atbp402vgpqhrj Query : use flama_phc
20250228@165645.6570 nns0o6e8sn72atbp402vgpqhrj Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250228@165645.6674 nns0o6e8sn72atbp402vgpqhrj Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501456 
20250228@165645.7082 nns0o6e8sn72atbp402vgpqhrj Query : use flama_phc
20250228@165645.7086 nns0o6e8sn72atbp402vgpqhrj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165645.7120 nns0o6e8sn72atbp402vgpqhrj Query : use flama_phc
20250228@165645.7123 nns0o6e8sn72atbp402vgpqhrj Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165645.7142 nns0o6e8sn72atbp402vgpqhrj Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165645.7166 nns0o6e8sn72atbp402vgpqhrj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5571';
20250228@165645.7214 nns0o6e8sn72atbp402vgpqhrj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5571';
20250228@165645.7707 eq2ht60q50kh7rv2l89ksmgc8u Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165645.7720 eq2ht60q50kh7rv2l89ksmgc8u Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165645.7797 eq2ht60q50kh7rv2l89ksmgc8u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5572';
20250228@165645.7865 eq2ht60q50kh7rv2l89ksmgc8u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5572';
20250228@165645.7937 eq2ht60q50kh7rv2l89ksmgc8u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5572';
20250228@165645.7983 eq2ht60q50kh7rv2l89ksmgc8u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5572';
20250228@165645.8074 eq2ht60q50kh7rv2l89ksmgc8u Query : use flama_phc
20250228@165645.8077 eq2ht60q50kh7rv2l89ksmgc8u Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165645.8142 eq2ht60q50kh7rv2l89ksmgc8u Query : use flama_phc
20250228@165645.8145 eq2ht60q50kh7rv2l89ksmgc8u Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20250228@165645.8293 eq2ht60q50kh7rv2l89ksmgc8u Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501464 
20250228@165645.8681 eq2ht60q50kh7rv2l89ksmgc8u Query : use flama_phc
20250228@165645.8684 eq2ht60q50kh7rv2l89ksmgc8u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165645.8730 eq2ht60q50kh7rv2l89ksmgc8u Query : use flama_phc
20250228@165645.8734 eq2ht60q50kh7rv2l89ksmgc8u Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165645.8751 eq2ht60q50kh7rv2l89ksmgc8u Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165645.8773 eq2ht60q50kh7rv2l89ksmgc8u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5572';
20250228@165645.8819 eq2ht60q50kh7rv2l89ksmgc8u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5572';
20250228@165645.9325 j9cc02o50oqps98deg61rs5j7f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165645.9336 j9cc02o50oqps98deg61rs5j7f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165645.9415 j9cc02o50oqps98deg61rs5j7f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5573';
20250228@165645.9485 j9cc02o50oqps98deg61rs5j7f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5573';
20250228@165645.9559 j9cc02o50oqps98deg61rs5j7f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5573';
20250228@165645.9597 j9cc02o50oqps98deg61rs5j7f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5573';
20250228@165645.9662 j9cc02o50oqps98deg61rs5j7f Query : use flama_phc
20250228@165645.9665 j9cc02o50oqps98deg61rs5j7f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165645.9742 j9cc02o50oqps98deg61rs5j7f Query : use flama_phc
20250228@165645.9745 j9cc02o50oqps98deg61rs5j7f Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250228@165645.9796 j9cc02o50oqps98deg61rs5j7f Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501466 
20250228@165646.3480 j9cc02o50oqps98deg61rs5j7f Query : use flama_phc
20250228@165646.3510 j9cc02o50oqps98deg61rs5j7f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165646.3870 j9cc02o50oqps98deg61rs5j7f Query : use flama_phc
20250228@165646.3900 j9cc02o50oqps98deg61rs5j7f Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165646.4100 j9cc02o50oqps98deg61rs5j7f Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165646.4380 j9cc02o50oqps98deg61rs5j7f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5573';
20250228@165646.5250 j9cc02o50oqps98deg61rs5j7f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5573';
20250228@165646.1170 trgb47hgq2cg7lbnc348ck8mep Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165646.1181 trgb47hgq2cg7lbnc348ck8mep Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165646.1270 trgb47hgq2cg7lbnc348ck8mep Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5574';
20250228@165646.1342 trgb47hgq2cg7lbnc348ck8mep Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5574';
20250228@165646.1412 trgb47hgq2cg7lbnc348ck8mep Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5574';
20250228@165646.1451 trgb47hgq2cg7lbnc348ck8mep Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5574';
20250228@165646.1538 trgb47hgq2cg7lbnc348ck8mep Query : use flama_phc
20250228@165646.1541 trgb47hgq2cg7lbnc348ck8mep Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165646.1606 trgb47hgq2cg7lbnc348ck8mep Query : use flama_phc
20250228@165646.1609 trgb47hgq2cg7lbnc348ck8mep Query : select no, estab,szadrsdesc from szadrs where u_coddest=2121
20250228@165646.1696 trgb47hgq2cg7lbnc348ck8mep Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501468 
20250228@165646.2116 trgb47hgq2cg7lbnc348ck8mep Query : use flama_phc
20250228@165646.2120 trgb47hgq2cg7lbnc348ck8mep Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165646.2152 trgb47hgq2cg7lbnc348ck8mep Query : use flama_phc
20250228@165646.2155 trgb47hgq2cg7lbnc348ck8mep Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165646.2170 trgb47hgq2cg7lbnc348ck8mep Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165646.2219 trgb47hgq2cg7lbnc348ck8mep Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5574';
20250228@165646.2273 trgb47hgq2cg7lbnc348ck8mep Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5574';
20250228@165646.2868 gh5aesuh3ia9vvs2msc4a51ah7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165646.2880 gh5aesuh3ia9vvs2msc4a51ah7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165646.2955 gh5aesuh3ia9vvs2msc4a51ah7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5575';
20250228@165646.3027 gh5aesuh3ia9vvs2msc4a51ah7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5575';
20250228@165646.3101 gh5aesuh3ia9vvs2msc4a51ah7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5575';
20250228@165646.3145 gh5aesuh3ia9vvs2msc4a51ah7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5575';
20250228@165646.3231 gh5aesuh3ia9vvs2msc4a51ah7 Query : use flama_phc
20250228@165646.3234 gh5aesuh3ia9vvs2msc4a51ah7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165646.3304 gh5aesuh3ia9vvs2msc4a51ah7 Query : use flama_phc
20250228@165646.3308 gh5aesuh3ia9vvs2msc4a51ah7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20250228@165646.3356 gh5aesuh3ia9vvs2msc4a51ah7 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501475 
20250228@165646.3721 gh5aesuh3ia9vvs2msc4a51ah7 Query : use flama_phc
20250228@165646.3725 gh5aesuh3ia9vvs2msc4a51ah7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165646.3758 gh5aesuh3ia9vvs2msc4a51ah7 Query : use flama_phc
20250228@165646.3762 gh5aesuh3ia9vvs2msc4a51ah7 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165646.3787 gh5aesuh3ia9vvs2msc4a51ah7 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165646.3818 gh5aesuh3ia9vvs2msc4a51ah7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5575';
20250228@165646.3883 gh5aesuh3ia9vvs2msc4a51ah7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5575';
20250228@165646.6483 br3fvfbt0afod8k1s3uepooj9k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165646.6496 br3fvfbt0afod8k1s3uepooj9k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165646.6573 br3fvfbt0afod8k1s3uepooj9k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5576';
20250228@165646.6640 br3fvfbt0afod8k1s3uepooj9k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5576';
20250228@165646.6743 br3fvfbt0afod8k1s3uepooj9k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5576';
20250228@165646.6793 br3fvfbt0afod8k1s3uepooj9k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5576';
20250228@165646.6870 br3fvfbt0afod8k1s3uepooj9k Query : use flama_phc
20250228@165646.6873 br3fvfbt0afod8k1s3uepooj9k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165646.6942 br3fvfbt0afod8k1s3uepooj9k Query : use flama_phc
20250228@165646.6945 br3fvfbt0afod8k1s3uepooj9k Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250228@165646.6994 br3fvfbt0afod8k1s3uepooj9k Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501478 
20250228@165646.7391 br3fvfbt0afod8k1s3uepooj9k Query : use flama_phc
20250228@165646.7395 br3fvfbt0afod8k1s3uepooj9k Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165646.7426 br3fvfbt0afod8k1s3uepooj9k Query : use flama_phc
20250228@165646.7430 br3fvfbt0afod8k1s3uepooj9k Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165646.7453 br3fvfbt0afod8k1s3uepooj9k Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165646.7493 br3fvfbt0afod8k1s3uepooj9k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5576';
20250228@165646.7544 br3fvfbt0afod8k1s3uepooj9k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5576';
20250228@165646.8087 8nsp6splj7k6b9ki1cbh4rk53a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250228@165646.8099 8nsp6splj7k6b9ki1cbh4rk53a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250228@165646.8456 8nsp6splj7k6b9ki1cbh4rk53a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5577';
20250228@165646.8816 8nsp6splj7k6b9ki1cbh4rk53a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5577';
20250228@165646.8915 8nsp6splj7k6b9ki1cbh4rk53a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5577';
20250228@165646.8962 8nsp6splj7k6b9ki1cbh4rk53a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5577';
20250228@165646.9060 8nsp6splj7k6b9ki1cbh4rk53a Query : use flama_phc
20250228@165646.9063 8nsp6splj7k6b9ki1cbh4rk53a Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250228@165646.9152 8nsp6splj7k6b9ki1cbh4rk53a Query : use flama_phc
20250228@165646.9155 8nsp6splj7k6b9ki1cbh4rk53a Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250228@165646.9254 8nsp6splj7k6b9ki1cbh4rk53a Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501479 
20250228@165646.9623 8nsp6splj7k6b9ki1cbh4rk53a Query : use flama_phc
20250228@165646.9627 8nsp6splj7k6b9ki1cbh4rk53a Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250228@165646.9659 8nsp6splj7k6b9ki1cbh4rk53a Query : use flama_phc
20250228@165646.9662 8nsp6splj7k6b9ki1cbh4rk53a Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250228@165646.9678 8nsp6splj7k6b9ki1cbh4rk53a Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250228@165646.9701 8nsp6splj7k6b9ki1cbh4rk53a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5577';
20250228@165646.9750 8nsp6splj7k6b9ki1cbh4rk53a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5577';

20250303@095609.4318 qpeptqf2nnk5k1ddjdeejlif1b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5578';
20250303@095609.4399 qpeptqf2nnk5k1ddjdeejlif1b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5578';
20250303@095609.4441 qpeptqf2nnk5k1ddjdeejlif1b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5578';
20250303@095609.4508 qpeptqf2nnk5k1ddjdeejlif1b Query : use flama_phc
20250303@095609.4512 qpeptqf2nnk5k1ddjdeejlif1b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@095609.4640 qpeptqf2nnk5k1ddjdeejlif1b Query : use flama_phc
20250303@095609.4644 qpeptqf2nnk5k1ddjdeejlif1b Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@095609.4733 qpeptqf2nnk5k1ddjdeejlif1b Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501483 
20250303@095609.5146 qpeptqf2nnk5k1ddjdeejlif1b Query : use flama_phc
20250303@095609.5149 qpeptqf2nnk5k1ddjdeejlif1b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@095609.5207 qpeptqf2nnk5k1ddjdeejlif1b Query : use flama_phc
20250303@095609.5211 qpeptqf2nnk5k1ddjdeejlif1b Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@095609.5275 qpeptqf2nnk5k1ddjdeejlif1b Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@095609.5321 qpeptqf2nnk5k1ddjdeejlif1b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5578';
20250303@095609.5368 qpeptqf2nnk5k1ddjdeejlif1b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5578';
20250303@095609.5976 mg9461t56gu9ajfkpeivpn4hbi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@095609.5987 mg9461t56gu9ajfkpeivpn4hbi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@095609.6103 mg9461t56gu9ajfkpeivpn4hbi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5579';
20250303@095609.6534 mg9461t56gu9ajfkpeivpn4hbi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5579';
20250303@095609.6633 mg9461t56gu9ajfkpeivpn4hbi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5579';
20250303@095609.6681 mg9461t56gu9ajfkpeivpn4hbi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5579';
20250303@095609.6841 mg9461t56gu9ajfkpeivpn4hbi Query : use flama_phc
20250303@095609.6845 mg9461t56gu9ajfkpeivpn4hbi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@095609.6915 mg9461t56gu9ajfkpeivpn4hbi Query : use flama_phc
20250303@095609.6919 mg9461t56gu9ajfkpeivpn4hbi Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@095609.6969 mg9461t56gu9ajfkpeivpn4hbi Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501486 
20250303@095609.7403 mg9461t56gu9ajfkpeivpn4hbi Query : use flama_phc
20250303@095609.7407 mg9461t56gu9ajfkpeivpn4hbi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@095609.7438 mg9461t56gu9ajfkpeivpn4hbi Query : use flama_phc
20250303@095609.7441 mg9461t56gu9ajfkpeivpn4hbi Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@095609.7456 mg9461t56gu9ajfkpeivpn4hbi Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@095609.7484 mg9461t56gu9ajfkpeivpn4hbi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5579';
20250303@095609.7532 mg9461t56gu9ajfkpeivpn4hbi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5579';
20250303@101050.6027 3u1h1dh2a6rk603ouk5g938ogm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@101050.6039 3u1h1dh2a6rk603ouk5g938ogm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@101050.6154 3u1h1dh2a6rk603ouk5g938ogm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5580';
20250303@101050.6248 3u1h1dh2a6rk603ouk5g938ogm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5580';
20250303@101050.6331 3u1h1dh2a6rk603ouk5g938ogm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5580';
20250303@101050.6396 3u1h1dh2a6rk603ouk5g938ogm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5580';
20250303@101050.6488 3u1h1dh2a6rk603ouk5g938ogm Query : use flama_phc
20250303@101050.6495 3u1h1dh2a6rk603ouk5g938ogm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@101050.6594 3u1h1dh2a6rk603ouk5g938ogm Query : use flama_phc
20250303@101050.6622 3u1h1dh2a6rk603ouk5g938ogm Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@101050.6693 3u1h1dh2a6rk603ouk5g938ogm Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501491 
20250303@101050.7175 3u1h1dh2a6rk603ouk5g938ogm Query : use flama_phc
20250303@101050.7178 3u1h1dh2a6rk603ouk5g938ogm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@101050.7221 3u1h1dh2a6rk603ouk5g938ogm Query : use flama_phc
20250303@101050.7224 3u1h1dh2a6rk603ouk5g938ogm Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@101050.7242 3u1h1dh2a6rk603ouk5g938ogm Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@101050.7277 3u1h1dh2a6rk603ouk5g938ogm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5580';
20250303@101050.7334 3u1h1dh2a6rk603ouk5g938ogm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5580';

20250303@104040.3420 d5b58ht7kid8bs1qpt387k0hub Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5581';
20250303@104040.4450 d5b58ht7kid8bs1qpt387k0hub Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5581';
20250303@104040.4950 d5b58ht7kid8bs1qpt387k0hub Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5581';
20250303@104040.5730 d5b58ht7kid8bs1qpt387k0hub Query : use flama_phc
20250303@104040.5760 d5b58ht7kid8bs1qpt387k0hub Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@104040.6740 d5b58ht7kid8bs1qpt387k0hub Query : use flama_phc
20250303@104040.6790 d5b58ht7kid8bs1qpt387k0hub Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@104040.7620 d5b58ht7kid8bs1qpt387k0hub Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501492 
20250303@104040.1605 d5b58ht7kid8bs1qpt387k0hub Query : use flama_phc
20250303@104040.1611 d5b58ht7kid8bs1qpt387k0hub Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@104040.1649 d5b58ht7kid8bs1qpt387k0hub Query : use flama_phc
20250303@104040.1655 d5b58ht7kid8bs1qpt387k0hub Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@104040.1843 d5b58ht7kid8bs1qpt387k0hub Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@104040.2095 d5b58ht7kid8bs1qpt387k0hub Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5581';
20250303@104040.2214 d5b58ht7kid8bs1qpt387k0hub Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5581';
20250303@111135.5458 j9im00t1ph633m9trlr16uq7oc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@111135.5716 j9im00t1ph633m9trlr16uq7oc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@111135.8083 j9im00t1ph633m9trlr16uq7oc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5582';
20250303@111135.9618 j9im00t1ph633m9trlr16uq7oc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5582';
20250303@111136.3102 j9im00t1ph633m9trlr16uq7oc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5582';
20250303@111136.4487 j9im00t1ph633m9trlr16uq7oc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5582';
20250303@111136.8879 j9im00t1ph633m9trlr16uq7oc Query : use flama_phc
20250303@111136.8924 j9im00t1ph633m9trlr16uq7oc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@111137.2284 j9im00t1ph633m9trlr16uq7oc Query : use flama_phc
20250303@111137.2328 j9im00t1ph633m9trlr16uq7oc Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20250303@111137.3113 j9im00t1ph633m9trlr16uq7oc Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501509 
20250303@111137.5816 j9im00t1ph633m9trlr16uq7oc Query : use flama_phc
20250303@111137.5860 j9im00t1ph633m9trlr16uq7oc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@111137.8158 j9im00t1ph633m9trlr16uq7oc Query : use flama_phc
20250303@111137.8202 j9im00t1ph633m9trlr16uq7oc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@111137.9255 j9im00t1ph633m9trlr16uq7oc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@111138.1262 j9im00t1ph633m9trlr16uq7oc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5582';
20250303@111138.2458 j9im00t1ph633m9trlr16uq7oc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5582';

20250303@112704.2021 2u30e2gha9u44hurii939a2slg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5583';
20250303@112704.2168 2u30e2gha9u44hurii939a2slg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5583';
20250303@112704.2223 2u30e2gha9u44hurii939a2slg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5583';
20250303@112704.2308 2u30e2gha9u44hurii939a2slg Query : use flama_phc
20250303@112704.2313 2u30e2gha9u44hurii939a2slg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112704.2506 2u30e2gha9u44hurii939a2slg Query : use flama_phc
20250303@112704.2511 2u30e2gha9u44hurii939a2slg Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112704.2580 2u30e2gha9u44hurii939a2slg Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501514 
20250303@112704.3212 2u30e2gha9u44hurii939a2slg Query : use flama_phc
20250303@112704.3219 2u30e2gha9u44hurii939a2slg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112704.3305 2u30e2gha9u44hurii939a2slg Query : use flama_phc
20250303@112704.3364 2u30e2gha9u44hurii939a2slg Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112704.3388 2u30e2gha9u44hurii939a2slg Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112704.3422 2u30e2gha9u44hurii939a2slg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5583';
20250303@112704.3485 2u30e2gha9u44hurii939a2slg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5583';
20250303@112704.4494 v5k1cv4nljl1n2tio78fmrercb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112704.4506 v5k1cv4nljl1n2tio78fmrercb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112704.4594 v5k1cv4nljl1n2tio78fmrercb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5584';
20250303@112704.4693 v5k1cv4nljl1n2tio78fmrercb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5584';
20250303@112704.6418 v5k1cv4nljl1n2tio78fmrercb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5584';
20250303@112704.6476 v5k1cv4nljl1n2tio78fmrercb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5584';
20250303@112704.6601 v5k1cv4nljl1n2tio78fmrercb Query : use flama_phc
20250303@112704.6606 v5k1cv4nljl1n2tio78fmrercb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112704.6903 v5k1cv4nljl1n2tio78fmrercb Query : use flama_phc
20250303@112704.6908 v5k1cv4nljl1n2tio78fmrercb Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112704.6966 v5k1cv4nljl1n2tio78fmrercb Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501513 
20250303@112704.7441 v5k1cv4nljl1n2tio78fmrercb Query : use flama_phc
20250303@112704.7446 v5k1cv4nljl1n2tio78fmrercb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112704.7497 v5k1cv4nljl1n2tio78fmrercb Query : use flama_phc
20250303@112704.7501 v5k1cv4nljl1n2tio78fmrercb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112704.7518 v5k1cv4nljl1n2tio78fmrercb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112704.7549 v5k1cv4nljl1n2tio78fmrercb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5584';
20250303@112704.7614 v5k1cv4nljl1n2tio78fmrercb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5584';
20250303@112704.9027 frgs5do74k76rn65cq60b9pgs4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112704.9038 frgs5do74k76rn65cq60b9pgs4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112704.9155 frgs5do74k76rn65cq60b9pgs4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5585';
20250303@112704.9247 frgs5do74k76rn65cq60b9pgs4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5585';
20250303@112704.9357 frgs5do74k76rn65cq60b9pgs4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5585';
20250303@112704.9421 frgs5do74k76rn65cq60b9pgs4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5585';
20250303@112704.9515 frgs5do74k76rn65cq60b9pgs4 Query : use flama_phc
20250303@112704.9519 frgs5do74k76rn65cq60b9pgs4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112704.9596 frgs5do74k76rn65cq60b9pgs4 Query : use flama_phc
20250303@112704.9600 frgs5do74k76rn65cq60b9pgs4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112704.9661 frgs5do74k76rn65cq60b9pgs4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501512 
20250303@112705.1360 frgs5do74k76rn65cq60b9pgs4 Query : use flama_phc
20250303@112705.1400 frgs5do74k76rn65cq60b9pgs4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112705.1750 frgs5do74k76rn65cq60b9pgs4 Query : use flama_phc
20250303@112705.1790 frgs5do74k76rn65cq60b9pgs4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112705.1990 frgs5do74k76rn65cq60b9pgs4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112705.2320 frgs5do74k76rn65cq60b9pgs4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5585';
20250303@112705.2910 frgs5do74k76rn65cq60b9pgs4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5585';
20250303@112705.1001 a6sth4h2kpc2jjsi8j45pdcq6q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112705.1014 a6sth4h2kpc2jjsi8j45pdcq6q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112705.1136 a6sth4h2kpc2jjsi8j45pdcq6q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5586';
20250303@112705.1278 a6sth4h2kpc2jjsi8j45pdcq6q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5586';
20250303@112705.1377 a6sth4h2kpc2jjsi8j45pdcq6q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5586';
20250303@112705.1435 a6sth4h2kpc2jjsi8j45pdcq6q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5586';
20250303@112705.1514 a6sth4h2kpc2jjsi8j45pdcq6q Query : use flama_phc
20250303@112705.1525 a6sth4h2kpc2jjsi8j45pdcq6q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112705.1604 a6sth4h2kpc2jjsi8j45pdcq6q Query : use flama_phc
20250303@112705.1608 a6sth4h2kpc2jjsi8j45pdcq6q Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112705.1669 a6sth4h2kpc2jjsi8j45pdcq6q Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501507 
20250303@112705.2148 a6sth4h2kpc2jjsi8j45pdcq6q Query : use flama_phc
20250303@112705.2152 a6sth4h2kpc2jjsi8j45pdcq6q Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112705.2185 a6sth4h2kpc2jjsi8j45pdcq6q Query : use flama_phc
20250303@112705.2189 a6sth4h2kpc2jjsi8j45pdcq6q Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112705.2206 a6sth4h2kpc2jjsi8j45pdcq6q Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112705.2233 a6sth4h2kpc2jjsi8j45pdcq6q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5586';
20250303@112705.2294 a6sth4h2kpc2jjsi8j45pdcq6q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5586';
20250303@112705.2904 q90kudh99obofaavngennke9iv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112705.2916 q90kudh99obofaavngennke9iv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112705.3065 q90kudh99obofaavngennke9iv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5587';
20250303@112705.3192 q90kudh99obofaavngennke9iv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5587';
20250303@112705.3308 q90kudh99obofaavngennke9iv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5587';
20250303@112705.3371 q90kudh99obofaavngennke9iv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5587';
20250303@112705.3500 q90kudh99obofaavngennke9iv Query : use flama_phc
20250303@112705.3505 q90kudh99obofaavngennke9iv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112705.3798 q90kudh99obofaavngennke9iv Query : use flama_phc
20250303@112705.3805 q90kudh99obofaavngennke9iv Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112705.3876 q90kudh99obofaavngennke9iv Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501511 
20250303@112705.4415 q90kudh99obofaavngennke9iv Query : use flama_phc
20250303@112705.4421 q90kudh99obofaavngennke9iv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112705.4504 q90kudh99obofaavngennke9iv Query : use flama_phc
20250303@112705.4512 q90kudh99obofaavngennke9iv Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112705.4539 q90kudh99obofaavngennke9iv Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112705.4571 q90kudh99obofaavngennke9iv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5587';
20250303@112705.4662 q90kudh99obofaavngennke9iv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5587';
20250303@112705.5402 is2ieouep37lhdnh5oe4ptloal Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112705.5415 is2ieouep37lhdnh5oe4ptloal Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112705.5606 is2ieouep37lhdnh5oe4ptloal Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5588';
20250303@112705.5708 is2ieouep37lhdnh5oe4ptloal Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5588';
20250303@112705.5846 is2ieouep37lhdnh5oe4ptloal Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5588';
20250303@112705.5905 is2ieouep37lhdnh5oe4ptloal Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5588';
20250303@112705.6005 is2ieouep37lhdnh5oe4ptloal Query : use flama_phc
20250303@112705.6009 is2ieouep37lhdnh5oe4ptloal Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112705.6222 is2ieouep37lhdnh5oe4ptloal Query : use flama_phc
20250303@112705.6227 is2ieouep37lhdnh5oe4ptloal Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112705.6323 is2ieouep37lhdnh5oe4ptloal Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501508 
20250303@112705.6868 is2ieouep37lhdnh5oe4ptloal Query : use flama_phc
20250303@112705.6872 is2ieouep37lhdnh5oe4ptloal Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112705.7068 is2ieouep37lhdnh5oe4ptloal Query : use flama_phc
20250303@112705.7073 is2ieouep37lhdnh5oe4ptloal Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112705.7094 is2ieouep37lhdnh5oe4ptloal Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112705.7126 is2ieouep37lhdnh5oe4ptloal Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5588';
20250303@112705.7199 is2ieouep37lhdnh5oe4ptloal Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5588';
20250303@112705.7947 fhalhgskmv5sii43lb5ov8r6k8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112705.7999 fhalhgskmv5sii43lb5ov8r6k8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112705.8530 fhalhgskmv5sii43lb5ov8r6k8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5589';
20250303@112705.8661 fhalhgskmv5sii43lb5ov8r6k8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5589';
20250303@112705.8746 fhalhgskmv5sii43lb5ov8r6k8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5589';
20250303@112705.8814 fhalhgskmv5sii43lb5ov8r6k8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5589';
20250303@112705.8911 fhalhgskmv5sii43lb5ov8r6k8 Query : use flama_phc
20250303@112705.8915 fhalhgskmv5sii43lb5ov8r6k8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112705.8998 fhalhgskmv5sii43lb5ov8r6k8 Query : use flama_phc
20250303@112705.9004 fhalhgskmv5sii43lb5ov8r6k8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112705.9078 fhalhgskmv5sii43lb5ov8r6k8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501510 
20250303@112705.9563 fhalhgskmv5sii43lb5ov8r6k8 Query : use flama_phc
20250303@112705.9568 fhalhgskmv5sii43lb5ov8r6k8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112705.9615 fhalhgskmv5sii43lb5ov8r6k8 Query : use flama_phc
20250303@112705.9619 fhalhgskmv5sii43lb5ov8r6k8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112705.9639 fhalhgskmv5sii43lb5ov8r6k8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112705.9673 fhalhgskmv5sii43lb5ov8r6k8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5589';
20250303@112705.9759 fhalhgskmv5sii43lb5ov8r6k8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5589';
20250303@112706.3870 9hmao8fnh0f6bcon7h54afo2kr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112706.4010 9hmao8fnh0f6bcon7h54afo2kr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112706.5070 9hmao8fnh0f6bcon7h54afo2kr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5590';
20250303@112706.5970 9hmao8fnh0f6bcon7h54afo2kr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5590';
20250303@112706.6940 9hmao8fnh0f6bcon7h54afo2kr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5590';
20250303@112706.7550 9hmao8fnh0f6bcon7h54afo2kr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5590';
20250303@112706.8530 9hmao8fnh0f6bcon7h54afo2kr Query : use flama_phc
20250303@112706.8570 9hmao8fnh0f6bcon7h54afo2kr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112706.1031 9hmao8fnh0f6bcon7h54afo2kr Query : use flama_phc
20250303@112706.1035 9hmao8fnh0f6bcon7h54afo2kr Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112706.1095 9hmao8fnh0f6bcon7h54afo2kr Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501506 
20250303@112706.1539 9hmao8fnh0f6bcon7h54afo2kr Query : use flama_phc
20250303@112706.1543 9hmao8fnh0f6bcon7h54afo2kr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112706.1588 9hmao8fnh0f6bcon7h54afo2kr Query : use flama_phc
20250303@112706.1594 9hmao8fnh0f6bcon7h54afo2kr Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112706.1615 9hmao8fnh0f6bcon7h54afo2kr Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112706.1640 9hmao8fnh0f6bcon7h54afo2kr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5590';
20250303@112706.1718 9hmao8fnh0f6bcon7h54afo2kr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5590';
20250303@112706.2396 gt20uno0vkqoaqcgtdmnijg7d5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112706.2407 gt20uno0vkqoaqcgtdmnijg7d5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112706.2522 gt20uno0vkqoaqcgtdmnijg7d5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5591';
20250303@112706.2625 gt20uno0vkqoaqcgtdmnijg7d5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5591';
20250303@112706.2730 gt20uno0vkqoaqcgtdmnijg7d5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5591';
20250303@112706.2787 gt20uno0vkqoaqcgtdmnijg7d5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5591';
20250303@112706.2879 gt20uno0vkqoaqcgtdmnijg7d5 Query : use flama_phc
20250303@112706.2883 gt20uno0vkqoaqcgtdmnijg7d5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112706.2968 gt20uno0vkqoaqcgtdmnijg7d5 Query : use flama_phc
20250303@112706.2973 gt20uno0vkqoaqcgtdmnijg7d5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112706.3038 gt20uno0vkqoaqcgtdmnijg7d5 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501504 
20250303@112706.3488 gt20uno0vkqoaqcgtdmnijg7d5 Query : use flama_phc
20250303@112706.3492 gt20uno0vkqoaqcgtdmnijg7d5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112706.3526 gt20uno0vkqoaqcgtdmnijg7d5 Query : use flama_phc
20250303@112706.3530 gt20uno0vkqoaqcgtdmnijg7d5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112706.3547 gt20uno0vkqoaqcgtdmnijg7d5 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112706.3571 gt20uno0vkqoaqcgtdmnijg7d5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5591';
20250303@112706.3643 gt20uno0vkqoaqcgtdmnijg7d5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5591';
20250303@112706.4321 31rr6ihe0bnlv4laeb1ctuufn5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112706.4333 31rr6ihe0bnlv4laeb1ctuufn5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112706.4422 31rr6ihe0bnlv4laeb1ctuufn5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5592';
20250303@112706.4515 31rr6ihe0bnlv4laeb1ctuufn5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5592';
20250303@112706.4602 31rr6ihe0bnlv4laeb1ctuufn5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5592';
20250303@112706.4667 31rr6ihe0bnlv4laeb1ctuufn5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5592';
20250303@112706.4790 31rr6ihe0bnlv4laeb1ctuufn5 Query : use flama_phc
20250303@112706.4794 31rr6ihe0bnlv4laeb1ctuufn5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112706.4876 31rr6ihe0bnlv4laeb1ctuufn5 Query : use flama_phc
20250303@112706.4880 31rr6ihe0bnlv4laeb1ctuufn5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112706.4946 31rr6ihe0bnlv4laeb1ctuufn5 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501501 
20250303@112706.5424 31rr6ihe0bnlv4laeb1ctuufn5 Query : use flama_phc
20250303@112706.5427 31rr6ihe0bnlv4laeb1ctuufn5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112706.5516 31rr6ihe0bnlv4laeb1ctuufn5 Query : use flama_phc
20250303@112706.5533 31rr6ihe0bnlv4laeb1ctuufn5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112706.5556 31rr6ihe0bnlv4laeb1ctuufn5 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112706.5582 31rr6ihe0bnlv4laeb1ctuufn5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5592';
20250303@112706.5650 31rr6ihe0bnlv4laeb1ctuufn5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5592';
20250303@112706.6413 370o3tmurgr2qjt4idtf6fo7e4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112706.6424 370o3tmurgr2qjt4idtf6fo7e4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112706.6531 370o3tmurgr2qjt4idtf6fo7e4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5593';
20250303@112706.6637 370o3tmurgr2qjt4idtf6fo7e4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5593';
20250303@112706.6750 370o3tmurgr2qjt4idtf6fo7e4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5593';
20250303@112706.6840 370o3tmurgr2qjt4idtf6fo7e4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5593';
20250303@112706.7001 370o3tmurgr2qjt4idtf6fo7e4 Query : use flama_phc
20250303@112706.7006 370o3tmurgr2qjt4idtf6fo7e4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112706.7318 370o3tmurgr2qjt4idtf6fo7e4 Query : use flama_phc
20250303@112706.7354 370o3tmurgr2qjt4idtf6fo7e4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112706.7463 370o3tmurgr2qjt4idtf6fo7e4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501500 
20250303@112706.7952 370o3tmurgr2qjt4idtf6fo7e4 Query : use flama_phc
20250303@112706.7956 370o3tmurgr2qjt4idtf6fo7e4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112706.8032 370o3tmurgr2qjt4idtf6fo7e4 Query : use flama_phc
20250303@112706.8036 370o3tmurgr2qjt4idtf6fo7e4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112706.8076 370o3tmurgr2qjt4idtf6fo7e4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112706.8136 370o3tmurgr2qjt4idtf6fo7e4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5593';
20250303@112706.8201 370o3tmurgr2qjt4idtf6fo7e4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5593';
20250303@112706.9042 9i9tmsg0ifothrcm0k54pk5vpf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112706.9056 9i9tmsg0ifothrcm0k54pk5vpf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112706.9177 9i9tmsg0ifothrcm0k54pk5vpf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5594';
20250303@112706.9309 9i9tmsg0ifothrcm0k54pk5vpf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5594';
20250303@112706.9427 9i9tmsg0ifothrcm0k54pk5vpf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5594';
20250303@112706.9495 9i9tmsg0ifothrcm0k54pk5vpf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5594';
20250303@112706.9627 9i9tmsg0ifothrcm0k54pk5vpf Query : use flama_phc
20250303@112706.9634 9i9tmsg0ifothrcm0k54pk5vpf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112706.9716 9i9tmsg0ifothrcm0k54pk5vpf Query : use flama_phc
20250303@112706.9721 9i9tmsg0ifothrcm0k54pk5vpf Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112706.9786 9i9tmsg0ifothrcm0k54pk5vpf Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501499 
20250303@112707.3460 9i9tmsg0ifothrcm0k54pk5vpf Query : use flama_phc
20250303@112707.3510 9i9tmsg0ifothrcm0k54pk5vpf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112707.4070 9i9tmsg0ifothrcm0k54pk5vpf Query : use flama_phc
20250303@112707.4120 9i9tmsg0ifothrcm0k54pk5vpf Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112707.4450 9i9tmsg0ifothrcm0k54pk5vpf Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112707.4700 9i9tmsg0ifothrcm0k54pk5vpf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5594';
20250303@112707.5460 9i9tmsg0ifothrcm0k54pk5vpf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5594';
20250303@112707.1340 acdku61l2c0daprc63s6bhvb9g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@112707.1351 acdku61l2c0daprc63s6bhvb9g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@112707.2162 acdku61l2c0daprc63s6bhvb9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5595';
20250303@112707.2434 acdku61l2c0daprc63s6bhvb9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5595';
20250303@112707.3117 acdku61l2c0daprc63s6bhvb9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5595';
20250303@112707.3176 acdku61l2c0daprc63s6bhvb9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5595';
20250303@112707.3251 acdku61l2c0daprc63s6bhvb9g Query : use flama_phc
20250303@112707.3255 acdku61l2c0daprc63s6bhvb9g Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@112707.3326 acdku61l2c0daprc63s6bhvb9g Query : use flama_phc
20250303@112707.3331 acdku61l2c0daprc63s6bhvb9g Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@112707.3410 acdku61l2c0daprc63s6bhvb9g Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501497 
20250303@112707.3832 acdku61l2c0daprc63s6bhvb9g Query : use flama_phc
20250303@112707.3836 acdku61l2c0daprc63s6bhvb9g Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@112707.3869 acdku61l2c0daprc63s6bhvb9g Query : use flama_phc
20250303@112707.3872 acdku61l2c0daprc63s6bhvb9g Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@112707.3889 acdku61l2c0daprc63s6bhvb9g Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@112707.3913 acdku61l2c0daprc63s6bhvb9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5595';
20250303@112707.3964 acdku61l2c0daprc63s6bhvb9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5595';

20250303@114224.6387 ktvm1pht8gvitrmbp128p9ig0s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5596';
20250303@114224.6459 ktvm1pht8gvitrmbp128p9ig0s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5596';
20250303@114224.6501 ktvm1pht8gvitrmbp128p9ig0s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5596';
20250303@114224.6600 ktvm1pht8gvitrmbp128p9ig0s Query : use flama_phc
20250303@114224.6603 ktvm1pht8gvitrmbp128p9ig0s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@114224.6670 ktvm1pht8gvitrmbp128p9ig0s Query : use flama_phc
20250303@114224.6673 ktvm1pht8gvitrmbp128p9ig0s Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250303@114224.6724 ktvm1pht8gvitrmbp128p9ig0s Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501515 
20250303@114224.7098 ktvm1pht8gvitrmbp128p9ig0s Query : use flama_phc
20250303@114224.7112 ktvm1pht8gvitrmbp128p9ig0s Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@114224.7145 ktvm1pht8gvitrmbp128p9ig0s Query : use flama_phc
20250303@114224.7148 ktvm1pht8gvitrmbp128p9ig0s Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@114224.7166 ktvm1pht8gvitrmbp128p9ig0s Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@114224.7196 ktvm1pht8gvitrmbp128p9ig0s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5596';
20250303@114224.7243 ktvm1pht8gvitrmbp128p9ig0s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5596';
20250303@114224.7808 lfovbb8dercatf5bbobpvenikc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@114224.7820 lfovbb8dercatf5bbobpvenikc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@114224.7895 lfovbb8dercatf5bbobpvenikc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5597';
20250303@114224.7980 lfovbb8dercatf5bbobpvenikc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5597';
20250303@114224.8049 lfovbb8dercatf5bbobpvenikc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5597';
20250303@114224.8278 lfovbb8dercatf5bbobpvenikc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5597';
20250303@114224.8371 lfovbb8dercatf5bbobpvenikc Query : use flama_phc
20250303@114224.8375 lfovbb8dercatf5bbobpvenikc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@114224.8439 lfovbb8dercatf5bbobpvenikc Query : use flama_phc
20250303@114224.8442 lfovbb8dercatf5bbobpvenikc Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250303@114224.8532 lfovbb8dercatf5bbobpvenikc Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501516 
20250303@114224.8886 lfovbb8dercatf5bbobpvenikc Query : use flama_phc
20250303@114224.8889 lfovbb8dercatf5bbobpvenikc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@114224.8921 lfovbb8dercatf5bbobpvenikc Query : use flama_phc
20250303@114224.8924 lfovbb8dercatf5bbobpvenikc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@114224.8947 lfovbb8dercatf5bbobpvenikc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@114224.8972 lfovbb8dercatf5bbobpvenikc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5597';
20250303@114224.9018 lfovbb8dercatf5bbobpvenikc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5597';

20250303@125811.3865 4pfqtb5vbev1kn2ej4qp78q7ip Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5598';
20250303@125811.3944 4pfqtb5vbev1kn2ej4qp78q7ip Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5598';
20250303@125811.3985 4pfqtb5vbev1kn2ej4qp78q7ip Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5598';
20250303@125811.4066 4pfqtb5vbev1kn2ej4qp78q7ip Query : use flama_phc
20250303@125811.4069 4pfqtb5vbev1kn2ej4qp78q7ip Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@125811.4219 4pfqtb5vbev1kn2ej4qp78q7ip Query : use flama_phc
20250303@125811.4222 4pfqtb5vbev1kn2ej4qp78q7ip Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250303@125811.5656 4pfqtb5vbev1kn2ej4qp78q7ip Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501518 
20250303@125811.6571 4pfqtb5vbev1kn2ej4qp78q7ip Query : use flama_phc
20250303@125811.6575 4pfqtb5vbev1kn2ej4qp78q7ip Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@125811.6640 4pfqtb5vbev1kn2ej4qp78q7ip Query : use flama_phc
20250303@125811.6643 4pfqtb5vbev1kn2ej4qp78q7ip Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@125811.6709 4pfqtb5vbev1kn2ej4qp78q7ip Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@125811.6747 4pfqtb5vbev1kn2ej4qp78q7ip Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5598';
20250303@125811.6793 4pfqtb5vbev1kn2ej4qp78q7ip Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5598';
20250303@125811.7374 snf7i5j27ase79ojbiuti7nfqt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@125811.7385 snf7i5j27ase79ojbiuti7nfqt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@125811.7464 snf7i5j27ase79ojbiuti7nfqt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5599';
20250303@125811.7535 snf7i5j27ase79ojbiuti7nfqt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5599';
20250303@125811.7608 snf7i5j27ase79ojbiuti7nfqt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5599';
20250303@125811.7647 snf7i5j27ase79ojbiuti7nfqt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5599';
20250303@125811.7722 snf7i5j27ase79ojbiuti7nfqt Query : use flama_phc
20250303@125811.7725 snf7i5j27ase79ojbiuti7nfqt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250303@125811.7788 snf7i5j27ase79ojbiuti7nfqt Query : use flama_phc
20250303@125811.7791 snf7i5j27ase79ojbiuti7nfqt Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250303@125811.9150 snf7i5j27ase79ojbiuti7nfqt Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 280 and bo.boano = 2015 and bo.obrano = 2801517 
20250303@125811.9621 snf7i5j27ase79ojbiuti7nfqt Query : use flama_phc
20250303@125811.9624 snf7i5j27ase79ojbiuti7nfqt Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250303@125811.9663 snf7i5j27ase79ojbiuti7nfqt Query : use flama_phc
20250303@125811.9667 snf7i5j27ase79ojbiuti7nfqt Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250303@125811.9684 snf7i5j27ase79ojbiuti7nfqt Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250303@125811.9711 snf7i5j27ase79ojbiuti7nfqt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5599';
20250303@125811.9768 snf7i5j27ase79ojbiuti7nfqt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5599';

20250303@173557.2858 di9lrfeva9prm9n7gplm8gj957 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5600';
20250303@173557.3075 di9lrfeva9prm9n7gplm8gj957 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5600';
20250303@173557.3276 di9lrfeva9prm9n7gplm8gj957 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5600';
20250303@173557.6597 teucjmkuo6esssq0s9kqphkar9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173557.6637 teucjmkuo6esssq0s9kqphkar9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173557.6997 teucjmkuo6esssq0s9kqphkar9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5601';
20250303@173557.7219 teucjmkuo6esssq0s9kqphkar9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5601';
20250303@173557.7566 teucjmkuo6esssq0s9kqphkar9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5601';
20250303@173557.7703 teucjmkuo6esssq0s9kqphkar9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5601';
20250303@173558.2200 1ks205u1jls60ckc7td13rh7dd Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173558.1400 1ks205u1jls60ckc7td13rh7dd Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173558.3150 1ks205u1jls60ckc7td13rh7dd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5602';
20250303@173558.6000 1ks205u1jls60ckc7td13rh7dd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5602';
20250303@173558.8120 1ks205u1jls60ckc7td13rh7dd Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5602';
20250303@173558.9660 1ks205u1jls60ckc7td13rh7dd Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5602';
20250303@173558.2346 5pvfrfb9k7sbsstcmsth6el6c5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173558.2357 5pvfrfb9k7sbsstcmsth6el6c5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173558.2595 5pvfrfb9k7sbsstcmsth6el6c5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5603';
20250303@173558.3873 5pvfrfb9k7sbsstcmsth6el6c5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5603';
20250303@173558.4429 5pvfrfb9k7sbsstcmsth6el6c5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5603';
20250303@173558.4690 5pvfrfb9k7sbsstcmsth6el6c5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5603';
20250303@173601.2612 32a7frhe6l3mbdk8ukg77j9h0a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173601.2708 32a7frhe6l3mbdk8ukg77j9h0a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173601.2974 32a7frhe6l3mbdk8ukg77j9h0a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5604';
20250303@173601.3233 32a7frhe6l3mbdk8ukg77j9h0a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5604';
20250303@173601.3463 32a7frhe6l3mbdk8ukg77j9h0a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5604';
20250303@173601.3653 32a7frhe6l3mbdk8ukg77j9h0a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5604';
20250303@173601.4586 ol5s4mf8tm6dgvj5c72dpucd6j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173601.4600 ol5s4mf8tm6dgvj5c72dpucd6j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173601.4886 ol5s4mf8tm6dgvj5c72dpucd6j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5605';
20250303@173601.5217 ol5s4mf8tm6dgvj5c72dpucd6j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5605';
20250303@173601.5502 ol5s4mf8tm6dgvj5c72dpucd6j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5605';
20250303@173601.5578 n2d5pq0p3pcmadic8ove8j80pj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173601.5596 n2d5pq0p3pcmadic8ove8j80pj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173601.5628 ol5s4mf8tm6dgvj5c72dpucd6j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5605';
20250303@173601.5712 qj6qtu6dnaep125u0qkpro81ok Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173601.5733 qj6qtu6dnaep125u0qkpro81ok Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173601.5778 n2d5pq0p3pcmadic8ove8j80pj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5606';
20250303@173601.5892 n2d5pq0p3pcmadic8ove8j80pj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5606';
20250303@173601.5894 qj6qtu6dnaep125u0qkpro81ok Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5607';
20250303@173601.6014 qj6qtu6dnaep125u0qkpro81ok Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5607';
20250303@173601.6104 n2d5pq0p3pcmadic8ove8j80pj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5606';
20250303@173601.6158 n2d5pq0p3pcmadic8ove8j80pj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5606';
20250303@173601.6189 qj6qtu6dnaep125u0qkpro81ok Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5607';
20250303@173601.6231 qj6qtu6dnaep125u0qkpro81ok Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5607';
20250303@173602.7584 3cmonbpqtc8agk10k9hlknetno Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173602.7601 3cmonbpqtc8agk10k9hlknetno Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173602.7688 3cmonbpqtc8agk10k9hlknetno Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5608';
20250303@173602.7797 3cmonbpqtc8agk10k9hlknetno Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5608';
20250303@173602.7876 3cmonbpqtc8agk10k9hlknetno Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5608';
20250303@173602.7923 3cmonbpqtc8agk10k9hlknetno Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5608';

20250303@173616.3878 16j835m122mhfomr388vsoltck Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5609';
20250303@173616.4098 16j835m122mhfomr388vsoltck Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5609';
20250303@173616.4381 16j835m122mhfomr388vsoltck Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5609';
20250303@173616.8047 mfpupfgapatol6pu0ttdpcu2n4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173616.8080 mfpupfgapatol6pu0ttdpcu2n4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173616.8432 mfpupfgapatol6pu0ttdpcu2n4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5610';
20250303@173616.8840 mfpupfgapatol6pu0ttdpcu2n4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5610';
20250303@173616.9136 mfpupfgapatol6pu0ttdpcu2n4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5610';
20250303@173616.9211 mfpupfgapatol6pu0ttdpcu2n4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5610';
20250303@173618.8790 dkprudrqno4e6afoqansc0628i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173618.8804 dkprudrqno4e6afoqansc0628i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173618.8881 dkprudrqno4e6afoqansc0628i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5611';
20250303@173618.8951 dkprudrqno4e6afoqansc0628i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5611';
20250303@173618.9056 dkprudrqno4e6afoqansc0628i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5611';
20250303@173618.9098 dkprudrqno4e6afoqansc0628i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5611';
20250303@173619.8040 b22jmrc06bps1jmlflg82ldcq8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173619.8210 b22jmrc06bps1jmlflg82ldcq8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173619.9410 b22jmrc06bps1jmlflg82ldcq8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5612';
20250303@173619.1637 b22jmrc06bps1jmlflg82ldcq8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5612';
20250303@173619.1712 b22jmrc06bps1jmlflg82ldcq8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5612';
20250303@173619.1756 b22jmrc06bps1jmlflg82ldcq8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5612';
20250303@173619.6870 kr2tvjimfjnu3gvhlouov12h3r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173619.6889 kr2tvjimfjnu3gvhlouov12h3r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173619.6989 kr2tvjimfjnu3gvhlouov12h3r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5613';
20250303@173619.7137 kr2tvjimfjnu3gvhlouov12h3r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5613';
20250303@173619.7226 kr2tvjimfjnu3gvhlouov12h3r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5613';
20250303@173619.7271 kr2tvjimfjnu3gvhlouov12h3r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5613';
20250303@173619.9479 31ge24vp2lelo8tq8mvq2l297p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173619.9493 31ge24vp2lelo8tq8mvq2l297p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173619.9661 31ge24vp2lelo8tq8mvq2l297p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5614';
20250303@173619.9767 31ge24vp2lelo8tq8mvq2l297p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5614';
20250303@173619.9885 31ge24vp2lelo8tq8mvq2l297p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5614';
20250303@173619.9950 31ge24vp2lelo8tq8mvq2l297p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5614';
20250303@173622.1118 j3jti7cig822ufd9qn2271g86b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173622.1129 j3jti7cig822ufd9qn2271g86b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173622.1208 j3jti7cig822ufd9qn2271g86b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5615';
20250303@173622.1272 j3jti7cig822ufd9qn2271g86b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5615';
20250303@173622.1351 j3jti7cig822ufd9qn2271g86b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5615';
20250303@173622.1394 j3jti7cig822ufd9qn2271g86b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5615';
20250303@173622.2277 1e69rkol1vhek5obouol826fu9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173622.2287 1e69rkol1vhek5obouol826fu9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173622.2613 1e69rkol1vhek5obouol826fu9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5616';
20250303@173622.2706 1e69rkol1vhek5obouol826fu9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5616';
20250303@173622.2795 5kvijt4b1d0et683kuu0ar6ikt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173622.2880 5kvijt4b1d0et683kuu0ar6ikt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173622.2940 1e69rkol1vhek5obouol826fu9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5616';
20250303@173622.3021 1e69rkol1vhek5obouol826fu9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5616';
20250303@173622.3064 5kvijt4b1d0et683kuu0ar6ikt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5617';
20250303@173622.3141 5kvijt4b1d0et683kuu0ar6ikt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5617';
20250303@173622.3203 5kvijt4b1d0et683kuu0ar6ikt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5617';
20250303@173622.3251 5kvijt4b1d0et683kuu0ar6ikt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5617';
20250303@173622.5186 99ckb7tovef6aibg4r19mtn7hk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173622.5205 99ckb7tovef6aibg4r19mtn7hk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173622.5313 99ckb7tovef6aibg4r19mtn7hk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5618';
20250303@173622.5432 99ckb7tovef6aibg4r19mtn7hk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5618';
20250303@173622.5533 99ckb7tovef6aibg4r19mtn7hk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5618';
20250303@173622.5590 99ckb7tovef6aibg4r19mtn7hk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5618';
20250303@173622.5673 n1tta371h67c802r7v5vdj3pg2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173622.5684 n1tta371h67c802r7v5vdj3pg2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173622.5752 n1tta371h67c802r7v5vdj3pg2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5619';
20250303@173622.5818 n1tta371h67c802r7v5vdj3pg2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5619';
20250303@173622.5960 n1tta371h67c802r7v5vdj3pg2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5619';
20250303@173622.6011 n1tta371h67c802r7v5vdj3pg2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5619';
20250303@173624.5362 jubvs7larjvoqrn1ren56s3q1l Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173624.5374 jubvs7larjvoqrn1ren56s3q1l Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173624.5472 jubvs7larjvoqrn1ren56s3q1l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5620';
20250303@173624.5573 jubvs7larjvoqrn1ren56s3q1l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5620';
20250303@173624.5650 jubvs7larjvoqrn1ren56s3q1l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5620';
20250303@173624.5688 jubvs7larjvoqrn1ren56s3q1l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5620';
20250303@173640.4026 l60d6hfdd0g49qbdd4uiulrjc8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173640.4073 l60d6hfdd0g49qbdd4uiulrjc8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173640.4199 l60d6hfdd0g49qbdd4uiulrjc8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5621';
20250303@173640.4266 l60d6hfdd0g49qbdd4uiulrjc8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5621';
20250303@173640.4678 l60d6hfdd0g49qbdd4uiulrjc8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5621';
20250303@173640.4803 l60d6hfdd0g49qbdd4uiulrjc8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5621';
20250303@173640.5409 h6cu7bv607o3atjbrfjquqb7ma Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173640.5420 h6cu7bv607o3atjbrfjquqb7ma Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173640.5510 h6cu7bv607o3atjbrfjquqb7ma Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5622';
20250303@173640.5708 h6cu7bv607o3atjbrfjquqb7ma Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5622';
20250303@173640.6509 h6cu7bv607o3atjbrfjquqb7ma Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5622';
20250303@173640.6579 1nuuga0fb1h99qi0djkgg4jqch Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173640.6746 1nuuga0fb1h99qi0djkgg4jqch Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173640.7119 h6cu7bv607o3atjbrfjquqb7ma Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5622';
20250303@173640.7227 1nuuga0fb1h99qi0djkgg4jqch Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5623';
20250303@173640.7323 1nuuga0fb1h99qi0djkgg4jqch Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5623';
20250303@173640.7408 1nuuga0fb1h99qi0djkgg4jqch Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5623';
20250303@173640.7449 1nuuga0fb1h99qi0djkgg4jqch Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5623';
20250303@173641.2695 tklajhi36vtoacp9iqja6f5jkl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173641.2706 tklajhi36vtoacp9iqja6f5jkl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173641.2829 tklajhi36vtoacp9iqja6f5jkl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5624';
20250303@173641.2894 tklajhi36vtoacp9iqja6f5jkl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5624';
20250303@173641.2965 tklajhi36vtoacp9iqja6f5jkl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5624';
20250303@173641.3021 tklajhi36vtoacp9iqja6f5jkl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5624';
20250303@173641.3466 8rb389oc28bvs4095al074jbec Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173641.3476 8rb389oc28bvs4095al074jbec Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173641.3554 8rb389oc28bvs4095al074jbec Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5625';
20250303@173641.3622 8rb389oc28bvs4095al074jbec Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5625';
20250303@173641.3710 8rb389oc28bvs4095al074jbec Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5625';
20250303@173641.3748 8rb389oc28bvs4095al074jbec Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5625';
20250303@173646.2800 77gejenlo7512ctrt6chvgs862 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173646.2811 77gejenlo7512ctrt6chvgs862 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173646.2902 77gejenlo7512ctrt6chvgs862 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5626';
20250303@173646.2983 77gejenlo7512ctrt6chvgs862 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5626';
20250303@173646.3061 77gejenlo7512ctrt6chvgs862 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5626';
20250303@173646.3110 77gejenlo7512ctrt6chvgs862 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5626';
20250303@173652.6450 s5431pbdkhv6h7m0559prprre8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173652.6780 s5431pbdkhv6h7m0559prprre8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173652.7510 s5431pbdkhv6h7m0559prprre8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5627';
20250303@173652.8300 s5431pbdkhv6h7m0559prprre8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5627';
20250303@173652.9010 s5431pbdkhv6h7m0559prprre8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5627';
20250303@173652.9410 s5431pbdkhv6h7m0559prprre8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5627';
20250303@173652.1466 8d8jo07f112n6s2g0q94gh00vl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173652.1488 8d8jo07f112n6s2g0q94gh00vl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173652.1596 8d8jo07f112n6s2g0q94gh00vl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5628';
20250303@173652.1673 8d8jo07f112n6s2g0q94gh00vl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5628';
20250303@173652.1761 8d8jo07f112n6s2g0q94gh00vl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5628';
20250303@173652.1817 8d8jo07f112n6s2g0q94gh00vl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5628';
20250303@173652.3248 um160ve6k1tq1f9fvorn4j8a41 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173652.3259 um160ve6k1tq1f9fvorn4j8a41 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173652.3348 um160ve6k1tq1f9fvorn4j8a41 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5629';
20250303@173652.3429 um160ve6k1tq1f9fvorn4j8a41 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5629';
20250303@173652.3548 um160ve6k1tq1f9fvorn4j8a41 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5629';
20250303@173652.3593 um160ve6k1tq1f9fvorn4j8a41 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5629';
20250303@173652.9593 bfhajso60n92f0oautimdn7p0u Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173652.9604 bfhajso60n92f0oautimdn7p0u Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173652.9702 bfhajso60n92f0oautimdn7p0u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5630';
20250303@173652.9789 bfhajso60n92f0oautimdn7p0u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5630';
20250303@173652.9869 bfhajso60n92f0oautimdn7p0u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5630';
20250303@173652.9919 bfhajso60n92f0oautimdn7p0u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5630';
20250303@173653.5520 i5vp5bi98358o8rn76hlpqu86m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173653.5630 i5vp5bi98358o8rn76hlpqu86m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173653.6630 i5vp5bi98358o8rn76hlpqu86m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5631';
20250303@173653.7380 i5vp5bi98358o8rn76hlpqu86m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5631';
20250303@173653.8300 i5vp5bi98358o8rn76hlpqu86m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5631';
20250303@173653.8730 i5vp5bi98358o8rn76hlpqu86m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5631';
20250303@173653.2329 i47un6trk60eglmbqqu9tl578g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173653.2340 i47un6trk60eglmbqqu9tl578g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173653.2450 i47un6trk60eglmbqqu9tl578g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5632';
20250303@173653.2540 i47un6trk60eglmbqqu9tl578g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5632';
20250303@173653.2674 i47un6trk60eglmbqqu9tl578g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5632';
20250303@173653.2741 i47un6trk60eglmbqqu9tl578g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5632';
20250303@173653.8776 3pa7urk2ggkhhg27b6f3rfbg5e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173653.8788 3pa7urk2ggkhhg27b6f3rfbg5e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173653.8884 3pa7urk2ggkhhg27b6f3rfbg5e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5633';
20250303@173653.8959 3pa7urk2ggkhhg27b6f3rfbg5e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5633';
20250303@173653.9052 3pa7urk2ggkhhg27b6f3rfbg5e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5633';
20250303@173653.9094 3pa7urk2ggkhhg27b6f3rfbg5e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5633';
20250303@173653.9689 5en96ianjdpncuu04jk45c6ehc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173653.9718 5en96ianjdpncuu04jk45c6ehc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173653.9843 5en96ianjdpncuu04jk45c6ehc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5634';
20250303@173653.9934 5en96ianjdpncuu04jk45c6ehc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5634';
20250303@173654.2000 5en96ianjdpncuu04jk45c6ehc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5634';
20250303@173654.6800 5en96ianjdpncuu04jk45c6ehc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5634';
20250303@173654.2530 5toece69inb3h7lfueq9rl82mi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173654.2551 5toece69inb3h7lfueq9rl82mi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173654.2639 5toece69inb3h7lfueq9rl82mi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5635';
20250303@173654.2713 5toece69inb3h7lfueq9rl82mi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5635';
20250303@173654.2803 5toece69inb3h7lfueq9rl82mi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5635';
20250303@173654.2847 5toece69inb3h7lfueq9rl82mi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5635';
20250303@173654.4632 fu9e1d69m6asmbtk3pppf1utiq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173654.4660 fu9e1d69m6asmbtk3pppf1utiq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173654.4750 fu9e1d69m6asmbtk3pppf1utiq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5636';
20250303@173654.4827 fu9e1d69m6asmbtk3pppf1utiq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5636';
20250303@173654.4969 fu9e1d69m6asmbtk3pppf1utiq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5636';
20250303@173654.5042 fu9e1d69m6asmbtk3pppf1utiq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5636';
20250303@173654.5591 g2r4emtssljj5crl6coetshr8p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173654.5602 g2r4emtssljj5crl6coetshr8p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173654.5697 g2r4emtssljj5crl6coetshr8p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5637';
20250303@173654.5794 g2r4emtssljj5crl6coetshr8p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5637';
20250303@173654.5902 g2r4emtssljj5crl6coetshr8p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5637';
20250303@173654.5945 g2r4emtssljj5crl6coetshr8p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5637';
20250303@173655.2910 lqc75ss2tegbhjcsgjglv205nn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173655.3080 lqc75ss2tegbhjcsgjglv205nn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173655.3880 lqc75ss2tegbhjcsgjglv205nn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5638';
20250303@173655.4660 lqc75ss2tegbhjcsgjglv205nn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5638';
20250303@173655.5460 lqc75ss2tegbhjcsgjglv205nn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5638';
20250303@173655.5930 lqc75ss2tegbhjcsgjglv205nn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5638';
20250303@173655.6326 4sstg101f0s7b1dpnrts8800vk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173655.6336 4sstg101f0s7b1dpnrts8800vk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173655.6406 4sstg101f0s7b1dpnrts8800vk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5639';
20250303@173655.6515 4sstg101f0s7b1dpnrts8800vk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5639';
20250303@173655.6613 4sstg101f0s7b1dpnrts8800vk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5639';
20250303@173655.6677 4sstg101f0s7b1dpnrts8800vk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5639';
20250303@173655.6979 4ah9kl0rhrmf14a3v4egf0hr3e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173655.6990 4ah9kl0rhrmf14a3v4egf0hr3e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173655.7060 4ah9kl0rhrmf14a3v4egf0hr3e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5640';
20250303@173655.7218 4ah9kl0rhrmf14a3v4egf0hr3e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5640';
20250303@173655.7363 4ah9kl0rhrmf14a3v4egf0hr3e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5640';
20250303@173655.7403 24un7np89evt2es109pfu21jfa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@173655.7409 4ah9kl0rhrmf14a3v4egf0hr3e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5640';
20250303@173655.7445 24un7np89evt2es109pfu21jfa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@173655.7511 24un7np89evt2es109pfu21jfa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5641';
20250303@173655.7581 24un7np89evt2es109pfu21jfa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5641';
20250303@173655.7649 24un7np89evt2es109pfu21jfa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5641';
20250303@173655.7688 24un7np89evt2es109pfu21jfa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5641';

20250303@193555.8606 684s6g08o3jhhlbgjkrdq7k218 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5642';
20250303@193555.8687 684s6g08o3jhhlbgjkrdq7k218 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5642';
20250303@193555.8729 684s6g08o3jhhlbgjkrdq7k218 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5642';
20250303@193556.3070 ekdudid7ko9m441bmuopbu7q2f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193556.3190 ekdudid7ko9m441bmuopbu7q2f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193556.3920 ekdudid7ko9m441bmuopbu7q2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5643';
20250303@193556.4630 ekdudid7ko9m441bmuopbu7q2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5643';
20250303@193556.5350 ekdudid7ko9m441bmuopbu7q2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5643';
20250303@193556.5740 ekdudid7ko9m441bmuopbu7q2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5643';
20250303@193601.5933 qvu2r2gb290ihtv64m0m4si2ic Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193601.5944 qvu2r2gb290ihtv64m0m4si2ic Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193601.6204 qvu2r2gb290ihtv64m0m4si2ic Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5644';
20250303@193601.6346 qvu2r2gb290ihtv64m0m4si2ic Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5644';
20250303@193601.6453 qvu2r2gb290ihtv64m0m4si2ic Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5644';
20250303@193601.6781 qvu2r2gb290ihtv64m0m4si2ic Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5644';
20250303@193601.9748 jo21mdpjh0gs5q7s8nih5nnm0o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193601.9760 jo21mdpjh0gs5q7s8nih5nnm0o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193601.9766 sc6roo8ovdop43ddma8k5nhs0h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193601.9776 sc6roo8ovdop43ddma8k5nhs0h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193601.9843 jo21mdpjh0gs5q7s8nih5nnm0o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5645';
20250303@193601.9848 sc6roo8ovdop43ddma8k5nhs0h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5646';
20250303@193601.9913 jo21mdpjh0gs5q7s8nih5nnm0o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5645';
20250303@193601.9921 sc6roo8ovdop43ddma8k5nhs0h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5646';
20250303@193602.2000 jo21mdpjh0gs5q7s8nih5nnm0o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5645';
20250303@193602.3000 sc6roo8ovdop43ddma8k5nhs0h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5646';
20250303@193602.4300 sc6roo8ovdop43ddma8k5nhs0h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5646';
20250303@193602.4800 jo21mdpjh0gs5q7s8nih5nnm0o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5645';
20250303@193602.3910 vudu7vo3f2581jftrnutalt86j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193602.4020 vudu7vo3f2581jftrnutalt86j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193602.4750 vudu7vo3f2581jftrnutalt86j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5647';
20250303@193602.5470 vudu7vo3f2581jftrnutalt86j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5647';
20250303@193602.6200 vudu7vo3f2581jftrnutalt86j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5647';
20250303@193602.6640 vudu7vo3f2581jftrnutalt86j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5647';
20250303@193605.3868 kiiqgbu439ao2v1o10h4f92vqv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193605.3879 kiiqgbu439ao2v1o10h4f92vqv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193605.3982 kiiqgbu439ao2v1o10h4f92vqv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5648';
20250303@193605.4053 kiiqgbu439ao2v1o10h4f92vqv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5648';
20250303@193605.4123 kiiqgbu439ao2v1o10h4f92vqv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5648';
20250303@193605.4160 kiiqgbu439ao2v1o10h4f92vqv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5648';
20250303@193605.5715 qkjgnplse51okm9km4s8cb3bca Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193605.5726 qkjgnplse51okm9km4s8cb3bca Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193605.5798 qkjgnplse51okm9km4s8cb3bca Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5649';
20250303@193605.5880 qkjgnplse51okm9km4s8cb3bca Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5649';
20250303@193605.5979 qkjgnplse51okm9km4s8cb3bca Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5649';
20250303@193605.6021 qkjgnplse51okm9km4s8cb3bca Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5649';
20250303@193605.7018 9usi3bb9plaegvqbmup2rrlf2k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193605.7029 9usi3bb9plaegvqbmup2rrlf2k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193605.7167 9usi3bb9plaegvqbmup2rrlf2k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5650';
20250303@193605.7295 9usi3bb9plaegvqbmup2rrlf2k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5650';
20250303@193605.7559 9usi3bb9plaegvqbmup2rrlf2k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5650';
20250303@193605.7620 9usi3bb9plaegvqbmup2rrlf2k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5650';
20250303@193607.1700 ibnf08r0k321cti6o2io63etka Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193607.1760 gbtk85hqmqqfu00b1d52dhpg2p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193607.1860 ibnf08r0k321cti6o2io63etka Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193607.1910 gbtk85hqmqqfu00b1d52dhpg2p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193607.2630 ibnf08r0k321cti6o2io63etka Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5651';
20250303@193607.2670 gbtk85hqmqqfu00b1d52dhpg2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5652';
20250303@193607.3890 ibnf08r0k321cti6o2io63etka Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5651';
20250303@193607.3950 gbtk85hqmqqfu00b1d52dhpg2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5652';
20250303@193607.5120 gbtk85hqmqqfu00b1d52dhpg2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5652';
20250303@193607.5600 gbtk85hqmqqfu00b1d52dhpg2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5652';
20250303@193607.7110 ibnf08r0k321cti6o2io63etka Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5651';
20250303@193607.8940 ibnf08r0k321cti6o2io63etka Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5651';

20250303@193613.1335 u6ns1g8utilja3upgfor8434k5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5653';
20250303@193613.1407 u6ns1g8utilja3upgfor8434k5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5653';
20250303@193613.1451 u6ns1g8utilja3upgfor8434k5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5653';
20250303@193613.2329 k67o79sg0s8c0uknlu947llv2k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193613.2339 k67o79sg0s8c0uknlu947llv2k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193613.2412 k67o79sg0s8c0uknlu947llv2k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5654';
20250303@193613.2485 k67o79sg0s8c0uknlu947llv2k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5654';
20250303@193613.2556 k67o79sg0s8c0uknlu947llv2k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5654';
20250303@193613.2600 k67o79sg0s8c0uknlu947llv2k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5654';
20250303@193613.6215 c7indoeq9jnuj3n7sct1vlm9nb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193613.6225 c7indoeq9jnuj3n7sct1vlm9nb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193613.6295 c7indoeq9jnuj3n7sct1vlm9nb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5655';
20250303@193613.6362 c7indoeq9jnuj3n7sct1vlm9nb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5655';
20250303@193613.6436 c7indoeq9jnuj3n7sct1vlm9nb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5655';
20250303@193613.6473 c7indoeq9jnuj3n7sct1vlm9nb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5655';
20250303@193619.6589 i5sh909su876d0qqjbbv21jh78 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193619.6605 i5sh909su876d0qqjbbv21jh78 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193619.6695 i5sh909su876d0qqjbbv21jh78 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5656';
20250303@193619.7125 i5sh909su876d0qqjbbv21jh78 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5656';
20250303@193619.7264 i5sh909su876d0qqjbbv21jh78 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5656';
20250303@193619.7318 i5sh909su876d0qqjbbv21jh78 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5656';
20250303@193624.2214 sh1n187h543up6hd0t2rkid4ch Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193624.2224 sh1n187h543up6hd0t2rkid4ch Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193624.2295 sh1n187h543up6hd0t2rkid4ch Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5657';
20250303@193624.2357 sh1n187h543up6hd0t2rkid4ch Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5657';
20250303@193624.2434 sh1n187h543up6hd0t2rkid4ch Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5657';
20250303@193624.2561 sh1n187h543up6hd0t2rkid4ch Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5657';
20250303@193624.3458 mkne312dp6um2qp696omont3pb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193624.3469 mkne312dp6um2qp696omont3pb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193624.3543 mkne312dp6um2qp696omont3pb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5658';
20250303@193624.3608 mkne312dp6um2qp696omont3pb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5658';
20250303@193624.3676 mkne312dp6um2qp696omont3pb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5658';
20250303@193624.3728 mkne312dp6um2qp696omont3pb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5658';
20250303@193625.3551 4o14p3grq08bca9flprlsdr4rn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193625.3570 4o14p3grq08bca9flprlsdr4rn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193625.3643 4o14p3grq08bca9flprlsdr4rn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5659';
