20250109@155726.5804 rh3pu10k2e5pjpet7acpn9niqq INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20250109@155726.5801 rh3pu10k2e5pjpet7acpn9niqq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250109@155726.5851 rh3pu10k2e5pjpet7acpn9niqq Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut677ff48508677ff1e68d',?,?,'20250109',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250109@155726.7019 rh3pu10k2e5pjpet7acpn9niqq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@155726.7047 rh3pu10k2e5pjpet7acpn9niqq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@155726.7072 rh3pu10k2e5pjpet7acpn9niqq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250109@155726.7099 rh3pu10k2e5pjpet7acpn9niqq Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut677ff00479677ff1e6ac','aut677ff65126677ff1e36f',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 = 'aut677ff65126677ff1e36f'
20250109@155726.7318 rh3pu10k2e5pjpet7acpn9niqq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@155726.7375 rh3pu10k2e5pjpet7acpn9niqq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250109@155726.7396 rh3pu10k2e5pjpet7acpn9niqq 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 'aut677ff00479677ff1e6ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3660, 3660*.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 ,5.95,5.95*200.48,5.95,5.95*200.48 ,0,0,'un ','' ,bo.marcada,1 ,5.95*3660,5.95*3660*200.48 ,6.811000,6.811000*200.48 ,6.811000,6.811000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,5.95,5.95*200.48,5.95*3660,5.95*3660*200.48,'cps24090941025,389000002 ',47.13,47.13*3660,47.13,47.13*3660,?,?,?,4 from bo bo where bo.bostamp = 'aut677ff65126677ff1e36f'
20250109@155751.3899 rh3pu10k2e5pjpet7acpn9niqq Query : use flama_phc
20250109@155751.3938 rh3pu10k2e5pjpet7acpn9niqq Query : declare @bostamp varchar(25) = 'aut677ff65126677ff1e36f' ,@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 
20250109@155812.3388 rh3pu10k2e5pjpet7acpn9niqq Query : use flama_phc
20250109@155812.3392 rh3pu10k2e5pjpet7acpn9niqq Query : select 1 valor from bo where bo.bostamp = 'aut677ff65126677ff1e36f'
20250109@155812.3508 rh3pu10k2e5pjpet7acpn9niqq 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) = 'aut677ff65126677ff1e36f' 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 
20250109@155815.5891 rh3pu10k2e5pjpet7acpn9niqq Query : use flama_phc
20250109@155815.5894 rh3pu10k2e5pjpet7acpn9niqq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@155815.5944 rh3pu10k2e5pjpet7acpn9niqq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4455';
20250109@155815.5988 rh3pu10k2e5pjpet7acpn9niqq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4455';

20250109@202959.2070 h435umqkb8krge2pg5s85olghv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4456';
20250109@202959.2760 h435umqkb8krge2pg5s85olghv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4456';
20250109@202959.3210 h435umqkb8krge2pg5s85olghv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4456';
20250109@202959.3880 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.3910 h435umqkb8krge2pg5s85olghv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@202959.4680 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.4710 h435umqkb8krge2pg5s85olghv Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20250109@202959.5290 h435umqkb8krge2pg5s85olghv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20250109@202959.6910 h435umqkb8krge2pg5s85olghv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500249 and bi.ref ='324.1832.00.2' and bi.lordem =1
20250109@202959.1075 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1085 h435umqkb8krge2pg5s85olghv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@202959.1125 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1129 h435umqkb8krge2pg5s85olghv Query : select top 1 1 valor from td where td.ndoc = 39
20250109@202959.1166 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1169 h435umqkb8krge2pg5s85olghv 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')
20250109@202959.1257 h435umqkb8krge2pg5s85olghv Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@202959.1469 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1473 h435umqkb8krge2pg5s85olghv Query : select top 1 ~inactivo valor from cl where no = '102943' and estab = 0 order by inactivo desc
20250109@202959.1509 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1512 h435umqkb8krge2pg5s85olghv Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@202959.1546 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1549 h435umqkb8krge2pg5s85olghv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@202959.1600 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1603 h435umqkb8krge2pg5s85olghv Query : select szadrsstamp valor from szadrs where szadrsdesc='pll-plataformalogistica lisboa norte'
20250109@202959.1676 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.1679 h435umqkb8krge2pg5s85olghv Query : select 1 valor from td where ndoc = 39
20250109@202959.1698 h435umqkb8krge2pg5s85olghv Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@202959.1717 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.1745 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@202959.1795 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.2023 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@202959.2057 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.2096 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@202959.2109 h435umqkb8krge2pg5s85olghv Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@202959.2300 h435umqkb8krge2pg5s85olghv Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@202959.2328 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.2349 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@202959.2372 h435umqkb8krge2pg5s85olghv Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780339619678031c733' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@202959.2654 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.2671 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@202959.2706 h435umqkb8krge2pg5s85olghv Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@202959.2719 h435umqkb8krge2pg5s85olghv Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@202959.2731 h435umqkb8krge2pg5s85olghv Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@202959.2743 h435umqkb8krge2pg5s85olghv Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@202959.2763 h435umqkb8krge2pg5s85olghv Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@202959.2776 h435umqkb8krge2pg5s85olghv Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@202959.2788 h435umqkb8krge2pg5s85olghv Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780339619678031c733',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@202959.3375 h435umqkb8krge2pg5s85olghv Query : select top 1 fno valor from wsftdata order by fno desc
20250109@202959.3419 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.3437 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@202959.3469 h435umqkb8krge2pg5s85olghv Query : select 'normal' from dummy
20250109@202959.3503 h435umqkb8krge2pg5s85olghv Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780339619678031c733',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2894,102943,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@202959.4021 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.4024 h435umqkb8krge2pg5s85olghv Query : select st.usalote valor from st where st.ref = '324.1832.00.2'
20250109@202959.4054 h435umqkb8krge2pg5s85olghv Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1832.00.2'
20250109@202959.4207 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.4223 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@202959.4249 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.4264 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@202959.4272 h435umqkb8krge2pg5s85olghv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@202959.4293 h435umqkb8krge2pg5s85olghv Query : select sestamp valor from se where ref ='324.1832.00.2' and lote = 'r2400401150a'
20250109@202959.4324 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.4340 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@202959.4374 h435umqkb8krge2pg5s85olghv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780310116678031c769','aut6780339619678031c733' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@202959.4417 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.4433 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@202959.4462 h435umqkb8krge2pg5s85olghv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780310116678031c769',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut6780339619678031c733' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@202959.5100 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.5257 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@202959.5296 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.5378 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@202959.5387 h435umqkb8krge2pg5s85olghv Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@202959.5400 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.5530 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@202959.5752 h435umqkb8krge2pg5s85olghv Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780365705678031c783','aut6780339619678031c733' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@202959.5771 h435umqkb8krge2pg5s85olghv Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.5788 h435umqkb8krge2pg5s85olghv Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@202959.5879 h435umqkb8krge2pg5s85olghv Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6780365705678031c783',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6780339619678031c733' ,0,0 ,2,23.00,20000,?,?,?)
20250109@202959.6387 h435umqkb8krge2pg5s85olghv Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780339619678031c733','2500249','wait',39,'adm09112754980.682000002')
20250109@202959.6482 h435umqkb8krge2pg5s85olghv Query : use flama_phc
20250109@202959.6486 h435umqkb8krge2pg5s85olghv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@202959.6526 h435umqkb8krge2pg5s85olghv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4456';
20250109@202959.6643 h435umqkb8krge2pg5s85olghv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4456';
20250109@202959.6763 h435umqkb8krge2pg5s85olghv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4456';
20250109@202959.6801 h435umqkb8krge2pg5s85olghv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4456';
20250109@202959.7305 kmtv9prl2v66uj4rnbcgcki7m2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@202959.7317 kmtv9prl2v66uj4rnbcgcki7m2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@202959.7382 kmtv9prl2v66uj4rnbcgcki7m2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4457';
20250109@202959.7443 kmtv9prl2v66uj4rnbcgcki7m2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4457';
20250109@202959.7516 kmtv9prl2v66uj4rnbcgcki7m2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4457';
20250109@202959.7550 kmtv9prl2v66uj4rnbcgcki7m2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4457';
20250109@202959.7616 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.7619 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@202959.7680 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.7683 kmtv9prl2v66uj4rnbcgcki7m2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=9128
20250109@202959.7775 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@202959.7924 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500250 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@202959.8238 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8241 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@202959.8275 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8279 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 1 valor from td where td.ndoc = 39
20250109@202959.8309 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8312 kmtv9prl2v66uj4rnbcgcki7m2 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')
20250109@202959.8340 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@202959.8379 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8382 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@202959.8509 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8513 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@202959.8544 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8548 kmtv9prl2v66uj4rnbcgcki7m2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@202959.8784 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8788 kmtv9prl2v66uj4rnbcgcki7m2 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - v. castelo (nova)'
20250109@202959.8843 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@202959.8846 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from td where ndoc = 39
20250109@202959.8861 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@202959.8874 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.8893 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@202959.8921 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.8939 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@202959.8969 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.8983 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@202959.8995 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@202959.9102 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@202959.9114 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.9130 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@202959.9150 kmtv9prl2v66uj4rnbcgcki7m2 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780310034678031c7db' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@202959.9336 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.9352 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@202959.9386 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@202959.9406 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@202959.9418 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@202959.9432 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@202959.9444 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@202959.9459 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@202959.9470 kmtv9prl2v66uj4rnbcgcki7m2 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780310034678031c7db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@202959.9718 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 fno valor from wsftdata order by fno desc
20250109@202959.9757 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@202959.9779 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@202959.9801 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 'normal' from dummy
20250109@202959.9816 kmtv9prl2v66uj4rnbcgcki7m2 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780310034678031c7db',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2895,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203000.1240 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@203000.1270 kmtv9prl2v66uj4rnbcgcki7m2 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203000.1530 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203000.3330 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.3500 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203000.3760 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.3900 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203000.3990 kmtv9prl2v66uj4rnbcgcki7m2 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203000.4110 kmtv9prl2v66uj4rnbcgcki7m2 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203000.4380 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.4530 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203000.4640 kmtv9prl2v66uj4rnbcgcki7m2 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780357822678031c80a','aut6780310034678031c7db' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203000.4690 kmtv9prl2v66uj4rnbcgcki7m2 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.4840 kmtv9prl2v66uj4rnbcgcki7m2 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203000.5180 kmtv9prl2v66uj4rnbcgcki7m2 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780357822678031c80a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780310034678031c7db' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203000.7870 kmtv9prl2v66uj4rnbcgcki7m2 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780310034678031c7db','2500250','wait',39,'adm09112754980.682000002')
20250109@203000.8580 kmtv9prl2v66uj4rnbcgcki7m2 Query : use flama_phc
20250109@203000.8610 kmtv9prl2v66uj4rnbcgcki7m2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203000.8900 kmtv9prl2v66uj4rnbcgcki7m2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4457';
20250109@203000.9320 kmtv9prl2v66uj4rnbcgcki7m2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4457';
20250109@203000.9910 kmtv9prl2v66uj4rnbcgcki7m2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4457';
20250109@203000.1023 kmtv9prl2v66uj4rnbcgcki7m2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4457';
20250109@203000.1558 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203000.1571 dvafg7mamls5uj5gvkrvo47dv8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203000.1640 dvafg7mamls5uj5gvkrvo47dv8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4458';
20250109@203000.1707 dvafg7mamls5uj5gvkrvo47dv8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4458';
20250109@203000.2110 dvafg7mamls5uj5gvkrvo47dv8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4458';
20250109@203000.2282 dvafg7mamls5uj5gvkrvo47dv8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4458';
20250109@203000.2502 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.2505 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203000.2904 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.2933 dvafg7mamls5uj5gvkrvo47dv8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20250109@203000.3029 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203000.3050 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500251 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203000.3699 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203000.3734 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500251 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203000.3771 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.3778 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203000.3858 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.3865 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203000.3944 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.3952 dvafg7mamls5uj5gvkrvo47dv8 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')
20250109@203000.4003 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203000.4131 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.4141 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203000.4218 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.4225 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203000.4272 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.4289 dvafg7mamls5uj5gvkrvo47dv8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203000.4577 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.4591 dvafg7mamls5uj5gvkrvo47dv8 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - loja da ponte'
20250109@203000.4980 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203000.5018 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from td where ndoc = 39
20250109@203000.5170 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203000.5530 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.6023 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203000.6872 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.7319 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203000.7659 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.7689 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203000.7718 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203000.7866 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203000.7914 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.7952 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203000.8002 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780304598678031c8bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203000.8287 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203000.8318 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203000.8403 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203000.8433 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203000.8467 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203000.9131 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203000.9547 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203000.9942 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203001.2480 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780304598678031c8bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203001.8150 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203001.8810 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.9100 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203001.9510 dvafg7mamls5uj5gvkrvo47dv8 Query : select 'normal' from dummy
20250109@203001.9730 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780304598678031c8bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2896,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203001.1434 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203001.1451 dvafg7mamls5uj5gvkrvo47dv8 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203001.1611 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203001.1715 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.1794 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203001.1912 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.2025 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203001.2080 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203001.2150 dvafg7mamls5uj5gvkrvo47dv8 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203001.2204 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.2276 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203001.2332 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780321017678031c935','aut6780304598678031c8bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203001.2341 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.2398 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203001.3947 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780321017678031c935',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6780304598678031c8bc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203001.4931 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203001.4936 dvafg7mamls5uj5gvkrvo47dv8 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203001.5367 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203001.5399 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.5420 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203001.5509 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.5537 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203001.5548 dvafg7mamls5uj5gvkrvo47dv8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203001.5562 dvafg7mamls5uj5gvkrvo47dv8 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203001.5582 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.5626 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203001.5654 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780336361678031c988','aut6780304598678031c8bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203001.5660 dvafg7mamls5uj5gvkrvo47dv8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203001.5688 dvafg7mamls5uj5gvkrvo47dv8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203001.5752 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780336361678031c988',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6780304598678031c8bc' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20250109@203001.6084 dvafg7mamls5uj5gvkrvo47dv8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780304598678031c8bc','2500251','wait',39,'adm09112754980.682000002')
20250109@203001.6580 dvafg7mamls5uj5gvkrvo47dv8 Query : use flama_phc
20250109@203001.6938 dvafg7mamls5uj5gvkrvo47dv8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203001.7141 dvafg7mamls5uj5gvkrvo47dv8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4458';
20250109@203001.7495 dvafg7mamls5uj5gvkrvo47dv8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4458';
20250109@203001.7599 dvafg7mamls5uj5gvkrvo47dv8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4458';
20250109@203001.7907 dvafg7mamls5uj5gvkrvo47dv8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4458';
20250109@203001.8950 qi2par5amsb7pelo5m6tqud9n5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203001.9009 qi2par5amsb7pelo5m6tqud9n5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203001.9443 qi2par5amsb7pelo5m6tqud9n5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4459';
20250109@203001.9582 qi2par5amsb7pelo5m6tqud9n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4459';
20250109@203001.9669 qi2par5amsb7pelo5m6tqud9n5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4459';
20250109@203001.9725 qi2par5amsb7pelo5m6tqud9n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4459';
20250109@203001.9807 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203001.9813 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203001.9912 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203001.9916 qi2par5amsb7pelo5m6tqud9n5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2374
20250109@203002.7500 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203002.1210 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500252 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203002.5330 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.5370 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203002.5860 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.5890 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203002.6510 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.6570 qi2par5amsb7pelo5m6tqud9n5 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')
20250109@203002.7260 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203002.7940 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.8120 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203002.8750 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.8790 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203002.9480 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.9650 qi2par5amsb7pelo5m6tqud9n5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203002.1084 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.1102 qi2par5amsb7pelo5m6tqud9n5 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - vila real'
20250109@203002.1175 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.1178 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from td where ndoc = 39
20250109@203002.1194 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203002.1234 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.1279 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203002.1361 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.1416 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203002.1760 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.1902 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203002.1921 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203002.2167 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203002.2214 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.2263 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203002.2309 qi2par5amsb7pelo5m6tqud9n5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780394321678031ca2e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203002.2551 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.2617 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203002.2884 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203002.3120 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203002.3346 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203002.3533 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203002.3582 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203002.3636 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203002.3760 qi2par5amsb7pelo5m6tqud9n5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780394321678031ca2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203002.4106 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203002.4467 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.4527 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203002.4671 qi2par5amsb7pelo5m6tqud9n5 Query : select 'normal' from dummy
20250109@203002.4800 qi2par5amsb7pelo5m6tqud9n5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780394321678031ca2e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2897,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203002.5840 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203002.5892 qi2par5amsb7pelo5m6tqud9n5 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203002.6042 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203002.6328 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.6822 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203002.8132 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.8648 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203002.8797 qi2par5amsb7pelo5m6tqud9n5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203002.9021 qi2par5amsb7pelo5m6tqud9n5 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203002.9243 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203002.9505 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203002.9650 qi2par5amsb7pelo5m6tqud9n5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780315431678031cae1','aut6780394321678031ca2e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203002.9758 qi2par5amsb7pelo5m6tqud9n5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203003.5940 qi2par5amsb7pelo5m6tqud9n5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203003.3766 qi2par5amsb7pelo5m6tqud9n5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780315431678031cae1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780394321678031ca2e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203003.4592 qi2par5amsb7pelo5m6tqud9n5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780394321678031ca2e','2500252','wait',39,'adm09112754980.682000002')
20250109@203003.5955 qi2par5amsb7pelo5m6tqud9n5 Query : use flama_phc
20250109@203003.5960 qi2par5amsb7pelo5m6tqud9n5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203003.6590 qi2par5amsb7pelo5m6tqud9n5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4459';
20250109@203003.6833 qi2par5amsb7pelo5m6tqud9n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4459';
20250109@203003.7435 qi2par5amsb7pelo5m6tqud9n5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4459';
20250109@203003.7693 qi2par5amsb7pelo5m6tqud9n5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4459';
20250109@203003.8496 p0j7vp73jt2jlrm3j67ralrhs5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203003.8549 p0j7vp73jt2jlrm3j67ralrhs5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203003.8754 p0j7vp73jt2jlrm3j67ralrhs5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4460';
20250109@203003.8867 p0j7vp73jt2jlrm3j67ralrhs5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4460';
20250109@203003.9018 p0j7vp73jt2jlrm3j67ralrhs5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4460';
20250109@203003.9113 p0j7vp73jt2jlrm3j67ralrhs5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4460';
20250109@203003.9202 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203003.9205 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203003.9430 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203003.9464 p0j7vp73jt2jlrm3j67ralrhs5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3304
20250109@203003.9651 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203003.9683 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500253 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203004.1220 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.1290 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203004.2150 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.2250 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203004.2850 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.2900 p0j7vp73jt2jlrm3j67ralrhs5 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')
20250109@203004.6830 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203004.9240 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.9360 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203004.1098 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.1168 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203004.1805 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.1809 p0j7vp73jt2jlrm3j67ralrhs5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203004.1935 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.1945 p0j7vp73jt2jlrm3j67ralrhs5 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m. - chaves'
20250109@203004.2390 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.2394 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from td where ndoc = 39
20250109@203004.2475 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203004.2507 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.2538 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203004.2611 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.2643 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203004.2724 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.2747 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203004.2782 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203004.2935 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203004.2998 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.3264 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203004.3525 p0j7vp73jt2jlrm3j67ralrhs5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780356324678031cc43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203004.4033 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.4160 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203004.4352 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203004.4433 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203004.4561 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203004.4733 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203004.4797 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203004.4832 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203004.4866 p0j7vp73jt2jlrm3j67ralrhs5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780356324678031cc43',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203004.5209 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203004.5473 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.5850 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203004.5885 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 'normal' from dummy
20250109@203004.5921 p0j7vp73jt2jlrm3j67ralrhs5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780356324678031cc43',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2898,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203004.6529 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203004.6534 p0j7vp73jt2jlrm3j67ralrhs5 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203004.6624 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203004.6678 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.6712 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203004.6791 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.6869 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203004.6904 p0j7vp73jt2jlrm3j67ralrhs5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203004.7020 p0j7vp73jt2jlrm3j67ralrhs5 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203004.7602 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.8009 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203004.8060 p0j7vp73jt2jlrm3j67ralrhs5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780349116678031ccb9','aut6780356324678031cc43' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203004.8080 p0j7vp73jt2jlrm3j67ralrhs5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203004.8155 p0j7vp73jt2jlrm3j67ralrhs5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203005.8900 p0j7vp73jt2jlrm3j67ralrhs5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780349116678031ccb9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780356324678031cc43' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203005.9120 p0j7vp73jt2jlrm3j67ralrhs5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780356324678031cc43','2500253','wait',39,'adm09112754980.682000002')
20250109@203005.1865 p0j7vp73jt2jlrm3j67ralrhs5 Query : use flama_phc
20250109@203005.2005 p0j7vp73jt2jlrm3j67ralrhs5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203005.2345 p0j7vp73jt2jlrm3j67ralrhs5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4460';
20250109@203005.2463 p0j7vp73jt2jlrm3j67ralrhs5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4460';
20250109@203005.2869 p0j7vp73jt2jlrm3j67ralrhs5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4460';
20250109@203005.3024 p0j7vp73jt2jlrm3j67ralrhs5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4460';
20250109@203005.4121 r530r3ntsc5t04tdu2k38nt2bq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203005.4266 r530r3ntsc5t04tdu2k38nt2bq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203005.4573 r530r3ntsc5t04tdu2k38nt2bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4461';
20250109@203005.4777 r530r3ntsc5t04tdu2k38nt2bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4461';
20250109@203005.5039 r530r3ntsc5t04tdu2k38nt2bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4461';
20250109@203005.5195 r530r3ntsc5t04tdu2k38nt2bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4461';
20250109@203005.5483 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203005.5530 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203005.6901 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203005.6949 r530r3ntsc5t04tdu2k38nt2bq Query : select no, estab,szadrsdesc from szadrs where u_coddest=1498
20250109@203005.7366 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203005.7677 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500254 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203005.8641 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203005.8685 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203005.9199 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203005.9283 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203005.9865 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203005.9911 r530r3ntsc5t04tdu2k38nt2bq 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')
20250109@203006.4610 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203006.1436 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203006.1569 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203006.4849 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203006.4895 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203006.5535 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203006.5703 r530r3ntsc5t04tdu2k38nt2bq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203006.6406 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203006.6463 r530r3ntsc5t04tdu2k38nt2bq Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m - viseu'
20250109@203006.7201 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203006.7246 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from td where ndoc = 39
20250109@203006.7592 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203006.7988 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203006.8343 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203006.8787 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203006.9183 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203007.4990 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203007.1154 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203007.1542 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203007.2042 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203007.2408 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203007.2922 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203007.3593 r530r3ntsc5t04tdu2k38nt2bq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780361738678031cf25' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203007.4285 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203007.4656 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203007.7033 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203007.7392 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203007.7617 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203007.7964 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203007.8256 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203007.8467 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203007.8726 r530r3ntsc5t04tdu2k38nt2bq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780361738678031cf25',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203007.9251 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203007.9371 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203007.9407 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203007.9467 r530r3ntsc5t04tdu2k38nt2bq Query : select 'normal' from dummy
20250109@203007.9487 r530r3ntsc5t04tdu2k38nt2bq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780361738678031cf25',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2899,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203007.9882 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203007.9887 r530r3ntsc5t04tdu2k38nt2bq Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203008.3130 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203008.3770 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.6850 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203008.1001 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.1138 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203008.1170 r530r3ntsc5t04tdu2k38nt2bq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203008.1272 r530r3ntsc5t04tdu2k38nt2bq Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203008.1331 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.1370 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203008.1399 r530r3ntsc5t04tdu2k38nt2bq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780384199678031d020','aut6780361738678031cf25' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203008.1405 r530r3ntsc5t04tdu2k38nt2bq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.1474 r530r3ntsc5t04tdu2k38nt2bq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203008.1593 r530r3ntsc5t04tdu2k38nt2bq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780384199678031d020',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780361738678031cf25' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203008.1939 r530r3ntsc5t04tdu2k38nt2bq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780361738678031cf25','2500254','wait',39,'adm09112754980.682000002')
20250109@203008.2096 r530r3ntsc5t04tdu2k38nt2bq Query : use flama_phc
20250109@203008.2115 r530r3ntsc5t04tdu2k38nt2bq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203008.2176 r530r3ntsc5t04tdu2k38nt2bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4461';
20250109@203008.2238 r530r3ntsc5t04tdu2k38nt2bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4461';
20250109@203008.2333 r530r3ntsc5t04tdu2k38nt2bq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4461';
20250109@203008.2393 r530r3ntsc5t04tdu2k38nt2bq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4461';
20250109@203008.2966 hrhrsfou8tn44bpmatmq1bk2g5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203008.2977 hrhrsfou8tn44bpmatmq1bk2g5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203008.3077 hrhrsfou8tn44bpmatmq1bk2g5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4462';
20250109@203008.3188 hrhrsfou8tn44bpmatmq1bk2g5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4462';
20250109@203008.3291 hrhrsfou8tn44bpmatmq1bk2g5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4462';
20250109@203008.3342 hrhrsfou8tn44bpmatmq1bk2g5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4462';
20250109@203008.3454 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.3458 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203008.3542 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.3546 hrhrsfou8tn44bpmatmq1bk2g5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1452
20250109@203008.3703 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203008.3726 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500255 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203008.4181 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4186 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203008.4245 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4249 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203008.4290 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4293 hrhrsfou8tn44bpmatmq1bk2g5 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')
20250109@203008.4333 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203008.4372 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4375 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203008.4419 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4432 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203008.4483 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4486 hrhrsfou8tn44bpmatmq1bk2g5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203008.4566 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4569 hrhrsfou8tn44bpmatmq1bk2g5 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m. - castelo branco'
20250109@203008.4628 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.4631 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from td where ndoc = 39
20250109@203008.4672 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203008.4687 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.4711 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203008.4762 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.4815 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203008.4851 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.4871 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203008.4910 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203008.5033 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203008.5055 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.5088 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203008.5137 hrhrsfou8tn44bpmatmq1bk2g5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780346421678031d077' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203008.5368 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.5398 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203008.5439 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203008.5465 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203008.5505 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203008.5534 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203008.5550 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203008.5610 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203008.5622 hrhrsfou8tn44bpmatmq1bk2g5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780346421678031d077',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203008.5901 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203008.5934 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.5980 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203008.6061 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 'normal' from dummy
20250109@203008.6104 hrhrsfou8tn44bpmatmq1bk2g5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780346421678031d077',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2900,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203008.6682 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.6697 hrhrsfou8tn44bpmatmq1bk2g5 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203008.6764 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203008.6784 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.6802 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203008.6886 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.6911 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203008.6949 hrhrsfou8tn44bpmatmq1bk2g5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203008.7364 hrhrsfou8tn44bpmatmq1bk2g5 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203008.7387 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.7407 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203008.7419 hrhrsfou8tn44bpmatmq1bk2g5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780346005678031d0b4','aut6780346421678031d077' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203008.7425 hrhrsfou8tn44bpmatmq1bk2g5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203008.7480 hrhrsfou8tn44bpmatmq1bk2g5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203008.7585 hrhrsfou8tn44bpmatmq1bk2g5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780346005678031d0b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780346421678031d077' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203008.8014 hrhrsfou8tn44bpmatmq1bk2g5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780346421678031d077','2500255','wait',39,'adm09112754980.682000002')
20250109@203008.8105 hrhrsfou8tn44bpmatmq1bk2g5 Query : use flama_phc
20250109@203008.8108 hrhrsfou8tn44bpmatmq1bk2g5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203008.8145 hrhrsfou8tn44bpmatmq1bk2g5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4462';
20250109@203008.8228 hrhrsfou8tn44bpmatmq1bk2g5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4462';
20250109@203008.8306 hrhrsfou8tn44bpmatmq1bk2g5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4462';
20250109@203008.8366 hrhrsfou8tn44bpmatmq1bk2g5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4462';
20250109@203008.8890 7r5v8kebtqeba8hdsqffb7gg2i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203008.8902 7r5v8kebtqeba8hdsqffb7gg2i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203008.8992 7r5v8kebtqeba8hdsqffb7gg2i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4463';
20250109@203008.9090 7r5v8kebtqeba8hdsqffb7gg2i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4463';
20250109@203008.9162 7r5v8kebtqeba8hdsqffb7gg2i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4463';
20250109@203008.9218 7r5v8kebtqeba8hdsqffb7gg2i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4463';
20250109@203008.9307 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203008.9311 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203008.9406 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203008.9410 7r5v8kebtqeba8hdsqffb7gg2i Query : select no, estab,szadrsdesc from szadrs where u_coddest=909
20250109@203008.9539 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203008.9566 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500256 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203008.9978 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203008.9991 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203009.4400 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.5000 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203009.2380 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.2430 7r5v8kebtqeba8hdsqffb7gg2i 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')
20250109@203009.3630 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203009.4220 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.4280 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203009.4990 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.5040 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203009.1972 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.2095 7r5v8kebtqeba8hdsqffb7gg2i Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203009.2622 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.2636 7r5v8kebtqeba8hdsqffb7gg2i Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - ovar'
20250109@203009.2723 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.2727 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from td where ndoc = 39
20250109@203009.2870 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203009.2900 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.2962 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203009.3031 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.3048 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203009.3117 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.3206 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203009.3227 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203009.3384 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203009.3415 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.3440 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203009.3520 7r5v8kebtqeba8hdsqffb7gg2i Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780391275678031d14e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203009.3827 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.3851 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203009.3910 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203009.3925 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203009.3944 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203009.3990 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203009.4012 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203009.4024 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203009.4042 7r5v8kebtqeba8hdsqffb7gg2i Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780391275678031d14e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203009.4414 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203009.4478 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.4539 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203009.4569 7r5v8kebtqeba8hdsqffb7gg2i Query : select 'normal' from dummy
20250109@203009.4593 7r5v8kebtqeba8hdsqffb7gg2i Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780391275678031d14e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2901,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203009.5028 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.5068 7r5v8kebtqeba8hdsqffb7gg2i Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203009.5093 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203009.5111 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.5162 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203009.5211 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.5231 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203009.5244 7r5v8kebtqeba8hdsqffb7gg2i Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203009.5299 7r5v8kebtqeba8hdsqffb7gg2i Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203009.5313 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.5337 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203009.5351 7r5v8kebtqeba8hdsqffb7gg2i Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780385757678031d181','aut6780391275678031d14e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203009.5361 7r5v8kebtqeba8hdsqffb7gg2i Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203009.5377 7r5v8kebtqeba8hdsqffb7gg2i Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203009.5455 7r5v8kebtqeba8hdsqffb7gg2i Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780385757678031d181',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780391275678031d14e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203009.5855 7r5v8kebtqeba8hdsqffb7gg2i Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780391275678031d14e','2500256','wait',39,'adm09112754980.682000002')
20250109@203009.5968 7r5v8kebtqeba8hdsqffb7gg2i Query : use flama_phc
20250109@203009.5973 7r5v8kebtqeba8hdsqffb7gg2i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203009.6018 7r5v8kebtqeba8hdsqffb7gg2i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4463';
20250109@203009.6132 7r5v8kebtqeba8hdsqffb7gg2i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4463';
20250109@203009.6199 7r5v8kebtqeba8hdsqffb7gg2i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4463';
20250109@203009.6341 7r5v8kebtqeba8hdsqffb7gg2i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4463';
20250109@203009.6981 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203009.6993 t57e3k0j04q0khv4cndbjl2cs3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203009.7087 t57e3k0j04q0khv4cndbjl2cs3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4464';
20250109@203009.7172 t57e3k0j04q0khv4cndbjl2cs3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4464';
20250109@203009.7240 t57e3k0j04q0khv4cndbjl2cs3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4464';
20250109@203009.7283 t57e3k0j04q0khv4cndbjl2cs3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4464';
20250109@203009.7390 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.7394 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203009.7476 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.7480 t57e3k0j04q0khv4cndbjl2cs3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=812
20250109@203009.7598 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203009.7626 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500257 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203009.8893 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203009.9188 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500257 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203009.9371 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9374 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203009.9408 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9411 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203009.9441 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9444 t57e3k0j04q0khv4cndbjl2cs3 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')
20250109@203009.9479 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203009.9525 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9528 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203009.9589 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9592 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203009.9641 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9644 t57e3k0j04q0khv4cndbjl2cs3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203009.9733 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9737 t57e3k0j04q0khv4cndbjl2cs3 Query : select szadrsstamp valor from szadrs where szadrsdesc='j.o.m.,lda - santarem'
20250109@203009.9831 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203009.9999 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from td where ndoc = 39
20250109@203010.2850 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203010.6660 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.7220 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203010.7410 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.7570 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203010.7850 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.8020 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203010.8170 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203010.1255 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203010.1286 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.1497 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203010.1644 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780319119678031d213' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203010.2554 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.3022 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203010.3381 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203010.3412 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203010.3425 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203010.3438 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203010.3453 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203010.3466 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203010.3478 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780319119678031d213',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203010.3756 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203010.3803 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.3819 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203010.3846 t57e3k0j04q0khv4cndbjl2cs3 Query : select 'normal' from dummy
20250109@203010.3867 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780319119678031d213',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2902,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203010.4234 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203010.4238 t57e3k0j04q0khv4cndbjl2cs3 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203010.4261 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203010.4275 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.4294 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203010.4323 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.4345 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203010.4358 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203010.4749 t57e3k0j04q0khv4cndbjl2cs3 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203010.5255 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.5600 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203010.5903 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780382341678031d280','aut6780319119678031d213' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203010.5914 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.5931 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203010.5963 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780382341678031d280',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2.000 ,'aut6780319119678031d213' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203010.6282 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203010.6303 t57e3k0j04q0khv4cndbjl2cs3 Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203010.6435 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203010.6456 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.6473 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203010.6499 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.6525 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203010.6538 t57e3k0j04q0khv4cndbjl2cs3 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203010.6559 t57e3k0j04q0khv4cndbjl2cs3 Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203010.6573 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.6616 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203010.6636 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780399475678031d2a0','aut6780319119678031d213' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203010.6641 t57e3k0j04q0khv4cndbjl2cs3 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.6659 t57e3k0j04q0khv4cndbjl2cs3 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203010.6698 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780399475678031d2a0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut6780319119678031d213' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20250109@203010.7079 t57e3k0j04q0khv4cndbjl2cs3 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780319119678031d213','2500257','wait',39,'adm09112754980.682000002')
20250109@203010.7152 t57e3k0j04q0khv4cndbjl2cs3 Query : use flama_phc
20250109@203010.7156 t57e3k0j04q0khv4cndbjl2cs3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203010.7186 t57e3k0j04q0khv4cndbjl2cs3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4464';
20250109@203010.7235 t57e3k0j04q0khv4cndbjl2cs3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4464';
20250109@203010.7299 t57e3k0j04q0khv4cndbjl2cs3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4464';
20250109@203010.7349 t57e3k0j04q0khv4cndbjl2cs3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4464';
20250109@203010.8141 sl3ae9697irhlatp4696ac825s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203010.8178 sl3ae9697irhlatp4696ac825s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203010.8309 sl3ae9697irhlatp4696ac825s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4465';
20250109@203010.8384 sl3ae9697irhlatp4696ac825s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4465';
20250109@203010.8479 sl3ae9697irhlatp4696ac825s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4465';
20250109@203010.8522 sl3ae9697irhlatp4696ac825s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4465';
20250109@203010.8597 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.8601 sl3ae9697irhlatp4696ac825s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203010.8683 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.8686 sl3ae9697irhlatp4696ac825s Query : select no, estab,szadrsdesc from szadrs where u_coddest=5808
20250109@203010.8783 sl3ae9697irhlatp4696ac825s Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2366.00.1'
20250109@203010.8813 sl3ae9697irhlatp4696ac825s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500258 and bi.ref ='324.2366.00.1' and bi.lordem =1
20250109@203010.9344 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9349 sl3ae9697irhlatp4696ac825s Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203010.9398 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9427 sl3ae9697irhlatp4696ac825s Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203010.9468 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9471 sl3ae9697irhlatp4696ac825s 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')
20250109@203010.9509 sl3ae9697irhlatp4696ac825s Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203010.9549 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9552 sl3ae9697irhlatp4696ac825s Query : select top 1 ~inactivo valor from cl where no = '101621' and estab = 0 order by inactivo desc
20250109@203010.9592 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9595 sl3ae9697irhlatp4696ac825s Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203010.9627 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9630 sl3ae9697irhlatp4696ac825s Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203010.9680 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9716 sl3ae9697irhlatp4696ac825s Query : select szadrsstamp valor from szadrs where szadrsdesc='jom-Évora'
20250109@203010.9877 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203010.9881 sl3ae9697irhlatp4696ac825s Query : select 1 valor from td where ndoc = 39
20250109@203010.9897 sl3ae9697irhlatp4696ac825s Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203010.9912 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203010.9929 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203010.9981 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.5000 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203011.3600 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.6600 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203011.8000 sl3ae9697irhlatp4696ac825s Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203011.2810 sl3ae9697irhlatp4696ac825s Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203011.2990 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.3560 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203011.3750 sl3ae9697irhlatp4696ac825s Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780320698678031d301' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203011.6520 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.8070 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203011.8630 sl3ae9697irhlatp4696ac825s Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203011.8780 sl3ae9697irhlatp4696ac825s Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203011.8950 sl3ae9697irhlatp4696ac825s Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203011.9160 sl3ae9697irhlatp4696ac825s Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203011.9370 sl3ae9697irhlatp4696ac825s Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203011.9530 sl3ae9697irhlatp4696ac825s Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203011.9650 sl3ae9697irhlatp4696ac825s Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780320698678031d301',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203011.1229 sl3ae9697irhlatp4696ac825s Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203011.1281 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.1298 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203011.1346 sl3ae9697irhlatp4696ac825s Query : select 'normal' from dummy
20250109@203011.1380 sl3ae9697irhlatp4696ac825s Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780320698678031d301',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2903,101621,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203011.1724 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203011.1736 sl3ae9697irhlatp4696ac825s Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250109@203011.1761 sl3ae9697irhlatp4696ac825s Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250109@203011.1792 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.1809 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203011.1850 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.1867 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203011.1880 sl3ae9697irhlatp4696ac825s Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203011.1937 sl3ae9697irhlatp4696ac825s Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250109@203011.1954 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.1973 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203011.1987 sl3ae9697irhlatp4696ac825s Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780351329678031d32f','aut6780320698678031d301' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203011.1992 sl3ae9697irhlatp4696ac825s Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.2009 sl3ae9697irhlatp4696ac825s Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203011.2062 sl3ae9697irhlatp4696ac825s Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780351329678031d32f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780320698678031d301' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203011.2407 sl3ae9697irhlatp4696ac825s Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780320698678031d301','2500258','wait',39,'adm09112754980.682000002')
20250109@203011.2481 sl3ae9697irhlatp4696ac825s Query : use flama_phc
20250109@203011.2484 sl3ae9697irhlatp4696ac825s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203011.2520 sl3ae9697irhlatp4696ac825s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4465';
20250109@203011.2567 sl3ae9697irhlatp4696ac825s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4465';
20250109@203011.2661 sl3ae9697irhlatp4696ac825s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4465';
20250109@203011.2727 sl3ae9697irhlatp4696ac825s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4465';
20250109@203011.3279 hkkq6ubo0i4j971ki89obdmhlr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250109@203011.3321 hkkq6ubo0i4j971ki89obdmhlr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250109@203011.3492 hkkq6ubo0i4j971ki89obdmhlr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4466';
20250109@203011.3649 hkkq6ubo0i4j971ki89obdmhlr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4466';
20250109@203011.4184 hkkq6ubo0i4j971ki89obdmhlr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4466';
20250109@203011.4230 hkkq6ubo0i4j971ki89obdmhlr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4466';
20250109@203011.4312 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.4316 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250109@203011.4399 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.4404 hkkq6ubo0i4j971ki89obdmhlr Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250109@203011.4478 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1416.00.1'
20250109@203011.4797 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500259 and bi.ref ='324.1416.00.1' and bi.lordem =1
20250109@203011.5420 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.734.00.02'
20250109@203011.5449 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500259 and bi.ref ='324.734.00.02' and bi.lordem =2
20250109@203011.5906 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4421.00.1'
20250109@203011.6172 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500259 and bi.ref ='324.4421.00.1' and bi.lordem =3
20250109@203011.6682 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4421.00.1'
20250109@203011.6709 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2002 and bo.obrano = 2500259 and bi.ref ='324.4421.00.1' and bi.lordem =3
20250109@203011.6773 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.6777 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250109@203011.6844 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.6848 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 1 valor from td where td.ndoc = 39
20250109@203011.6890 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.6927 hkkq6ubo0i4j971ki89obdmhlr 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')
20250109@203011.6970 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250109@203011.7062 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.7065 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 ~inactivo valor from cl where no = '102253' and estab = 0 order by inactivo desc
20250109@203011.7110 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.7114 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250109@203011.7175 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.7178 hkkq6ubo0i4j971ki89obdmhlr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250109@203011.7233 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.7245 hkkq6ubo0i4j971ki89obdmhlr Query : select szadrsstamp valor from szadrs where szadrsdesc='fnac - entrega'
20250109@203011.7344 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203011.7349 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from td where ndoc = 39
20250109@203011.7416 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250109@203011.7460 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.7489 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203011.7566 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.7597 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203011.7671 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.7692 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203011.7710 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203011.7967 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250109@203011.7985 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.8006 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250109@203011.8024 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6780301287678031d3bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250109@203011.8450 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.8501 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250109@203011.8579 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20250109@203011.8625 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20250109@203011.8640 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20250109@203011.8654 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20250109@203011.8668 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20250109@203011.8697 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20250109@203011.8726 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6780301287678031d3bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250109@203011.9136 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 fno valor from wsftdata order by fno desc
20250109@203011.9230 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203011.9255 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250109@203011.9322 hkkq6ubo0i4j971ki89obdmhlr Query : select 'normal' from dummy
20250109@203011.9339 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut6780301287678031d3bc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',2904,102253,0,'2025-01-09',39,'euro',0,0,2025 ,?,?)
20250109@203012.6110 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203012.6830 hkkq6ubo0i4j971ki89obdmhlr Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20250109@203012.1261 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1416.00.1'
20250109@203012.1660 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.1680 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.1737 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.1761 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.1772 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203012.1787 hkkq6ubo0i4j971ki89obdmhlr Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20250109@203012.1885 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.1907 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.1920 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780316597678031d42e','aut6780301287678031d3bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203012.1932 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.1953 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.2054 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780316597678031d42e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6780301287678031d3bc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20250109@203012.2724 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.2768 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.2811 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.2864 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.2873 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203012.2885 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.2902 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.2966 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780316955678031d446','aut6780301287678031d3bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203012.2972 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.2991 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.3026 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6780316955678031d446',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6780301287678031d3bc' ,0,0 ,2,23.00,20000,?,?,?)
20250109@203012.3485 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203012.3498 hkkq6ubo0i4j971ki89obdmhlr Query : select st.usalote valor from st where st.ref = '324.734.00.02'
20250109@203012.3556 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.734.00.02'
20250109@203012.3604 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.3635 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.3819 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.3838 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.3848 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203012.3899 hkkq6ubo0i4j971ki89obdmhlr Query : select sestamp valor from se where ref ='324.734.00.02' and lote = 'r2400471100a'
20250109@203012.3932 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.3955 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.4001 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780335964678031d460','aut6780301287678031d3bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203012.4021 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.4046 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.4080 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780335964678031d460',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6780301287678031d3bc' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20250109@203012.4561 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203012.4565 hkkq6ubo0i4j971ki89obdmhlr Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20250109@203012.4611 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4421.00.1'
20250109@203012.4800 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.4889 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.4947 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.5013 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.5160 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203012.5199 hkkq6ubo0i4j971ki89obdmhlr Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2400920200a'
20250109@203012.5222 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.5281 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.5317 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780311907678031d47f','aut6780301287678031d3bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203012.5322 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.5344 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.5408 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780311907678031d47f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6780301287678031d3bc' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20250109@203012.5892 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203012.5896 hkkq6ubo0i4j971ki89obdmhlr Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20250109@203012.5922 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4421.00.1'
20250109@203012.5936 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.5968 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.5998 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.6018 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.6027 hkkq6ubo0i4j971ki89obdmhlr Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250109@203012.6041 hkkq6ubo0i4j971ki89obdmhlr Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2400920200a'
20250109@203012.6068 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.6155 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250109@203012.6448 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780359507678031d494','aut6780301287678031d3bc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250109@203012.6500 hkkq6ubo0i4j971ki89obdmhlr Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250109@203012.6641 hkkq6ubo0i4j971ki89obdmhlr Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250109@203012.6717 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut6780359507678031d494',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',9.000 ,'aut6780301287678031d3bc' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20250109@203012.7110 hkkq6ubo0i4j971ki89obdmhlr Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6780301287678031d3bc','2500259','wait',39,'adm09112754980.682000002')
20250109@203012.7195 hkkq6ubo0i4j971ki89obdmhlr Query : use flama_phc
20250109@203012.7201 hkkq6ubo0i4j971ki89obdmhlr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250109@203012.7258 hkkq6ubo0i4j971ki89obdmhlr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4466';
20250109@203012.7332 hkkq6ubo0i4j971ki89obdmhlr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4466';
20250109@203012.7400 hkkq6ubo0i4j971ki89obdmhlr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4466';
20250109@203012.7487 hkkq6ubo0i4j971ki89obdmhlr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4466';

20250110@074612.9161 djtaj28q3vhgc2e9vkb9eqf46u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4467';
20250110@074612.9267 djtaj28q3vhgc2e9vkb9eqf46u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4467';
20250110@074612.9312 djtaj28q3vhgc2e9vkb9eqf46u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4467';
20250110@074613.3440 t8d10b8vphqj1ds13r43miircq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250110@074613.3550 t8d10b8vphqj1ds13r43miircq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250110@074613.4300 t8d10b8vphqj1ds13r43miircq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4468';
20250110@074613.4950 t8d10b8vphqj1ds13r43miircq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4468';
20250110@074613.5620 t8d10b8vphqj1ds13r43miircq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4468';
20250110@074613.5990 t8d10b8vphqj1ds13r43miircq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4468';
20250110@074613.6490 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074613.6520 t8d10b8vphqj1ds13r43miircq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250110@074613.7550 t8d10b8vphqj1ds13r43miircq Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20250110@074613.8770 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.686.00.01'
20250110@074613.9930 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.686.00.01' and bi.lordem =10000
20250110@074613.1349 t8d10b8vphqj1ds13r43miircq 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 = 'az25010960941,655000001 ' 
20250110@074613.1660 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.686.00.01'
20250110@074613.1681 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.686.00.01' and bi.lordem =10000
20250110@074613.1704 t8d10b8vphqj1ds13r43miircq 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 = 'az25010960941,655000001 ' 
20250110@074613.1726 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.969.00.01'
20250110@074613.1848 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.969.00.01' and bi.lordem =20000
20250110@074613.2255 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961013,066000002 ' 
20250110@074613.2562 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.969.00.01'
20250110@074613.2584 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.969.00.01' and bi.lordem =20000
20250110@074613.2609 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961013,066000002 ' 
20250110@074613.2634 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.658.00.01'
20250110@074613.2753 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.658.00.01' and bi.lordem =30000
20250110@074613.4170 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961041,165000003 ' 
20250110@074613.4504 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.658.00.01'
20250110@074613.4525 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.658.00.01' and bi.lordem =30000
20250110@074613.4549 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961041,165000003 ' 
20250110@074613.4572 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.698.00.01'
20250110@074613.4707 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.698.00.01' and bi.lordem =40000
20250110@074613.5089 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961057,959000004 ' 
20250110@074613.5405 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.698.00.01'
20250110@074613.5428 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.698.00.01' and bi.lordem =40000
20250110@074613.5453 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961057,959000004 ' 
20250110@074613.5476 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.698.00.01'
20250110@074613.5497 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.698.00.01' and bi.lordem =40000
20250110@074613.5520 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961057,959000004 ' 
20250110@074613.5543 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1667.00.1'
20250110@074613.5678 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1667.00.1' and bi.lordem =50000
20250110@074613.6006 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961073,222000005 ' 
20250110@074613.6474 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1667.00.1'
20250110@074613.6496 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1667.00.1' and bi.lordem =50000
20250110@074613.6522 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961073,222000005 ' 
20250110@074613.6545 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1684.00.1'
20250110@074613.6673 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1684.00.1' and bi.lordem =60000
20250110@074613.7020 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961086,171000006 ' 
20250110@074613.7321 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.675.00.01'
20250110@074613.7445 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.675.00.01' and bi.lordem =70000
20250110@074613.7831 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961099,712000007 ' 
20250110@074613.8143 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2366.00.1'
20250110@074613.8259 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.2366.00.1' and bi.lordem =80000
20250110@074613.8625 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961110,044000008 ' 
20250110@074613.8931 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.678.00.01'
20250110@074613.9052 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.678.00.01' and bi.lordem =90000
20250110@074613.9511 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961118,673000009 ' 
20250110@074614.6000 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.678.00.01'
20250110@074614.8000 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.678.00.01' and bi.lordem =90000
20250110@074614.1050 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961118,673000009 ' 
20250110@074614.1260 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20250110@074614.2480 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.691.00.01' and bi.lordem =100000
20250110@074614.9150 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961131,862000010 ' 
20250110@074614.1263 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20250110@074614.1285 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.691.00.01' and bi.lordem =100000
20250110@074614.1309 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961131,862000010 ' 
20250110@074614.1331 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.367.09.00'
20250110@074614.1472 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='323.367.09.00' and bi.lordem =110000
20250110@074614.1840 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961142,973000011 ' 
20250110@074614.2130 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1676.00.1'
20250110@074614.2247 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1676.00.1' and bi.lordem =120000
20250110@074614.2561 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961162,421000012 ' 
20250110@074614.2966 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.939.00.01'
20250110@074614.3083 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.939.00.01' and bi.lordem =130000
20250110@074614.3399 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961172,836000013 ' 
20250110@074614.3716 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.648.00.01'
20250110@074614.3831 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.648.00.01' and bi.lordem =140000
20250110@074614.4157 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961185,315000014 ' 
20250110@074614.4513 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1706.00.1'
20250110@074614.4631 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1706.00.1' and bi.lordem =150000
20250110@074614.4992 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961203,559000015 ' 
20250110@074614.5312 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1706.00.1'
20250110@074614.5335 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1706.00.1' and bi.lordem =150000
20250110@074614.5360 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961203,559000015 ' 
20250110@074614.5383 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1705.00.1'
20250110@074614.5517 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1705.00.1' and bi.lordem =160000
20250110@074614.5926 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961213,281000016 ' 
20250110@074614.6563 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1705.00.1'
20250110@074614.6628 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='324.1705.00.1' and bi.lordem =160000
20250110@074614.6662 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961213,281000016 ' 
20250110@074614.6687 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20250110@074614.6926 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='328.9316.00.1' and bi.lordem =170000
20250110@074614.7649 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961222,926000017 ' 
20250110@074614.8253 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20250110@074614.8277 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='328.9316.00.1' and bi.lordem =170000
20250110@074614.8304 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961222,926000017 ' 
20250110@074614.8336 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9345.00.1'
20250110@074614.8460 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='328.9345.00.1' and bi.lordem =180000
20250110@074614.8779 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961247,751000018 ' 
20250110@074614.9086 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9903.00.1'
20250110@074614.9211 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='328.9903.00.1' and bi.lordem =190000
20250110@074614.9568 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961267,681000019 ' 
20250110@074614.9884 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9075.00.1'
20250110@074615.6000 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='328.9075.00.1' and bi.lordem =200000
20250110@074615.3340 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961281,325000020 ' 
20250110@074615.6390 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9106.00.1'
20250110@074615.7670 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='328.9106.00.1' and bi.lordem =210000
20250110@074615.1092 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961294,115000021 ' 
20250110@074615.1437 t8d10b8vphqj1ds13r43miircq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9170.00.1'
20250110@074615.1563 t8d10b8vphqj1ds13r43miircq 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 = 0000064 and bi.ref ='328.9170.00.1' and bi.lordem =220000
20250110@074615.1894 t8d10b8vphqj1ds13r43miircq 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 = 'az25010961313,866000022 ' 
20250110@074615.2261 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.2264 t8d10b8vphqj1ds13r43miircq Query : select top 1 1 valor from ts where ts.ndos = 5
20250110@074615.2367 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.2370 t8d10b8vphqj1ds13r43miircq 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')
20250110@074615.2444 t8d10b8vphqj1ds13r43miircq 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
20250110@074615.2630 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.2633 t8d10b8vphqj1ds13r43miircq Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20250110@074615.2824 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.2827 t8d10b8vphqj1ds13r43miircq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250110@074615.2908 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.2911 t8d10b8vphqj1ds13r43miircq Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20250110@074615.2964 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.2967 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from ts where ndos = 5
20250110@074615.3053 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074615.3613 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20250110@074615.3690 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074615.3708 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20250110@074615.3752 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074615.3771 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20250110@074615.3782 t8d10b8vphqj1ds13r43miircq 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
20250110@074615.3926 t8d10b8vphqj1ds13r43miircq Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250110@074615.4209 t8d10b8vphqj1ds13r43miircq Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250110@074615.4425 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.4433 t8d10b8vphqj1ds13r43miircq Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20250110@074615.4542 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074615.6082 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20250110@074615.6130 t8d10b8vphqj1ds13r43miircq Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780d247696780d0476c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250110@074615.6719 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074615.6738 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20250110@074615.6751 t8d10b8vphqj1ds13r43miircq Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut6780d247696780d0476c','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20250110','08:16',?,?)
20250110@074615.8444 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074615.8464 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20250110@074615.8482 t8d10b8vphqj1ds13r43miircq 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 ('aut6780d247696780d0476c','trf entre armazéns a','2025-01-10',5,8,?,?,?,?,?,?,?,?,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',?)
20250110@074615.9279 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.9283 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20250110@074615.9404 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.9408 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.686.00.01'
20250110@074615.9517 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.9520 t8d10b8vphqj1ds13r43miircq 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.686.00.01' and sa.armazem = 133 
20250110@074615.9586 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074615.9589 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.686.00.01'
20250110@074615.9619 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.686.00.01'
20250110@074616.7020 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.8560 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.8740 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.8890 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.9000 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400405200a'
20250110@074616.1013 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074616.1054 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.1070 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.1084 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d719366780d04819','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074616.1818 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.1851 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.1934 t8d10b8vphqj1ds13r43miircq 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 'aut6780d719366780d04819',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*1.000,128*1.000*200.48 ,44.319000,44.319000*200.48 ,44.319000,44.319000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*1.000,128*1.000*200.48,'az25010960941,655000001 ',128,128*1.000,128,128*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074616.2958 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.2963 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20250110@074616.2978 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.2980 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.686.00.01'
20250110@074616.2995 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.2998 t8d10b8vphqj1ds13r43miircq 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.686.00.01' and sa.armazem = 133 
20250110@074616.3021 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.3024 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.686.00.01'
20250110@074616.3041 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.686.00.01'
20250110@074616.3055 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.3074 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.3088 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.3105 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.3114 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400405200a'
20250110@074616.3138 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074616.3152 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.3169 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.3182 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d448396780d0484c','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074616.3342 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.3377 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.3394 t8d10b8vphqj1ds13r43miircq 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 'aut6780d448396780d0484c',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 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*4.000,128*4.000*200.48 ,44.319000,44.319000*200.48 ,44.319000,44.319000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*4.000,128*4.000*200.48,'az25010960941,655000001 ',128,128*4.000,128,128*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074616.3749 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.3755 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20250110@074616.3776 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.3802 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.969.00.01'
20250110@074616.3822 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.3825 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.969.00.01' and sa.armazem = 133 
20250110@074616.3903 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.3906 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.969.00.01'
20250110@074616.3926 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.969.00.01'
20250110@074616.4079 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.4096 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.4111 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.4126 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.4139 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20250110@074616.4179 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074616.4192 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.4208 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.4220 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d390246780d04866','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074616.4413 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.4435 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.4456 t8d10b8vphqj1ds13r43miircq 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 'aut6780d390246780d04866',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,30000 ,35.2,35.2*200.48,35.2,35.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,35.2*2.000,35.2*2.000*200.48 ,15.817000,15.817000*200.48 ,15.817000,15.817000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,35.2,35.2*200.48,35.2*2.000,35.2*2.000*200.48,'az25010961013,066000002 ',35.2,35.2*2.000,35.2,35.2*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074616.4864 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.4870 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20250110@074616.4887 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.4891 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.969.00.01'
20250110@074616.4912 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.4916 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.969.00.01' and sa.armazem = 133 
20250110@074616.4958 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.4962 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.969.00.01'
20250110@074616.4984 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.969.00.01'
20250110@074616.5002 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.5025 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.5041 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.5059 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.5069 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20250110@074616.5083 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074616.5096 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.5112 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.5125 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d768346780d0487c','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074616.5309 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.5328 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.5344 t8d10b8vphqj1ds13r43miircq 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 'aut6780d768346780d0487c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 18.000, 18.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 ,35.2,35.2*200.48,35.2,35.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,35.2*18.000,35.2*18.000*200.48 ,15.817000,15.817000*200.48 ,15.817000,15.817000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,35.2,35.2*200.48,35.2*18.000,35.2*18.000*200.48,'az25010961013,066000002 ',35.2,35.2*18.000,35.2,35.2*18.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074616.5715 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.5720 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.658.00.01'
20250110@074616.5742 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.5744 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.658.00.01'
20250110@074616.5760 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.5763 t8d10b8vphqj1ds13r43miircq 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.658.00.01' and sa.armazem = 133 
20250110@074616.5843 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.5846 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.658.00.01'
20250110@074616.5865 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.658.00.01'
20250110@074616.6010 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.6026 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.6038 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.6053 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.6062 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.658.00.01' and lote = 'r2400222100a'
20250110@074616.6097 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074616.6111 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.6127 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.6142 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d410886780d04895','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074616.6294 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.6314 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.6333 t8d10b8vphqj1ds13r43miircq 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 'aut6780d410886780d04895',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 15.000, 15.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 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*15.000,64*15.000*200.48 ,19.303000,19.303000*200.48 ,19.303000,19.303000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*15.000,64*15.000*200.48,'az25010961041,165000003 ',64,64*15.000,64,64*15.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074616.6656 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.6660 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.658.00.01'
20250110@074616.6675 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.6678 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.658.00.01'
20250110@074616.6695 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.6698 t8d10b8vphqj1ds13r43miircq 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.658.00.01' and sa.armazem = 133 
20250110@074616.6722 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.6725 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.658.00.01'
20250110@074616.6753 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.658.00.01'
20250110@074616.6776 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.6802 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.6818 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.6836 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.6846 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.658.00.01' and lote = 'r2400222100a'
20250110@074616.6860 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074616.6874 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.6891 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074616.6905 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d746036780d048a7','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074616.7054 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.7453 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.7594 t8d10b8vphqj1ds13r43miircq 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 'aut6780d746036780d048a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*5.000,64*5.000*200.48 ,19.303000,19.303000*200.48 ,19.303000,19.303000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*5.000,64*5.000*200.48,'az25010961041,165000003 ',64,64*5.000,64,64*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074616.7963 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.7968 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20250110@074616.7989 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.7993 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.698.00.01'
20250110@074616.8013 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.8017 t8d10b8vphqj1ds13r43miircq 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.698.00.01' and sa.armazem = 133 
20250110@074616.8094 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074616.8097 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.698.00.01'
20250110@074616.8117 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.698.00.01'
20250110@074616.8304 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074616.8453 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074616.9147 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.4720 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.4830 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2400227200a'
20250110@074617.4980 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.5120 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.5300 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.5440 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d367776780d0490c','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.7030 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.1118 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.2127 t8d10b8vphqj1ds13r43miircq 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 'aut6780d367776780d0490c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,70000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,115.2*1.000,115.2*1.000*200.48 ,38.756000,38.756000*200.48 ,38.756000,38.756000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,115.2,115.2*200.48,115.2*1.000,115.2*1.000*200.48,'az25010961057,959000004 ',115.2,115.2*1.000,115.2,115.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074617.2467 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.2472 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20250110@074617.2489 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.2492 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.698.00.01'
20250110@074617.2508 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.2511 t8d10b8vphqj1ds13r43miircq 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.698.00.01' and sa.armazem = 133 
20250110@074617.2534 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.2537 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.698.00.01'
20250110@074617.2557 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.698.00.01'
20250110@074617.2572 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.2589 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.2601 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.2618 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.2627 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2400227200a'
20250110@074617.2640 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.2653 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.2669 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.2681 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d160086780d04940','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.2847 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.2865 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.2881 t8d10b8vphqj1ds13r43miircq 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 'aut6780d160086780d04940',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,80000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,115.2*5.000,115.2*5.000*200.48 ,38.756000,38.756000*200.48 ,38.756000,38.756000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,115.2,115.2*200.48,115.2*5.000,115.2*5.000*200.48,'az25010961057,959000004 ',115.2,115.2*5.000,115.2,115.2*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074617.3255 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.3260 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.698.00.01'
20250110@074617.3275 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.3278 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.698.00.01'
20250110@074617.3294 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.3296 t8d10b8vphqj1ds13r43miircq 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.698.00.01' and sa.armazem = 133 
20250110@074617.3333 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.3336 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.698.00.01'
20250110@074617.3354 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.698.00.01'
20250110@074617.3370 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.3387 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.3402 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.3417 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.3426 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.698.00.01' and lote = 'r2400227200a'
20250110@074617.3438 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.3451 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.3466 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.3478 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d849206780d04954','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.3653 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.3671 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.3687 t8d10b8vphqj1ds13r43miircq 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 'aut6780d849206780d04954',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,90000 ,115.2,115.2*200.48,115.2,115.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,115.2*2.000,115.2*2.000*200.48 ,38.756000,38.756000*200.48 ,38.756000,38.756000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,115.2,115.2*200.48,115.2*2.000,115.2*2.000*200.48,'az25010961057,959000004 ',115.2,115.2*2.000,115.2,115.2*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074617.4010 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.4015 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20250110@074617.4032 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.4035 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20250110@074617.4052 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.4055 t8d10b8vphqj1ds13r43miircq 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.1667.00.1' and sa.armazem = 133 
20250110@074617.4131 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.4137 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20250110@074617.4156 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20250110@074617.4312 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.4329 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.4343 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.4357 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.4366 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400923100a'
20250110@074617.4392 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.4406 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.4422 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.4436 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d578716780d0496b','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.4593 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.4612 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.4629 t8d10b8vphqj1ds13r43miircq 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 'aut6780d578716780d0496b',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,100000 ,89.6,89.6*200.48,89.6,89.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,89.6*4.000,89.6*4.000*200.48 ,33.202000,33.202000*200.48 ,33.202000,33.202000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.6,89.6*200.48,89.6*4.000,89.6*4.000*200.48,'az25010961073,222000005 ',89.6,89.6*4.000,89.6,89.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074617.5045 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.5049 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20250110@074617.5064 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.5067 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20250110@074617.5082 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.5085 t8d10b8vphqj1ds13r43miircq 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.1667.00.1' and sa.armazem = 133 
20250110@074617.5111 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.5114 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20250110@074617.5143 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20250110@074617.5217 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.5234 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.5247 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.5264 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.5274 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400923100a'
20250110@074617.5289 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.5303 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.5321 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.5333 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d069386780d04981','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.5562 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.5585 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.5602 t8d10b8vphqj1ds13r43miircq 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 'aut6780d069386780d04981',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 9.000, 9.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 ,89.6,89.6*200.48,89.6,89.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,89.6*9.000,89.6*9.000*200.48 ,33.202000,33.202000*200.48 ,33.202000,33.202000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.6,89.6*200.48,89.6*9.000,89.6*9.000*200.48,'az25010961073,222000005 ',89.6,89.6*9.000,89.6,89.6*9.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074617.5977 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.5982 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20250110@074617.6000 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.6003 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20250110@074617.6022 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.6025 t8d10b8vphqj1ds13r43miircq 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.1684.00.1' and sa.armazem = 133 
20250110@074617.6105 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.6108 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1684.00.1'
20250110@074617.6130 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1684.00.1'
20250110@074617.6300 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.6319 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.6333 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.6348 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.6360 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2400208100a'
20250110@074617.6389 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.6402 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.6417 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.6430 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d926546780d0499c','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.6593 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.6613 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.6629 t8d10b8vphqj1ds13r43miircq 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 'aut6780d926546780d0499c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 18.000, 18.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 ,51.2,51.2*200.48,51.2,51.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,51.2*18.000,51.2*18.000*200.48 ,17.955000,17.955000*200.48 ,17.955000,17.955000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,51.2,51.2*200.48,51.2*18.000,51.2*18.000*200.48,'az25010961086,171000006 ',51.2,51.2*18.000,51.2,51.2*18.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074617.6965 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.6969 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.675.00.01'
20250110@074617.6985 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.6988 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.675.00.01'
20250110@074617.7005 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.7007 t8d10b8vphqj1ds13r43miircq 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.675.00.01' and sa.armazem = 133 
20250110@074617.7081 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.7083 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.675.00.01'
20250110@074617.7103 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.675.00.01'
20250110@074617.7259 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.7276 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.7290 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.7306 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.7315 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.675.00.01' and lote = 'r2400684200a'
20250110@074617.7342 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.7356 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.7371 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.7385 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d569016780d049b3','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.7548 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.7568 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.7624 t8d10b8vphqj1ds13r43miircq 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 'aut6780d569016780d049b3',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 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*6.000,128*6.000*200.48 ,51.883000,51.883000*200.48 ,51.883000,51.883000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*6.000,128*6.000*200.48,'az25010961099,712000007 ',128,128*6.000,128,128*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074617.8436 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.8452 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.2366.00.1'
20250110@074617.8469 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.8472 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.2366.00.1'
20250110@074617.8489 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.8492 t8d10b8vphqj1ds13r43miircq 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.2366.00.1' and sa.armazem = 133 
20250110@074617.8578 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074617.8581 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.2366.00.1'
20250110@074617.8601 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2366.00.1'
20250110@074617.8811 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.8827 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.8839 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.8854 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.8865 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.2366.00.1' and lote = 'r2400498100a'
20250110@074617.8891 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074617.8905 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.8919 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074617.8931 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d062956780d049d9','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074617.9096 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074617.9116 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074617.9496 t8d10b8vphqj1ds13r43miircq 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 'aut6780d062956780d049d9',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,140000 ,70.4,70.4*200.48,70.4,70.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,70.4*10.000,70.4*10.000*200.48 ,29.441000,29.441000*200.48 ,29.441000,29.441000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,70.4,70.4*200.48,70.4*10.000,70.4*10.000*200.48,'az25010961110,044000008 ',70.4,70.4*10.000,70.4,70.4*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.2830 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3240 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20250110@074618.4820 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.4860 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.678.00.01'
20250110@074618.5020 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.5040 t8d10b8vphqj1ds13r43miircq 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.678.00.01' and sa.armazem = 133 
20250110@074618.5830 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.5850 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.678.00.01'
20250110@074618.6030 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20250110@074618.7530 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.7700 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.7820 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.7970 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.8060 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20250110@074618.8270 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.8400 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.8540 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.8660 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d542026780d04a14','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.1018 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.1035 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.1051 t8d10b8vphqj1ds13r43miircq 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 'aut6780d542026780d04a14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,150000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*4.000,128*4.000*200.48 ,54.481000,54.481000*200.48 ,54.481000,54.481000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*4.000,128*4.000*200.48,'az25010961118,673000009 ',128,128*4.000,128,128*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.1375 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.1379 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.678.00.01'
20250110@074618.1394 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.1396 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.678.00.01'
20250110@074618.1412 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.1415 t8d10b8vphqj1ds13r43miircq 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.678.00.01' and sa.armazem = 133 
20250110@074618.1438 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.1441 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.678.00.01'
20250110@074618.1468 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.678.00.01'
20250110@074618.1488 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.1505 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.1518 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.1532 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.1542 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.678.00.01' and lote = 'r2400745200a'
20250110@074618.1554 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.1567 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.1582 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.1594 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d204926780d04a26','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.1746 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.1763 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.1779 t8d10b8vphqj1ds13r43miircq 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 'aut6780d204926780d04a26',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,160000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*6.000,128*6.000*200.48 ,54.481000,54.481000*200.48 ,54.481000,54.481000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*6.000,128*6.000*200.48,'az25010961118,673000009 ',128,128*6.000,128,128*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.2124 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.2128 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20250110@074618.2145 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.2148 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250110@074618.2165 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.2168 t8d10b8vphqj1ds13r43miircq 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.691.00.01' and sa.armazem = 133 
20250110@074618.2241 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.2244 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250110@074618.2264 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20250110@074618.2426 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.2443 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.2457 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.2472 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.2481 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400837300a'
20250110@074618.2512 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.2526 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.2541 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.2553 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d277986780d04a3d','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.2704 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.2721 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.2737 t8d10b8vphqj1ds13r43miircq 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 'aut6780d277986780d04a3d',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,170000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*10.000,96*10.000*200.48 ,30.988000,30.988000*200.48 ,30.988000,30.988000*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,'az25010961131,862000010 ',96,96*10.000,96,96*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.3129 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3133 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20250110@074618.3148 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3151 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250110@074618.3168 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3171 t8d10b8vphqj1ds13r43miircq 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.691.00.01' and sa.armazem = 133 
20250110@074618.3194 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3197 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250110@074618.3217 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20250110@074618.3234 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.3251 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.3264 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.3281 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.3290 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400837300a'
20250110@074618.3304 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.3317 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.3333 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.3346 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d000606780d04a50','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.3503 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.3521 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.3538 t8d10b8vphqj1ds13r43miircq 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 'aut6780d000606780d04a50',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,180000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*2.000,96*2.000*200.48 ,30.988000,30.988000*200.48 ,30.988000,30.988000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*2.000,96*2.000*200.48,'az25010961131,862000010 ',96,96*2.000,96,96*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.3873 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3877 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20250110@074618.3893 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3896 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '323.367.09.00'
20250110@074618.3912 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.3915 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '323.367.09.00' and sa.armazem = 133 
20250110@074618.4003 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.4006 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '323.367.09.00'
20250110@074618.4026 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '323.367.09.00'
20250110@074618.4183 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.4200 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.4215 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.4230 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.4239 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20250110@074618.4265 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.4278 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.4293 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.4305 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d776886780d04a68','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.4457 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.4475 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.4496 t8d10b8vphqj1ds13r43miircq 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 'aut6780d776886780d04a68',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,190000 ,140.8,140.8*200.48,140.8,140.8*200.48 ,0,0,'un ','' ,bo.marcada,1 ,140.8*8.000,140.8*8.000*200.48 ,67.460000,67.460000*200.48 ,67.460000,67.460000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,140.8,140.8*200.48,140.8*8.000,140.8*8.000*200.48,'az25010961142,973000011 ',140.8,140.8*8.000,140.8,140.8*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.4864 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.4869 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20250110@074618.4884 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.4887 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20250110@074618.4902 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.4905 t8d10b8vphqj1ds13r43miircq 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.1676.00.1' and sa.armazem = 133 
20250110@074618.4990 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.4993 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1676.00.1'
20250110@074618.5012 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1676.00.1'
20250110@074618.5157 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.5173 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.5185 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.5199 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.5207 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20250110@074618.5243 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.5254 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.5270 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.5281 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d161126780d04a80','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.5475 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.5523 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.5539 t8d10b8vphqj1ds13r43miircq 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 'aut6780d161126780d04a80',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,200000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,57.6*12.000,57.6*12.000*200.48 ,24.530000,24.530000*200.48 ,24.530000,24.530000*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*12.000,57.6*12.000*200.48,'az25010961162,421000012 ',57.6,57.6*12.000,57.6,57.6*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.7547 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.7552 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20250110@074618.7569 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.7573 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250110@074618.7592 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.7595 t8d10b8vphqj1ds13r43miircq 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.939.00.01' and sa.armazem = 133 
20250110@074618.7688 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.7691 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250110@074618.7718 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.939.00.01'
20250110@074618.7893 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.7914 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.7943 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.7957 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.7966 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20250110@074618.8008 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.8057 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.8072 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.8084 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d739986780d04ac4','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.8253 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.8275 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.8305 t8d10b8vphqj1ds13r43miircq 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 'aut6780d739986780d04ac4',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,210000 ,22.4,22.4*200.48,22.4,22.4*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,22.4*12.000,22.4*12.000*200.48 ,8.145000,8.145000*200.48 ,8.145000,8.145000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,22.4,22.4*200.48,22.4*12.000,22.4*12.000*200.48,'az25010961172,836000013 ',22.4,22.4*12.000,22.4,22.4*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074618.8893 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.8933 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.648.00.01'
20250110@074618.9001 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.9004 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.648.00.01'
20250110@074618.9020 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.9023 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.648.00.01' and sa.armazem = 133 
20250110@074618.9101 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074618.9104 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.648.00.01'
20250110@074618.9123 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.648.00.01'
20250110@074618.9390 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.9420 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.9434 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.9449 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.9458 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.648.00.01' and lote = 'r2400750200a'
20250110@074618.9477 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074618.9490 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.9506 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074618.9518 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d310526780d04ae7','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074618.9709 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074618.9729 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074618.9744 t8d10b8vphqj1ds13r43miircq 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 'aut6780d310526780d04ae7',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,220000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*6.000,83.2*6.000*200.48 ,29.112000,29.112000*200.48 ,29.112000,29.112000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*6.000,83.2*6.000*200.48,'az25010961185,315000014 ',83.2,83.2*6.000,83.2,83.2*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.1750 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.1800 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1706.00.1'
20250110@074619.1970 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.2000 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20250110@074619.2180 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.2200 t8d10b8vphqj1ds13r43miircq 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.1706.00.1' and sa.armazem = 133 
20250110@074619.2990 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.3020 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20250110@074619.3220 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1706.00.1'
20250110@074619.4870 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.5080 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.5220 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.5380 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.5480 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1706.00.1' and lote = 'r2400926300a'
20250110@074619.5710 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.5850 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.6000 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.6130 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d957516780d04b0e','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.7790 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.7980 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.8150 t8d10b8vphqj1ds13r43miircq 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 'aut6780d957516780d04b0e',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,230000 ,38.4,38.4*200.48,38.4,38.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,38.4*10.000,38.4*10.000*200.48 ,13.115000,13.115000*200.48 ,13.115000,13.115000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,38.4,38.4*200.48,38.4*10.000,38.4*10.000*200.48,'az25010961203,559000015 ',38.4,38.4*10.000,38.4,38.4*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.1132 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.1136 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1706.00.1'
20250110@074619.1151 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.1153 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20250110@074619.1171 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.1175 t8d10b8vphqj1ds13r43miircq 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.1706.00.1' and sa.armazem = 133 
20250110@074619.1213 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.1217 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20250110@074619.1235 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1706.00.1'
20250110@074619.1248 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.1266 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.1279 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.1294 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.1302 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1706.00.1' and lote = 'r2400926300a'
20250110@074619.1315 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.1327 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.1342 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.1353 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d663876780d04b20','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.1511 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.1528 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.1544 t8d10b8vphqj1ds13r43miircq 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 'aut6780d663876780d04b20',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,240000 ,38.4,38.4*200.48,38.4,38.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,38.4*6.000,38.4*6.000*200.48 ,13.115000,13.115000*200.48 ,13.115000,13.115000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,38.4,38.4*200.48,38.4*6.000,38.4*6.000*200.48,'az25010961203,559000015 ',38.4,38.4*6.000,38.4,38.4*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.1999 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.2004 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20250110@074619.2020 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.2024 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20250110@074619.2040 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.2042 t8d10b8vphqj1ds13r43miircq 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.1705.00.1' and sa.armazem = 133 
20250110@074619.2120 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.2123 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20250110@074619.2141 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20250110@074619.2333 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.2351 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.2366 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.2382 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.2390 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400926200a'
20250110@074619.2413 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.2432 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.2749 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.2763 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d471056780d04b3b','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.2932 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.2949 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.2966 t8d10b8vphqj1ds13r43miircq 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 'aut6780d471056780d04b3b',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,250000 ,32,32*200.48,32,32*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,32*12.000,32*12.000*200.48 ,10.120000,10.120000*200.48 ,10.120000,10.120000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*12.000,32*12.000*200.48,'az25010961213,281000016 ',32,32*12.000,32,32*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.3283 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.3288 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20250110@074619.3302 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.3305 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20250110@074619.3320 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.3323 t8d10b8vphqj1ds13r43miircq 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.1705.00.1' and sa.armazem = 133 
20250110@074619.3346 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.3348 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20250110@074619.3375 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20250110@074619.3395 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.3413 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.3426 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.3441 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.3449 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400926200a'
20250110@074619.3462 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.3474 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.3489 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.3500 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d150886780d04b54','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.3663 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.3682 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.3698 t8d10b8vphqj1ds13r43miircq 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 'aut6780d150886780d04b54',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,260000 ,32,32*200.48,32,32*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,32*8.000,32*8.000*200.48 ,10.120000,10.120000*200.48 ,10.120000,10.120000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*8.000,32*8.000*200.48,'az25010961213,281000016 ',32,32*8.000,32,32*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.4014 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.4019 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20250110@074619.4034 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.4037 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9316.00.1'
20250110@074619.4054 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.4057 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9316.00.1' and sa.armazem = 133 
20250110@074619.4129 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.4131 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9316.00.1'
20250110@074619.4152 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9316.00.1'
20250110@074619.4302 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.4319 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.4333 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.4349 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.4357 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2400092110a'
20250110@074619.4386 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.4400 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.4415 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.4426 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d374876780d04b6b','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.4584 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.4600 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.4617 t8d10b8vphqj1ds13r43miircq 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 'aut6780d374876780d04b6b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,270000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*1.000,83.2*1.000*200.48 ,34.915000,34.915000*200.48 ,34.915000,34.915000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*1.000,83.2*1.000*200.48,'az25010961222,926000017 ',83.2,83.2*1.000,83.2,83.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.4938 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.4943 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20250110@074619.4957 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.4960 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9316.00.1'
20250110@074619.4976 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.4979 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9316.00.1' and sa.armazem = 133 
20250110@074619.5002 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.5005 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9316.00.1'
20250110@074619.5023 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9316.00.1'
20250110@074619.5036 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.5053 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.5065 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.5079 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.5087 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2400092110a'
20250110@074619.5099 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.5111 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.5125 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.5167 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d446816780d04b7c','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.5366 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.5454 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.5470 t8d10b8vphqj1ds13r43miircq 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 'aut6780d446816780d04b7c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,280000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*1.000,83.2*1.000*200.48 ,34.915000,34.915000*200.48 ,34.915000,34.915000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*1.000,83.2*1.000*200.48,'az25010961222,926000017 ',83.2,83.2*1.000,83.2,83.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.5800 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.5805 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '328.9345.00.1'
20250110@074619.5821 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.5823 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9345.00.1'
20250110@074619.5840 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.5843 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9345.00.1' and sa.armazem = 133 
20250110@074619.5925 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.5928 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9345.00.1'
20250110@074619.5947 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9345.00.1'
20250110@074619.6104 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.6120 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.6133 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.6147 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.6155 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='328.9345.00.1' and lote = 'r2101101300a'
20250110@074619.6187 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.6199 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.6214 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.6225 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d369136780d04b97','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.6371 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.6388 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.6403 t8d10b8vphqj1ds13r43miircq 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 'aut6780d369136780d04b97',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,290000 ,128,128*200.48,128,128*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,128*2.000,128*2.000*200.48 ,60.642000,60.642000*200.48 ,60.642000,60.642000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*2.000,128*2.000*200.48,'az25010961247,751000018 ',128,128*2.000,128,128*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.6719 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.6724 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '328.9903.00.1'
20250110@074619.6740 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.6743 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9903.00.1'
20250110@074619.6759 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.6762 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9903.00.1' and sa.armazem = 133 
20250110@074619.6840 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.6842 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9903.00.1'
20250110@074619.6861 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9903.00.1'
20250110@074619.8185 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.8207 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.8220 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.8235 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.8243 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='328.9903.00.1' and lote = 'r2300900100a'
20250110@074619.8280 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.8294 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.8311 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.8324 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d417936780d04bca','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.8471 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.8488 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.8505 t8d10b8vphqj1ds13r43miircq 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 'aut6780d417936780d04bca',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,300000 ,211.2,211.2*200.48,211.2,211.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,211.2*1.000,211.2*1.000*200.48 ,78.801000,78.801000*200.48 ,78.801000,78.801000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,211.2,211.2*200.48,211.2*1.000,211.2*1.000*200.48,'az25010961267,681000019 ',211.2,211.2*1.000,211.2,211.2*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074619.8812 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.8817 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '328.9075.00.1'
20250110@074619.8832 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.8835 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9075.00.1'
20250110@074619.8851 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.8854 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9075.00.1' and sa.armazem = 133 
20250110@074619.8927 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074619.8930 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9075.00.1'
20250110@074619.8955 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9075.00.1'
20250110@074619.9403 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.9422 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.9434 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.9451 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.9460 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='328.9075.00.1' and lote = 'r2400212150a'
20250110@074619.9481 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074619.9493 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.9508 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074619.9524 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d759896780d04be7','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074619.9675 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074619.9693 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074619.9708 t8d10b8vphqj1ds13r43miircq 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 'aut6780d759896780d04be7',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,310000 ,160,160*200.48,160,160*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,160*4.000,160*4.000*200.48 ,78.369000,78.369000*200.48 ,78.369000,78.369000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,160,160*200.48,160*4.000,160*4.000*200.48,'az25010961281,325000020 ',160,160*4.000,160,160*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074620.1700 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.2200 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '328.9106.00.1'
20250110@074620.3700 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.4000 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9106.00.1'
20250110@074620.5600 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.5900 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9106.00.1' and sa.armazem = 133 
20250110@074620.1300 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.1330 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9106.00.1'
20250110@074620.1520 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9106.00.1'
20250110@074620.2930 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.3110 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074620.3230 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.3390 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074620.3480 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='328.9106.00.1' and lote = 'r2100770200a'
20250110@074620.3760 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074620.3910 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.4060 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074620.4180 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d211646780d04c09','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074620.5610 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.5780 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074620.5930 t8d10b8vphqj1ds13r43miircq 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 'aut6780d211646780d04c09',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,320000 ,236.8,236.8*200.48,236.8,236.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,236.8*4.000,236.8*4.000*200.48 ,104.031000,104.031000*200.48 ,104.031000,104.031000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,236.8,236.8*200.48,236.8*4.000,236.8*4.000*200.48,'az25010961294,115000021 ',236.8,236.8*4.000,236.8,236.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074620.8990 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.9030 t8d10b8vphqj1ds13r43miircq Query : select st.usalote valor from st where st.ref = '328.9170.00.1'
20250110@074620.9180 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.9210 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9170.00.1'
20250110@074620.9370 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.9400 t8d10b8vphqj1ds13r43miircq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9170.00.1' and sa.armazem = 133 
20250110@074620.1010 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.1013 t8d10b8vphqj1ds13r43miircq Query : select st.stns valor from st where st.ref = '328.9170.00.1'
20250110@074620.1034 t8d10b8vphqj1ds13r43miircq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.9170.00.1'
20250110@074620.1171 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.1190 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074620.1204 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.1219 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074620.1228 t8d10b8vphqj1ds13r43miircq Query : select sestamp valor from se where ref ='328.9170.00.1' and lote = 'r2100308100a'
20250110@074620.1260 t8d10b8vphqj1ds13r43miircq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074620.1274 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.1289 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074620.1300 t8d10b8vphqj1ds13r43miircq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d896216780d04c1f','aut6780d247696780d0476c',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 = 'aut6780d247696780d0476c'
20250110@074620.1445 t8d10b8vphqj1ds13r43miircq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074620.1461 t8d10b8vphqj1ds13r43miircq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074620.1477 t8d10b8vphqj1ds13r43miircq 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 'aut6780d896216780d04c1f',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,330000 ,320,320*200.48,320,320*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,320*4.000,320*4.000*200.48 ,175.485000,175.485000*200.48 ,175.485000,175.485000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,320,320*200.48,320*4.000,320*4.000*200.48,'az25010961313,866000022 ',320,320*4.000,320,320*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d247696780d0476c'
20250110@074620.1870 t8d10b8vphqj1ds13r43miircq Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut6780d247696780d0476c','','wait',5,'adm12071144683,938000003','')
20250110@074620.1995 t8d10b8vphqj1ds13r43miircq Query : use flama_phc
20250110@074620.1998 t8d10b8vphqj1ds13r43miircq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250110@074620.2067 t8d10b8vphqj1ds13r43miircq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4468';
20250110@074620.2113 t8d10b8vphqj1ds13r43miircq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4468';
20250110@074620.2752 068acvk16gbh0eis95puetn2ua Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250110@074620.2765 068acvk16gbh0eis95puetn2ua Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250110@074620.2837 068acvk16gbh0eis95puetn2ua Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4469';
20250110@074620.2913 068acvk16gbh0eis95puetn2ua Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4469';
20250110@074620.2983 068acvk16gbh0eis95puetn2ua Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4469';
20250110@074620.3019 068acvk16gbh0eis95puetn2ua Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4469';
20250110@074620.3369 3s4h16m9l0h6rfnq1frt621l2h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250110@074620.3391 3s4h16m9l0h6rfnq1frt621l2h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250110@074620.3476 3s4h16m9l0h6rfnq1frt621l2h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4470';
20250110@074620.3543 3s4h16m9l0h6rfnq1frt621l2h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4470';
20250110@074620.3637 3s4h16m9l0h6rfnq1frt621l2h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4470';
20250110@074620.3678 3s4h16m9l0h6rfnq1frt621l2h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4470';
20250110@074620.3733 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074620.3736 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250110@074620.3826 3s4h16m9l0h6rfnq1frt621l2h Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20250110@074620.3925 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1462.00.1'
20250110@074620.4048 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.1462.00.1' and bi.lordem =10000
20250110@074620.4388 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941278,493000001 ' 
20250110@074620.4678 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2318.00.1'
20250110@074620.4791 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.2318.00.1' and bi.lordem =20000
20250110@074620.5106 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941311,963000002 ' 
20250110@074620.6669 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2318.00.1'
20250110@074620.6690 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.2318.00.1' and bi.lordem =20000
20250110@074620.6712 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941311,963000002 ' 
20250110@074620.6733 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1332.00.1'
20250110@074620.6854 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.1332.00.1' and bi.lordem =30000
20250110@074620.7160 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941454,406000003 ' 
20250110@074620.7455 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2330.00.1'
20250110@074620.7586 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.2330.00.1' and bi.lordem =40000
20250110@074620.7941 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941477,636000004 ' 
20250110@074620.8236 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2335.00.1'
20250110@074620.8354 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.2335.00.1' and bi.lordem =50000
20250110@074620.8682 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941485,401000005 ' 
20250110@074620.8979 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1824.00.1'
20250110@074620.9099 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.1824.00.1' and bi.lordem =60000
20250110@074620.9449 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941613,051000010 ' 
20250110@074620.9865 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1862.00.1'
20250110@074620.9990 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.1862.00.1' and bi.lordem =70000
20250110@074621.3140 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941754,106000015 ' 
20250110@074621.6180 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.497.00.01'
20250110@074621.7380 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000002 and bi.ref ='324.497.00.01' and bi.lordem =80000
20250110@074621.1084 3s4h16m9l0h6rfnq1frt621l2h 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 = 'pll25010941937,786000016 ' 
20250110@074621.1698 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.1702 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 1 valor from ts where ts.ndos = 5
20250110@074621.1739 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.1744 3s4h16m9l0h6rfnq1frt621l2h 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')
20250110@074621.1776 3s4h16m9l0h6rfnq1frt621l2h 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
20250110@074621.1816 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.1819 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20250110@074621.1949 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.1952 3s4h16m9l0h6rfnq1frt621l2h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250110@074621.2001 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.2004 3s4h16m9l0h6rfnq1frt621l2h Query : select szadrsstamp valor from szadrs where szadrsdesc='flama-fab.louÇas e electrodomesticos,sa'
20250110@074621.2069 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.2073 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from ts where ndos = 5
20250110@074621.2086 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.2104 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20250110@074621.2118 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.2133 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20250110@074621.2143 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.2159 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20250110@074621.2169 3s4h16m9l0h6rfnq1frt621l2h 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
20250110@074621.2184 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250110@074621.2217 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250110@074621.2232 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.2238 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100999' and estab=0
20250110@074621.2340 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.2358 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20250110@074621.2371 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6780d938576780d04d36',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250110@074621.2376 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.2392 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20250110@074621.2404 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut6780d938576780d04d36','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20250110','08:16',?,?)
20250110@074621.2592 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.2614 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20250110@074621.2634 3s4h16m9l0h6rfnq1frt621l2h 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 ('aut6780d938576780d04d36','trf entre armazéns a','2025-01-10',5,9,?,?,?,?,?,?,?,?,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',?)
20250110@074621.3076 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.3079 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.1462.00.1'
20250110@074621.3095 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.3098 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20250110@074621.3118 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.3121 3s4h16m9l0h6rfnq1frt621l2h Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1462.00.1' and sa.armazem = 133 
20250110@074621.3212 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.3215 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1462.00.1'
20250110@074621.3239 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1462.00.1'
20250110@074621.3400 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.3418 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.3433 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.3449 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.3459 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.1462.00.1' and lote = 'r2100463100a'
20250110@074621.3514 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074621.3527 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.3542 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.3555 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d110176780d04d56','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074621.3723 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.3750 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.3769 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d110176780d04d56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,99.99,99.99*200.48,99.99,99.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,99.99*6.000,99.99*6.000*200.48 ,30.730000,30.730000*200.48 ,30.730000,30.730000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,99.99,99.99*200.48,99.99*6.000,99.99*6.000*200.48,'pll25010941278,493000001 ',99.99,99.99*6.000,99.99,99.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074621.4102 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.4108 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.2318.00.1'
20250110@074621.4125 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.4128 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2318.00.1'
20250110@074621.4146 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.4149 3s4h16m9l0h6rfnq1frt621l2h 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.2318.00.1' and sa.armazem = 133 
20250110@074621.4223 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.4226 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2318.00.1'
20250110@074621.4244 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2318.00.1'
20250110@074621.4395 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.4412 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.4424 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.4441 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.4451 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.2318.00.1' and lote = 'r2100669100a'
20250110@074621.4498 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074621.4513 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.4528 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.4541 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d805366780d04d6e','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074621.4697 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.4724 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.4743 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d805366780d04d6e',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 ,66.99,66.99*200.48,66.99,66.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,66.99*4.000,66.99*4.000*200.48 ,19.608000,19.608000*200.48 ,19.608000,19.608000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,66.99,66.99*200.48,66.99*4.000,66.99*4.000*200.48,'pll25010941311,963000002 ',66.99,66.99*4.000,66.99,66.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074621.5051 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.5056 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.2318.00.1'
20250110@074621.5071 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.5074 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2318.00.1'
20250110@074621.5091 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.5094 3s4h16m9l0h6rfnq1frt621l2h 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.2318.00.1' and sa.armazem = 133 
20250110@074621.5120 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.5123 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2318.00.1'
20250110@074621.5150 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2318.00.1'
20250110@074621.5171 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.5189 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.5203 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.5219 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.5228 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.2318.00.1' and lote = 'r2100669100a'
20250110@074621.5241 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074621.5255 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.5272 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.5285 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d188976780d04d80','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074621.5474 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.5500 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.5517 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d188976780d04d80',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,30000 ,66.99,66.99*200.48,66.99,66.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,66.99*2.000,66.99*2.000*200.48 ,19.608000,19.608000*200.48 ,19.608000,19.608000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,66.99,66.99*200.48,66.99*2.000,66.99*2.000*200.48,'pll25010941311,963000002 ',66.99,66.99*2.000,66.99,66.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074621.6225 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.6908 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.1332.00.1'
20250110@074621.6927 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.6930 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20250110@074621.6948 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.6950 3s4h16m9l0h6rfnq1frt621l2h Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1332.00.1' and sa.armazem = 133 
20250110@074621.7024 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.7027 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1332.00.1'
20250110@074621.7046 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1332.00.1'
20250110@074621.7194 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.7210 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.7222 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.7246 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.7255 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.1332.00.1' and lote = 'r2400759200a'
20250110@074621.7269 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074621.7282 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.7297 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.7309 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d365596780d04db1','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074621.7452 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.7471 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.7489 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d365596780d04db1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,299.99,299.99*200.48,299.99,299.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,299.99*6.000,299.99*6.000*200.48 ,82.639000,82.639000*200.48 ,82.639000,82.639000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,299.99,299.99*200.48,299.99*6.000,299.99*6.000*200.48,'pll25010941454,406000003 ',299.99,299.99*6.000,299.99,299.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074621.7798 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.7802 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.2330.00.1'
20250110@074621.7820 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.7823 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2330.00.1'
20250110@074621.7839 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.7842 3s4h16m9l0h6rfnq1frt621l2h Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2330.00.1' and sa.armazem = 133 
20250110@074621.7918 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.7920 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2330.00.1'
20250110@074621.7939 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2330.00.1'
20250110@074621.8089 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.8105 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.8119 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.8134 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.8143 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.2330.00.1' and lote = 'r2400469200a'
20250110@074621.8172 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074621.8184 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.8198 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.8210 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d918346780d04dc7','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074621.8366 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.8383 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.8397 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d918346780d04dc7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,114.99,114.99*200.48,114.99,114.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,114.99*6.000,114.99*6.000*200.48 ,30.217000,30.217000*200.48 ,30.217000,30.217000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,114.99,114.99*200.48,114.99*6.000,114.99*6.000*200.48,'pll25010941477,636000004 ',114.99,114.99*6.000,114.99,114.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074621.8714 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.8719 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.2335.00.1'
20250110@074621.8737 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.8739 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2335.00.1'
20250110@074621.8755 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.8757 3s4h16m9l0h6rfnq1frt621l2h Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2335.00.1' and sa.armazem = 133 
20250110@074621.8868 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.8871 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.2335.00.1'
20250110@074621.8890 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2335.00.1'
20250110@074621.9047 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.9065 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.9078 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.9092 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.9101 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.2335.00.1' and lote = 'r2400468300a'
20250110@074621.9116 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074621.9128 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.9146 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074621.9157 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d430036780d04dde','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074621.9299 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074621.9325 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074621.9342 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d430036780d04dde',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,129.99,129.99*200.48,129.99,129.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,129.99*6.000,129.99*6.000*200.48 ,34.069000,34.069000*200.48 ,34.069000,34.069000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,129.99,129.99*200.48,129.99*6.000,129.99*6.000*200.48,'pll25010941485,401000005 ',129.99,129.99*6.000,129.99,129.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074621.9678 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.9682 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250110@074621.9697 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.9699 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250110@074621.9717 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.9720 3s4h16m9l0h6rfnq1frt621l2h 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.1824.00.1' and sa.armazem = 133 
20250110@074621.9792 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074621.9794 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250110@074621.9814 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250110@074622.2080 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.2250 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074622.2370 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.2530 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074622.2610 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250110@074622.2820 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074622.2950 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.3100 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074622.3210 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d845096780d04e07','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074622.4760 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.4950 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074622.5110 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d845096780d04e07',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,70000 ,69.99,69.99*200.48,69.99,69.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,69.99*20.000,69.99*20.000*200.48 ,27.295000,27.295000*200.48 ,27.295000,27.295000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,69.99,69.99*200.48,69.99*20.000,69.99*20.000*200.48,'pll25010941613,051000010 ',69.99,69.99*20.000,69.99,69.99*20.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074622.8910 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.8950 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.1862.00.1'
20250110@074622.9130 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.9160 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20250110@074622.9320 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.9350 3s4h16m9l0h6rfnq1frt621l2h 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 
20250110@074622.1008 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.1010 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.1862.00.1'
20250110@074622.1038 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20250110@074622.1194 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.1211 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074622.1225 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.1239 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074622.1247 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.1862.00.1' and lote = 'r2400440200a'
20250110@074622.1266 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074622.1278 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.1293 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074622.1307 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d634576780d04e1f','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074622.1458 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.1479 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074622.1495 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d634576780d04e1f',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,80000 ,119.99,119.99*200.48,119.99,119.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,119.99*4.000,119.99*4.000*200.48 ,42.473000,42.473000*200.48 ,42.473000,42.473000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,119.99,119.99*200.48,119.99*4.000,119.99*4.000*200.48,'pll25010941754,106000015 ',119.99,119.99*4.000,119.99,119.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074622.1813 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.1848 3s4h16m9l0h6rfnq1frt621l2h Query : select st.usalote valor from st where st.ref = '324.497.00.01'
20250110@074622.1885 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.1889 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.497.00.01'
20250110@074622.1906 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.1909 3s4h16m9l0h6rfnq1frt621l2h 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.497.00.01' and sa.armazem = 133 
20250110@074622.1989 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.1992 3s4h16m9l0h6rfnq1frt621l2h Query : select st.stns valor from st where st.ref = '324.497.00.01'
20250110@074622.2012 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.497.00.01'
20250110@074622.2167 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.2183 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074622.2197 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.2213 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074622.2221 3s4h16m9l0h6rfnq1frt621l2h Query : select sestamp valor from se where ref ='324.497.00.01' and lote = 'r2300024300a'
20250110@074622.2256 3s4h16m9l0h6rfnq1frt621l2h Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@074622.2271 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.2287 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250110@074622.2299 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6780d554596780d04e37','aut6780d938576780d04d36',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 = 'aut6780d938576780d04d36'
20250110@074622.2450 3s4h16m9l0h6rfnq1frt621l2h Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@074622.2468 3s4h16m9l0h6rfnq1frt621l2h Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250110@074622.2485 3s4h16m9l0h6rfnq1frt621l2h 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 'aut6780d554596780d04e37',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,90000 ,29.99,29.99*200.48,29.99,29.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,29.99*12.000,29.99*12.000*200.48 ,8.279000,8.279000*200.48 ,8.279000,8.279000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.99,29.99*200.48,29.99*12.000,29.99*12.000*200.48,'pll25010941937,786000016 ',29.99,29.99*12.000,29.99,29.99*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6780d938576780d04d36'
20250110@074622.2806 3s4h16m9l0h6rfnq1frt621l2h Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut6780d938576780d04d36','','wait',5,'adm12071144683,938000003','')
20250110@074622.2988 3s4h16m9l0h6rfnq1frt621l2h Query : use flama_phc
20250110@074622.2992 3s4h16m9l0h6rfnq1frt621l2h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250110@074622.3080 3s4h16m9l0h6rfnq1frt621l2h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4470';
20250110@074622.3129 3s4h16m9l0h6rfnq1frt621l2h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4470';

20250110@114630.5035 8s0ajcob01np0r7a5qh7pfn31f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4471';
20250110@114630.5119 8s0ajcob01np0r7a5qh7pfn31f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4471';
20250110@114630.5800 8s0ajcob01np0r7a5qh7pfn31f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4471';
20250110@114630.5863 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114630.5866 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250110@114630.5945 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2907.00.1'
20250110@114630.6068 8s0ajcob01np0r7a5qh7pfn31f 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 = 2400951 and bi.ref ='324.2907.00.1' and bi.lordem =20000
20250110@114630.6399 8s0ajcob01np0r7a5qh7pfn31f 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 = 'cps24073152101,155000002 ' 
20250110@114630.6897 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114630.6901 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 1 valor from ts where ts.ndos = 61
20250110@114630.7005 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114630.7008 8s0ajcob01np0r7a5qh7pfn31f 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')
20250110@114630.7091 8s0ajcob01np0r7a5qh7pfn31f 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
20250110@114630.7259 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114630.7262 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 ~inactivo valor from fl where no = '202190' and estab = 00 order by inactivo desc
20250110@114630.7393 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114630.7397 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from ts where ndos = 61
20250110@114630.7418 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114630.7449 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250110@114630.7491 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114630.7520 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250110@114630.7531 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114630.7548 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250110@114630.7558 8s0ajcob01np0r7a5qh7pfn31f 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
20250110@114630.7685 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250110@114630.7790 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250110@114630.7817 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114630.7824 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202190' and estab=00
20250110@114630.7944 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114630.7977 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250110@114630.7998 8s0ajcob01np0r7a5qh7pfn31f Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut678105128167810896be',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250110@114630.8060 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114630.8077 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250110@114630.8091 8s0ajcob01np0r7a5qh7pfn31f Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut678105128167810896be','--','bo',7.1018276762402088772 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250110@114630.8322 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114630.8342 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250110@114630.8356 8s0ajcob01np0r7a5qh7pfn31f 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 ('aut678105128167810896be','guia r. fornecedor','2025-01-10',61,2500110,?,?,?,?,?,?,?,?,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')
20250110@114633.6144 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114633.6147 8s0ajcob01np0r7a5qh7pfn31f Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20250110@114633.6179 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2907.00.1'
20250110@114633.6333 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114633.6349 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250110@114633.6362 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114633.6377 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250110@114633.6385 8s0ajcob01np0r7a5qh7pfn31f Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400951200a'
20250110@114633.6405 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114633.6419 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250110@114633.6429 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114633.6442 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250110@114633.6455 8s0ajcob01np0r7a5qh7pfn31f Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6781006894678108999c',?,?,'20250110',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250110@114633.7602 8s0ajcob01np0r7a5qh7pfn31f Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250110@114633.7625 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114633.7641 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250110@114633.7654 8s0ajcob01np0r7a5qh7pfn31f Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut678101171267810899ba','aut678105128167810896be',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 = 'aut678105128167810896be'
20250110@114633.7825 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250110@114633.7843 8s0ajcob01np0r7a5qh7pfn31f Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250110@114633.7859 8s0ajcob01np0r7a5qh7pfn31f 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 'aut678101171267810899ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4048, 4048*.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 ,3.83,3.83*200.48,3.83,3.83*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,3.83*4048,3.83*4048*200.48 ,3.857000,3.857000*200.48 ,3.857000,3.857000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,3.83,3.83*200.48,3.83*4048,3.83*4048*200.48,'cps24073152101,155000002 ',27.2,27.2*4048,27.2,27.2*4048,?,?,?,4 from bo bo where bo.bostamp = 'aut678105128167810896be'
20250110@114645.1052 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114645.1057 8s0ajcob01np0r7a5qh7pfn31f Query : declare @bostamp varchar(25) = 'aut678105128167810896be' ,@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 
20250110@114656.9992 8s0ajcob01np0r7a5qh7pfn31f Query : use flama_phc
20250110@114656.9995 8s0ajcob01np0r7a5qh7pfn31f Query : select 1 valor from bo where bo.bostamp = 'aut678105128167810896be'
20250110@114657.9500 8s0ajcob01np0r7a5qh7pfn31f 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) = 'aut678105128167810896be' 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 
