20240902@152516.6324 jidlalr6e30grmg56pk4ugi589 INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240902@152516.6320 jidlalr6e30grmg56pk4ugi589 Query : use flama_phc
20240902@152516.6329 jidlalr6e30grmg56pk4ugi589 Query : select 1 valor from bo where bo.bostamp = 'aut66d5c5799366d5cab116'
20240902@152516.6354 jidlalr6e30grmg56pk4ugi589 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) = 'aut66d5c5799366d5cab116' 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 
20240902@152519.1766 jidlalr6e30grmg56pk4ugi589 Query : use flama_phc
20240902@152519.1770 jidlalr6e30grmg56pk4ugi589 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@152519.1827 jidlalr6e30grmg56pk4ugi589 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1752';
20240902@152519.2065 jidlalr6e30grmg56pk4ugi589 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1752';
20240902@153610.6809 smc6gnafkmf3ob00t2ljefc4er Query : use flama_phc
20240902@153610.6851 smc6gnafkmf3ob00t2ljefc4er Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240902@153610.9901 smc6gnafkmf3ob00t2ljefc4er Query : use flama_phc
20240902@153610.9946 smc6gnafkmf3ob00t2ljefc4er Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@161912.3820 kqtbnqc5vescpms9sgaq6fq7v5 Query : use flama_phc
20240902@161912.3825 kqtbnqc5vescpms9sgaq6fq7v5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240902@161912.3945 kqtbnqc5vescpms9sgaq6fq7v5 Query : use flama_phc
20240902@161912.3949 kqtbnqc5vescpms9sgaq6fq7v5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@163612.5648 g77g6i7brr0utkd0d4i1bkluq3 Query : use flama_phc
20240902@163612.5653 g77g6i7brr0utkd0d4i1bkluq3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240902@163612.5748 g77g6i7brr0utkd0d4i1bkluq3 Query : use flama_phc
20240902@163612.5751 g77g6i7brr0utkd0d4i1bkluq3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@164049.4195 6j66g5nh5cta70pb4d6cs45s4r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@164049.4224 6j66g5nh5cta70pb4d6cs45s4r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@164049.4313 6j66g5nh5cta70pb4d6cs45s4r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1753';
20240902@164049.4378 6j66g5nh5cta70pb4d6cs45s4r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1753';
20240902@164049.4432 6j66g5nh5cta70pb4d6cs45s4r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1753';
20240902@164049.4500 6j66g5nh5cta70pb4d6cs45s4r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1753';
20240902@164049.4692 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164049.4697 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@164049.4812 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.686.00.01'
20240902@164049.5263 6j66g5nh5cta70pb4d6cs45s4r 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 = 2400405 and bi.ref ='324.686.00.01' and bi.lordem =20000
20240902@164049.5964 6j66g5nh5cta70pb4d6cs45s4r 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 = 'cps24041054182,012000002 ' 
20240902@164049.6317 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164049.6322 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 1 valor from ts where ts.ndos = 61
20240902@164049.6363 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164049.6367 6j66g5nh5cta70pb4d6cs45s4r 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')
20240902@164049.6448 6j66g5nh5cta70pb4d6cs45s4r 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
20240902@164049.6505 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164049.6509 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 ~inactivo valor from fl where no = '202549' and estab = 00 order by inactivo desc
20240902@164049.6574 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164049.6579 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from ts where ndos = 61
20240902@164049.6594 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164049.6910 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240902@164049.6923 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164049.6939 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240902@164049.6950 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164049.6968 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240902@164049.6980 6j66g5nh5cta70pb4d6cs45s4r 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
20240902@164049.7007 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240902@164049.7035 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240902@164049.7077 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164049.7085 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202549' and estab=00
20240902@164049.7114 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164049.7137 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240902@164049.7151 6j66g5nh5cta70pb4d6cs45s4r Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d5d6853366d5dc81ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240902@164049.7156 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164049.7180 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240902@164049.7194 6j66g5nh5cta70pb4d6cs45s4r Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d5d6853366d5dc81ac','--','bo',7.8660092807424593967 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240902@164049.7200 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164049.7217 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240902@164049.7230 6j66g5nh5cta70pb4d6cs45s4r 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 ('aut66d5d6853366d5dc81ac','guia r. fornecedor','2024-09-02',61,2402429,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240902@164050.3066 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164050.3071 6j66g5nh5cta70pb4d6cs45s4r Query : select st.usalote valor from st where st.ref = '324.686.00.01'
20240902@164050.3103 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240902@164050.3264 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164050.3284 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240902@164050.3300 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164050.3318 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240902@164050.3329 6j66g5nh5cta70pb4d6cs45s4r Query : select sestamp valor from se where ref ='324.686.00.01' and lote = 'r2400405200a'
20240902@164050.3346 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164050.3371 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240902@164050.3383 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164050.3401 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240902@164050.3416 6j66g5nh5cta70pb4d6cs45s4r Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d5d8774666d5dc8252',?,?,'20240902',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240902@164050.4246 6j66g5nh5cta70pb4d6cs45s4r Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@164050.4293 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164050.4311 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240902@164050.4325 6j66g5nh5cta70pb4d6cs45s4r Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66d5d3747566d5dc8268','aut66d5d6853366d5dc81ac',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 = 'aut66d5d6853366d5dc81ac'
20240902@164050.4494 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@164050.4515 6j66g5nh5cta70pb4d6cs45s4r Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240902@164050.4535 6j66g5nh5cta70pb4d6cs45s4r 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 'aut66d5d3747566d5dc8268',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 815, 815*.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 ,34.48,34.48*200.48,34.48,34.48*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,34.48*815,34.48*815*200.48 ,44.097000,44.097000*200.48 ,44.097000,44.097000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,34.48,34.48*200.48,34.48*815,34.48*815*200.48,'cps24041054182,012000002 ',271.22,271.22*815,271.22,271.22*815,?,?,?,4 from bo bo where bo.bostamp = 'aut66d5d6853366d5dc81ac'
20240902@164104.7206 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164104.7212 6j66g5nh5cta70pb4d6cs45s4r Query : declare @bostamp varchar(25) = 'aut66d5d6853366d5dc81ac' ,@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 
20240902@164119.4715 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164119.4719 6j66g5nh5cta70pb4d6cs45s4r Query : select 1 valor from bo where bo.bostamp = 'aut66d5d6853366d5dc81ac'
20240902@164119.4744 6j66g5nh5cta70pb4d6cs45s4r 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) = 'aut66d5d6853366d5dc81ac' 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 
20240902@164121.8112 6j66g5nh5cta70pb4d6cs45s4r Query : use flama_phc
20240902@164121.8125 6j66g5nh5cta70pb4d6cs45s4r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@164121.8191 6j66g5nh5cta70pb4d6cs45s4r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1753';
20240902@164121.8457 6j66g5nh5cta70pb4d6cs45s4r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1753';
20240902@171912.4080 cr3hmdj3056eopu00oe9n02l99 Query : use flama_phc
20240902@171912.4130 cr3hmdj3056eopu00oe9n02l99 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240902@171912.5010 cr3hmdj3056eopu00oe9n02l99 Query : use flama_phc
20240902@171912.5050 cr3hmdj3056eopu00oe9n02l99 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@173612.2209 l910ghk2glicie1iijo6umfdfu Query : use flama_phc
20240902@173612.2214 l910ghk2glicie1iijo6umfdfu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240902@173612.2307 l910ghk2glicie1iijo6umfdfu Query : use flama_phc
20240902@173612.2310 l910ghk2glicie1iijo6umfdfu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@181912.1041 oanclqfva4lo8iithmqs1p4dnn Query : use flama_phc
20240902@181912.1045 oanclqfva4lo8iithmqs1p4dnn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240902@181912.1160 oanclqfva4lo8iithmqs1p4dnn Query : use flama_phc
20240902@181912.1164 oanclqfva4lo8iithmqs1p4dnn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@183612.1500 34b63r7acjh0c0fkbpqsha3u1i Query : use flama_phc
20240902@183612.1505 34b63r7acjh0c0fkbpqsha3u1i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240902@183612.1603 34b63r7acjh0c0fkbpqsha3u1i Query : use flama_phc
20240902@183612.1606 34b63r7acjh0c0fkbpqsha3u1i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191450.5728 cbo98uctuc2n6gt0njiea8qn13 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191450.5756 cbo98uctuc2n6gt0njiea8qn13 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191450.5841 cbo98uctuc2n6gt0njiea8qn13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1754';
20240902@191450.5894 cbo98uctuc2n6gt0njiea8qn13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1754';
20240902@191450.5945 cbo98uctuc2n6gt0njiea8qn13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1754';
20240902@191450.5971 cbo98uctuc2n6gt0njiea8qn13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1754';
20240902@191450.6022 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.6028 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191450.6150 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.6153 cbo98uctuc2n6gt0njiea8qn13 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191450.6242 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240902@191450.6413 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405638 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240902@191450.6758 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240902@191450.6781 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405638 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240902@191450.6800 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240902@191450.6823 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405638 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240902@191450.6841 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240902@191450.6864 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405638 and bi.ref ='304.4320.00.1' and bi.lordem =1
20240902@191450.6883 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.6888 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191450.7096 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.7101 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191450.7204 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.7209 cbo98uctuc2n6gt0njiea8qn13 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')
20240902@191450.7284 cbo98uctuc2n6gt0njiea8qn13 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
20240902@191450.7417 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.7420 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191450.7544 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.7548 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191450.7645 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.7649 cbo98uctuc2n6gt0njiea8qn13 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191450.7722 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.7725 cbo98uctuc2n6gt0njiea8qn13 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191450.7778 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191450.7782 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from td where ndoc = 39
20240902@191450.8051 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191450.8145 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191450.8438 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191450.8495 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191450.8513 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191450.8546 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191450.8561 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191450.8576 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191450.8785 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191450.8903 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191450.8921 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191450.8968 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d602052466d6009ad1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191450.9305 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191450.9326 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191450.9373 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191450.9487 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191450.9587 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191450.9685 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191450.9760 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191450.9837 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191450.9923 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d602052466d6009ad1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191451.3980 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191451.4930 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.5110 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191451.5400 cbo98uctuc2n6gt0njiea8qn13 Query : select 'normal' from dummy
20240902@191451.5920 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d602052466d6009ad1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',538,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191451.1127 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191451.1131 cbo98uctuc2n6gt0njiea8qn13 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240902@191451.1162 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240902@191451.1337 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.1355 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.1388 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.1406 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.1417 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191451.1461 cbo98uctuc2n6gt0njiea8qn13 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20240902@191451.1482 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.1498 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.1515 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602301166d6009b24','aut66d602052466d6009ad1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191451.1592 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.1614 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.1651 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d602301166d6009b24',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d602052466d6009ad1' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191451.2081 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191451.2085 cbo98uctuc2n6gt0njiea8qn13 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240902@191451.2111 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240902@191451.2129 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.2152 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.2182 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.2202 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.2212 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191451.2227 cbo98uctuc2n6gt0njiea8qn13 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20240902@191451.2245 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.2266 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.2282 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607762666d6009b36','aut66d602052466d6009ad1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191451.2287 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.2309 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.2346 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607762666d6009b36',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut66d602052466d6009ad1' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191451.2662 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191451.2666 cbo98uctuc2n6gt0njiea8qn13 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240902@191451.2714 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240902@191451.2732 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.2751 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.3997 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.4017 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.4027 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191451.4041 cbo98uctuc2n6gt0njiea8qn13 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20240902@191451.4058 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.4077 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.4090 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602564966d6009b63','aut66d602052466d6009ad1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191451.4096 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.4111 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.4145 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d602564966d6009b63',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut66d602052466d6009ad1' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240902@191451.4439 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191451.4443 cbo98uctuc2n6gt0njiea8qn13 Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20240902@191451.4468 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20240902@191451.4484 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.4502 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.4540 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.4563 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.4574 cbo98uctuc2n6gt0njiea8qn13 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191451.4590 cbo98uctuc2n6gt0njiea8qn13 Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241005'
20240902@191451.4609 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.4630 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.4649 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d606504566d6009b70','aut66d602052466d6009ad1' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191451.4653 cbo98uctuc2n6gt0njiea8qn13 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.4671 cbo98uctuc2n6gt0njiea8qn13 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.4705 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d606504566d6009b70',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut66d602052466d6009ad1' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240902@191451.4992 cbo98uctuc2n6gt0njiea8qn13 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d602052466d6009ad1','2405638','wait',39,'adm09112754980.682000002')
20240902@191451.5087 cbo98uctuc2n6gt0njiea8qn13 Query : use flama_phc
20240902@191451.5091 cbo98uctuc2n6gt0njiea8qn13 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191451.5126 cbo98uctuc2n6gt0njiea8qn13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1754';
20240902@191451.5163 cbo98uctuc2n6gt0njiea8qn13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1754';
20240902@191451.5205 cbo98uctuc2n6gt0njiea8qn13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1754';
20240902@191451.5232 cbo98uctuc2n6gt0njiea8qn13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1754';
20240902@191451.5920 obg1pig3lsnga1f8nu3js3igb4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191451.5932 obg1pig3lsnga1f8nu3js3igb4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191451.5991 obg1pig3lsnga1f8nu3js3igb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1755';
20240902@191451.6049 obg1pig3lsnga1f8nu3js3igb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1755';
20240902@191451.6101 obg1pig3lsnga1f8nu3js3igb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1755';
20240902@191451.6129 obg1pig3lsnga1f8nu3js3igb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1755';
20240902@191451.6179 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.6183 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191451.6254 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.6258 obg1pig3lsnga1f8nu3js3igb4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191451.6304 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240902@191451.6475 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405639 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240902@191451.6811 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.6815 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191451.6851 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.6855 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191451.6888 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.6892 obg1pig3lsnga1f8nu3js3igb4 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')
20240902@191451.6925 obg1pig3lsnga1f8nu3js3igb4 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
20240902@191451.6982 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.6986 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191451.7020 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.7024 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191451.7058 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.7063 obg1pig3lsnga1f8nu3js3igb4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191451.7109 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.7113 obg1pig3lsnga1f8nu3js3igb4 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191451.7166 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.7169 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from td where ndoc = 39
20240902@191451.7184 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191451.7201 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.7220 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191451.7242 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.7259 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191451.7292 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.7310 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191451.7326 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191451.7401 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191451.7418 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.7435 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191451.7452 obg1pig3lsnga1f8nu3js3igb4 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d601925166d6009bb2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191451.7639 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.7659 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191451.7697 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191451.7713 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191451.7728 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191451.7742 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191451.7758 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191451.7773 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191451.7788 obg1pig3lsnga1f8nu3js3igb4 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d601925166d6009bb2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191451.8047 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191451.8217 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.8236 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191451.8263 obg1pig3lsnga1f8nu3js3igb4 Query : select 'normal' from dummy
20240902@191451.8281 obg1pig3lsnga1f8nu3js3igb4 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d601925166d6009bb2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',539,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191451.8597 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.8601 obg1pig3lsnga1f8nu3js3igb4 Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240902@191451.8627 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240902@191451.8794 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.8814 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.8946 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.8964 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.8973 obg1pig3lsnga1f8nu3js3igb4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191451.8986 obg1pig3lsnga1f8nu3js3igb4 Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20240902@191451.9002 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.9019 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191451.9032 obg1pig3lsnga1f8nu3js3igb4 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d603992566d6009bdb','aut66d601925166d6009bb2' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191451.9037 obg1pig3lsnga1f8nu3js3igb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191451.9056 obg1pig3lsnga1f8nu3js3igb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191451.9090 obg1pig3lsnga1f8nu3js3igb4 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d603992566d6009bdb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66d601925166d6009bb2' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191451.9370 obg1pig3lsnga1f8nu3js3igb4 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d601925166d6009bb2','2405639','wait',39,'adm09112754980.682000002')
20240902@191451.9441 obg1pig3lsnga1f8nu3js3igb4 Query : use flama_phc
20240902@191451.9445 obg1pig3lsnga1f8nu3js3igb4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191451.9475 obg1pig3lsnga1f8nu3js3igb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1755';
20240902@191451.9505 obg1pig3lsnga1f8nu3js3igb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1755';
20240902@191451.9543 obg1pig3lsnga1f8nu3js3igb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1755';
20240902@191451.9567 obg1pig3lsnga1f8nu3js3igb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1755';
20240902@191452.5800 850s3r4m11d04cph7j599fd2e5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191452.7000 850s3r4m11d04cph7j599fd2e5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191452.1830 850s3r4m11d04cph7j599fd2e5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1756';
20240902@191452.2360 850s3r4m11d04cph7j599fd2e5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1756';
20240902@191452.2860 850s3r4m11d04cph7j599fd2e5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1756';
20240902@191452.3100 850s3r4m11d04cph7j599fd2e5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1756';
20240902@191452.3550 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.3590 850s3r4m11d04cph7j599fd2e5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191452.4220 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.4250 850s3r4m11d04cph7j599fd2e5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191452.4690 850s3r4m11d04cph7j599fd2e5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20240902@191452.6490 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405642 and bi.ref ='324.2231.00.2' and bi.lordem =1
20240902@191452.9760 850s3r4m11d04cph7j599fd2e5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20240902@191452.9990 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405642 and bi.ref ='324.2231.00.2' and bi.lordem =1
20240902@191452.1020 850s3r4m11d04cph7j599fd2e5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20240902@191452.1040 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405642 and bi.ref ='324.2231.00.2' and bi.lordem =1
20240902@191452.1057 850s3r4m11d04cph7j599fd2e5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.2'
20240902@191452.1078 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405642 and bi.ref ='324.2231.00.2' and bi.lordem =1
20240902@191452.1097 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1100 850s3r4m11d04cph7j599fd2e5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191452.1137 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1141 850s3r4m11d04cph7j599fd2e5 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191452.1173 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1176 850s3r4m11d04cph7j599fd2e5 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')
20240902@191452.1205 850s3r4m11d04cph7j599fd2e5 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
20240902@191452.1260 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1264 850s3r4m11d04cph7j599fd2e5 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191452.1296 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1299 850s3r4m11d04cph7j599fd2e5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191452.1335 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1339 850s3r4m11d04cph7j599fd2e5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191452.1379 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1382 850s3r4m11d04cph7j599fd2e5 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191452.1431 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.1434 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from td where ndoc = 39
20240902@191452.1448 850s3r4m11d04cph7j599fd2e5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191452.1463 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.1482 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191452.1506 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.1524 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191452.1556 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.1573 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191452.1587 850s3r4m11d04cph7j599fd2e5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191452.1661 850s3r4m11d04cph7j599fd2e5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191452.1676 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.1693 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191452.1709 850s3r4m11d04cph7j599fd2e5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d606314966d6009c26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191452.1883 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.1900 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191452.1940 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191452.1954 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191452.1966 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191452.1980 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191452.1992 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191452.2005 850s3r4m11d04cph7j599fd2e5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191452.2018 850s3r4m11d04cph7j599fd2e5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d606314966d6009c26',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191452.2302 850s3r4m11d04cph7j599fd2e5 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191452.2326 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.2345 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191452.2368 850s3r4m11d04cph7j599fd2e5 Query : select 'normal' from dummy
20240902@191452.2385 850s3r4m11d04cph7j599fd2e5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d606314966d6009c26',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',540,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191452.2703 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.2706 850s3r4m11d04cph7j599fd2e5 Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20240902@191452.2732 850s3r4m11d04cph7j599fd2e5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2231.00.2'
20240902@191452.2879 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.2897 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191452.2926 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.2941 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.2950 850s3r4m11d04cph7j599fd2e5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191452.2964 850s3r4m11d04cph7j599fd2e5 Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2300389200a'
20240902@191452.2974 850s3r4m11d04cph7j599fd2e5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.2989 850s3r4m11d04cph7j599fd2e5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.3002 850s3r4m11d04cph7j599fd2e5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608711466d6009c48','aut66d606314966d6009c26' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191452.3020 850s3r4m11d04cph7j599fd2e5 Query : use flama_phc
20240902@191452.3023 850s3r4m11d04cph7j599fd2e5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -116
20240902@191452.3100 850s3r4m11d04cph7j599fd2e5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1756';
20240902@191452.3130 850s3r4m11d04cph7j599fd2e5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1756';
20240902@191452.3659 0bfiv6cjps3lbtssppkipjaau1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191452.3671 0bfiv6cjps3lbtssppkipjaau1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191452.3728 0bfiv6cjps3lbtssppkipjaau1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1757';
20240902@191452.3795 0bfiv6cjps3lbtssppkipjaau1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1757';
20240902@191452.3845 0bfiv6cjps3lbtssppkipjaau1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1757';
20240902@191452.3872 0bfiv6cjps3lbtssppkipjaau1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1757';
20240902@191452.3927 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.3930 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191452.3997 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4000 0bfiv6cjps3lbtssppkipjaau1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191452.4043 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20240902@191452.4212 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405643 and bi.ref ='324.4988.00.1' and bi.lordem =1
20240902@191452.4550 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20240902@191452.4573 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405643 and bi.ref ='324.4988.00.1' and bi.lordem =1
20240902@191452.4592 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20240902@191452.4613 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405643 and bi.ref ='324.4988.00.1' and bi.lordem =1
20240902@191452.4630 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4633 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191452.4670 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4673 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191452.4703 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4706 0bfiv6cjps3lbtssppkipjaau1 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')
20240902@191452.4736 0bfiv6cjps3lbtssppkipjaau1 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
20240902@191452.4774 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4779 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191452.4813 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4816 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191452.4848 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4852 0bfiv6cjps3lbtssppkipjaau1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191452.4894 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4899 0bfiv6cjps3lbtssppkipjaau1 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191452.4948 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.4951 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from td where ndoc = 39
20240902@191452.4963 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191452.4978 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.4995 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191452.5017 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.5034 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191452.5068 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.5083 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191452.5097 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191452.5169 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191452.5186 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.5206 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191452.5222 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d602998966d6009c7c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191452.5405 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.5424 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191452.5459 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191452.5474 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191452.5487 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191452.5502 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191452.5524 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191452.5537 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191452.5549 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d602998966d6009c7c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191452.5808 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191452.5831 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.5849 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191452.5875 0bfiv6cjps3lbtssppkipjaau1 Query : select 'normal' from dummy
20240902@191452.5895 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d602998966d6009c7c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',540,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191452.6263 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.6267 0bfiv6cjps3lbtssppkipjaau1 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240902@191452.6292 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20240902@191452.6448 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.6466 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191452.6494 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.6510 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.6519 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191452.6533 0bfiv6cjps3lbtssppkipjaau1 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240902@191452.6548 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.6563 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.6576 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602083766d6009c9f','aut66d602998966d6009c7c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191452.6581 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.6597 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191452.6629 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d602083766d6009c9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut66d602998966d6009c7c' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191452.6917 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.6920 0bfiv6cjps3lbtssppkipjaau1 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240902@191452.6942 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20240902@191452.6957 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.7244 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191452.8125 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.8146 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.8157 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191452.8173 0bfiv6cjps3lbtssppkipjaau1 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240902@191452.8189 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.8205 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.8336 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d609347266d6009cc7','aut66d602998966d6009c7c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191452.8372 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.8395 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191452.8428 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d609347266d6009cc7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d602998966d6009c7c' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191452.8704 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.8707 0bfiv6cjps3lbtssppkipjaau1 Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240902@191452.8731 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20240902@191452.8749 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.8767 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191452.8795 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.8813 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.8823 0bfiv6cjps3lbtssppkipjaau1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191452.8836 0bfiv6cjps3lbtssppkipjaau1 Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240902@191452.8849 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.8865 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191452.8878 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602276666d6009cd8','aut66d602998966d6009c7c' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191452.8883 0bfiv6cjps3lbtssppkipjaau1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191452.8899 0bfiv6cjps3lbtssppkipjaau1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191452.8931 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d602276666d6009cd8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',64.000 ,'aut66d602998966d6009c7c' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240902@191452.9205 0bfiv6cjps3lbtssppkipjaau1 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d602998966d6009c7c','2405643','wait',39,'adm09112754980.682000002')
20240902@191452.9289 0bfiv6cjps3lbtssppkipjaau1 Query : use flama_phc
20240902@191452.9293 0bfiv6cjps3lbtssppkipjaau1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191452.9324 0bfiv6cjps3lbtssppkipjaau1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1757';
20240902@191452.9360 0bfiv6cjps3lbtssppkipjaau1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1757';
20240902@191452.9400 0bfiv6cjps3lbtssppkipjaau1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1757';
20240902@191452.9428 0bfiv6cjps3lbtssppkipjaau1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1757';
20240902@191452.9911 a59iaqkd44jodonm0m7karhpju Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191452.9923 a59iaqkd44jodonm0m7karhpju Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191452.9980 a59iaqkd44jodonm0m7karhpju Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1758';
20240902@191453.3900 a59iaqkd44jodonm0m7karhpju Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1758';
20240902@191453.9100 a59iaqkd44jodonm0m7karhpju Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1758';
20240902@191453.1210 a59iaqkd44jodonm0m7karhpju Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1758';
20240902@191453.1730 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.1770 a59iaqkd44jodonm0m7karhpju Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191453.2470 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.2500 a59iaqkd44jodonm0m7karhpju Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240902@191453.3460 a59iaqkd44jodonm0m7karhpju Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240902@191453.5180 a59iaqkd44jodonm0m7karhpju Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405644 and bi.ref ='324.5500.00.1' and bi.lordem =1
20240902@191453.8540 a59iaqkd44jodonm0m7karhpju Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240902@191453.8770 a59iaqkd44jodonm0m7karhpju Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405644 and bi.ref ='324.5500.00.1' and bi.lordem =1
20240902@191453.8990 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.9020 a59iaqkd44jodonm0m7karhpju Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191453.9380 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.9420 a59iaqkd44jodonm0m7karhpju Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191453.9760 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.9800 a59iaqkd44jodonm0m7karhpju 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')
20240902@191453.1011 a59iaqkd44jodonm0m7karhpju 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
20240902@191453.1059 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.1063 a59iaqkd44jodonm0m7karhpju Query : select top 1 ~inactivo valor from cl where no = '101597' and estab = 0 order by inactivo desc
20240902@191453.1194 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.1197 a59iaqkd44jodonm0m7karhpju Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191453.1231 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.1234 a59iaqkd44jodonm0m7karhpju Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191453.1279 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.1282 a59iaqkd44jodonm0m7karhpju Query : select szadrsstamp valor from szadrs where szadrsdesc='101597 - auchan retail portugal , sa'
20240902@191453.1334 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.1337 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from td where ndoc = 39
20240902@191453.1351 a59iaqkd44jodonm0m7karhpju Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191453.1374 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.1393 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191453.1414 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.1430 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191453.1464 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.1482 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191453.1497 a59iaqkd44jodonm0m7karhpju Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191453.1581 a59iaqkd44jodonm0m7karhpju Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191453.1595 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.1612 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191453.1630 a59iaqkd44jodonm0m7karhpju Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d604070566d6009d24' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191453.1819 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.1838 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191453.1879 a59iaqkd44jodonm0m7karhpju Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191453.1895 a59iaqkd44jodonm0m7karhpju Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191453.1911 a59iaqkd44jodonm0m7karhpju Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191453.1926 a59iaqkd44jodonm0m7karhpju Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191453.1941 a59iaqkd44jodonm0m7karhpju Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191453.1954 a59iaqkd44jodonm0m7karhpju Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191453.1968 a59iaqkd44jodonm0m7karhpju Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d604070566d6009d24',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191453.2227 a59iaqkd44jodonm0m7karhpju Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191453.2248 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.2268 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191453.2293 a59iaqkd44jodonm0m7karhpju Query : select 'normal' from dummy
20240902@191453.2313 a59iaqkd44jodonm0m7karhpju Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d604070566d6009d24',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',541,101597,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191453.2623 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.2626 a59iaqkd44jodonm0m7karhpju Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20240902@191453.2653 a59iaqkd44jodonm0m7karhpju Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20240902@191453.2817 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.2837 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191453.2870 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.2888 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191453.2898 a59iaqkd44jodonm0m7karhpju Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191453.2913 a59iaqkd44jodonm0m7karhpju Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20240902@191453.2929 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.2946 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191453.2961 a59iaqkd44jodonm0m7karhpju Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d605043366d6009d47','aut66d604070566d6009d24' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191453.2965 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.2982 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191453.3017 a59iaqkd44jodonm0m7karhpju Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d605043366d6009d47',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d604070566d6009d24' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191453.4154 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.4392 a59iaqkd44jodonm0m7karhpju Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20240902@191453.4418 a59iaqkd44jodonm0m7karhpju Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20240902@191453.4433 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.4450 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191453.4477 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.4493 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191453.4502 a59iaqkd44jodonm0m7karhpju Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191453.4515 a59iaqkd44jodonm0m7karhpju Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20240902@191453.4550 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.4566 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191453.4581 a59iaqkd44jodonm0m7karhpju Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600535666d6009d6f','aut66d604070566d6009d24' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191453.4588 a59iaqkd44jodonm0m7karhpju Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.4606 a59iaqkd44jodonm0m7karhpju Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191453.4641 a59iaqkd44jodonm0m7karhpju Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d600535666d6009d6f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',22.000 ,'aut66d604070566d6009d24' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191453.4918 a59iaqkd44jodonm0m7karhpju Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d604070566d6009d24','2405644','wait',39,'adm09112754980.682000002')
20240902@191453.4989 a59iaqkd44jodonm0m7karhpju Query : use flama_phc
20240902@191453.4992 a59iaqkd44jodonm0m7karhpju Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191453.5022 a59iaqkd44jodonm0m7karhpju Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1758';
20240902@191453.5051 a59iaqkd44jodonm0m7karhpju Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1758';
20240902@191453.5088 a59iaqkd44jodonm0m7karhpju Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1758';
20240902@191453.5113 a59iaqkd44jodonm0m7karhpju Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1758';
20240902@191453.5694 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191453.5709 mkibmv6fr5b20l4jjbjreg6r66 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191453.5759 mkibmv6fr5b20l4jjbjreg6r66 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1759';
20240902@191453.5813 mkibmv6fr5b20l4jjbjreg6r66 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1759';
20240902@191453.5869 mkibmv6fr5b20l4jjbjreg6r66 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1759';
20240902@191453.5893 mkibmv6fr5b20l4jjbjreg6r66 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1759';
20240902@191453.5938 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.5941 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191453.6003 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6006 mkibmv6fr5b20l4jjbjreg6r66 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191453.6047 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4910.00.1'
20240902@191453.6206 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405655 and bi.ref ='324.4910.00.1' and bi.lordem =1
20240902@191453.6534 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4910.00.1'
20240902@191453.6557 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405655 and bi.ref ='324.4910.00.1' and bi.lordem =1
20240902@191453.6575 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6578 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191453.6612 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6615 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191453.6646 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6649 mkibmv6fr5b20l4jjbjreg6r66 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')
20240902@191453.6681 mkibmv6fr5b20l4jjbjreg6r66 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
20240902@191453.6717 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6721 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191453.6750 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6753 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191453.6783 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6786 mkibmv6fr5b20l4jjbjreg6r66 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191453.6825 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6828 mkibmv6fr5b20l4jjbjreg6r66 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191453.6871 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.6874 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from td where ndoc = 39
20240902@191453.6886 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191453.6901 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.6930 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191453.6951 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.6967 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191453.6998 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.7014 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191453.7028 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191453.7098 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191453.7112 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.7127 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191453.7147 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d606650666d6009dab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191453.7338 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.7355 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191453.7389 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191453.7402 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191453.7415 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191453.7426 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191453.7438 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191453.7450 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191453.7461 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d606650666d6009dab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191453.7743 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191453.7766 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.7783 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191453.7807 mkibmv6fr5b20l4jjbjreg6r66 Query : select 'normal' from dummy
20240902@191453.7822 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d606650666d6009dab',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',542,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191453.8131 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191453.8135 mkibmv6fr5b20l4jjbjreg6r66 Query : select st.usalote valor from st where st.ref = '324.4910.00.1'
20240902@191453.8158 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4910.00.1'
20240902@191453.8306 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.8322 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191453.8346 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.8361 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191453.8419 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191453.8531 mkibmv6fr5b20l4jjbjreg6r66 Query : select sestamp valor from se where ref ='324.4910.00.1' and lote = 'r2100754100a'
20240902@191453.8545 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.8563 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191453.8575 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608762166d6009dd0','aut66d606650666d6009dab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191453.8580 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191453.8596 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191453.8628 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d608762166d6009dd0',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',54.000 ,'aut66d606650666d6009dab' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191454.2200 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191454.2600 mkibmv6fr5b20l4jjbjreg6r66 Query : select st.usalote valor from st where st.ref = '324.4910.00.1'
20240902@191454.4900 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4910.00.1'
20240902@191454.6600 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.8400 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.1110 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.1260 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.1360 mkibmv6fr5b20l4jjbjreg6r66 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191454.1490 mkibmv6fr5b20l4jjbjreg6r66 Query : select sestamp valor from se where ref ='324.4910.00.1' and lote = 'r2100754100a'
20240902@191454.1630 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.1790 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.1930 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600672966d6009e03','aut66d606650666d6009dab' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191454.1980 mkibmv6fr5b20l4jjbjreg6r66 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.2150 mkibmv6fr5b20l4jjbjreg6r66 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.2460 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d600672966d6009e03',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',144.000 ,'aut66d606650666d6009dab' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191454.5070 mkibmv6fr5b20l4jjbjreg6r66 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d606650666d6009dab','2405655','wait',39,'adm09112754980.682000002')
20240902@191454.5780 mkibmv6fr5b20l4jjbjreg6r66 Query : use flama_phc
20240902@191454.5810 mkibmv6fr5b20l4jjbjreg6r66 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191454.6140 mkibmv6fr5b20l4jjbjreg6r66 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1759';
20240902@191454.6460 mkibmv6fr5b20l4jjbjreg6r66 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1759';
20240902@191454.6840 mkibmv6fr5b20l4jjbjreg6r66 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1759';
20240902@191454.7070 mkibmv6fr5b20l4jjbjreg6r66 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1759';
20240902@191454.1228 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191454.1239 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191454.1295 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1760';
20240902@191454.1349 2nh7vcg5ablcfpq64rd8fgkfb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1760';
20240902@191454.1396 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1760';
20240902@191454.1422 2nh7vcg5ablcfpq64rd8fgkfb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1760';
20240902@191454.1468 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.1471 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191454.1538 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.1542 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191454.1585 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20240902@191454.1771 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405656 and bi.ref ='324.938.00.01' and bi.lordem =1
20240902@191454.2099 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20240902@191454.2122 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405656 and bi.ref ='324.938.00.01' and bi.lordem =1
20240902@191454.2142 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20240902@191454.2162 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405656 and bi.ref ='324.938.00.01' and bi.lordem =1
20240902@191454.2179 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2182 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191454.2215 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2218 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191454.2251 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2254 2nh7vcg5ablcfpq64rd8fgkfb8 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')
20240902@191454.2282 2nh7vcg5ablcfpq64rd8fgkfb8 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
20240902@191454.2318 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2321 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191454.2352 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2355 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191454.2384 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2387 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191454.2426 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2428 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191454.2471 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.2474 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from td where ndoc = 39
20240902@191454.2485 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191454.2518 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.2534 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191454.2554 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.2571 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191454.2597 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.2611 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191454.2623 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191454.2693 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191454.2707 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.2723 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191454.2739 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d601365766d6009e40' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191454.2924 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.2941 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191454.2974 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191454.2985 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191454.2997 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191454.3009 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191454.3021 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191454.3032 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191454.3043 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d601365766d6009e40',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191454.3315 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191454.3337 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.3355 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191454.3377 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 'normal' from dummy
20240902@191454.3394 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d601365766d6009e40',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',543,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191454.3685 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.3689 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20240902@191454.3711 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.938.00.01'
20240902@191454.3902 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.3921 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.3946 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.3960 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.3968 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191454.3980 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20240902@191454.3993 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4007 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.4018 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607952066d6009e61','aut66d601365766d6009e40' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191454.4022 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4036 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.4065 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607952066d6009e61',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d601365766d6009e40' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191454.4387 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.4390 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20240902@191454.4409 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.938.00.01'
20240902@191454.4423 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4438 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.4463 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4477 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.4485 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191454.4498 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20240902@191454.4510 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4524 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.4535 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600788366d6009e6e','aut66d601365766d6009e40' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191454.4539 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4555 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.4583 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d600788366d6009e6e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut66d601365766d6009e40' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191454.4842 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.4845 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20240902@191454.4865 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.938.00.01'
20240902@191454.4879 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4894 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.4920 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4940 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.4948 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191454.4960 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20240902@191454.4974 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.4988 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191454.5000 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607151666d6009e79','aut66d601365766d6009e40' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191454.5004 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.5019 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191454.5046 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607151666d6009e79',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66d601365766d6009e40' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240902@191454.5306 2nh7vcg5ablcfpq64rd8fgkfb8 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d601365766d6009e40','2405656','wait',39,'adm09112754980.682000002')
20240902@191454.5374 2nh7vcg5ablcfpq64rd8fgkfb8 Query : use flama_phc
20240902@191454.5377 2nh7vcg5ablcfpq64rd8fgkfb8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191454.5406 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1760';
20240902@191454.5435 2nh7vcg5ablcfpq64rd8fgkfb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1760';
20240902@191454.5486 2nh7vcg5ablcfpq64rd8fgkfb8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1760';
20240902@191454.5509 2nh7vcg5ablcfpq64rd8fgkfb8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1760';
20240902@191454.6186 ifgljnlphod911vd84h32ct89l Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191454.6197 ifgljnlphod911vd84h32ct89l Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191454.6249 ifgljnlphod911vd84h32ct89l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1761';
20240902@191454.7452 ifgljnlphod911vd84h32ct89l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1761';
20240902@191454.7510 ifgljnlphod911vd84h32ct89l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1761';
20240902@191454.7537 ifgljnlphod911vd84h32ct89l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1761';
20240902@191454.7582 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.7585 ifgljnlphod911vd84h32ct89l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191454.7669 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.7672 ifgljnlphod911vd84h32ct89l Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191454.7717 ifgljnlphod911vd84h32ct89l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240902@191454.7879 ifgljnlphod911vd84h32ct89l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405657 and bi.ref ='324.945.00.01' and bi.lordem =1
20240902@191454.8203 ifgljnlphod911vd84h32ct89l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240902@191454.8223 ifgljnlphod911vd84h32ct89l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405657 and bi.ref ='324.945.00.01' and bi.lordem =1
20240902@191454.8240 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8243 ifgljnlphod911vd84h32ct89l Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191454.8275 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8278 ifgljnlphod911vd84h32ct89l Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191454.8306 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8309 ifgljnlphod911vd84h32ct89l 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')
20240902@191454.8336 ifgljnlphod911vd84h32ct89l 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
20240902@191454.8369 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8371 ifgljnlphod911vd84h32ct89l Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191454.8401 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8404 ifgljnlphod911vd84h32ct89l Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191454.8432 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8435 ifgljnlphod911vd84h32ct89l Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191454.8494 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8497 ifgljnlphod911vd84h32ct89l Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191454.8674 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.8677 ifgljnlphod911vd84h32ct89l Query : select 1 valor from td where ndoc = 39
20240902@191454.8689 ifgljnlphod911vd84h32ct89l Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191454.8703 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.8720 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191454.8738 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.8753 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191454.8780 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.8793 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191454.8806 ifgljnlphod911vd84h32ct89l Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191454.8874 ifgljnlphod911vd84h32ct89l Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191454.8887 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.8901 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191454.8917 ifgljnlphod911vd84h32ct89l Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d605571566d6009ed6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191454.9099 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.9117 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191454.9149 ifgljnlphod911vd84h32ct89l Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191454.9161 ifgljnlphod911vd84h32ct89l Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191454.9172 ifgljnlphod911vd84h32ct89l Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191454.9183 ifgljnlphod911vd84h32ct89l Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191454.9194 ifgljnlphod911vd84h32ct89l Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191454.9211 ifgljnlphod911vd84h32ct89l Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191454.9222 ifgljnlphod911vd84h32ct89l Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d605571566d6009ed6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191454.9577 ifgljnlphod911vd84h32ct89l Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191454.9600 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191454.9620 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191454.9650 ifgljnlphod911vd84h32ct89l Query : select 'normal' from dummy
20240902@191454.9667 ifgljnlphod911vd84h32ct89l Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d605571566d6009ed6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',544,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191454.9973 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191454.9977 ifgljnlphod911vd84h32ct89l Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240902@191455.5000 ifgljnlphod911vd84h32ct89l Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20240902@191455.1620 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.1790 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.2060 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.2230 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.2320 ifgljnlphod911vd84h32ct89l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191455.2450 ifgljnlphod911vd84h32ct89l Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240902@191455.2620 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.2770 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.2890 ifgljnlphod911vd84h32ct89l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d609008966d6009f06','aut66d605571566d6009ed6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191455.2930 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.3080 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.3780 ifgljnlphod911vd84h32ct89l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d609008966d6009f06',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',52.000 ,'aut66d605571566d6009ed6' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191455.6430 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191455.6460 ifgljnlphod911vd84h32ct89l Query : select st.usalote valor from st where st.ref = '324.945.00.01'
20240902@191455.6670 ifgljnlphod911vd84h32ct89l Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.945.00.01'
20240902@191455.6820 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.6980 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.7240 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.7390 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.7480 ifgljnlphod911vd84h32ct89l Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191455.7610 ifgljnlphod911vd84h32ct89l Query : select sestamp valor from se where ref ='324.945.00.01' and lote = 'r2200799100a'
20240902@191455.7740 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.7910 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.8040 ifgljnlphod911vd84h32ct89l Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d601176766d6009f12','aut66d605571566d6009ed6' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191455.8080 ifgljnlphod911vd84h32ct89l Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.8230 ifgljnlphod911vd84h32ct89l Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.8530 ifgljnlphod911vd84h32ct89l Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d601176766d6009f12',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut66d605571566d6009ed6' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191455.1159 ifgljnlphod911vd84h32ct89l Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d605571566d6009ed6','2405657','wait',39,'adm09112754980.682000002')
20240902@191455.1228 ifgljnlphod911vd84h32ct89l Query : use flama_phc
20240902@191455.1231 ifgljnlphod911vd84h32ct89l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191455.1261 ifgljnlphod911vd84h32ct89l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1761';
20240902@191455.1290 ifgljnlphod911vd84h32ct89l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1761';
20240902@191455.1329 ifgljnlphod911vd84h32ct89l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1761';
20240902@191455.1353 ifgljnlphod911vd84h32ct89l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1761';
20240902@191455.1846 45kjd44t77le3l80j85q51p89k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191455.1857 45kjd44t77le3l80j85q51p89k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191455.1910 45kjd44t77le3l80j85q51p89k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1762';
20240902@191455.1965 45kjd44t77le3l80j85q51p89k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1762';
20240902@191455.2034 45kjd44t77le3l80j85q51p89k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1762';
20240902@191455.2059 45kjd44t77le3l80j85q51p89k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1762';
20240902@191455.2103 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2106 45kjd44t77le3l80j85q51p89k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191455.2170 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2173 45kjd44t77le3l80j85q51p89k Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191455.2222 45kjd44t77le3l80j85q51p89k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2041.00.1'
20240902@191455.2393 45kjd44t77le3l80j85q51p89k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405658 and bi.ref ='324.2041.00.1' and bi.lordem =1
20240902@191455.2719 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2722 45kjd44t77le3l80j85q51p89k Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191455.2755 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2758 45kjd44t77le3l80j85q51p89k Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191455.2786 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2790 45kjd44t77le3l80j85q51p89k 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')
20240902@191455.2817 45kjd44t77le3l80j85q51p89k 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
20240902@191455.2851 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2853 45kjd44t77le3l80j85q51p89k Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191455.2883 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2886 45kjd44t77le3l80j85q51p89k Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191455.2915 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2919 45kjd44t77le3l80j85q51p89k Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191455.2957 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.2959 45kjd44t77le3l80j85q51p89k Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191455.3022 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.3025 45kjd44t77le3l80j85q51p89k Query : select 1 valor from td where ndoc = 39
20240902@191455.3039 45kjd44t77le3l80j85q51p89k Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191455.3053 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.3069 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191455.3087 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.3101 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191455.3128 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.3142 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191455.3154 45kjd44t77le3l80j85q51p89k Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191455.3228 45kjd44t77le3l80j85q51p89k Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191455.3241 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.3256 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191455.3271 45kjd44t77le3l80j85q51p89k Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d604918666d6009f4d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191455.3472 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.3493 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191455.3528 45kjd44t77le3l80j85q51p89k Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191455.3543 45kjd44t77le3l80j85q51p89k Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191455.3555 45kjd44t77le3l80j85q51p89k Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191455.3567 45kjd44t77le3l80j85q51p89k Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191455.3588 45kjd44t77le3l80j85q51p89k Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191455.3601 45kjd44t77le3l80j85q51p89k Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191455.3613 45kjd44t77le3l80j85q51p89k Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d604918666d6009f4d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191455.3888 45kjd44t77le3l80j85q51p89k Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191455.3910 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.3928 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191455.3950 45kjd44t77le3l80j85q51p89k Query : select 'normal' from dummy
20240902@191455.3965 45kjd44t77le3l80j85q51p89k Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d604918666d6009f4d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',545,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191455.4591 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.4633 45kjd44t77le3l80j85q51p89k Query : select st.usalote valor from st where st.ref = '324.2041.00.1'
20240902@191455.5238 45kjd44t77le3l80j85q51p89k Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2041.00.1'
20240902@191455.5527 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.5545 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.5573 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.5587 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.5613 45kjd44t77le3l80j85q51p89k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191455.5625 45kjd44t77le3l80j85q51p89k Query : select sestamp valor from se where ref ='324.2041.00.1' and lote = 'r2100232100a'
20240902@191455.5639 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.5653 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.5665 45kjd44t77le3l80j85q51p89k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608349866d6009f89','aut66d604918666d6009f4d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191455.5669 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.5683 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.5710 45kjd44t77le3l80j85q51p89k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d608349866d6009f89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',78.000 ,'aut66d604918666d6009f4d' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191455.5983 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.5998 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.6024 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.6039 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.6050 45kjd44t77le3l80j85q51p89k Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191455.6063 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.6078 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191455.6089 45kjd44t77le3l80j85q51p89k Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602003666d6009f94','aut66d604918666d6009f4d' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191455.6093 45kjd44t77le3l80j85q51p89k Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.6107 45kjd44t77le3l80j85q51p89k Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191455.6134 45kjd44t77le3l80j85q51p89k Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d602003666d6009f94',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d604918666d6009f4d' ,0,0 ,2,23.00,20000,?,?,?)
20240902@191455.6391 45kjd44t77le3l80j85q51p89k Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d604918666d6009f4d','2405658','wait',39,'adm09112754980.682000002')
20240902@191455.6456 45kjd44t77le3l80j85q51p89k Query : use flama_phc
20240902@191455.6459 45kjd44t77le3l80j85q51p89k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191455.6488 45kjd44t77le3l80j85q51p89k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1762';
20240902@191455.6518 45kjd44t77le3l80j85q51p89k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1762';
20240902@191455.6709 45kjd44t77le3l80j85q51p89k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1762';
20240902@191455.6739 45kjd44t77le3l80j85q51p89k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1762';
20240902@191455.7213 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191455.7224 iu8nbb33k38dr1vrcmj2dv7poj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191455.7276 iu8nbb33k38dr1vrcmj2dv7poj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1763';
20240902@191455.7327 iu8nbb33k38dr1vrcmj2dv7poj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1763';
20240902@191455.7373 iu8nbb33k38dr1vrcmj2dv7poj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1763';
20240902@191455.7396 iu8nbb33k38dr1vrcmj2dv7poj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1763';
20240902@191455.7440 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.7444 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191455.7503 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.7506 iu8nbb33k38dr1vrcmj2dv7poj Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191455.7724 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240902@191455.7895 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405659 and bi.ref ='324.4751.00.1' and bi.lordem =1
20240902@191455.8225 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240902@191455.8248 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405659 and bi.ref ='324.4751.00.1' and bi.lordem =1
20240902@191455.8264 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8267 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191455.8298 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8301 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191455.8328 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8331 iu8nbb33k38dr1vrcmj2dv7poj 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')
20240902@191455.8358 iu8nbb33k38dr1vrcmj2dv7poj 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
20240902@191455.8392 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8395 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191455.8424 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8427 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191455.8455 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8458 iu8nbb33k38dr1vrcmj2dv7poj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191455.8495 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8498 iu8nbb33k38dr1vrcmj2dv7poj Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191455.8540 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191455.8543 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from td where ndoc = 39
20240902@191455.8554 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191455.8768 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.8914 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191455.8939 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.8957 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191455.8991 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.9006 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191455.9021 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191455.9091 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191455.9111 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.9126 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191455.9141 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d602973766d6009fdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191455.9325 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.9342 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191455.9376 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191455.9390 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191455.9403 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191455.9417 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191455.9429 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191455.9441 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191455.9455 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d602973766d6009fdc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191455.9719 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191455.9916 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191455.9934 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191455.9957 iu8nbb33k38dr1vrcmj2dv7poj Query : select 'normal' from dummy
20240902@191455.9973 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d602973766d6009fdc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',546,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191456.9590 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191456.1324 iu8nbb33k38dr1vrcmj2dv7poj Query : select st.usalote valor from st where st.ref = '324.4751.00.1'
20240902@191456.1360 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4751.00.1'
20240902@191456.1517 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.1534 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.1560 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.1575 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.1583 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191456.1596 iu8nbb33k38dr1vrcmj2dv7poj Query : select sestamp valor from se where ref ='324.4751.00.1' and lote = 'r2400049200a'
20240902@191456.1609 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.1623 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.1635 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d606111666d600a027','aut66d602973766d6009fdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191456.1639 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.1653 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.1682 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d606111666d600a027',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut66d602973766d6009fdc' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191456.2154 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191456.2157 iu8nbb33k38dr1vrcmj2dv7poj Query : select st.usalote valor from st where st.ref = '324.4751.00.1'
20240902@191456.2177 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4751.00.1'
20240902@191456.2190 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.2206 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.2230 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.2244 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.2253 iu8nbb33k38dr1vrcmj2dv7poj Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191456.2265 iu8nbb33k38dr1vrcmj2dv7poj Query : select sestamp valor from se where ref ='324.4751.00.1' and lote = 'r2400049200a'
20240902@191456.2278 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.2293 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.2304 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608205566d600a037','aut66d602973766d6009fdc' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191456.2308 iu8nbb33k38dr1vrcmj2dv7poj Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.2322 iu8nbb33k38dr1vrcmj2dv7poj Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.2348 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d608205566d600a037',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',32.000 ,'aut66d602973766d6009fdc' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191456.2618 iu8nbb33k38dr1vrcmj2dv7poj Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d602973766d6009fdc','2405659','wait',39,'adm09112754980.682000002')
20240902@191456.2688 iu8nbb33k38dr1vrcmj2dv7poj Query : use flama_phc
20240902@191456.2691 iu8nbb33k38dr1vrcmj2dv7poj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191456.2719 iu8nbb33k38dr1vrcmj2dv7poj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1763';
20240902@191456.2747 iu8nbb33k38dr1vrcmj2dv7poj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1763';
20240902@191456.2785 iu8nbb33k38dr1vrcmj2dv7poj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1763';
20240902@191456.2810 iu8nbb33k38dr1vrcmj2dv7poj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1763';
20240902@191456.3549 hicurutkd0c499flj71am3kii5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191456.3560 hicurutkd0c499flj71am3kii5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191456.3615 hicurutkd0c499flj71am3kii5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1764';
20240902@191456.3695 hicurutkd0c499flj71am3kii5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1764';
20240902@191456.3750 hicurutkd0c499flj71am3kii5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1764';
20240902@191456.3775 hicurutkd0c499flj71am3kii5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1764';
20240902@191456.3820 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.3823 hicurutkd0c499flj71am3kii5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191456.3884 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.3887 hicurutkd0c499flj71am3kii5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191456.3929 hicurutkd0c499flj71am3kii5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240902@191456.4157 hicurutkd0c499flj71am3kii5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405660 and bi.ref ='324.4980.00.1' and bi.lordem =1
20240902@191456.4501 hicurutkd0c499flj71am3kii5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240902@191456.4520 hicurutkd0c499flj71am3kii5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405660 and bi.ref ='324.4980.00.1' and bi.lordem =1
20240902@191456.4536 hicurutkd0c499flj71am3kii5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240902@191456.4554 hicurutkd0c499flj71am3kii5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405660 and bi.ref ='324.4980.00.1' and bi.lordem =1
20240902@191456.4570 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4574 hicurutkd0c499flj71am3kii5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191456.4605 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4608 hicurutkd0c499flj71am3kii5 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191456.4636 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4641 hicurutkd0c499flj71am3kii5 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')
20240902@191456.4668 hicurutkd0c499flj71am3kii5 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
20240902@191456.4702 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4705 hicurutkd0c499flj71am3kii5 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191456.4733 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4736 hicurutkd0c499flj71am3kii5 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191456.4765 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4768 hicurutkd0c499flj71am3kii5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191456.4832 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4835 hicurutkd0c499flj71am3kii5 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191456.4877 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.4880 hicurutkd0c499flj71am3kii5 Query : select 1 valor from td where ndoc = 39
20240902@191456.4892 hicurutkd0c499flj71am3kii5 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191456.4906 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.4922 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191456.4939 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.4953 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191456.4979 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.4992 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191456.5004 hicurutkd0c499flj71am3kii5 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191456.5077 hicurutkd0c499flj71am3kii5 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191456.5090 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.5105 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191456.5119 hicurutkd0c499flj71am3kii5 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d606757266d600a07a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191456.5306 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.5324 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191456.5354 hicurutkd0c499flj71am3kii5 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191456.5366 hicurutkd0c499flj71am3kii5 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191456.5377 hicurutkd0c499flj71am3kii5 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191456.5388 hicurutkd0c499flj71am3kii5 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191456.5399 hicurutkd0c499flj71am3kii5 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191456.5412 hicurutkd0c499flj71am3kii5 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191456.5423 hicurutkd0c499flj71am3kii5 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d606757266d600a07a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191456.5683 hicurutkd0c499flj71am3kii5 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191456.5704 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.5721 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191456.5742 hicurutkd0c499flj71am3kii5 Query : select 'normal' from dummy
20240902@191456.5757 hicurutkd0c499flj71am3kii5 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d606757266d600a07a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',547,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191456.6083 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.6086 hicurutkd0c499flj71am3kii5 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240902@191456.6112 hicurutkd0c499flj71am3kii5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4980.00.1'
20240902@191456.6266 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6284 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.6311 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6331 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.6341 hicurutkd0c499flj71am3kii5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191456.6355 hicurutkd0c499flj71am3kii5 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240902@191456.6371 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6388 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.6401 hicurutkd0c499flj71am3kii5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d606735866d600a09b','aut66d606757266d600a07a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191456.6407 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6422 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.6452 hicurutkd0c499flj71am3kii5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d606735866d600a09b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',28.000 ,'aut66d606757266d600a07a' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191456.6724 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.6728 hicurutkd0c499flj71am3kii5 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240902@191456.6752 hicurutkd0c499flj71am3kii5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4980.00.1'
20240902@191456.6769 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6788 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.6818 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6835 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.6846 hicurutkd0c499flj71am3kii5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191456.6864 hicurutkd0c499flj71am3kii5 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240902@191456.6879 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6896 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.6910 hicurutkd0c499flj71am3kii5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607807166d600a0a7','aut66d606757266d600a07a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191456.6915 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.6932 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.6968 hicurutkd0c499flj71am3kii5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607807166d600a0a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut66d606757266d600a07a' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191456.7248 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.7252 hicurutkd0c499flj71am3kii5 Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20240902@191456.7277 hicurutkd0c499flj71am3kii5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4980.00.1'
20240902@191456.7294 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.7312 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.7342 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.7359 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.7369 hicurutkd0c499flj71am3kii5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191456.7382 hicurutkd0c499flj71am3kii5 Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2301092100a'
20240902@191456.7397 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.7413 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191456.7425 hicurutkd0c499flj71am3kii5 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607966266d600a0b4','aut66d606757266d600a07a' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191456.7430 hicurutkd0c499flj71am3kii5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191456.7446 hicurutkd0c499flj71am3kii5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191456.7477 hicurutkd0c499flj71am3kii5 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607966266d600a0b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',80.000 ,'aut66d606757266d600a07a' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240902@191456.7760 hicurutkd0c499flj71am3kii5 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d606757266d600a07a','2405660','wait',39,'adm09112754980.682000002')
20240902@191456.8288 hicurutkd0c499flj71am3kii5 Query : use flama_phc
20240902@191456.8341 hicurutkd0c499flj71am3kii5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191456.9232 hicurutkd0c499flj71am3kii5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1764';
20240902@191456.9266 hicurutkd0c499flj71am3kii5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1764';
20240902@191456.9303 hicurutkd0c499flj71am3kii5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1764';
20240902@191456.9327 hicurutkd0c499flj71am3kii5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1764';
20240902@191456.9846 5jspfil86ds29alnaahdjnfp5o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191456.9857 5jspfil86ds29alnaahdjnfp5o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191456.9911 5jspfil86ds29alnaahdjnfp5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1765';
20240902@191456.9964 5jspfil86ds29alnaahdjnfp5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1765';
20240902@191457.1400 5jspfil86ds29alnaahdjnfp5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1765';
20240902@191457.3800 5jspfil86ds29alnaahdjnfp5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1765';
20240902@191457.8300 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.8600 5jspfil86ds29alnaahdjnfp5o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191457.1470 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.1500 5jspfil86ds29alnaahdjnfp5o Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191457.1930 5jspfil86ds29alnaahdjnfp5o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240902@191457.3790 5jspfil86ds29alnaahdjnfp5o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405662 and bi.ref ='324.1684.00.1' and bi.lordem =1
20240902@191457.7160 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.7200 5jspfil86ds29alnaahdjnfp5o Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191457.7520 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.7560 5jspfil86ds29alnaahdjnfp5o Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191457.8200 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.8620 5jspfil86ds29alnaahdjnfp5o 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')
20240902@191457.9930 5jspfil86ds29alnaahdjnfp5o 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
20240902@191457.1033 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.1036 5jspfil86ds29alnaahdjnfp5o Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191457.1070 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.1073 5jspfil86ds29alnaahdjnfp5o Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191457.1102 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.1104 5jspfil86ds29alnaahdjnfp5o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191457.1141 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.1144 5jspfil86ds29alnaahdjnfp5o Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191457.1185 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.1187 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from td where ndoc = 39
20240902@191457.1199 5jspfil86ds29alnaahdjnfp5o Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191457.1213 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.1228 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191457.1257 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.1273 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191457.1301 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.1316 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191457.1328 5jspfil86ds29alnaahdjnfp5o Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191457.1396 5jspfil86ds29alnaahdjnfp5o Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191457.1409 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.1424 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191457.1442 5jspfil86ds29alnaahdjnfp5o Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d604692066d600a120' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191457.1642 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.1663 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191457.1698 5jspfil86ds29alnaahdjnfp5o Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191457.1710 5jspfil86ds29alnaahdjnfp5o Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191457.1722 5jspfil86ds29alnaahdjnfp5o Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191457.1734 5jspfil86ds29alnaahdjnfp5o Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191457.1745 5jspfil86ds29alnaahdjnfp5o Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191457.1757 5jspfil86ds29alnaahdjnfp5o Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191457.1768 5jspfil86ds29alnaahdjnfp5o Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d604692066d600a120',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191457.2034 5jspfil86ds29alnaahdjnfp5o Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191457.2059 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.2077 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191457.2101 5jspfil86ds29alnaahdjnfp5o Query : select 'normal' from dummy
20240902@191457.2115 5jspfil86ds29alnaahdjnfp5o Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d604692066d600a120',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',548,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191457.2451 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.2454 5jspfil86ds29alnaahdjnfp5o Query : select st.usalote valor from st where st.ref = '324.1684.00.1'
20240902@191457.2478 5jspfil86ds29alnaahdjnfp5o Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 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'
20240902@191457.2642 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.2663 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.2691 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.2706 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.2715 5jspfil86ds29alnaahdjnfp5o Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191457.2727 5jspfil86ds29alnaahdjnfp5o Query : select sestamp valor from se where ref ='324.1684.00.1' and lote = 'r2301217200a'
20240902@191457.2741 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.2756 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.2768 5jspfil86ds29alnaahdjnfp5o Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d604016666d600a142','aut66d604692066d600a120' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191457.2772 5jspfil86ds29alnaahdjnfp5o Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.2786 5jspfil86ds29alnaahdjnfp5o Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.2815 5jspfil86ds29alnaahdjnfp5o Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d604016666d600a142',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.000 ,'aut66d604692066d600a120' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191457.3099 5jspfil86ds29alnaahdjnfp5o Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d604692066d600a120','2405662','wait',39,'adm09112754980.682000002')
20240902@191457.3166 5jspfil86ds29alnaahdjnfp5o Query : use flama_phc
20240902@191457.3170 5jspfil86ds29alnaahdjnfp5o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191457.3198 5jspfil86ds29alnaahdjnfp5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1765';
20240902@191457.3226 5jspfil86ds29alnaahdjnfp5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1765';
20240902@191457.3265 5jspfil86ds29alnaahdjnfp5o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1765';
20240902@191457.3291 5jspfil86ds29alnaahdjnfp5o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1765';
20240902@191457.3819 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191457.3829 c2pmv25tvklbb5qc4hdfqqvb2n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191457.3884 c2pmv25tvklbb5qc4hdfqqvb2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1766';
20240902@191457.3942 c2pmv25tvklbb5qc4hdfqqvb2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1766';
20240902@191457.3989 c2pmv25tvklbb5qc4hdfqqvb2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1766';
20240902@191457.4014 c2pmv25tvklbb5qc4hdfqqvb2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1766';
20240902@191457.4059 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.4063 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191457.4126 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.4129 c2pmv25tvklbb5qc4hdfqqvb2n Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191457.4171 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240902@191457.4350 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405663 and bi.ref ='324.988.00.01' and bi.lordem =1
20240902@191457.4689 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240902@191457.4710 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405663 and bi.ref ='324.988.00.01' and bi.lordem =1
20240902@191457.4726 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240902@191457.4755 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405663 and bi.ref ='324.988.00.01' and bi.lordem =1
20240902@191457.4771 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240902@191457.4790 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405663 and bi.ref ='324.988.00.01' and bi.lordem =1
20240902@191457.4806 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240902@191457.4826 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405663 and bi.ref ='324.988.00.01' and bi.lordem =1
20240902@191457.4843 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240902@191457.4862 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405663 and bi.ref ='324.988.00.01' and bi.lordem =1
20240902@191457.4879 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.4882 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191457.4915 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.4918 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191457.4948 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.4951 c2pmv25tvklbb5qc4hdfqqvb2n 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')
20240902@191457.4978 c2pmv25tvklbb5qc4hdfqqvb2n 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
20240902@191457.5013 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.5016 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191457.5045 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.5048 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191457.5078 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.5081 c2pmv25tvklbb5qc4hdfqqvb2n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191457.5122 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.5125 c2pmv25tvklbb5qc4hdfqqvb2n Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191457.5179 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.5181 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from td where ndoc = 39
20240902@191457.5194 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191457.5209 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.5227 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191457.5248 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.5264 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191457.5293 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.5309 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191457.5322 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191457.5391 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191457.5405 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.5421 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191457.5437 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d607607366d600a181' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191457.5626 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.5645 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191457.5678 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191457.5692 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191457.5704 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191457.5716 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191457.5727 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191457.5739 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191457.5750 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d607607366d600a181',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191457.6009 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191457.6031 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.6047 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191457.6071 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 'normal' from dummy
20240902@191457.6086 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d607607366d600a181',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',549,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191457.6393 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.6397 c2pmv25tvklbb5qc4hdfqqvb2n Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240902@191457.6421 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240902@191457.6584 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.6602 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.6629 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.6645 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.6654 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191457.6667 c2pmv25tvklbb5qc4hdfqqvb2n Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240902@191457.6681 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.6696 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.6708 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d606717866d600a1a3','aut66d607607366d600a181' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191457.6713 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.6727 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.6756 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d606717866d600a1a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d607607366d600a181' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191457.7039 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.7043 c2pmv25tvklbb5qc4hdfqqvb2n Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240902@191457.7063 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240902@191457.7079 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7096 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.7123 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7141 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.7151 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191457.7166 c2pmv25tvklbb5qc4hdfqqvb2n Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240902@191457.7180 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7195 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.7208 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602960466d600a1af','aut66d607607366d600a181' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191457.7214 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7229 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.7260 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d602960466d600a1af',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d607607366d600a181' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191457.7538 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.7542 c2pmv25tvklbb5qc4hdfqqvb2n Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240902@191457.7564 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240902@191457.7579 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7597 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.7627 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7645 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.7655 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191457.7668 c2pmv25tvklbb5qc4hdfqqvb2n Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240902@191457.7682 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7703 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.7716 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d605097966d600a1bb','aut66d607607366d600a181' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191457.7721 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.7737 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.7768 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d605097966d600a1bb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66d607607366d600a181' ,0,0 ,2,23.00,30000,?,?,?,?,?)
20240902@191457.8047 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.8051 c2pmv25tvklbb5qc4hdfqqvb2n Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240902@191457.8074 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240902@191457.8091 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8108 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.8135 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8150 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.8159 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191457.8174 c2pmv25tvklbb5qc4hdfqqvb2n Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240902@191457.8188 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8204 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.8217 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602906166d600a1c7','aut66d607607366d600a181' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191457.8221 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8236 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.8272 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d602906166d600a1c7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66d607607366d600a181' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240902@191457.8547 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191457.8551 c2pmv25tvklbb5qc4hdfqqvb2n Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240902@191457.8574 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240902@191457.8589 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8607 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.8634 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8648 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.8657 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191457.8672 c2pmv25tvklbb5qc4hdfqqvb2n Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240902@191457.8686 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8703 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191457.8715 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d601874666d600a1d4','aut66d607607366d600a181' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191457.8720 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191457.8735 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191457.9962 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d601874666d600a1d4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66d607607366d600a181' ,0,0 ,2,23.00,50000,?,?,?,?,?)
20240902@191458.2800 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191458.3070 c2pmv25tvklbb5qc4hdfqqvb2n Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20240902@191458.3300 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20240902@191458.3450 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.3620 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.3910 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.4060 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.4180 c2pmv25tvklbb5qc4hdfqqvb2n Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.4320 c2pmv25tvklbb5qc4hdfqqvb2n Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2400410200a'
20240902@191458.4460 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.4620 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.4740 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d604480066d600a20a','aut66d607607366d600a181' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.4790 c2pmv25tvklbb5qc4hdfqqvb2n Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.4960 c2pmv25tvklbb5qc4hdfqqvb2n Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.5290 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d604480066d600a20a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',42.000 ,'aut66d607607366d600a181' ,0,0 ,2,23.00,60000,?,?,?,?,?)
20240902@191458.8060 c2pmv25tvklbb5qc4hdfqqvb2n Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d607607366d600a181','2405663','wait',39,'adm09112754980.682000002')
20240902@191458.8780 c2pmv25tvklbb5qc4hdfqqvb2n Query : use flama_phc
20240902@191458.8820 c2pmv25tvklbb5qc4hdfqqvb2n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191458.9140 c2pmv25tvklbb5qc4hdfqqvb2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1766';
20240902@191458.9510 c2pmv25tvklbb5qc4hdfqqvb2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1766';
20240902@191458.9960 c2pmv25tvklbb5qc4hdfqqvb2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1766';
20240902@191458.1025 c2pmv25tvklbb5qc4hdfqqvb2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1766';
20240902@191458.1565 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191458.1576 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191458.1643 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1767';
20240902@191458.1718 pp9e4f5cgn190tfqm1q3t6l3f0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1767';
20240902@191458.1772 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1767';
20240902@191458.1799 pp9e4f5cgn190tfqm1q3t6l3f0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1767';
20240902@191458.1853 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.1857 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191458.1922 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.1926 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191458.1986 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240902@191458.2161 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405664 and bi.ref ='324.657.00.01' and bi.lordem =1
20240902@191458.2487 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240902@191458.2511 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405664 and bi.ref ='324.657.00.01' and bi.lordem =1
20240902@191458.2529 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240902@191458.2552 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405664 and bi.ref ='324.657.00.01' and bi.lordem =1
20240902@191458.2570 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240902@191458.2592 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405664 and bi.ref ='324.657.00.01' and bi.lordem =1
20240902@191458.2611 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240902@191458.2633 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405664 and bi.ref ='324.657.00.01' and bi.lordem =1
20240902@191458.2651 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240902@191458.2672 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405664 and bi.ref ='324.657.00.01' and bi.lordem =1
20240902@191458.2690 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240902@191458.2713 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405664 and bi.ref ='324.657.00.01' and bi.lordem =1
20240902@191458.2734 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.2738 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191458.2775 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.2779 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191458.2811 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.2815 pp9e4f5cgn190tfqm1q3t6l3f0 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')
20240902@191458.2847 pp9e4f5cgn190tfqm1q3t6l3f0 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
20240902@191458.2886 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.2890 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191458.2922 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.2926 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191458.2958 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.2961 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191458.3013 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.3016 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191458.3066 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.3069 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from td where ndoc = 39
20240902@191458.3083 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191458.3099 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.3119 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191458.3143 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.3160 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191458.3197 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.3217 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191458.3232 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191458.3303 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191458.3319 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.3339 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191458.3359 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191458.3545 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.3565 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191458.3601 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191458.3618 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191458.3632 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191458.3646 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191458.3659 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191458.3673 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191458.3685 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d602980266d600a24e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191458.3985 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191458.4018 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.4040 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191458.4073 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 'normal' from dummy
20240902@191458.4092 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d602980266d600a24e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',550,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191458.4636 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.4677 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240902@191458.5340 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240902@191458.5644 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.5664 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.5697 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.5716 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.5727 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.5741 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301178100a'
20240902@191458.5755 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.5770 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.5782 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600821366d600a28c','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.5786 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.5800 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.5828 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d600821366d600a28c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',6.000 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191458.6112 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6130 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.6158 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6173 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.6181 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.6201 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6215 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.6226 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602862766d600a297','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.6230 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6245 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.6273 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d602862766d600a297',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,20000,?,?,?)
20240902@191458.6544 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.6548 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240902@191458.6568 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240902@191458.6581 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6600 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.6626 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6641 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.6649 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.6661 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20240902@191458.6676 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6691 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.6702 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608965266d600a2a3','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.6706 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.6722 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.6751 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d608965266d600a2a3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240902@191458.7039 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7056 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.7089 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7106 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.7115 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.7128 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7147 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.7160 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d604852166d600a2ae','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.7164 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7180 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.7214 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d604852166d600a2ae',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,50000,?,?,?)
20240902@191458.7500 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.7504 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240902@191458.7526 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240902@191458.7542 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7558 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.7585 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7602 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.7610 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.7624 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20240902@191458.7637 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7653 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.7665 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d603015666d600a2ba','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.7669 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.7684 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.7715 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d603015666d600a2ba',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240902@191458.8000 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8017 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.8046 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8061 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.8070 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.8082 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8097 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.8110 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602163266d600a2c5','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.8115 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8131 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.8160 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d602163266d600a2c5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,80000,?,?,?)
20240902@191458.8441 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.8444 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240902@191458.8465 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240902@191458.8479 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8496 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.8523 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8538 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.8546 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.8558 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20240902@191458.8571 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8585 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.8598 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d604821366d600a2d1','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.8602 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8616 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.8646 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d604821366d600a2d1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240902@191458.8954 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.8973 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.9000 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.9014 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.9025 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.9037 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.9052 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.9064 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600731466d600a2dc','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.9068 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.9083 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.9117 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d600731466d600a2dc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,110000,?,?,?)
20240902@191458.9434 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191458.9437 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240902@191458.9470 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240902@191458.9485 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.9501 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.9525 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.9538 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.9546 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191458.9559 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20240902@191458.9571 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.9585 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191458.9596 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607276566d600a2e9','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191458.9601 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191458.9615 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191458.9804 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607276566d600a2e9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240902@191459.9000 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1060 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.1340 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1490 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.1580 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.1720 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1870 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.1990 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600440066d600a304','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.2040 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.2240 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.2580 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d600440066d600a304',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,140000,?,?,?)
20240902@191459.5350 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191459.5390 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240902@191459.5600 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240902@191459.5770 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.5950 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.6200 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6340 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.6430 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.6550 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20240902@191459.6690 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6850 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.6970 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d604958866d600a310','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.7010 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.7180 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.7470 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d604958866d600a310',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240902@191459.1046 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1064 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.1093 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1116 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.1125 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.1138 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1153 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.1165 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d603217166d600a31b','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.1169 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1184 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.1215 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d603217166d600a31b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,170000,?,?,?)
20240902@191459.1488 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191459.1492 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240902@191459.1512 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20240902@191459.1527 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1543 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.1571 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1585 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.1596 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.1608 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400056200a'
20240902@191459.1622 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1637 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.1648 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607272966d600a327','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.1653 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.1668 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.1700 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607272966d600a327',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240902@191459.1983 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.2003 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.2032 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.2047 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.2056 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.2069 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.2084 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.2095 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608329466d600a332','aut66d602980266d600a24e' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.2100 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.2115 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.2147 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d608329466d600a332',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602980266d600a24e' ,0,0 ,2,23.00,200000,?,?,?)
20240902@191459.2459 pp9e4f5cgn190tfqm1q3t6l3f0 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d602980266d600a24e','2405664','wait',39,'adm09112754980.682000002')
20240902@191459.2530 pp9e4f5cgn190tfqm1q3t6l3f0 Query : use flama_phc
20240902@191459.2540 pp9e4f5cgn190tfqm1q3t6l3f0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191459.2573 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1767';
20240902@191459.2604 pp9e4f5cgn190tfqm1q3t6l3f0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1767';
20240902@191459.2642 pp9e4f5cgn190tfqm1q3t6l3f0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1767';
20240902@191459.2671 pp9e4f5cgn190tfqm1q3t6l3f0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1767';
20240902@191459.3243 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191459.3254 emgrks1m4f3vj5c25k6bj9f0gc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191459.3313 emgrks1m4f3vj5c25k6bj9f0gc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1768';
20240902@191459.3372 emgrks1m4f3vj5c25k6bj9f0gc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1768';
20240902@191459.3423 emgrks1m4f3vj5c25k6bj9f0gc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1768';
20240902@191459.3450 emgrks1m4f3vj5c25k6bj9f0gc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1768';
20240902@191459.3497 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.3500 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191459.3566 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.3570 emgrks1m4f3vj5c25k6bj9f0gc Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191459.3615 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.3796 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4137 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4165 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4182 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4202 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4218 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4238 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4256 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4275 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4293 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4313 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4330 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4356 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4373 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4392 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4409 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240902@191459.4428 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405665 and bi.ref ='324.682.00.01' and bi.lordem =1
20240902@191459.4447 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4450 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191459.4483 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4487 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191459.4517 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4519 emgrks1m4f3vj5c25k6bj9f0gc 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')
20240902@191459.4548 emgrks1m4f3vj5c25k6bj9f0gc 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
20240902@191459.4583 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4586 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191459.4616 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4619 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191459.4651 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4654 emgrks1m4f3vj5c25k6bj9f0gc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191459.4695 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4698 emgrks1m4f3vj5c25k6bj9f0gc Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191459.4744 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.4747 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from td where ndoc = 39
20240902@191459.4759 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191459.4776 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.4792 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191459.4813 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.4827 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191459.4857 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.4872 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191459.4884 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191459.4956 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191459.4970 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.4988 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191459.5005 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191459.5198 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.5217 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191459.5254 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191459.5267 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191459.5279 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191459.5291 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191459.5314 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191459.5326 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191459.5338 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d602813566d600a377',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191459.5616 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191459.5640 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.5657 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191459.5680 emgrks1m4f3vj5c25k6bj9f0gc Query : select 'normal' from dummy
20240902@191459.5697 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d602813566d600a377',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',551,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191459.6007 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.6010 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191459.6035 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191459.6235 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6252 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.6280 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6296 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.6304 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.6317 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191459.6331 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6346 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.6359 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607999566d600a39a','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.6364 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6379 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.6408 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607999566d600a39a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',8.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191459.6689 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6705 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.6731 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6746 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.6754 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.6766 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6780 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.6792 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602155466d600a3a5','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.6796 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.6810 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.6837 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d602155466d600a3a5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,20000,?,?,?)
20240902@191459.7977 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.8005 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191459.8228 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191459.8242 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8258 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.8283 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8301 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.8309 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.8321 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191459.8333 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8347 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.8358 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607047666d600a3cb','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.8364 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8378 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.8409 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607047666d600a3cb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,40000,?,?,?,?,?)
20240902@191459.8698 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8715 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.8749 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8765 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.8774 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.8786 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8803 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.8817 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d605181766d600a3d6','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.8822 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.8837 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.8871 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d605181766d600a3d6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,50000,?,?,?)
20240902@191459.9154 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191459.9158 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191459.9181 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191459.9197 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.9216 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.9246 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.9263 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.9273 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.9287 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191459.9303 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.9322 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.9336 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600626266d600a3e3','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191459.9341 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.9360 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.9393 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d600626266d600a3e3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,70000,?,?,?,?,?)
20240902@191459.9694 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.9716 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191459.9747 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.9766 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.9785 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191459.9925 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191459.9981 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191459.9995 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d601479866d600a3f2','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.0000 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2100 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.5300 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d601479866d600a3f2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,80000,?,?,?)
20240902@191500.3300 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191500.3330 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191500.3530 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191500.3680 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3840 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.4100 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.4260 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.4350 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.4480 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191500.4610 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.4780 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.4920 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d609349066d600a40b','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.4960 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.5130 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.5490 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d609349066d600a40b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,100000,?,?,?,?,?)
20240902@191500.8460 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.8680 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.9040 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.9210 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.9310 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.9440 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.9600 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.9730 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d604335766d600a417','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.9770 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.9940 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.1026 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d604335766d600a417',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,110000,?,?,?)
20240902@191500.1324 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191500.1327 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191500.1351 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191500.1367 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1385 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.1416 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1433 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.1443 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.1455 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191500.1470 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1486 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.1499 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600208966d600a423','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.1504 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1518 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.1549 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d600208966d600a423',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,130000,?,?,?,?,?)
20240902@191500.1849 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1868 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.1896 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1912 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.1920 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.1934 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1949 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.1962 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607972366d600a42f','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.1967 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.1983 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.2013 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d607972366d600a42f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,140000,?,?,?)
20240902@191500.2317 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191500.2321 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191500.2344 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191500.2360 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2379 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.2406 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2423 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.2432 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.2446 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191500.2459 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2475 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.2490 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608037366d600a43c','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.2495 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2512 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.2544 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d608037366d600a43c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,160000,?,?,?,?,?)
20240902@191500.2842 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2862 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.2890 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2905 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.2914 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.2928 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2943 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.2955 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d600268166d600a447','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.2960 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.2976 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.3007 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d600268166d600a447',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,170000,?,?,?)
20240902@191500.3287 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191500.3290 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191500.3313 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191500.3327 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3343 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.3368 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3382 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.3394 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.3406 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191500.3419 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3433 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.3445 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d605092666d600a453','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.3449 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3463 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.3492 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d605092666d600a453',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,190000,?,?,?,?,?)
20240902@191500.3780 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3798 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.3823 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3838 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.3846 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.3857 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3872 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.3883 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d605863466d600a45e','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.3887 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.3901 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.3930 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d605863466d600a45e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,200000,?,?,?)
20240902@191500.4202 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191500.4205 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191500.4226 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191500.4240 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.4257 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.4285 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.4301 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.4351 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.5016 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191500.5273 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.5544 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.5556 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d601896166d600a480','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.5561 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.5576 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.5606 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d601896166d600a480',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,220000,?,?,?,?,?)
20240902@191500.5906 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.5923 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.5948 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.5962 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.5971 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.5982 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.5997 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.6009 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d601466466d600a492','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.6014 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6029 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.6065 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d601466466d600a492',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,230000,?,?,?)
20240902@191500.6337 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191500.6341 emgrks1m4f3vj5c25k6bj9f0gc Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240902@191500.6362 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20240902@191500.6377 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6394 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.6431 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6446 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.6456 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.6468 emgrks1m4f3vj5c25k6bj9f0gc Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400059200a'
20240902@191500.6481 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6496 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.6508 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d602505466d600a49e','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.6513 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6530 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.6562 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d602505466d600a49e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,250000,?,?,?,?,?)
20240902@191500.6851 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6871 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.6898 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6913 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.6922 emgrks1m4f3vj5c25k6bj9f0gc Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191500.6936 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6953 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191500.6965 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607128066d600a4a9','aut66d602813566d600a377' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191500.6970 emgrks1m4f3vj5c25k6bj9f0gc Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.6987 emgrks1m4f3vj5c25k6bj9f0gc Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191500.7018 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d607128066d600a4a9',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d602813566d600a377' ,0,0 ,2,23.00,260000,?,?,?)
20240902@191500.7411 emgrks1m4f3vj5c25k6bj9f0gc Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d602813566d600a377','2405665','wait',39,'adm09112754980.682000002')
20240902@191500.7493 emgrks1m4f3vj5c25k6bj9f0gc Query : use flama_phc
20240902@191500.7497 emgrks1m4f3vj5c25k6bj9f0gc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191500.7529 emgrks1m4f3vj5c25k6bj9f0gc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1768';
20240902@191500.7568 emgrks1m4f3vj5c25k6bj9f0gc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1768';
20240902@191500.7612 emgrks1m4f3vj5c25k6bj9f0gc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1768';
20240902@191500.7643 emgrks1m4f3vj5c25k6bj9f0gc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1768';
20240902@191500.8353 0s0s23mfgipljh17v3clpulf31 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191500.8365 0s0s23mfgipljh17v3clpulf31 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191500.8429 0s0s23mfgipljh17v3clpulf31 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1769';
20240902@191500.8497 0s0s23mfgipljh17v3clpulf31 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1769';
20240902@191500.8553 0s0s23mfgipljh17v3clpulf31 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1769';
20240902@191500.8591 0s0s23mfgipljh17v3clpulf31 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1769';
20240902@191500.8647 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.8651 0s0s23mfgipljh17v3clpulf31 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191500.8719 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.8722 0s0s23mfgipljh17v3clpulf31 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191500.8770 0s0s23mfgipljh17v3clpulf31 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.711.00.01'
20240902@191500.8957 0s0s23mfgipljh17v3clpulf31 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405666 and bi.ref ='324.711.00.01' and bi.lordem =1
20240902@191500.9309 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9313 0s0s23mfgipljh17v3clpulf31 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191500.9350 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9353 0s0s23mfgipljh17v3clpulf31 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191500.9387 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9391 0s0s23mfgipljh17v3clpulf31 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')
20240902@191500.9428 0s0s23mfgipljh17v3clpulf31 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
20240902@191500.9474 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9477 0s0s23mfgipljh17v3clpulf31 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191500.9510 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9513 0s0s23mfgipljh17v3clpulf31 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191500.9546 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9549 0s0s23mfgipljh17v3clpulf31 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191500.9595 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9599 0s0s23mfgipljh17v3clpulf31 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191500.9657 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191500.9661 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from td where ndoc = 39
20240902@191500.9676 0s0s23mfgipljh17v3clpulf31 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191500.9693 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.9713 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191500.9736 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191500.9759 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191501.9970 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.1019 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191501.1037 0s0s23mfgipljh17v3clpulf31 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191501.1112 0s0s23mfgipljh17v3clpulf31 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191501.1129 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.1150 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191501.1171 0s0s23mfgipljh17v3clpulf31 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d607001266d600a519' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191501.1373 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.1396 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191501.1440 0s0s23mfgipljh17v3clpulf31 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191501.1456 0s0s23mfgipljh17v3clpulf31 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191501.1472 0s0s23mfgipljh17v3clpulf31 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191501.1487 0s0s23mfgipljh17v3clpulf31 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191501.1503 0s0s23mfgipljh17v3clpulf31 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191501.1520 0s0s23mfgipljh17v3clpulf31 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191501.1536 0s0s23mfgipljh17v3clpulf31 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d607001266d600a519',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191501.1828 0s0s23mfgipljh17v3clpulf31 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191501.1857 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.1880 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191501.1910 0s0s23mfgipljh17v3clpulf31 Query : select 'normal' from dummy
20240902@191501.1932 0s0s23mfgipljh17v3clpulf31 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d607001266d600a519',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',552,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191501.2251 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191501.2254 0s0s23mfgipljh17v3clpulf31 Query : select st.usalote valor from st where st.ref = '324.711.00.01'
20240902@191501.2288 0s0s23mfgipljh17v3clpulf31 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.711.00.01'
20240902@191501.2503 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.2528 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.2564 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.2587 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.2598 0s0s23mfgipljh17v3clpulf31 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191501.2618 0s0s23mfgipljh17v3clpulf31 Query : select sestamp valor from se where ref ='324.711.00.01' and lote = 'r2301222100a'
20240902@191501.2636 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.2658 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.2672 0s0s23mfgipljh17v3clpulf31 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608978666d600a540','aut66d607001266d600a519' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191501.2677 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.2696 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.2739 0s0s23mfgipljh17v3clpulf31 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d608978666d600a540',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',100.000 ,'aut66d607001266d600a519' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191501.3066 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.3092 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.3129 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.3146 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.3157 0s0s23mfgipljh17v3clpulf31 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191501.3173 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.3194 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.3209 0s0s23mfgipljh17v3clpulf31 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607443266d600a54d','aut66d607001266d600a519' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191501.3222 0s0s23mfgipljh17v3clpulf31 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.3268 0s0s23mfgipljh17v3clpulf31 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.3308 0s0s23mfgipljh17v3clpulf31 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut66d607443266d600a54d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut66d607001266d600a519' ,0,0 ,2,23.00,20000,?,?,?)
20240902@191501.3608 0s0s23mfgipljh17v3clpulf31 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d607001266d600a519','2405666','wait',39,'adm09112754980.682000002')
20240902@191501.3687 0s0s23mfgipljh17v3clpulf31 Query : use flama_phc
20240902@191501.3690 0s0s23mfgipljh17v3clpulf31 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191501.3722 0s0s23mfgipljh17v3clpulf31 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1769';
20240902@191501.3759 0s0s23mfgipljh17v3clpulf31 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1769';
20240902@191501.3800 0s0s23mfgipljh17v3clpulf31 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1769';
20240902@191501.3833 0s0s23mfgipljh17v3clpulf31 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1769';
20240902@191501.4396 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191501.4407 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191501.4474 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1770';
20240902@191501.4544 3i8j5f2262v3j4t5hsvtq7c1o9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1770';
20240902@191501.4600 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1770';
20240902@191501.4644 3i8j5f2262v3j4t5hsvtq7c1o9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1770';
20240902@191501.4720 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.4726 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191501.4800 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.4804 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191501.4889 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240902@191501.5135 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405667 and bi.ref ='324.4723.00.2' and bi.lordem =1
20240902@191501.5526 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240902@191501.5550 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405667 and bi.ref ='324.4723.00.2' and bi.lordem =1
20240902@191501.5572 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5576 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191501.5613 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5616 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191501.5665 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5688 3i8j5f2262v3j4t5hsvtq7c1o9 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')
20240902@191501.5722 3i8j5f2262v3j4t5hsvtq7c1o9 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
20240902@191501.5766 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5770 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191501.5804 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5808 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191501.5844 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5848 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191501.5893 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5897 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191501.5952 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.5954 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from td where ndoc = 39
20240902@191501.5969 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191501.5985 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.6004 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191501.6035 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.6054 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191501.6090 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.6109 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191501.6125 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191501.6202 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191501.6219 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.6239 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191501.6260 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d601322266d600a595' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191501.6467 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.6491 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191501.6543 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191501.6558 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191501.6572 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191501.6589 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191501.6605 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191501.6620 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191501.6635 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d601322266d600a595',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191501.6915 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191501.6948 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.6970 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191501.7000 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 'normal' from dummy
20240902@191501.7023 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d601322266d600a595',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',553,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191501.8109 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.8753 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240902@191501.8792 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240902@191501.8982 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9005 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.9043 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9063 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.9074 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191501.9090 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240902@191501.9111 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9137 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.9155 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d607958466d600a5de','aut66d601322266d600a595' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191501.9165 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9188 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.9235 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d607958466d600a5de',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66d601322266d600a595' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191501.9614 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191501.9618 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select st.usalote valor from st where st.ref = '324.4723.00.2'
20240902@191501.9653 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4723.00.2'
20240902@191501.9675 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9699 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.9742 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9764 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.9775 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191501.9795 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select sestamp valor from se where ref ='324.4723.00.2' and lote = 'r2200682200a'
20240902@191501.9813 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9838 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191501.9856 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d609078766d600a5ef','aut66d601322266d600a595' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191501.9862 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191501.9885 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191501.9940 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d609078766d600a5ef',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut66d601322266d600a595' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191502.3130 3i8j5f2262v3j4t5hsvtq7c1o9 Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d601322266d600a595','2405667','wait',39,'adm09112754980.682000002')
20240902@191502.3930 3i8j5f2262v3j4t5hsvtq7c1o9 Query : use flama_phc
20240902@191502.3970 3i8j5f2262v3j4t5hsvtq7c1o9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191502.4420 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1770';
20240902@191502.4750 3i8j5f2262v3j4t5hsvtq7c1o9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1770';
20240902@191502.5150 3i8j5f2262v3j4t5hsvtq7c1o9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1770';
20240902@191502.5450 3i8j5f2262v3j4t5hsvtq7c1o9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1770';
20240902@191502.1183 tlhl8a5pokoav20pitbg8pcrhl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191502.1194 tlhl8a5pokoav20pitbg8pcrhl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191502.1260 tlhl8a5pokoav20pitbg8pcrhl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1771';
20240902@191502.1344 tlhl8a5pokoav20pitbg8pcrhl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1771';
20240902@191502.1406 tlhl8a5pokoav20pitbg8pcrhl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1771';
20240902@191502.1436 tlhl8a5pokoav20pitbg8pcrhl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1771';
20240902@191502.1485 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.1488 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191502.1559 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.1563 tlhl8a5pokoav20pitbg8pcrhl Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191502.1609 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240902@191502.1804 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405668 and bi.ref ='324.946.00.01' and bi.lordem =1
20240902@191502.2212 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.946.00.01'
20240902@191502.2238 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405668 and bi.ref ='324.946.00.01' and bi.lordem =1
20240902@191502.2273 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2277 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191502.2315 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2319 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191502.2356 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2359 tlhl8a5pokoav20pitbg8pcrhl 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')
20240902@191502.2398 tlhl8a5pokoav20pitbg8pcrhl 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
20240902@191502.2442 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2446 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191502.2483 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2487 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191502.2523 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2526 tlhl8a5pokoav20pitbg8pcrhl Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191502.2571 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2574 tlhl8a5pokoav20pitbg8pcrhl Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191502.2633 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.2636 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from td where ndoc = 39
20240902@191502.2650 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191502.2665 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.2684 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191502.2714 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.2734 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191502.2777 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.2795 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191502.2814 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191502.2892 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240902@191502.2910 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.2936 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191502.2956 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66d604713066d600a644' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240902@191502.3166 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.3190 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191502.3232 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240902@191502.3251 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240902@191502.3266 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240902@191502.3283 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240902@191502.3301 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240902@191502.3317 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240902@191502.3331 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66d604713066d600a644',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240902@191502.3640 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 fno valor from wsftdata order by fno desc
20240902@191502.3667 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.3685 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191502.3719 tlhl8a5pokoav20pitbg8pcrhl Query : select 'normal' from dummy
20240902@191502.3743 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66d604713066d600a644',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',554,100810,0,'2024-09-02',39,'euro',0,0,2024 ,?,?)
20240902@191502.4110 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.4115 tlhl8a5pokoav20pitbg8pcrhl Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20240902@191502.4145 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.946.00.01'
20240902@191502.4339 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.4360 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191502.4398 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.4433 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191502.4445 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191502.4461 tlhl8a5pokoav20pitbg8pcrhl Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20240902@191502.4478 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.4498 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191502.4512 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d608161566d600a66d','aut66d604713066d600a644' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191502.4517 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.4537 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191502.4575 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d608161566d600a66d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66d604713066d600a644' ,0,0 ,2,23.00,10000,?,?,?,?,?)
20240902@191502.4886 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.4890 tlhl8a5pokoav20pitbg8pcrhl Query : select st.usalote valor from st where st.ref = '324.946.00.01'
20240902@191502.4919 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.946.00.01'
20240902@191502.4939 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.4960 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191502.4999 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.5022 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191502.5033 tlhl8a5pokoav20pitbg8pcrhl Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240902@191502.5049 tlhl8a5pokoav20pitbg8pcrhl Query : select sestamp valor from se where ref ='324.946.00.01' and lote = 'r2300941200a'
20240902@191502.5065 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.5085 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240902@191502.5102 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66d601033966d600a67b','aut66d604713066d600a644' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240902@191502.5108 tlhl8a5pokoav20pitbg8pcrhl Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.5128 tlhl8a5pokoav20pitbg8pcrhl Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240902@191502.5164 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ) values ('aut66d601033966d600a67b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',96.000 ,'aut66d604713066d600a644' ,0,0 ,2,23.00,20000,?,?,?,?,?)
20240902@191502.5671 tlhl8a5pokoav20pitbg8pcrhl Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66d604713066d600a644','2405668','wait',39,'adm09112754980.682000002')
20240902@191502.6682 tlhl8a5pokoav20pitbg8pcrhl Query : use flama_phc
20240902@191502.6686 tlhl8a5pokoav20pitbg8pcrhl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240902@191502.6733 tlhl8a5pokoav20pitbg8pcrhl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1771';
20240902@191502.6779 tlhl8a5pokoav20pitbg8pcrhl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1771';
20240902@191502.6834 tlhl8a5pokoav20pitbg8pcrhl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1771';
20240902@191502.6902 tlhl8a5pokoav20pitbg8pcrhl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1771';
20240902@191502.7488 t88snq288aovdoq0km5glb05o6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240902@191502.7500 t88snq288aovdoq0km5glb05o6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240902@191502.7566 t88snq288aovdoq0km5glb05o6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1772';
20240902@191502.7650 t88snq288aovdoq0km5glb05o6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1772';
20240902@191502.7706 t88snq288aovdoq0km5glb05o6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1772';
20240902@191502.7740 t88snq288aovdoq0km5glb05o6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1772';
20240902@191502.7807 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.7812 t88snq288aovdoq0km5glb05o6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240902@191502.7933 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.7938 t88snq288aovdoq0km5glb05o6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240902@191502.8002 t88snq288aovdoq0km5glb05o6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240902@191502.8224 t88snq288aovdoq0km5glb05o6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405669 and bi.ref ='324.948.00.01' and bi.lordem =1
20240902@191502.8626 t88snq288aovdoq0km5glb05o6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240902@191502.8648 t88snq288aovdoq0km5glb05o6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405669 and bi.ref ='324.948.00.01' and bi.lordem =1
20240902@191502.8675 t88snq288aovdoq0km5glb05o6 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.948.00.01'
20240902@191502.8698 t88snq288aovdoq0km5glb05o6 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2056 and bo.obrano = 2405669 and bi.ref ='324.948.00.01' and bi.lordem =1
20240902@191502.8739 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.8742 t88snq288aovdoq0km5glb05o6 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240902@191502.8775 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.8778 t88snq288aovdoq0km5glb05o6 Query : select top 1 1 valor from td where td.ndoc = 39
20240902@191502.8808 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.8811 t88snq288aovdoq0km5glb05o6 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')
20240902@191502.8852 t88snq288aovdoq0km5glb05o6 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
20240902@191502.8887 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.8890 t88snq288aovdoq0km5glb05o6 Query : select top 1 ~inactivo valor from cl where no = '100810' and estab = 0 order by inactivo desc
20240902@191502.8920 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.8942 t88snq288aovdoq0km5glb05o6 Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240902@191502.8994 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.9009 t88snq288aovdoq0km5glb05o6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240902@191502.9060 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.9063 t88snq288aovdoq0km5glb05o6 Query : select szadrsstamp valor from szadrs where szadrsdesc='100810 - worten-equipamentos para o lar,sa.'
20240902@191502.9121 t88snq288aovdoq0km5glb05o6 Query : use flama_phc
20240902@191502.9124 t88snq288aovdoq0km5glb05o6 Query : select 1 valor from td where ndoc = 39
20240902@191502.9138 t88snq288aovdoq0km5glb05o6 Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240902@191502.9167 t88snq288aovdoq0km5glb05o6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.9184 t88snq288aovdoq0km5glb05o6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240902@191502.9207 t88snq288aovdoq0km5glb05o6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.9222 t88snq288aovdoq0km5glb05o6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240902@191502.9268 t88snq288aovdoq0km5glb05o6 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240902@191502.9283 t88snq288aovdoq0km5glb05o6 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240902@191502.9297 t88snq288aovdoq0km5glb05o6 Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
