20250219@121806.4676 rrhsu7hrn2mm0f056ibt32n9ti INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20250219@121806.4674 rrhsu7hrn2mm0f056ibt32n9ti Query : use flama_phc
20250219@121806.4680 rrhsu7hrn2mm0f056ibt32n9ti Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@121806.4751 rrhsu7hrn2mm0f056ibt32n9ti Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5427';
20250219@121806.4797 rrhsu7hrn2mm0f056ibt32n9ti Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5427';
20250219@121910.9666 akd7ituk9tcfoiholbo8jlhfjv Query : use flama_phc
20250219@121910.9671 akd7ituk9tcfoiholbo8jlhfjv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@121910.9788 akd7ituk9tcfoiholbo8jlhfjv Query : use flama_phc
20250219@121910.9792 akd7ituk9tcfoiholbo8jlhfjv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@123611.2285 sq5hokura9ih7mfmcgoccgfmob Query : use flama_phc
20250219@123611.2290 sq5hokura9ih7mfmcgoccgfmob Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@123611.2383 sq5hokura9ih7mfmcgoccgfmob Query : use flama_phc
20250219@123611.2387 sq5hokura9ih7mfmcgoccgfmob Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@131911.9674 kb523tgaocp2t3a9bc58h0p4mf Query : use flama_phc
20250219@131911.9715 kb523tgaocp2t3a9bc58h0p4mf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@131912.5050 kb523tgaocp2t3a9bc58h0p4mf Query : use flama_phc
20250219@131912.5470 kb523tgaocp2t3a9bc58h0p4mf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@133611.9419 oa17rgmfeopn3e03sie353kni5 Query : use flama_phc
20250219@133611.9423 oa17rgmfeopn3e03sie353kni5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@133611.9534 oa17rgmfeopn3e03sie353kni5 Query : use flama_phc
20250219@133611.9538 oa17rgmfeopn3e03sie353kni5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@141912.1076 8c0fvs0945po1fd66desi4u3i3 Query : use flama_phc
20250219@141912.1081 8c0fvs0945po1fd66desi4u3i3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@141912.1183 8c0fvs0945po1fd66desi4u3i3 Query : use flama_phc
20250219@141912.1187 8c0fvs0945po1fd66desi4u3i3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@143612.2179 koua8urm46fo4be8vataejsovv Query : use flama_phc
20250219@143612.2185 koua8urm46fo4be8vataejsovv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@143612.2279 koua8urm46fo4be8vataejsovv Query : use flama_phc
20250219@143612.2283 koua8urm46fo4be8vataejsovv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@151910.5213 bfobjmhomh09217n1iok2b3qfn Query : use flama_phc
20250219@151910.5220 bfobjmhomh09217n1iok2b3qfn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@151910.5422 bfobjmhomh09217n1iok2b3qfn Query : use flama_phc
20250219@151910.5425 bfobjmhomh09217n1iok2b3qfn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@153610.4361 rs585diij1ram2mrq1t1ohieqq Query : use flama_phc
20250219@153610.4366 rs585diij1ram2mrq1t1ohieqq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@153610.4452 rs585diij1ram2mrq1t1ohieqq Query : use flama_phc
20250219@153610.4455 rs585diij1ram2mrq1t1ohieqq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@161018.8787 hg27b05ub7j4i7abr1d25fbkkb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161018.8811 hg27b05ub7j4i7abr1d25fbkkb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161018.9129 hg27b05ub7j4i7abr1d25fbkkb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5428';
20250219@161018.9220 hg27b05ub7j4i7abr1d25fbkkb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5428';
20250219@161018.9305 hg27b05ub7j4i7abr1d25fbkkb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5428';
20250219@161018.9386 hg27b05ub7j4i7abr1d25fbkkb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5428';
20250219@161018.9463 hg27b05ub7j4i7abr1d25fbkkb Query : use flama_phc
20250219@161018.9467 hg27b05ub7j4i7abr1d25fbkkb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161018.9599 hg27b05ub7j4i7abr1d25fbkkb Query : use flama_phc
20250219@161018.9603 hg27b05ub7j4i7abr1d25fbkkb Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250219@161018.9831 hg27b05ub7j4i7abr1d25fbkkb Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501257 
20250219@161019.3340 hg27b05ub7j4i7abr1d25fbkkb Query : use flama_phc
20250219@161019.3380 hg27b05ub7j4i7abr1d25fbkkb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161019.4180 hg27b05ub7j4i7abr1d25fbkkb Query : use flama_phc
20250219@161019.4220 hg27b05ub7j4i7abr1d25fbkkb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161019.4960 hg27b05ub7j4i7abr1d25fbkkb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161019.5380 hg27b05ub7j4i7abr1d25fbkkb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5428';
20250219@161019.5920 hg27b05ub7j4i7abr1d25fbkkb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5428';
20250219@161019.1350 tbtioj07nr73cj0b5gt403fih4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161019.1361 tbtioj07nr73cj0b5gt403fih4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161019.1455 tbtioj07nr73cj0b5gt403fih4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5429';
20250219@161019.1542 tbtioj07nr73cj0b5gt403fih4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5429';
20250219@161019.1656 tbtioj07nr73cj0b5gt403fih4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5429';
20250219@161019.1708 tbtioj07nr73cj0b5gt403fih4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5429';
20250219@161019.1796 tbtioj07nr73cj0b5gt403fih4 Query : use flama_phc
20250219@161019.1801 tbtioj07nr73cj0b5gt403fih4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161019.2155 tbtioj07nr73cj0b5gt403fih4 Query : use flama_phc
20250219@161019.2180 tbtioj07nr73cj0b5gt403fih4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250219@161019.2234 tbtioj07nr73cj0b5gt403fih4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501259 
20250219@161019.2730 tbtioj07nr73cj0b5gt403fih4 Query : use flama_phc
20250219@161019.2734 tbtioj07nr73cj0b5gt403fih4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161019.2764 tbtioj07nr73cj0b5gt403fih4 Query : use flama_phc
20250219@161019.2767 tbtioj07nr73cj0b5gt403fih4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161019.2783 tbtioj07nr73cj0b5gt403fih4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161019.2844 tbtioj07nr73cj0b5gt403fih4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5429';
20250219@161019.2900 tbtioj07nr73cj0b5gt403fih4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5429';
20250219@161019.3537 n75d9a7pv5ackb82lotgo8gca4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161019.3547 n75d9a7pv5ackb82lotgo8gca4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161019.3670 n75d9a7pv5ackb82lotgo8gca4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5430';
20250219@161019.3772 n75d9a7pv5ackb82lotgo8gca4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5430';
20250219@161019.4056 n75d9a7pv5ackb82lotgo8gca4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5430';
20250219@161019.4108 n75d9a7pv5ackb82lotgo8gca4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5430';
20250219@161019.4212 n75d9a7pv5ackb82lotgo8gca4 Query : use flama_phc
20250219@161019.4216 n75d9a7pv5ackb82lotgo8gca4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161019.4324 n75d9a7pv5ackb82lotgo8gca4 Query : use flama_phc
20250219@161019.4327 n75d9a7pv5ackb82lotgo8gca4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250219@161019.4377 n75d9a7pv5ackb82lotgo8gca4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501275 
20250219@161019.4838 n75d9a7pv5ackb82lotgo8gca4 Query : use flama_phc
20250219@161019.4847 n75d9a7pv5ackb82lotgo8gca4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161019.4913 n75d9a7pv5ackb82lotgo8gca4 Query : use flama_phc
20250219@161019.4916 n75d9a7pv5ackb82lotgo8gca4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161019.4971 n75d9a7pv5ackb82lotgo8gca4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161019.5003 n75d9a7pv5ackb82lotgo8gca4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5430';
20250219@161019.5064 n75d9a7pv5ackb82lotgo8gca4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5430';
20250219@161019.5715 irlnih2jg8dphud4d2qj25vh2j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161019.5776 irlnih2jg8dphud4d2qj25vh2j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161019.5885 irlnih2jg8dphud4d2qj25vh2j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5431';
20250219@161019.5973 irlnih2jg8dphud4d2qj25vh2j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5431';
20250219@161019.6066 irlnih2jg8dphud4d2qj25vh2j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5431';
20250219@161019.6138 irlnih2jg8dphud4d2qj25vh2j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5431';
20250219@161019.6227 irlnih2jg8dphud4d2qj25vh2j Query : use flama_phc
20250219@161019.6238 irlnih2jg8dphud4d2qj25vh2j Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161019.6311 irlnih2jg8dphud4d2qj25vh2j Query : use flama_phc
20250219@161019.6314 irlnih2jg8dphud4d2qj25vh2j Query : select no, estab,szadrsdesc from szadrs where u_coddest=557
20250219@161019.6442 irlnih2jg8dphud4d2qj25vh2j Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501278 
20250219@161019.6988 irlnih2jg8dphud4d2qj25vh2j Query : use flama_phc
20250219@161019.6998 irlnih2jg8dphud4d2qj25vh2j Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161019.7068 irlnih2jg8dphud4d2qj25vh2j Query : use flama_phc
20250219@161019.7071 irlnih2jg8dphud4d2qj25vh2j Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161019.7088 irlnih2jg8dphud4d2qj25vh2j Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161019.7115 irlnih2jg8dphud4d2qj25vh2j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5431';
20250219@161019.7174 irlnih2jg8dphud4d2qj25vh2j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5431';
20250219@161019.7728 sp9n8n260jb4ahes7lvc94iihk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161019.7739 sp9n8n260jb4ahes7lvc94iihk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161019.7834 sp9n8n260jb4ahes7lvc94iihk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5432';
20250219@161019.7963 sp9n8n260jb4ahes7lvc94iihk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5432';
20250219@161019.8060 sp9n8n260jb4ahes7lvc94iihk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5432';
20250219@161019.8115 sp9n8n260jb4ahes7lvc94iihk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5432';
20250219@161019.8194 sp9n8n260jb4ahes7lvc94iihk Query : use flama_phc
20250219@161019.8205 sp9n8n260jb4ahes7lvc94iihk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161019.8297 sp9n8n260jb4ahes7lvc94iihk Query : use flama_phc
20250219@161019.8300 sp9n8n260jb4ahes7lvc94iihk Query : select no, estab,szadrsdesc from szadrs where u_coddest=2163
20250219@161019.8565 sp9n8n260jb4ahes7lvc94iihk Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501280 
20250219@161019.9079 sp9n8n260jb4ahes7lvc94iihk Query : use flama_phc
20250219@161019.9083 sp9n8n260jb4ahes7lvc94iihk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161019.9118 sp9n8n260jb4ahes7lvc94iihk Query : use flama_phc
20250219@161019.9122 sp9n8n260jb4ahes7lvc94iihk Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161019.9139 sp9n8n260jb4ahes7lvc94iihk Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161019.9160 sp9n8n260jb4ahes7lvc94iihk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5432';
20250219@161019.9224 sp9n8n260jb4ahes7lvc94iihk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5432';
20250219@161019.9907 n6u5hls4vpv2c5mbbhhho34hq8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161019.9918 n6u5hls4vpv2c5mbbhhho34hq8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161020.1100 n6u5hls4vpv2c5mbbhhho34hq8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5433';
20250219@161020.1130 n6u5hls4vpv2c5mbbhhho34hq8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5433';
20250219@161020.1950 n6u5hls4vpv2c5mbbhhho34hq8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5433';
20250219@161020.2650 n6u5hls4vpv2c5mbbhhho34hq8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5433';
20250219@161020.3440 n6u5hls4vpv2c5mbbhhho34hq8 Query : use flama_phc
20250219@161020.3480 n6u5hls4vpv2c5mbbhhho34hq8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161020.4280 n6u5hls4vpv2c5mbbhhho34hq8 Query : use flama_phc
20250219@161020.4320 n6u5hls4vpv2c5mbbhhho34hq8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250219@161020.5360 n6u5hls4vpv2c5mbbhhho34hq8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501282 
20250219@161020.1034 n6u5hls4vpv2c5mbbhhho34hq8 Query : use flama_phc
20250219@161020.1048 n6u5hls4vpv2c5mbbhhho34hq8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161020.1108 n6u5hls4vpv2c5mbbhhho34hq8 Query : use flama_phc
20250219@161020.1112 n6u5hls4vpv2c5mbbhhho34hq8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161020.1140 n6u5hls4vpv2c5mbbhhho34hq8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161020.1181 n6u5hls4vpv2c5mbbhhho34hq8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5433';
20250219@161020.1240 n6u5hls4vpv2c5mbbhhho34hq8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5433';
20250219@161020.1893 o7nhls68jfrp0ngc9go73trtbb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161020.1908 o7nhls68jfrp0ngc9go73trtbb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161020.2004 o7nhls68jfrp0ngc9go73trtbb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5434';
20250219@161020.2131 o7nhls68jfrp0ngc9go73trtbb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5434';
20250219@161020.2246 o7nhls68jfrp0ngc9go73trtbb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5434';
20250219@161020.2301 o7nhls68jfrp0ngc9go73trtbb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5434';
20250219@161020.2389 o7nhls68jfrp0ngc9go73trtbb Query : use flama_phc
20250219@161020.2392 o7nhls68jfrp0ngc9go73trtbb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161020.2459 o7nhls68jfrp0ngc9go73trtbb Query : use flama_phc
20250219@161020.2468 o7nhls68jfrp0ngc9go73trtbb Query : select no, estab,szadrsdesc from szadrs where u_coddest=1024
20250219@161020.2580 o7nhls68jfrp0ngc9go73trtbb Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501283 
20250219@161020.3125 o7nhls68jfrp0ngc9go73trtbb Query : use flama_phc
20250219@161020.3128 o7nhls68jfrp0ngc9go73trtbb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161020.3161 o7nhls68jfrp0ngc9go73trtbb Query : use flama_phc
20250219@161020.3164 o7nhls68jfrp0ngc9go73trtbb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161020.3181 o7nhls68jfrp0ngc9go73trtbb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161020.3206 o7nhls68jfrp0ngc9go73trtbb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5434';
20250219@161020.3264 o7nhls68jfrp0ngc9go73trtbb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5434';
20250219@161020.3909 itfbocev05ohb4krf1fnonhle7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161020.3938 itfbocev05ohb4krf1fnonhle7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161020.4028 itfbocev05ohb4krf1fnonhle7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5435';
20250219@161020.4122 itfbocev05ohb4krf1fnonhle7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5435';
20250219@161020.4324 itfbocev05ohb4krf1fnonhle7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5435';
20250219@161020.4397 itfbocev05ohb4krf1fnonhle7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5435';
20250219@161020.4515 itfbocev05ohb4krf1fnonhle7 Query : use flama_phc
20250219@161020.4519 itfbocev05ohb4krf1fnonhle7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161020.4601 itfbocev05ohb4krf1fnonhle7 Query : use flama_phc
20250219@161020.4607 itfbocev05ohb4krf1fnonhle7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6076
20250219@161020.4860 itfbocev05ohb4krf1fnonhle7 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501288 
20250219@161020.6118 itfbocev05ohb4krf1fnonhle7 Query : use flama_phc
20250219@161020.6161 itfbocev05ohb4krf1fnonhle7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161020.6754 itfbocev05ohb4krf1fnonhle7 Query : use flama_phc
20250219@161020.6782 itfbocev05ohb4krf1fnonhle7 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161020.6805 itfbocev05ohb4krf1fnonhle7 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161020.6832 itfbocev05ohb4krf1fnonhle7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5435';
20250219@161020.6905 itfbocev05ohb4krf1fnonhle7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5435';
20250219@161020.7715 ddp74o09gs2r145k6fq5omoo3n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161020.7840 ddp74o09gs2r145k6fq5omoo3n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161020.8491 ddp74o09gs2r145k6fq5omoo3n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5436';
20250219@161020.8736 ddp74o09gs2r145k6fq5omoo3n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5436';
20250219@161020.8879 ddp74o09gs2r145k6fq5omoo3n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5436';
20250219@161020.8949 ddp74o09gs2r145k6fq5omoo3n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5436';
20250219@161020.9047 ddp74o09gs2r145k6fq5omoo3n Query : use flama_phc
20250219@161020.9051 ddp74o09gs2r145k6fq5omoo3n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161020.9177 ddp74o09gs2r145k6fq5omoo3n Query : use flama_phc
20250219@161020.9182 ddp74o09gs2r145k6fq5omoo3n Query : select no, estab,szadrsdesc from szadrs where u_coddest=224
20250219@161020.9291 ddp74o09gs2r145k6fq5omoo3n Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501289 
20250219@161021.1230 ddp74o09gs2r145k6fq5omoo3n Query : use flama_phc
20250219@161021.1340 ddp74o09gs2r145k6fq5omoo3n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161021.1680 ddp74o09gs2r145k6fq5omoo3n Query : use flama_phc
20250219@161021.1710 ddp74o09gs2r145k6fq5omoo3n Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161021.1860 ddp74o09gs2r145k6fq5omoo3n Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161021.2280 ddp74o09gs2r145k6fq5omoo3n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5436';
20250219@161021.3050 ddp74o09gs2r145k6fq5omoo3n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5436';
20250219@161021.1043 rqim0sfo10h9okcnp2pn20bln5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161021.1054 rqim0sfo10h9okcnp2pn20bln5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161021.1155 rqim0sfo10h9okcnp2pn20bln5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5437';
20250219@161021.1324 rqim0sfo10h9okcnp2pn20bln5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5437';
20250219@161021.1479 rqim0sfo10h9okcnp2pn20bln5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5437';
20250219@161021.1625 rqim0sfo10h9okcnp2pn20bln5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5437';
20250219@161021.1736 rqim0sfo10h9okcnp2pn20bln5 Query : use flama_phc
20250219@161021.1740 rqim0sfo10h9okcnp2pn20bln5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161021.1964 rqim0sfo10h9okcnp2pn20bln5 Query : use flama_phc
20250219@161021.1968 rqim0sfo10h9okcnp2pn20bln5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=210
20250219@161021.2171 rqim0sfo10h9okcnp2pn20bln5 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501290 
20250219@161021.2643 rqim0sfo10h9okcnp2pn20bln5 Query : use flama_phc
20250219@161021.2651 rqim0sfo10h9okcnp2pn20bln5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161021.2701 rqim0sfo10h9okcnp2pn20bln5 Query : use flama_phc
20250219@161021.2714 rqim0sfo10h9okcnp2pn20bln5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161021.2736 rqim0sfo10h9okcnp2pn20bln5 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161021.2777 rqim0sfo10h9okcnp2pn20bln5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5437';
20250219@161021.2927 rqim0sfo10h9okcnp2pn20bln5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5437';
20250219@161021.3605 qot7nadguubt75d4ug8oqlr5pa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161021.3618 qot7nadguubt75d4ug8oqlr5pa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161021.3742 qot7nadguubt75d4ug8oqlr5pa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5438';
20250219@161021.3858 qot7nadguubt75d4ug8oqlr5pa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5438';
20250219@161021.3963 qot7nadguubt75d4ug8oqlr5pa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5438';
20250219@161021.4010 qot7nadguubt75d4ug8oqlr5pa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5438';
20250219@161021.4078 qot7nadguubt75d4ug8oqlr5pa Query : use flama_phc
20250219@161021.4082 qot7nadguubt75d4ug8oqlr5pa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161021.4157 qot7nadguubt75d4ug8oqlr5pa Query : use flama_phc
20250219@161021.4164 qot7nadguubt75d4ug8oqlr5pa Query : select no, estab,szadrsdesc from szadrs where u_coddest=1921
20250219@161021.4277 qot7nadguubt75d4ug8oqlr5pa Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501291 
20250219@161021.4844 qot7nadguubt75d4ug8oqlr5pa Query : use flama_phc
20250219@161021.4847 qot7nadguubt75d4ug8oqlr5pa Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161021.4883 qot7nadguubt75d4ug8oqlr5pa Query : use flama_phc
20250219@161021.4888 qot7nadguubt75d4ug8oqlr5pa Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161021.4913 qot7nadguubt75d4ug8oqlr5pa Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161021.4955 qot7nadguubt75d4ug8oqlr5pa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5438';
20250219@161021.5021 qot7nadguubt75d4ug8oqlr5pa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5438';
20250219@161021.5589 qvofhdfei1t1cs0h39v10oftt2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161021.5601 qvofhdfei1t1cs0h39v10oftt2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161021.5708 qvofhdfei1t1cs0h39v10oftt2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5439';
20250219@161021.5786 qvofhdfei1t1cs0h39v10oftt2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5439';
20250219@161021.5873 qvofhdfei1t1cs0h39v10oftt2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5439';
20250219@161021.5928 qvofhdfei1t1cs0h39v10oftt2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5439';
20250219@161021.6005 qvofhdfei1t1cs0h39v10oftt2 Query : use flama_phc
20250219@161021.6023 qvofhdfei1t1cs0h39v10oftt2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161021.6141 qvofhdfei1t1cs0h39v10oftt2 Query : use flama_phc
20250219@161021.6144 qvofhdfei1t1cs0h39v10oftt2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6258
20250219@161021.6282 qvofhdfei1t1cs0h39v10oftt2 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501292 
20250219@161021.7292 qvofhdfei1t1cs0h39v10oftt2 Query : use flama_phc
20250219@161021.7303 qvofhdfei1t1cs0h39v10oftt2 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161021.7345 qvofhdfei1t1cs0h39v10oftt2 Query : use flama_phc
20250219@161021.7348 qvofhdfei1t1cs0h39v10oftt2 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161021.7364 qvofhdfei1t1cs0h39v10oftt2 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161021.7387 qvofhdfei1t1cs0h39v10oftt2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5439';
20250219@161021.7443 qvofhdfei1t1cs0h39v10oftt2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5439';
20250219@161021.8021 7las4465t0i5ap6h62gmdvk74d Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161021.8045 7las4465t0i5ap6h62gmdvk74d Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161021.8233 7las4465t0i5ap6h62gmdvk74d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5440';
20250219@161021.8391 7las4465t0i5ap6h62gmdvk74d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5440';
20250219@161021.8478 7las4465t0i5ap6h62gmdvk74d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5440';
20250219@161021.8599 7las4465t0i5ap6h62gmdvk74d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5440';
20250219@161021.8760 7las4465t0i5ap6h62gmdvk74d Query : use flama_phc
20250219@161021.8766 7las4465t0i5ap6h62gmdvk74d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161021.8838 7las4465t0i5ap6h62gmdvk74d Query : use flama_phc
20250219@161021.8843 7las4465t0i5ap6h62gmdvk74d Query : select no, estab,szadrsdesc from szadrs where u_coddest=2427
20250219@161021.8949 7las4465t0i5ap6h62gmdvk74d Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501293 
20250219@161021.9546 7las4465t0i5ap6h62gmdvk74d Query : use flama_phc
20250219@161021.9549 7las4465t0i5ap6h62gmdvk74d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161021.9619 7las4465t0i5ap6h62gmdvk74d Query : use flama_phc
20250219@161021.9631 7las4465t0i5ap6h62gmdvk74d Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161021.9689 7las4465t0i5ap6h62gmdvk74d Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161021.9710 7las4465t0i5ap6h62gmdvk74d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5440';
20250219@161021.9934 7las4465t0i5ap6h62gmdvk74d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5440';
20250219@161022.6560 ar1876m6ap8g7d7khgq7mngfrs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161022.6670 ar1876m6ap8g7d7khgq7mngfrs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161022.7690 ar1876m6ap8g7d7khgq7mngfrs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5441';
20250219@161022.8590 ar1876m6ap8g7d7khgq7mngfrs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5441';
20250219@161022.1152 ar1876m6ap8g7d7khgq7mngfrs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5441';
20250219@161022.1213 ar1876m6ap8g7d7khgq7mngfrs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5441';
20250219@161022.1308 ar1876m6ap8g7d7khgq7mngfrs Query : use flama_phc
20250219@161022.1313 ar1876m6ap8g7d7khgq7mngfrs Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161022.1435 ar1876m6ap8g7d7khgq7mngfrs Query : use flama_phc
20250219@161022.1458 ar1876m6ap8g7d7khgq7mngfrs Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250219@161022.1579 ar1876m6ap8g7d7khgq7mngfrs Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501294 
20250219@161022.2119 ar1876m6ap8g7d7khgq7mngfrs Query : use flama_phc
20250219@161022.2122 ar1876m6ap8g7d7khgq7mngfrs Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161022.2153 ar1876m6ap8g7d7khgq7mngfrs Query : use flama_phc
20250219@161022.2157 ar1876m6ap8g7d7khgq7mngfrs Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161022.2173 ar1876m6ap8g7d7khgq7mngfrs Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161022.2194 ar1876m6ap8g7d7khgq7mngfrs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5441';
20250219@161022.2263 ar1876m6ap8g7d7khgq7mngfrs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5441';
20250219@161022.2969 63mf1sdrqoin83smtpn828pqjm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@161022.2981 63mf1sdrqoin83smtpn828pqjm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@161022.3080 63mf1sdrqoin83smtpn828pqjm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5442';
20250219@161022.3211 63mf1sdrqoin83smtpn828pqjm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5442';
20250219@161022.3321 63mf1sdrqoin83smtpn828pqjm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5442';
20250219@161022.3382 63mf1sdrqoin83smtpn828pqjm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5442';
20250219@161022.3549 63mf1sdrqoin83smtpn828pqjm Query : use flama_phc
20250219@161022.3555 63mf1sdrqoin83smtpn828pqjm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@161022.3640 63mf1sdrqoin83smtpn828pqjm Query : use flama_phc
20250219@161022.3643 63mf1sdrqoin83smtpn828pqjm Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250219@161022.3745 63mf1sdrqoin83smtpn828pqjm Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2012 and bo.obrano = 2501295 
20250219@161022.4259 63mf1sdrqoin83smtpn828pqjm Query : use flama_phc
20250219@161022.4264 63mf1sdrqoin83smtpn828pqjm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@161022.4300 63mf1sdrqoin83smtpn828pqjm Query : use flama_phc
20250219@161022.4304 63mf1sdrqoin83smtpn828pqjm Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@161022.4322 63mf1sdrqoin83smtpn828pqjm Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@161022.4345 63mf1sdrqoin83smtpn828pqjm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5442';
20250219@161022.4396 63mf1sdrqoin83smtpn828pqjm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5442';
20250219@161911.7188 4p05q7c84i4qqprq4qtrau6fq4 Query : use flama_phc
20250219@161911.7192 4p05q7c84i4qqprq4qtrau6fq4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@161911.7281 4p05q7c84i4qqprq4qtrau6fq4 Query : use flama_phc
20250219@161911.7284 4p05q7c84i4qqprq4qtrau6fq4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@163611.8732 lvnb4tjt2n7chnoh1miuc70lel Query : use flama_phc
20250219@163611.8832 lvnb4tjt2n7chnoh1miuc70lel Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@163611.8932 lvnb4tjt2n7chnoh1miuc70lel Query : use flama_phc
20250219@163611.8936 lvnb4tjt2n7chnoh1miuc70lel Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@171910.6091 juaf4liuabutqhuvng1a6ehrmu Query : use flama_phc
20250219@171910.6102 juaf4liuabutqhuvng1a6ehrmu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@171910.6284 juaf4liuabutqhuvng1a6ehrmu Query : use flama_phc
20250219@171910.6289 juaf4liuabutqhuvng1a6ehrmu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@173610.9201 ngmfnntnv24rr4p6u7akbhbsms Query : use flama_phc
20250219@173610.9206 ngmfnntnv24rr4p6u7akbhbsms Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@173610.9298 ngmfnntnv24rr4p6u7akbhbsms Query : use flama_phc
20250219@173610.9302 ngmfnntnv24rr4p6u7akbhbsms Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@181909.7649 7li0qmbg2jpans778s146frv51 Query : use flama_phc
20250219@181909.7654 7li0qmbg2jpans778s146frv51 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@181909.8084 7li0qmbg2jpans778s146frv51 Query : use flama_phc
20250219@181909.8089 7li0qmbg2jpans778s146frv51 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@183609.6050 a8qhvj1smlhgfls8cvm0gflecg Query : use flama_phc
20250219@183609.6054 a8qhvj1smlhgfls8cvm0gflecg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@183609.6144 a8qhvj1smlhgfls8cvm0gflecg Query : use flama_phc
20250219@183609.6147 a8qhvj1smlhgfls8cvm0gflecg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@184756.4844 p99kq3hlu8m2r7oh3mup7a4ttp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184756.4990 p99kq3hlu8m2r7oh3mup7a4ttp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184756.5411 p99kq3hlu8m2r7oh3mup7a4ttp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5443';
20250219@184756.5502 p99kq3hlu8m2r7oh3mup7a4ttp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5443';
20250219@184756.5602 p99kq3hlu8m2r7oh3mup7a4ttp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5443';
20250219@184756.5642 p99kq3hlu8m2r7oh3mup7a4ttp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5443';
20250219@184756.5715 p99kq3hlu8m2r7oh3mup7a4ttp Query : use flama_phc
20250219@184756.5719 p99kq3hlu8m2r7oh3mup7a4ttp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184756.5798 p99kq3hlu8m2r7oh3mup7a4ttp Query : use flama_phc
20250219@184756.5801 p99kq3hlu8m2r7oh3mup7a4ttp Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250219@184756.5894 p99kq3hlu8m2r7oh3mup7a4ttp Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501300 
20250219@184756.6340 p99kq3hlu8m2r7oh3mup7a4ttp Query : use flama_phc
20250219@184756.6344 p99kq3hlu8m2r7oh3mup7a4ttp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184756.6423 p99kq3hlu8m2r7oh3mup7a4ttp Query : use flama_phc
20250219@184756.6426 p99kq3hlu8m2r7oh3mup7a4ttp Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184756.6975 p99kq3hlu8m2r7oh3mup7a4ttp Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184756.7021 p99kq3hlu8m2r7oh3mup7a4ttp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5443';
20250219@184756.7073 p99kq3hlu8m2r7oh3mup7a4ttp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5443';
20250219@184756.7658 32havrm00dn7c8n5a0j76fdcpq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184756.7671 32havrm00dn7c8n5a0j76fdcpq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184756.7773 32havrm00dn7c8n5a0j76fdcpq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5444';
20250219@184756.7842 32havrm00dn7c8n5a0j76fdcpq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5444';
20250219@184756.7922 32havrm00dn7c8n5a0j76fdcpq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5444';
20250219@184756.7963 32havrm00dn7c8n5a0j76fdcpq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5444';
20250219@184756.8040 32havrm00dn7c8n5a0j76fdcpq Query : use flama_phc
20250219@184756.8043 32havrm00dn7c8n5a0j76fdcpq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184756.8141 32havrm00dn7c8n5a0j76fdcpq Query : use flama_phc
20250219@184756.8144 32havrm00dn7c8n5a0j76fdcpq Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250219@184756.8239 32havrm00dn7c8n5a0j76fdcpq Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501302 
20250219@184756.8640 32havrm00dn7c8n5a0j76fdcpq Query : use flama_phc
20250219@184756.8643 32havrm00dn7c8n5a0j76fdcpq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184756.8678 32havrm00dn7c8n5a0j76fdcpq Query : use flama_phc
20250219@184756.8681 32havrm00dn7c8n5a0j76fdcpq Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184756.8700 32havrm00dn7c8n5a0j76fdcpq Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184756.8865 32havrm00dn7c8n5a0j76fdcpq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5444';
20250219@184756.8956 32havrm00dn7c8n5a0j76fdcpq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5444';
20250219@184756.9636 cirsa07ne6v1l0b1r8em9tl0q4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184756.9647 cirsa07ne6v1l0b1r8em9tl0q4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184756.9735 cirsa07ne6v1l0b1r8em9tl0q4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5445';
20250219@184756.9807 cirsa07ne6v1l0b1r8em9tl0q4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5445';
20250219@184756.9882 cirsa07ne6v1l0b1r8em9tl0q4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5445';
20250219@184756.9926 cirsa07ne6v1l0b1r8em9tl0q4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5445';
20250219@184757.1000 cirsa07ne6v1l0b1r8em9tl0q4 Query : use flama_phc
20250219@184757.4000 cirsa07ne6v1l0b1r8em9tl0q4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184757.9100 cirsa07ne6v1l0b1r8em9tl0q4 Query : use flama_phc
20250219@184757.9400 cirsa07ne6v1l0b1r8em9tl0q4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=838
20250219@184757.1830 cirsa07ne6v1l0b1r8em9tl0q4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501304 
20250219@184757.5870 cirsa07ne6v1l0b1r8em9tl0q4 Query : use flama_phc
20250219@184757.5900 cirsa07ne6v1l0b1r8em9tl0q4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184757.6240 cirsa07ne6v1l0b1r8em9tl0q4 Query : use flama_phc
20250219@184757.6270 cirsa07ne6v1l0b1r8em9tl0q4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184757.6430 cirsa07ne6v1l0b1r8em9tl0q4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184757.6770 cirsa07ne6v1l0b1r8em9tl0q4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5445';
20250219@184757.7240 cirsa07ne6v1l0b1r8em9tl0q4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5445';
20250219@184757.1324 pe3109mmb5l0jiblthabfir06e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184757.1336 pe3109mmb5l0jiblthabfir06e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184757.1455 pe3109mmb5l0jiblthabfir06e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5446';
20250219@184757.1528 pe3109mmb5l0jiblthabfir06e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5446';
20250219@184757.1609 pe3109mmb5l0jiblthabfir06e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5446';
20250219@184757.1649 pe3109mmb5l0jiblthabfir06e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5446';
20250219@184757.1721 pe3109mmb5l0jiblthabfir06e Query : use flama_phc
20250219@184757.1725 pe3109mmb5l0jiblthabfir06e Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184757.1800 pe3109mmb5l0jiblthabfir06e Query : use flama_phc
20250219@184757.1804 pe3109mmb5l0jiblthabfir06e Query : select no, estab,szadrsdesc from szadrs where u_coddest=6258
20250219@184757.1901 pe3109mmb5l0jiblthabfir06e Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501307 
20250219@184757.2332 pe3109mmb5l0jiblthabfir06e Query : use flama_phc
20250219@184757.2335 pe3109mmb5l0jiblthabfir06e Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184757.2371 pe3109mmb5l0jiblthabfir06e Query : use flama_phc
20250219@184757.2374 pe3109mmb5l0jiblthabfir06e Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184757.2395 pe3109mmb5l0jiblthabfir06e Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184757.2425 pe3109mmb5l0jiblthabfir06e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5446';
20250219@184757.2477 pe3109mmb5l0jiblthabfir06e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5446';
20250219@184757.3062 ppsdkr5b5gemg9uniaqhf1434m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184757.3145 ppsdkr5b5gemg9uniaqhf1434m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184757.3325 ppsdkr5b5gemg9uniaqhf1434m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5447';
20250219@184757.3397 ppsdkr5b5gemg9uniaqhf1434m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5447';
20250219@184757.3477 ppsdkr5b5gemg9uniaqhf1434m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5447';
20250219@184757.3524 ppsdkr5b5gemg9uniaqhf1434m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5447';
20250219@184757.3592 ppsdkr5b5gemg9uniaqhf1434m Query : use flama_phc
20250219@184757.3596 ppsdkr5b5gemg9uniaqhf1434m Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184757.3675 ppsdkr5b5gemg9uniaqhf1434m Query : use flama_phc
20250219@184757.3678 ppsdkr5b5gemg9uniaqhf1434m Query : select no, estab,szadrsdesc from szadrs where u_coddest=9388
20250219@184757.3776 ppsdkr5b5gemg9uniaqhf1434m Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501308 
20250219@184757.4197 ppsdkr5b5gemg9uniaqhf1434m Query : use flama_phc
20250219@184757.4201 ppsdkr5b5gemg9uniaqhf1434m Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184757.4238 ppsdkr5b5gemg9uniaqhf1434m Query : use flama_phc
20250219@184757.4241 ppsdkr5b5gemg9uniaqhf1434m Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184757.4260 ppsdkr5b5gemg9uniaqhf1434m Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184757.4293 ppsdkr5b5gemg9uniaqhf1434m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5447';
20250219@184757.4338 ppsdkr5b5gemg9uniaqhf1434m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5447';
20250219@184757.4905 h77dmbsl6r1jda3sr51hvp7iid Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184757.4920 h77dmbsl6r1jda3sr51hvp7iid Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184757.5005 h77dmbsl6r1jda3sr51hvp7iid Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5448';
20250219@184757.5077 h77dmbsl6r1jda3sr51hvp7iid Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5448';
20250219@184757.5153 h77dmbsl6r1jda3sr51hvp7iid Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5448';
20250219@184757.5203 h77dmbsl6r1jda3sr51hvp7iid Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5448';
20250219@184757.5276 h77dmbsl6r1jda3sr51hvp7iid Query : use flama_phc
20250219@184757.5279 h77dmbsl6r1jda3sr51hvp7iid Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184757.5353 h77dmbsl6r1jda3sr51hvp7iid Query : use flama_phc
20250219@184757.5356 h77dmbsl6r1jda3sr51hvp7iid Query : select no, estab,szadrsdesc from szadrs where u_coddest=7254
20250219@184757.5450 h77dmbsl6r1jda3sr51hvp7iid Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501309 
20250219@184757.5859 h77dmbsl6r1jda3sr51hvp7iid Query : use flama_phc
20250219@184757.5864 h77dmbsl6r1jda3sr51hvp7iid Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184757.5900 h77dmbsl6r1jda3sr51hvp7iid Query : use flama_phc
20250219@184757.5903 h77dmbsl6r1jda3sr51hvp7iid Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184757.5921 h77dmbsl6r1jda3sr51hvp7iid Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184757.5945 h77dmbsl6r1jda3sr51hvp7iid Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5448';
20250219@184757.5994 h77dmbsl6r1jda3sr51hvp7iid Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5448';
20250219@184757.6583 b6urq6cfuhfvj27mu6fmajo65l Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184757.6596 b6urq6cfuhfvj27mu6fmajo65l Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184757.6672 b6urq6cfuhfvj27mu6fmajo65l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5449';
20250219@184757.6744 b6urq6cfuhfvj27mu6fmajo65l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5449';
20250219@184757.6826 b6urq6cfuhfvj27mu6fmajo65l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5449';
20250219@184757.6874 b6urq6cfuhfvj27mu6fmajo65l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5449';
20250219@184757.6947 b6urq6cfuhfvj27mu6fmajo65l Query : use flama_phc
20250219@184757.6950 b6urq6cfuhfvj27mu6fmajo65l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184757.7021 b6urq6cfuhfvj27mu6fmajo65l Query : use flama_phc
20250219@184757.7024 b6urq6cfuhfvj27mu6fmajo65l Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20250219@184757.7116 b6urq6cfuhfvj27mu6fmajo65l Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501310 
20250219@184757.7746 b6urq6cfuhfvj27mu6fmajo65l Query : use flama_phc
20250219@184757.7750 b6urq6cfuhfvj27mu6fmajo65l Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184757.7783 b6urq6cfuhfvj27mu6fmajo65l Query : use flama_phc
20250219@184757.7786 b6urq6cfuhfvj27mu6fmajo65l Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184757.7805 b6urq6cfuhfvj27mu6fmajo65l Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184757.7840 b6urq6cfuhfvj27mu6fmajo65l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5449';
20250219@184757.7885 b6urq6cfuhfvj27mu6fmajo65l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5449';
20250219@184757.8425 02ebg7j2puej36c2r4n9mk9psp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184757.8446 02ebg7j2puej36c2r4n9mk9psp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184757.8521 02ebg7j2puej36c2r4n9mk9psp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5450';
20250219@184757.8592 02ebg7j2puej36c2r4n9mk9psp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5450';
20250219@184757.8681 02ebg7j2puej36c2r4n9mk9psp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5450';
20250219@184757.8719 02ebg7j2puej36c2r4n9mk9psp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5450';
20250219@184757.8787 02ebg7j2puej36c2r4n9mk9psp Query : use flama_phc
20250219@184757.8790 02ebg7j2puej36c2r4n9mk9psp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184757.8868 02ebg7j2puej36c2r4n9mk9psp Query : use flama_phc
20250219@184757.8871 02ebg7j2puej36c2r4n9mk9psp Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20250219@184757.8971 02ebg7j2puej36c2r4n9mk9psp Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501311 
20250219@184757.9403 02ebg7j2puej36c2r4n9mk9psp Query : use flama_phc
20250219@184757.9405 02ebg7j2puej36c2r4n9mk9psp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184757.9447 02ebg7j2puej36c2r4n9mk9psp Query : use flama_phc
20250219@184757.9450 02ebg7j2puej36c2r4n9mk9psp Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184757.9474 02ebg7j2puej36c2r4n9mk9psp Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184757.9499 02ebg7j2puej36c2r4n9mk9psp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5450';
20250219@184757.9546 02ebg7j2puej36c2r4n9mk9psp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5450';
20250219@184758.1054 hhhspmt3shn2jenrhe3hn8r5eb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184758.1071 hhhspmt3shn2jenrhe3hn8r5eb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184758.1146 hhhspmt3shn2jenrhe3hn8r5eb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5451';
20250219@184758.1216 hhhspmt3shn2jenrhe3hn8r5eb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5451';
20250219@184758.1329 hhhspmt3shn2jenrhe3hn8r5eb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5451';
20250219@184758.1373 hhhspmt3shn2jenrhe3hn8r5eb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5451';
20250219@184758.1447 hhhspmt3shn2jenrhe3hn8r5eb Query : use flama_phc
20250219@184758.1450 hhhspmt3shn2jenrhe3hn8r5eb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184758.1534 hhhspmt3shn2jenrhe3hn8r5eb Query : use flama_phc
20250219@184758.1538 hhhspmt3shn2jenrhe3hn8r5eb Query : select no, estab,szadrsdesc from szadrs where u_coddest=233
20250219@184758.1663 hhhspmt3shn2jenrhe3hn8r5eb Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501312 
20250219@184758.2141 hhhspmt3shn2jenrhe3hn8r5eb Query : use flama_phc
20250219@184758.2144 hhhspmt3shn2jenrhe3hn8r5eb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184758.2187 hhhspmt3shn2jenrhe3hn8r5eb Query : use flama_phc
20250219@184758.2190 hhhspmt3shn2jenrhe3hn8r5eb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184758.2210 hhhspmt3shn2jenrhe3hn8r5eb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184758.2238 hhhspmt3shn2jenrhe3hn8r5eb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5451';
20250219@184758.2300 hhhspmt3shn2jenrhe3hn8r5eb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5451';
20250219@184758.2863 7laqm2tevvh827edqqh235ikoo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184758.2876 7laqm2tevvh827edqqh235ikoo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184758.2955 7laqm2tevvh827edqqh235ikoo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5452';
20250219@184758.3026 7laqm2tevvh827edqqh235ikoo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5452';
20250219@184758.3105 7laqm2tevvh827edqqh235ikoo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5452';
20250219@184758.3145 7laqm2tevvh827edqqh235ikoo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5452';
20250219@184758.3211 7laqm2tevvh827edqqh235ikoo Query : use flama_phc
20250219@184758.3214 7laqm2tevvh827edqqh235ikoo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184758.3283 7laqm2tevvh827edqqh235ikoo Query : use flama_phc
20250219@184758.3286 7laqm2tevvh827edqqh235ikoo Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20250219@184758.3379 7laqm2tevvh827edqqh235ikoo Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501313 
20250219@184758.3781 7laqm2tevvh827edqqh235ikoo Query : use flama_phc
20250219@184758.3785 7laqm2tevvh827edqqh235ikoo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184758.3815 7laqm2tevvh827edqqh235ikoo Query : use flama_phc
20250219@184758.3818 7laqm2tevvh827edqqh235ikoo Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184758.3834 7laqm2tevvh827edqqh235ikoo Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184758.3865 7laqm2tevvh827edqqh235ikoo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5452';
20250219@184758.3912 7laqm2tevvh827edqqh235ikoo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5452';
20250219@184758.4484 qekdiort23ntk9af17b4alrbqh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184758.4494 qekdiort23ntk9af17b4alrbqh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184758.4575 qekdiort23ntk9af17b4alrbqh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5453';
20250219@184758.4647 qekdiort23ntk9af17b4alrbqh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5453';
20250219@184758.4718 qekdiort23ntk9af17b4alrbqh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5453';
20250219@184758.4760 qekdiort23ntk9af17b4alrbqh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5453';
20250219@184758.4847 qekdiort23ntk9af17b4alrbqh Query : use flama_phc
20250219@184758.4850 qekdiort23ntk9af17b4alrbqh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184758.4918 qekdiort23ntk9af17b4alrbqh Query : use flama_phc
20250219@184758.4921 qekdiort23ntk9af17b4alrbqh Query : select no, estab,szadrsdesc from szadrs where u_coddest=4500
20250219@184758.5020 qekdiort23ntk9af17b4alrbqh Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501314 
20250219@184758.5709 qekdiort23ntk9af17b4alrbqh Query : use flama_phc
20250219@184758.5713 qekdiort23ntk9af17b4alrbqh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184758.5747 qekdiort23ntk9af17b4alrbqh Query : use flama_phc
20250219@184758.5749 qekdiort23ntk9af17b4alrbqh Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184758.5766 qekdiort23ntk9af17b4alrbqh Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184758.5799 qekdiort23ntk9af17b4alrbqh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5453';
20250219@184758.5844 qekdiort23ntk9af17b4alrbqh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5453';
20250219@184758.6385 f2kb6vqrcr11shvvkvrudm5svh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250219@184758.6397 f2kb6vqrcr11shvvkvrudm5svh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250219@184758.6472 f2kb6vqrcr11shvvkvrudm5svh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5454';
20250219@184758.6547 f2kb6vqrcr11shvvkvrudm5svh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5454';
20250219@184758.6644 f2kb6vqrcr11shvvkvrudm5svh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5454';
20250219@184758.6687 f2kb6vqrcr11shvvkvrudm5svh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5454';
20250219@184758.6751 f2kb6vqrcr11shvvkvrudm5svh Query : use flama_phc
20250219@184758.6754 f2kb6vqrcr11shvvkvrudm5svh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250219@184758.6824 f2kb6vqrcr11shvvkvrudm5svh Query : use flama_phc
20250219@184758.6827 f2kb6vqrcr11shvvkvrudm5svh Query : select no, estab,szadrsdesc from szadrs where u_coddest=909
20250219@184758.7182 f2kb6vqrcr11shvvkvrudm5svh Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501315 
20250219@184758.7617 f2kb6vqrcr11shvvkvrudm5svh Query : use flama_phc
20250219@184758.7620 f2kb6vqrcr11shvvkvrudm5svh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250219@184758.7654 f2kb6vqrcr11shvvkvrudm5svh Query : use flama_phc
20250219@184758.7657 f2kb6vqrcr11shvvkvrudm5svh Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250219@184758.7673 f2kb6vqrcr11shvvkvrudm5svh Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250219@184758.7696 f2kb6vqrcr11shvvkvrudm5svh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5454';
20250219@184758.7745 f2kb6vqrcr11shvvkvrudm5svh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5454';
20250219@191914.8528 vrgokvkfl05fk0oh1ghee7vlf6 Query : use flama_phc
20250219@191914.8534 vrgokvkfl05fk0oh1ghee7vlf6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@191914.8664 vrgokvkfl05fk0oh1ghee7vlf6 Query : use flama_phc
20250219@191914.8668 vrgokvkfl05fk0oh1ghee7vlf6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@193615.1160 edktrqkto5pip19jka0bt5mpn6 Query : use flama_phc
20250219@193615.1210 edktrqkto5pip19jka0bt5mpn6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@193615.2170 edktrqkto5pip19jka0bt5mpn6 Query : use flama_phc
20250219@193615.2200 edktrqkto5pip19jka0bt5mpn6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@201910.8179 5upjta7krmf2nls7jmfg8m5hbm Query : use flama_phc
20250219@201910.8183 5upjta7krmf2nls7jmfg8m5hbm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@201910.8296 5upjta7krmf2nls7jmfg8m5hbm Query : use flama_phc
20250219@201910.8299 5upjta7krmf2nls7jmfg8m5hbm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@203610.8652 4vvcsgtgt0qa5ul9jo6ttr5pbl Query : use flama_phc
20250219@203610.8695 4vvcsgtgt0qa5ul9jo6ttr5pbl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@203610.9095 4vvcsgtgt0qa5ul9jo6ttr5pbl Query : use flama_phc
20250219@203610.9099 4vvcsgtgt0qa5ul9jo6ttr5pbl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@211908.9527 m1npgn54vn4tbj8h1ht2g5em71 Query : use flama_phc
20250219@211908.9531 m1npgn54vn4tbj8h1ht2g5em71 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@211908.9681 m1npgn54vn4tbj8h1ht2g5em71 Query : use flama_phc
20250219@211908.9685 m1npgn54vn4tbj8h1ht2g5em71 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@213609.4820 flk56ko0dkq3mcvd7nhc5uumau Query : use flama_phc
20250219@213609.4825 flk56ko0dkq3mcvd7nhc5uumau Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@213609.4910 flk56ko0dkq3mcvd7nhc5uumau Query : use flama_phc
20250219@213609.4913 flk56ko0dkq3mcvd7nhc5uumau Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@221910.6595 2erqpfnbbcjobj7ksl5nundb56 Query : use flama_phc
20250219@221910.6599 2erqpfnbbcjobj7ksl5nundb56 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@221910.6683 2erqpfnbbcjobj7ksl5nundb56 Query : use flama_phc
20250219@221910.6686 2erqpfnbbcjobj7ksl5nundb56 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@223610.3656 f4olq1e66liogi9ur8m4q808jk Query : use flama_phc
20250219@223610.3662 f4olq1e66liogi9ur8m4q808jk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@223610.4191 f4olq1e66liogi9ur8m4q808jk Query : use flama_phc
20250219@223610.4197 f4olq1e66liogi9ur8m4q808jk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@231910.7223 uo24rvvame5j8m1818riabadhg Query : use flama_phc
20250219@231910.7229 uo24rvvame5j8m1818riabadhg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@231910.7370 uo24rvvame5j8m1818riabadhg Query : use flama_phc
20250219@231910.7374 uo24rvvame5j8m1818riabadhg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250219@233610.9831 83vkd9ui4im3lk8a5rv2f7crng Query : use flama_phc
20250219@233610.9837 83vkd9ui4im3lk8a5rv2f7crng Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250219@233610.9945 83vkd9ui4im3lk8a5rv2f7crng Query : use flama_phc
20250219@233610.9950 83vkd9ui4im3lk8a5rv2f7crng Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@071908.8129 v7l5bcv9ivhj17nhrtq8vpl5mu Query : use flama_phc
20250220@071908.8150 v7l5bcv9ivhj17nhrtq8vpl5mu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@071908.8361 v7l5bcv9ivhj17nhrtq8vpl5mu Query : use flama_phc
20250220@071908.8365 v7l5bcv9ivhj17nhrtq8vpl5mu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@073602.6140 fnagkadb7dtuc4erhvu2gmblt1 Query : use flama_phc
20250220@073602.6190 fnagkadb7dtuc4erhvu2gmblt1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@073602.7110 fnagkadb7dtuc4erhvu2gmblt1 Query : use flama_phc
20250220@073602.7140 fnagkadb7dtuc4erhvu2gmblt1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@081909.6455 spscppse5suunij704go7k0f7s Query : use flama_phc
20250220@081909.6509 spscppse5suunij704go7k0f7s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@081909.6876 spscppse5suunij704go7k0f7s Query : use flama_phc
20250220@081909.6882 spscppse5suunij704go7k0f7s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@083609.6899 duatbb95et5vqrih0fre1l6ra4 Query : use flama_phc
20250220@083609.6905 duatbb95et5vqrih0fre1l6ra4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@083609.6992 duatbb95et5vqrih0fre1l6ra4 Query : use flama_phc
20250220@083609.6995 duatbb95et5vqrih0fre1l6ra4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@091909.5770 nkfdneb5eaveuvhhgal2oc647r Query : use flama_phc
20250220@091909.5775 nkfdneb5eaveuvhhgal2oc647r Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@091909.5897 nkfdneb5eaveuvhhgal2oc647r Query : use flama_phc
20250220@091909.5900 nkfdneb5eaveuvhhgal2oc647r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@092443.2315 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@092443.2345 fqcf9nnpuiubgmp78i3f02hep5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@092443.2697 fqcf9nnpuiubgmp78i3f02hep5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5455';
20250220@092443.2771 fqcf9nnpuiubgmp78i3f02hep5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5455';
20250220@092443.2851 fqcf9nnpuiubgmp78i3f02hep5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5455';
20250220@092443.2889 fqcf9nnpuiubgmp78i3f02hep5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5455';
20250220@092443.2941 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092443.2945 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@092443.3047 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1644.00.1'
20250220@092443.3169 fqcf9nnpuiubgmp78i3f02hep5 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 = 2401145 and bi.ref ='324.1644.00.1' and bi.lordem =10000
20250220@092443.3544 fqcf9nnpuiubgmp78i3f02hep5 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 = 'cps24100260250,524000002 ' 
20250220@092443.3857 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1648.00.1'
20250220@092443.3987 fqcf9nnpuiubgmp78i3f02hep5 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 = 2401145 and bi.ref ='324.1648.00.1' and bi.lordem =30000
20250220@092443.4325 fqcf9nnpuiubgmp78i3f02hep5 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 = 'cps24100260251,742000004 ' 
20250220@092443.4637 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1647.00.1'
20250220@092443.4755 fqcf9nnpuiubgmp78i3f02hep5 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 = 2401145 and bi.ref ='324.1647.00.1' and bi.lordem =20000
20250220@092443.5266 fqcf9nnpuiubgmp78i3f02hep5 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 = 'cps24100260251,261000003 ' 
20250220@092443.5731 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092443.5736 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 1 valor from ts where ts.ndos = 61
20250220@092443.5840 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092443.5844 fqcf9nnpuiubgmp78i3f02hep5 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')
20250220@092443.5947 fqcf9nnpuiubgmp78i3f02hep5 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
20250220@092443.6120 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092443.6124 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 ~inactivo valor from fl where no = '202569' and estab = 00 order by inactivo desc
20250220@092443.6265 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092443.6268 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from ts where ndos = 61
20250220@092443.6349 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092443.6935 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250220@092443.7003 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092443.7112 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250220@092443.7123 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092443.7140 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250220@092443.7150 fqcf9nnpuiubgmp78i3f02hep5 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
20250220@092443.7291 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250220@092443.7402 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250220@092443.7425 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092443.7432 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202569' and estab=00
20250220@092443.7533 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092443.7551 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250220@092443.7598 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b6f6134067b6f4dbb5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@092443.7671 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092443.7689 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250220@092443.7702 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b6f6134067b6f4dbb5','--','bo',1.1124240378122889939 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@092443.7904 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092443.7923 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250220@092443.7936 fqcf9nnpuiubgmp78i3f02hep5 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 ('aut67b6f6134067b6f4dbb5','guia r. fornecedor','2025-02-20',61,2500663,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@092447.6873 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092447.6897 fqcf9nnpuiubgmp78i3f02hep5 Query : select st.usalote valor from st where st.ref = '324.1644.00.1'
20250220@092447.7267 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1644.00.1'
20250220@092447.7823 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092447.7840 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@092447.7856 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092447.7872 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@092447.7884 fqcf9nnpuiubgmp78i3f02hep5 Query : select sestamp valor from se where ref ='324.1644.00.1' and lote = 'r2401145100a'
20250220@092447.7948 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092447.7967 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250220@092447.8014 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092447.8031 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250220@092447.8047 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b6f7212867b6f4dfc3',?,?,'20250220',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250220@092447.9398 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250220@092447.9443 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092447.9459 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@092447.9473 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67b6f2160967b6f4dfe6','aut67b6f6134067b6f4dbb5',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 = 'aut67b6f6134067b6f4dbb5'
20250220@092447.9647 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092447.9747 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@092447.9767 fqcf9nnpuiubgmp78i3f02hep5 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 'aut67b6f2160967b6f4dfe6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1196, 1196*.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 ,30.384097116844,30.384097116844*200.48,30.384097116844,30.384097116844*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,30.384097116844*1196,30.384097116844*1196*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,30.384097116844,30.384097116844*200.48,30.384097116844*1196,30.384097116844*1196*200.48,'cps24100260250,524000002 ',33.8,33.8*1196,33.8,33.8*1196,?,?,?,4 from bo bo where bo.bostamp = 'aut67b6f6134067b6f4dbb5'
20250220@092511.8743 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092511.8748 fqcf9nnpuiubgmp78i3f02hep5 Query : select st.usalote valor from st where st.ref = '324.1648.00.1'
20250220@092511.8786 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1648.00.1'
20250220@092511.8941 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092511.8958 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@092511.8973 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092511.8990 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@092511.9001 fqcf9nnpuiubgmp78i3f02hep5 Query : select sestamp valor from se where ref ='324.1648.00.1' and lote = 'r2401145300a'
20250220@092511.9016 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092511.9035 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250220@092511.9045 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092511.9062 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250220@092511.9080 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b6f7339967b6f4f7dc',?,?,'20250220',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250220@092511.9139 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250220@092511.9154 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092511.9172 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@092511.9189 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67b6f4885867b6f4f7df','aut67b6f6134067b6f4dbb5',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 = 'aut67b6f6134067b6f4dbb5'
20250220@092511.9355 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092511.9380 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@092511.9399 fqcf9nnpuiubgmp78i3f02hep5 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 'aut67b6f4885867b6f4f7df',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 496, 496*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,67.150652503794,67.150652503794*200.48,67.150652503794,67.150652503794*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,67.150652503794*496,67.150652503794*496*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,67.150652503794,67.150652503794*200.48,67.150652503794*496,67.150652503794*496*200.48,'cps24100260251,742000004 ',74.7,74.7*496,74.7,74.7*496,?,?,?,4 from bo bo where bo.bostamp = 'aut67b6f6134067b6f4dbb5'
20250220@092513.4730 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092513.4780 fqcf9nnpuiubgmp78i3f02hep5 Query : select st.usalote valor from st where st.ref = '324.1647.00.1'
20250220@092513.5070 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.1647.00.1'
20250220@092513.6970 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092513.7170 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@092513.7340 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092513.7530 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@092513.7630 fqcf9nnpuiubgmp78i3f02hep5 Query : select sestamp valor from se where ref ='324.1647.00.1' and lote = 'r2401145200a'
20250220@092513.7810 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092513.7980 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250220@092513.8090 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092513.8470 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250220@092513.8630 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b6f6776967b6f4f913',?,?,'20250220',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250220@092513.9280 fqcf9nnpuiubgmp78i3f02hep5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250220@092513.9430 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092513.9600 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@092513.9810 fqcf9nnpuiubgmp78i3f02hep5 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67b6f3576367b6f4f917','aut67b6f6134067b6f4dbb5',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 = 'aut67b6f6134067b6f4dbb5'
20250220@092513.1168 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@092513.1188 fqcf9nnpuiubgmp78i3f02hep5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@092513.1204 fqcf9nnpuiubgmp78i3f02hep5 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 'aut67b6f3576367b6f4f917',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 746, 746*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,59.24,59.24*200.48,59.24,59.24*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,59.24*746,59.24*746*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,59.24,59.24*200.48,59.24*746,59.24*746*200.48,'cps24100260251,261000003 ',65.9,65.9*746,65.9,65.9*746,?,?,?,4 from bo bo where bo.bostamp = 'aut67b6f6134067b6f4dbb5'
20250220@092513.1917 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092513.1922 fqcf9nnpuiubgmp78i3f02hep5 Query : declare @bostamp varchar(25) = 'aut67b6f6134067b6f4dbb5' ,@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 
20250220@092520.4994 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092520.4998 fqcf9nnpuiubgmp78i3f02hep5 Query : select 1 valor from bo where bo.bostamp = 'aut67b6f6134067b6f4dbb5'
20250220@092520.5112 fqcf9nnpuiubgmp78i3f02hep5 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) = 'aut67b6f6134067b6f4dbb5' 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 
20250220@092523.3860 fqcf9nnpuiubgmp78i3f02hep5 Query : use flama_phc
20250220@092523.3960 fqcf9nnpuiubgmp78i3f02hep5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@092523.4930 fqcf9nnpuiubgmp78i3f02hep5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5455';
20250220@092523.5490 fqcf9nnpuiubgmp78i3f02hep5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5455';
20250220@093609.7253 kc0fsu1vii5kq3j9rs5cghjv7m Query : use flama_phc
20250220@093609.7295 kc0fsu1vii5kq3j9rs5cghjv7m Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@093609.7572 kc0fsu1vii5kq3j9rs5cghjv7m Query : use flama_phc
20250220@093609.7576 kc0fsu1vii5kq3j9rs5cghjv7m Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@101909.8916 q7ra9bjfp2cf1gndmhloqk4ae3 Query : use flama_phc
20250220@101909.8921 q7ra9bjfp2cf1gndmhloqk4ae3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@101909.9183 q7ra9bjfp2cf1gndmhloqk4ae3 Query : use flama_phc
20250220@101909.9187 q7ra9bjfp2cf1gndmhloqk4ae3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@103610.8620 k7dukh1ccgvj8olarf0b99ubm0 Query : use flama_phc
20250220@103610.8700 k7dukh1ccgvj8olarf0b99ubm0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@103610.1017 k7dukh1ccgvj8olarf0b99ubm0 Query : use flama_phc
20250220@103610.1580 k7dukh1ccgvj8olarf0b99ubm0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@111909.9694 plflidnrdevb59p734hd9isfag Query : use flama_phc
20250220@111909.9701 plflidnrdevb59p734hd9isfag Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@111910.1095 plflidnrdevb59p734hd9isfag Query : use flama_phc
20250220@111910.1099 plflidnrdevb59p734hd9isfag Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@113610.1821 758p8nb49nc1ahbcckl6eq3v2v Query : use flama_phc
20250220@113610.1826 758p8nb49nc1ahbcckl6eq3v2v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@113610.1917 758p8nb49nc1ahbcckl6eq3v2v Query : use flama_phc
20250220@113610.1920 758p8nb49nc1ahbcckl6eq3v2v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@114055.4934 81dffuu53me9j4iinitl8svruh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@114055.4964 81dffuu53me9j4iinitl8svruh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@114055.5360 81dffuu53me9j4iinitl8svruh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5456';
20250220@114055.5442 81dffuu53me9j4iinitl8svruh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5456';
20250220@114055.5575 81dffuu53me9j4iinitl8svruh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5456';
20250220@114055.5637 81dffuu53me9j4iinitl8svruh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5456';
20250220@114055.5703 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114055.5707 81dffuu53me9j4iinitl8svruh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@114055.5814 81dffuu53me9j4iinitl8svruh Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4911.00.1'
20250220@114055.5949 81dffuu53me9j4iinitl8svruh 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 = 2401119 and bi.ref ='324.4911.00.1' and bi.lordem =20000
20250220@114055.6300 81dffuu53me9j4iinitl8svruh 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 = 'cps24092543724,730000002 ' 
20250220@114055.6634 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114055.6637 81dffuu53me9j4iinitl8svruh Query : select top 1 1 valor from ts where ts.ndos = 61
20250220@114055.7065 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114055.7068 81dffuu53me9j4iinitl8svruh 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')
20250220@114055.7167 81dffuu53me9j4iinitl8svruh 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
20250220@114055.7344 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114055.7348 81dffuu53me9j4iinitl8svruh Query : select top 1 ~inactivo valor from fl where no = '202421' and estab = 00 order by inactivo desc
20250220@114055.7478 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114055.7481 81dffuu53me9j4iinitl8svruh Query : select 1 valor from ts where ndos = 61
20250220@114055.7558 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114055.8036 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250220@114055.8112 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114055.8144 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250220@114055.8154 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114055.8171 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250220@114055.8181 81dffuu53me9j4iinitl8svruh 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
20250220@114055.8316 81dffuu53me9j4iinitl8svruh Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250220@114055.8449 81dffuu53me9j4iinitl8svruh Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250220@114055.8467 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114055.8473 81dffuu53me9j4iinitl8svruh Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202421' and estab=00
20250220@114055.8560 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114055.8583 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250220@114055.8623 81dffuu53me9j4iinitl8svruh Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b718956367b714c7ce',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@114055.8706 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114055.8723 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250220@114055.8757 81dffuu53me9j4iinitl8svruh Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b718956367b714c7ce','--','bo',1.1111111111111111111 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@114055.8951 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114055.8973 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250220@114055.8987 81dffuu53me9j4iinitl8svruh 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 ('aut67b718956367b714c7ce','guia r. fornecedor','2025-02-20',61,2500666,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@114059.5371 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114059.5375 81dffuu53me9j4iinitl8svruh Query : select st.usalote valor from st where st.ref = '324.4911.00.1'
20250220@114059.5525 81dffuu53me9j4iinitl8svruh Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.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.4911.00.1'
20250220@114059.5724 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114059.5743 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@114059.5760 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114059.5776 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@114059.5788 81dffuu53me9j4iinitl8svruh Query : select sestamp valor from se where ref ='324.4911.00.1' and lote = 'r2401119200a'
20250220@114059.5848 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114059.5864 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250220@114059.5876 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114059.5900 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250220@114059.5914 81dffuu53me9j4iinitl8svruh Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b717825467b714cb8f',?,?,'20250220',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250220@114059.7080 81dffuu53me9j4iinitl8svruh Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250220@114059.7125 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114059.7143 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@114059.7159 81dffuu53me9j4iinitl8svruh Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67b712931267b714cbad','aut67b718956367b714c7ce',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 = 'aut67b718956367b714c7ce'
20250220@114059.7349 81dffuu53me9j4iinitl8svruh Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@114059.7369 81dffuu53me9j4iinitl8svruh Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@114059.7389 81dffuu53me9j4iinitl8svruh 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 'aut67b712931267b714cbad',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3138, 3138*.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 ,4.68,4.68*200.48,4.68,4.68*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,4.68*3138,4.68*3138*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,4.68,4.68*200.48,4.68*3138,4.68*3138*200.48,'cps24092543724,730000002 ',5.2,5.2*3138,5.2,5.2*3138,?,?,?,4 from bo bo where bo.bostamp = 'aut67b718956367b714c7ce'
20250220@114121.5464 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114121.5470 81dffuu53me9j4iinitl8svruh Query : declare @bostamp varchar(25) = 'aut67b718956367b714c7ce' ,@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 
20250220@114143.1770 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114143.1814 81dffuu53me9j4iinitl8svruh Query : select 1 valor from bo where bo.bostamp = 'aut67b718956367b714c7ce'
20250220@114143.2215 81dffuu53me9j4iinitl8svruh 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) = 'aut67b718956367b714c7ce' 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 
20250220@114145.5243 81dffuu53me9j4iinitl8svruh Query : use flama_phc
20250220@114145.5247 81dffuu53me9j4iinitl8svruh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@114145.5344 81dffuu53me9j4iinitl8svruh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5456';
20250220@114145.5394 81dffuu53me9j4iinitl8svruh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5456';
20250220@121911.8246 40oh03kkbpqpmd3h21ij3967r0 Query : use flama_phc
20250220@121911.8250 40oh03kkbpqpmd3h21ij3967r0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@121911.8388 40oh03kkbpqpmd3h21ij3967r0 Query : use flama_phc
20250220@121911.8391 40oh03kkbpqpmd3h21ij3967r0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@123612.2201 68g2truler3vqc8f216o11r0ps Query : use flama_phc
20250220@123612.2206 68g2truler3vqc8f216o11r0ps Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@123612.2313 68g2truler3vqc8f216o11r0ps Query : use flama_phc
20250220@123612.2317 68g2truler3vqc8f216o11r0ps Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@131911.3130 e4q5po0brmnr260kfb2h71u88f Query : use flama_phc
20250220@131911.3200 e4q5po0brmnr260kfb2h71u88f Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@131911.1200 e4q5po0brmnr260kfb2h71u88f Query : use flama_phc
20250220@131911.1282 e4q5po0brmnr260kfb2h71u88f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@133611.4640 ih00fn4mrn2jd69ln5dqqd4asu Query : use flama_phc
20250220@133611.4644 ih00fn4mrn2jd69ln5dqqd4asu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@133611.4759 ih00fn4mrn2jd69ln5dqqd4asu Query : use flama_phc
20250220@133611.4762 ih00fn4mrn2jd69ln5dqqd4asu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@141618.8892 q36d9cq4k5nn25ab251dpp530e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@141618.8917 q36d9cq4k5nn25ab251dpp530e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@141618.9184 q36d9cq4k5nn25ab251dpp530e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5457';
20250220@141618.9264 q36d9cq4k5nn25ab251dpp530e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5457';
20250220@141618.9344 q36d9cq4k5nn25ab251dpp530e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5457';
20250220@141618.9400 q36d9cq4k5nn25ab251dpp530e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5457';
20250220@141618.9468 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141618.9473 q36d9cq4k5nn25ab251dpp530e Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@141618.9579 q36d9cq4k5nn25ab251dpp530e Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1675.00.2'
20250220@141618.9853 q36d9cq4k5nn25ab251dpp530e 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 = 2401094 and bi.ref ='324.1675.00.2' and bi.lordem =20000
20250220@141619.3360 q36d9cq4k5nn25ab251dpp530e 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 = 'cps24091351258,457000002 ' 
20250220@141619.7360 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141619.7390 q36d9cq4k5nn25ab251dpp530e Query : select top 1 1 valor from ts where ts.ndos = 61
20250220@141619.7780 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141619.7820 q36d9cq4k5nn25ab251dpp530e 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')
20250220@141619.8510 q36d9cq4k5nn25ab251dpp530e 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
20250220@141619.8950 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141619.8980 q36d9cq4k5nn25ab251dpp530e Query : select top 1 ~inactivo valor from fl where no = '202226' and estab = 00 order by inactivo desc
20250220@141619.1032 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141619.1069 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from ts where ndos = 61
20250220@141619.1091 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141619.1122 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250220@141619.1169 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141619.1195 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250220@141619.1225 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141619.1242 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250220@141619.1252 q36d9cq4k5nn25ab251dpp530e 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
20250220@141619.1285 q36d9cq4k5nn25ab251dpp530e Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250220@141619.1324 q36d9cq4k5nn25ab251dpp530e Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250220@141619.1396 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141619.1405 q36d9cq4k5nn25ab251dpp530e Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202226' and estab=00
20250220@141619.1519 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141619.1537 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250220@141619.1559 q36d9cq4k5nn25ab251dpp530e Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b733836567b7393322',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@141619.1579 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141619.1598 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250220@141619.1611 q36d9cq4k5nn25ab251dpp530e Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b733836567b7393322','--','bo',7.8654527061203844208 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@141619.1628 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141619.1645 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250220@141619.1658 q36d9cq4k5nn25ab251dpp530e 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 ('aut67b733836567b7393322','guia r. fornecedor','2025-02-20',61,2500667,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250220@141623.5390 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141623.5447 q36d9cq4k5nn25ab251dpp530e Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250220@141623.5524 q36d9cq4k5nn25ab251dpp530e Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20250220@141623.5750 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141623.5861 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@141623.5881 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141623.5922 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@141623.5933 q36d9cq4k5nn25ab251dpp530e Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2401094200a'
20250220@141623.5952 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141623.5983 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250220@141623.6010 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141623.6028 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250220@141623.6043 q36d9cq4k5nn25ab251dpp530e Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b739643667b7393792',?,?,'20250220',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250220@141623.7006 q36d9cq4k5nn25ab251dpp530e Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250220@141623.7046 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141623.7195 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250220@141623.7210 q36d9cq4k5nn25ab251dpp530e Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67b733828067b73937ac','aut67b733836567b7393322',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 = 'aut67b733836567b7393322'
20250220@141623.7526 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250220@141623.7555 q36d9cq4k5nn25ab251dpp530e Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250220@141623.7605 q36d9cq4k5nn25ab251dpp530e 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 'aut67b733828067b73937ac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 580, 580*.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 ,19.77,19.77*200.48,19.77,19.77*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,19.77*580,19.77*580*200.48 ,25.541000,25.541000*200.48 ,25.541000,25.541000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.77,19.77*200.48,19.77*580,19.77*580*200.48,'cps24091351258,457000002 ',155.5,155.5*580,155.5,155.5*580,?,?,?,4 from bo bo where bo.bostamp = 'aut67b733836567b7393322'
20250220@141654.4709 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141654.4715 q36d9cq4k5nn25ab251dpp530e Query : declare @bostamp varchar(25) = 'aut67b733836567b7393322' ,@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 
20250220@141708.3553 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141708.3558 q36d9cq4k5nn25ab251dpp530e Query : select 1 valor from bo where bo.bostamp = 'aut67b733836567b7393322'
20250220@141708.3584 q36d9cq4k5nn25ab251dpp530e 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) = 'aut67b733836567b7393322' 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 
20250220@141710.7834 q36d9cq4k5nn25ab251dpp530e Query : use flama_phc
20250220@141710.7839 q36d9cq4k5nn25ab251dpp530e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@141710.7897 q36d9cq4k5nn25ab251dpp530e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5457';
20250220@141710.7952 q36d9cq4k5nn25ab251dpp530e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5457';
20250220@141910.8585 10o2t8jvj7nlgtpadpeqpgr06e Query : use flama_phc
20250220@141910.8590 10o2t8jvj7nlgtpadpeqpgr06e Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@141910.8717 10o2t8jvj7nlgtpadpeqpgr06e Query : use flama_phc
20250220@141910.8721 10o2t8jvj7nlgtpadpeqpgr06e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@143610.7662 1mdb6fp7kidvdcuj202007df78 Query : use flama_phc
20250220@143610.7666 1mdb6fp7kidvdcuj202007df78 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@143610.7830 1mdb6fp7kidvdcuj202007df78 Query : use flama_phc
20250220@143610.7835 1mdb6fp7kidvdcuj202007df78 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@151910.3742 oglm45kgf799dh78inkgk0bs44 Query : use flama_phc
20250220@151910.3747 oglm45kgf799dh78inkgk0bs44 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@151910.3840 oglm45kgf799dh78inkgk0bs44 Query : use flama_phc
20250220@151910.3844 oglm45kgf799dh78inkgk0bs44 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@153610.5555 9i5esvhukq1ocu9uc15gmckvc9 Query : use flama_phc
20250220@153610.5585 9i5esvhukq1ocu9uc15gmckvc9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@153610.5912 9i5esvhukq1ocu9uc15gmckvc9 Query : use flama_phc
20250220@153610.5916 9i5esvhukq1ocu9uc15gmckvc9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@154554.4389 u43i2clkqoju0ne029582m8t06 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@154554.4403 u43i2clkqoju0ne029582m8t06 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@154554.4493 u43i2clkqoju0ne029582m8t06 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5458';
20250220@154554.4581 u43i2clkqoju0ne029582m8t06 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5458';
20250220@154554.4663 u43i2clkqoju0ne029582m8t06 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5458';
20250220@154554.4720 u43i2clkqoju0ne029582m8t06 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5458';
20250220@154554.4802 u43i2clkqoju0ne029582m8t06 Query : use flama_phc
20250220@154554.4807 u43i2clkqoju0ne029582m8t06 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@154554.4884 u43i2clkqoju0ne029582m8t06 Query : use flama_phc
20250220@154554.4888 u43i2clkqoju0ne029582m8t06 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2881
20250220@154554.4991 u43i2clkqoju0ne029582m8t06 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501316 
20250220@154554.5503 u43i2clkqoju0ne029582m8t06 Query : use flama_phc
20250220@154554.5507 u43i2clkqoju0ne029582m8t06 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250220@154554.5585 u43i2clkqoju0ne029582m8t06 Query : use flama_phc
20250220@154554.5591 u43i2clkqoju0ne029582m8t06 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250220@154554.5667 u43i2clkqoju0ne029582m8t06 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250220@154554.5712 u43i2clkqoju0ne029582m8t06 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5458';
20250220@154554.5767 u43i2clkqoju0ne029582m8t06 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5458';
20250220@154554.6575 1rdv83lpuvpuaj9nhuousl10la Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@154554.6646 1rdv83lpuvpuaj9nhuousl10la Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@154554.6849 1rdv83lpuvpuaj9nhuousl10la Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5459';
20250220@154554.8483 1rdv83lpuvpuaj9nhuousl10la Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5459';
20250220@154554.8630 1rdv83lpuvpuaj9nhuousl10la Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5459';
20250220@154554.8745 1rdv83lpuvpuaj9nhuousl10la Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5459';
20250220@154554.8895 1rdv83lpuvpuaj9nhuousl10la Query : use flama_phc
20250220@154554.8901 1rdv83lpuvpuaj9nhuousl10la Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@154554.9041 1rdv83lpuvpuaj9nhuousl10la Query : use flama_phc
20250220@154554.9045 1rdv83lpuvpuaj9nhuousl10la Query : select no, estab,szadrsdesc from szadrs where u_coddest=2797
20250220@154554.9221 1rdv83lpuvpuaj9nhuousl10la Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501317 
20250220@154554.9943 1rdv83lpuvpuaj9nhuousl10la Query : use flama_phc
20250220@154554.9946 1rdv83lpuvpuaj9nhuousl10la Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250220@154554.9978 1rdv83lpuvpuaj9nhuousl10la Query : use flama_phc
20250220@154554.9982 1rdv83lpuvpuaj9nhuousl10la Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250220@154555.2000 1rdv83lpuvpuaj9nhuousl10la Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250220@154555.1030 1rdv83lpuvpuaj9nhuousl10la Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5459';
20250220@154555.1650 1rdv83lpuvpuaj9nhuousl10la Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5459';
20250220@154555.9730 5fip0345qp4v51c2irk7umr8ds Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@154555.9860 5fip0345qp4v51c2irk7umr8ds Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@154555.1072 5fip0345qp4v51c2irk7umr8ds Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5460';
20250220@154555.1152 5fip0345qp4v51c2irk7umr8ds Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5460';
20250220@154555.1232 5fip0345qp4v51c2irk7umr8ds Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5460';
20250220@154555.1294 5fip0345qp4v51c2irk7umr8ds Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5460';
20250220@154555.1369 5fip0345qp4v51c2irk7umr8ds Query : use flama_phc
20250220@154555.1373 5fip0345qp4v51c2irk7umr8ds Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@154555.1449 5fip0345qp4v51c2irk7umr8ds Query : use flama_phc
20250220@154555.1453 5fip0345qp4v51c2irk7umr8ds Query : select no, estab,szadrsdesc from szadrs where u_coddest=5483
20250220@154555.1563 5fip0345qp4v51c2irk7umr8ds Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501319 
20250220@154555.2128 5fip0345qp4v51c2irk7umr8ds Query : use flama_phc
20250220@154555.2132 5fip0345qp4v51c2irk7umr8ds Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250220@154555.2175 5fip0345qp4v51c2irk7umr8ds Query : use flama_phc
20250220@154555.2179 5fip0345qp4v51c2irk7umr8ds Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250220@154555.2199 5fip0345qp4v51c2irk7umr8ds Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250220@154555.2224 5fip0345qp4v51c2irk7umr8ds Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5460';
20250220@154555.2294 5fip0345qp4v51c2irk7umr8ds Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5460';
20250220@154555.3238 jgb21ckelitiidj8gjfkss51ap Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@154555.3250 jgb21ckelitiidj8gjfkss51ap Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@154555.3469 jgb21ckelitiidj8gjfkss51ap Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5461';
20250220@154555.3613 jgb21ckelitiidj8gjfkss51ap Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5461';
20250220@154555.3818 jgb21ckelitiidj8gjfkss51ap Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5461';
20250220@154555.3874 jgb21ckelitiidj8gjfkss51ap Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5461';
20250220@154555.4124 jgb21ckelitiidj8gjfkss51ap Query : use flama_phc
20250220@154555.4128 jgb21ckelitiidj8gjfkss51ap Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@154555.4195 jgb21ckelitiidj8gjfkss51ap Query : use flama_phc
20250220@154555.4199 jgb21ckelitiidj8gjfkss51ap Query : select no, estab,szadrsdesc from szadrs where u_coddest=435
20250220@154555.4344 jgb21ckelitiidj8gjfkss51ap Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501322 
20250220@154555.6089 jgb21ckelitiidj8gjfkss51ap Query : use flama_phc
20250220@154555.6347 jgb21ckelitiidj8gjfkss51ap Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250220@154555.6439 jgb21ckelitiidj8gjfkss51ap Query : use flama_phc
20250220@154555.6444 jgb21ckelitiidj8gjfkss51ap Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250220@154555.6463 jgb21ckelitiidj8gjfkss51ap Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250220@154555.6561 jgb21ckelitiidj8gjfkss51ap Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5461';
20250220@154555.6617 jgb21ckelitiidj8gjfkss51ap Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5461';
20250220@154555.7207 2aslkudp4ajtlottqhf950hi3k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@154555.7220 2aslkudp4ajtlottqhf950hi3k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@154555.7325 2aslkudp4ajtlottqhf950hi3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5462';
20250220@154555.7418 2aslkudp4ajtlottqhf950hi3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5462';
20250220@154555.7493 2aslkudp4ajtlottqhf950hi3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5462';
20250220@154555.7544 2aslkudp4ajtlottqhf950hi3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5462';
20250220@154555.7632 2aslkudp4ajtlottqhf950hi3k Query : use flama_phc
20250220@154555.7635 2aslkudp4ajtlottqhf950hi3k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@154555.7707 2aslkudp4ajtlottqhf950hi3k Query : use flama_phc
20250220@154555.7711 2aslkudp4ajtlottqhf950hi3k Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250220@154555.7810 2aslkudp4ajtlottqhf950hi3k Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501323 
20250220@154555.8379 2aslkudp4ajtlottqhf950hi3k Query : use flama_phc
20250220@154555.8383 2aslkudp4ajtlottqhf950hi3k Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250220@154555.8429 2aslkudp4ajtlottqhf950hi3k Query : use flama_phc
20250220@154555.8434 2aslkudp4ajtlottqhf950hi3k Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250220@154555.8530 2aslkudp4ajtlottqhf950hi3k Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250220@154555.8554 2aslkudp4ajtlottqhf950hi3k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5462';
20250220@154555.8630 2aslkudp4ajtlottqhf950hi3k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5462';
20250220@154555.9227 5h13pupck1og5fac5j6e771f13 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250220@154555.9239 5h13pupck1og5fac5j6e771f13 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250220@154555.9420 5h13pupck1og5fac5j6e771f13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5463';
20250220@154555.9572 5h13pupck1og5fac5j6e771f13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5463';
20250220@154555.9692 5h13pupck1og5fac5j6e771f13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5463';
20250220@154555.9758 5h13pupck1og5fac5j6e771f13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5463';
20250220@154555.9917 5h13pupck1og5fac5j6e771f13 Query : use flama_phc
20250220@154555.9921 5h13pupck1og5fac5j6e771f13 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250220@154556.5200 5h13pupck1og5fac5j6e771f13 Query : use flama_phc
20250220@154556.5600 5h13pupck1og5fac5j6e771f13 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250220@154556.2070 5h13pupck1og5fac5j6e771f13 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501324 
20250220@154556.6760 5h13pupck1og5fac5j6e771f13 Query : use flama_phc
20250220@154556.6800 5h13pupck1og5fac5j6e771f13 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250220@154556.7170 5h13pupck1og5fac5j6e771f13 Query : use flama_phc
20250220@154556.7210 5h13pupck1og5fac5j6e771f13 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250220@154556.7400 5h13pupck1og5fac5j6e771f13 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250220@154556.7630 5h13pupck1og5fac5j6e771f13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5463';
20250220@154556.8290 5h13pupck1og5fac5j6e771f13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5463';
20250220@161910.2116 tfc88b6um94f18epg0gih0l0e9 Query : use flama_phc
20250220@161910.2121 tfc88b6um94f18epg0gih0l0e9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@161910.2217 tfc88b6um94f18epg0gih0l0e9 Query : use flama_phc
20250220@161910.2221 tfc88b6um94f18epg0gih0l0e9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@163609.7589 dtrs3lvvecqkdv1gbdtmruh1dl Query : use flama_phc
20250220@163609.7617 dtrs3lvvecqkdv1gbdtmruh1dl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@163609.7716 dtrs3lvvecqkdv1gbdtmruh1dl Query : use flama_phc
20250220@163609.7720 dtrs3lvvecqkdv1gbdtmruh1dl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@171910.4765 6nr1499nbn4vucmpv5akel5k4a Query : use flama_phc
20250220@171910.4769 6nr1499nbn4vucmpv5akel5k4a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@171910.4893 6nr1499nbn4vucmpv5akel5k4a Query : use flama_phc
20250220@171910.4896 6nr1499nbn4vucmpv5akel5k4a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@173611.5260 l60eldu7u4qgco1eg65e9kbg33 Query : use flama_phc
20250220@173611.5300 l60eldu7u4qgco1eg65e9kbg33 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@173611.6460 l60eldu7u4qgco1eg65e9kbg33 Query : use flama_phc
20250220@173611.6490 l60eldu7u4qgco1eg65e9kbg33 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@181908.8110 l56gevmook4h94p2h6rsitmm3b Query : use flama_phc
20250220@181908.8118 l56gevmook4h94p2h6rsitmm3b Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@181908.8217 l56gevmook4h94p2h6rsitmm3b Query : use flama_phc
20250220@181908.8221 l56gevmook4h94p2h6rsitmm3b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@183608.9597 eb0hn7lmrpvjg4sdtnnjmrjdlg Query : use flama_phc
20250220@183608.9602 eb0hn7lmrpvjg4sdtnnjmrjdlg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@183608.9735 eb0hn7lmrpvjg4sdtnnjmrjdlg Query : use flama_phc
20250220@183608.9739 eb0hn7lmrpvjg4sdtnnjmrjdlg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@191912.5838 93lpnbppjqnl8krkplv84oad0r Query : use flama_phc
20250220@191912.5842 93lpnbppjqnl8krkplv84oad0r Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@191912.5933 93lpnbppjqnl8krkplv84oad0r Query : use flama_phc
20250220@191912.5937 93lpnbppjqnl8krkplv84oad0r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@193612.2173 8nr0807b9v67ssj69hhvs5c4p9 Query : use flama_phc
20250220@193612.2178 8nr0807b9v67ssj69hhvs5c4p9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@193612.2269 8nr0807b9v67ssj69hhvs5c4p9 Query : use flama_phc
20250220@193612.2274 8nr0807b9v67ssj69hhvs5c4p9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@201909.9053 b451irhlpl86nbdltqdnl4c64p Query : use flama_phc
20250220@201909.9058 b451irhlpl86nbdltqdnl4c64p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@201909.9174 b451irhlpl86nbdltqdnl4c64p Query : use flama_phc
20250220@201909.9178 b451irhlpl86nbdltqdnl4c64p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@203610.9400 9e3lb5n11h2j3ob329qtpin04k Query : use flama_phc
20250220@203610.1410 9e3lb5n11h2j3ob329qtpin04k Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@203610.1569 9e3lb5n11h2j3ob329qtpin04k Query : use flama_phc
20250220@203610.1574 9e3lb5n11h2j3ob329qtpin04k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@211909.5780 0fhv57ppnmihevvr1ji9nmkq6d Query : use flama_phc
20250220@211909.5785 0fhv57ppnmihevvr1ji9nmkq6d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@211909.5908 0fhv57ppnmihevvr1ji9nmkq6d Query : use flama_phc
20250220@211909.5913 0fhv57ppnmihevvr1ji9nmkq6d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@213609.5458 svh5tbvuh37vva2apae1vsuvqt Query : use flama_phc
20250220@213609.5465 svh5tbvuh37vva2apae1vsuvqt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@213609.5577 svh5tbvuh37vva2apae1vsuvqt Query : use flama_phc
20250220@213609.5580 svh5tbvuh37vva2apae1vsuvqt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@221910.5494 t0m29u4a1vsvvsf4k82oc7u1md Query : use flama_phc
20250220@221910.5498 t0m29u4a1vsvvsf4k82oc7u1md Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@221910.5606 t0m29u4a1vsvvsf4k82oc7u1md Query : use flama_phc
20250220@221910.5610 t0m29u4a1vsvvsf4k82oc7u1md Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@223610.4213 hscth5qc9tok9dd0f9jiohrjph Query : use flama_phc
20250220@223610.4218 hscth5qc9tok9dd0f9jiohrjph Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@223610.4397 hscth5qc9tok9dd0f9jiohrjph Query : use flama_phc
20250220@223610.4400 hscth5qc9tok9dd0f9jiohrjph Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@231910.9482 35nbicgtgb5m8f7cd0g6h4ltfr Query : use flama_phc
20250220@231910.9487 35nbicgtgb5m8f7cd0g6h4ltfr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@231910.9579 35nbicgtgb5m8f7cd0g6h4ltfr Query : use flama_phc
20250220@231910.9583 35nbicgtgb5m8f7cd0g6h4ltfr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250220@233610.4756 d31gqgei6i6ps85pp2nkq4t3qp Query : use flama_phc
20250220@233610.4761 d31gqgei6i6ps85pp2nkq4t3qp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250220@233610.4883 d31gqgei6i6ps85pp2nkq4t3qp Query : use flama_phc
20250220@233610.4887 d31gqgei6i6ps85pp2nkq4t3qp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@071911.1004 34bvuogcc5ga9460j4k4n2pdd6 Query : use flama_phc
20250221@071911.1009 34bvuogcc5ga9460j4k4n2pdd6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@071911.1191 34bvuogcc5ga9460j4k4n2pdd6 Query : use flama_phc
20250221@071911.1194 34bvuogcc5ga9460j4k4n2pdd6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@073614.4240 l697f1gj40ajbk4fiikkla7ecs Query : use flama_phc
20250221@073614.4280 l697f1gj40ajbk4fiikkla7ecs Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@073614.5470 l697f1gj40ajbk4fiikkla7ecs Query : use flama_phc
20250221@073614.5500 l697f1gj40ajbk4fiikkla7ecs Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@080602.5690 nje46lvfb1ovg21rmj0r5q0hv1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@080602.5724 nje46lvfb1ovg21rmj0r5q0hv1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@080602.6090 nje46lvfb1ovg21rmj0r5q0hv1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5464';
20250221@080602.6182 nje46lvfb1ovg21rmj0r5q0hv1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5464';
20250221@080602.6269 nje46lvfb1ovg21rmj0r5q0hv1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5464';
20250221@080602.6314 nje46lvfb1ovg21rmj0r5q0hv1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5464';
20250221@080602.6384 nje46lvfb1ovg21rmj0r5q0hv1 Query : use flama_phc
20250221@080602.6388 nje46lvfb1ovg21rmj0r5q0hv1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@080602.6497 nje46lvfb1ovg21rmj0r5q0hv1 Query : use flama_phc
20250221@080602.6501 nje46lvfb1ovg21rmj0r5q0hv1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250221@080602.6843 nje46lvfb1ovg21rmj0r5q0hv1 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501325 
20250221@080602.7294 nje46lvfb1ovg21rmj0r5q0hv1 Query : use flama_phc
20250221@080602.7298 nje46lvfb1ovg21rmj0r5q0hv1 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@080602.7368 nje46lvfb1ovg21rmj0r5q0hv1 Query : use flama_phc
20250221@080602.7372 nje46lvfb1ovg21rmj0r5q0hv1 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@080602.7439 nje46lvfb1ovg21rmj0r5q0hv1 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@080602.7478 nje46lvfb1ovg21rmj0r5q0hv1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5464';
20250221@080602.7525 nje46lvfb1ovg21rmj0r5q0hv1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5464';
20250221@080602.8062 q1o37spqs17vo5jdb3j7iromjv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@080602.8074 q1o37spqs17vo5jdb3j7iromjv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@080602.8149 q1o37spqs17vo5jdb3j7iromjv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5465';
20250221@080602.8227 q1o37spqs17vo5jdb3j7iromjv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5465';
20250221@080602.8296 q1o37spqs17vo5jdb3j7iromjv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5465';
20250221@080602.8339 q1o37spqs17vo5jdb3j7iromjv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5465';
20250221@080602.8449 q1o37spqs17vo5jdb3j7iromjv Query : use flama_phc
20250221@080602.8453 q1o37spqs17vo5jdb3j7iromjv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@080602.8539 q1o37spqs17vo5jdb3j7iromjv Query : use flama_phc
20250221@080602.8542 q1o37spqs17vo5jdb3j7iromjv Query : select no, estab,szadrsdesc from szadrs where u_coddest=5546
20250221@080602.8656 q1o37spqs17vo5jdb3j7iromjv Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501337 
20250221@080602.9115 q1o37spqs17vo5jdb3j7iromjv Query : use flama_phc
20250221@080602.9158 q1o37spqs17vo5jdb3j7iromjv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@080602.9320 q1o37spqs17vo5jdb3j7iromjv Query : use flama_phc
20250221@080602.9324 q1o37spqs17vo5jdb3j7iromjv Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@080602.9341 q1o37spqs17vo5jdb3j7iromjv Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@080602.9369 q1o37spqs17vo5jdb3j7iromjv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5465';
20250221@080602.9509 q1o37spqs17vo5jdb3j7iromjv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5465';
20250221@081909.4983 gosavjv3jq8i50f8ut5m8obdfl Query : use flama_phc
20250221@081909.5025 gosavjv3jq8i50f8ut5m8obdfl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@081909.5817 gosavjv3jq8i50f8ut5m8obdfl Query : use flama_phc
20250221@081909.5858 gosavjv3jq8i50f8ut5m8obdfl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@083609.6906 t4goslgdbjs7ig1kiabhpdf63d Query : use flama_phc
20250221@083609.6915 t4goslgdbjs7ig1kiabhpdf63d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@083609.7125 t4goslgdbjs7ig1kiabhpdf63d Query : use flama_phc
20250221@083609.7129 t4goslgdbjs7ig1kiabhpdf63d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@083624.5162 f7038k44kseqoeqpfedcnd53kn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@083624.5173 f7038k44kseqoeqpfedcnd53kn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@083624.5355 f7038k44kseqoeqpfedcnd53kn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5466';
20250221@083624.5523 f7038k44kseqoeqpfedcnd53kn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5466';
20250221@083624.5653 f7038k44kseqoeqpfedcnd53kn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5466';
20250221@083624.5764 f7038k44kseqoeqpfedcnd53kn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5466';
20250221@083624.5896 f7038k44kseqoeqpfedcnd53kn Query : use flama_phc
20250221@083624.5902 f7038k44kseqoeqpfedcnd53kn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@083624.6029 f7038k44kseqoeqpfedcnd53kn Query : use flama_phc
20250221@083624.6034 f7038k44kseqoeqpfedcnd53kn Query : select no, estab,szadrsdesc from szadrs where u_coddest=332
20250221@083624.6300 f7038k44kseqoeqpfedcnd53kn Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = gt2 and bo.boano = 2002 and bo.obrano = 25/2899 
20250221@083624.6842 f7038k44kseqoeqpfedcnd53kn Query : use flama_phc
20250221@083624.6853 f7038k44kseqoeqpfedcnd53kn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@083624.7026 f7038k44kseqoeqpfedcnd53kn Query : use flama_phc
20250221@083624.7115 f7038k44kseqoeqpfedcnd53kn Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@083624.7150 f7038k44kseqoeqpfedcnd53kn Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@083624.7222 f7038k44kseqoeqpfedcnd53kn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5466';
20250221@083624.7433 f7038k44kseqoeqpfedcnd53kn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5466';
20250221@091909.5765 ub497p4tdmct4k49f6hu1nnprd Query : use flama_phc
20250221@091909.5769 ub497p4tdmct4k49f6hu1nnprd Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@091909.5901 ub497p4tdmct4k49f6hu1nnprd Query : use flama_phc
20250221@091909.5904 ub497p4tdmct4k49f6hu1nnprd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@093609.8669 v8aa02odpckmfudpt7h0rea7uf Query : use flama_phc
20250221@093609.8674 v8aa02odpckmfudpt7h0rea7uf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@093609.8807 v8aa02odpckmfudpt7h0rea7uf Query : use flama_phc
20250221@093609.8811 v8aa02odpckmfudpt7h0rea7uf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@101911.2422 haaos21kc743bsicsgo5jfqvnl Query : use flama_phc
20250221@101911.2426 haaos21kc743bsicsgo5jfqvnl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@101911.2543 haaos21kc743bsicsgo5jfqvnl Query : use flama_phc
20250221@101911.2547 haaos21kc743bsicsgo5jfqvnl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@103610.8241 udgmfp0g9vpnit4281f4106fjf Query : use flama_phc
20250221@103610.8283 udgmfp0g9vpnit4281f4106fjf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@103610.9249 udgmfp0g9vpnit4281f4106fjf Query : use flama_phc
20250221@103610.9291 udgmfp0g9vpnit4281f4106fjf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@111911.3132 j40vh5dhid3b358r4banukjq7g Query : use flama_phc
20250221@111911.3136 j40vh5dhid3b358r4banukjq7g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@111911.3222 j40vh5dhid3b358r4banukjq7g Query : use flama_phc
20250221@111911.3225 j40vh5dhid3b358r4banukjq7g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@112349.8970 og07oqidbinv8u4qk5uek28nga Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@112349.9200 og07oqidbinv8u4qk5uek28nga Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@112349.1864 og07oqidbinv8u4qk5uek28nga Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5467';
20250221@112349.1946 og07oqidbinv8u4qk5uek28nga Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5467';
20250221@112349.2022 og07oqidbinv8u4qk5uek28nga Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5467';
20250221@112349.2064 og07oqidbinv8u4qk5uek28nga Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5467';
20250221@112349.2127 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112349.2131 og07oqidbinv8u4qk5uek28nga Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@112349.2210 og07oqidbinv8u4qk5uek28nga Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5343.00.1'
20250221@112349.2345 og07oqidbinv8u4qk5uek28nga 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 = 2401258 and bi.ref ='324.5343.00.1' and bi.lordem =30000
20250221@112349.2673 og07oqidbinv8u4qk5uek28nga 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 = 'cps24103143525,280000003 ' 
20250221@112349.3042 og07oqidbinv8u4qk5uek28nga Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5342.00.1'
20250221@112349.3178 og07oqidbinv8u4qk5uek28nga 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 = 2401258 and bi.ref ='324.5342.00.1' and bi.lordem =3
20250221@112349.3554 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112349.3557 og07oqidbinv8u4qk5uek28nga Query : select top 1 1 valor from ts where ts.ndos = 61
20250221@112349.3667 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112349.3670 og07oqidbinv8u4qk5uek28nga 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')
20250221@112349.4925 og07oqidbinv8u4qk5uek28nga 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
20250221@112349.5130 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112349.5134 og07oqidbinv8u4qk5uek28nga Query : select top 1 ~inactivo valor from fl where no = '202090' and estab = 00 order by inactivo desc
20250221@112349.5256 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112349.5259 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from ts where ndos = 61
20250221@112349.5333 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112349.5660 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250221@112349.5746 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112349.5762 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250221@112349.5773 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112349.5789 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250221@112349.5800 og07oqidbinv8u4qk5uek28nga 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
20250221@112349.5932 og07oqidbinv8u4qk5uek28nga Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250221@112349.6028 og07oqidbinv8u4qk5uek28nga Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250221@112349.6051 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112349.6059 og07oqidbinv8u4qk5uek28nga Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202090' and estab=00
20250221@112349.6143 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112349.6165 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250221@112349.6216 og07oqidbinv8u4qk5uek28nga Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b860033467b8624593',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250221@112349.6293 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112349.6343 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250221@112349.6363 og07oqidbinv8u4qk5uek28nga Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b860033467b8624593','--','bo',7.6266666666666666666 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250221@112349.6632 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112349.6652 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250221@112349.6670 og07oqidbinv8u4qk5uek28nga 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 ('aut67b860033467b8624593','guia r. fornecedor','2025-02-21',61,2500692,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250221@112353.5179 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112353.5183 og07oqidbinv8u4qk5uek28nga Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20250221@112353.5321 og07oqidbinv8u4qk5uek28nga Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20250221@112353.5497 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112353.5515 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250221@112353.5532 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112353.5548 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250221@112353.5559 og07oqidbinv8u4qk5uek28nga Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2401258300a'
20250221@112353.5620 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112353.5635 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250221@112353.5648 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112353.5668 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250221@112353.5684 og07oqidbinv8u4qk5uek28nga Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b867666867b8624989',?,?,'20250221',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250221@112353.6728 og07oqidbinv8u4qk5uek28nga Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@112353.6796 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112353.6818 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250221@112353.6836 og07oqidbinv8u4qk5uek28nga Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67b866494567b86249a5','aut67b860033467b8624593',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 = 'aut67b860033467b8624593'
20250221@112353.7070 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112353.7093 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250221@112353.7131 og07oqidbinv8u4qk5uek28nga 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 'aut67b866494567b86249a5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3000, 3000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,6.75,6.75*200.48,6.75,6.75*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,6.5475*3000,6.5475*3000*200.48 ,7.570000,7.570000*200.48 ,7.570000,7.570000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,3,0,0,0,6.5475,6.5475*200.48,6.5475*3000,6.5475*3000*200.48,'cps24103143525,280000003 ',49.9356,51.48*3000,49.9356,51.48*3000,?,?,?,4 from bo bo where bo.bostamp = 'aut67b860033467b8624593'
20250221@112417.7344 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112417.7350 og07oqidbinv8u4qk5uek28nga Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20250221@112417.7383 og07oqidbinv8u4qk5uek28nga Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5342.00.1'
20250221@112417.7554 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112417.7572 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250221@112417.7588 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112417.7605 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250221@112417.7617 og07oqidbinv8u4qk5uek28nga Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2401258300a'
20250221@112417.7632 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112417.7649 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250221@112417.7678 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112417.7695 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250221@112417.7707 og07oqidbinv8u4qk5uek28nga Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b867578067b86261bb',?,?,'20250221',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250221@112417.8395 og07oqidbinv8u4qk5uek28nga Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@112417.8412 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112417.8429 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250221@112417.8441 og07oqidbinv8u4qk5uek28nga Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67b866325167b86261cd','aut67b860033467b8624593',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 = 'aut67b860033467b8624593'
20250221@112417.8611 og07oqidbinv8u4qk5uek28nga Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@112417.8635 og07oqidbinv8u4qk5uek28nga Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250221@112417.8658 og07oqidbinv8u4qk5uek28nga Query : insert into bi (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,eslvu,slvu,esltt,sltt,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,obistamp ,stipo) select 'aut67b866325167b86261cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3000, 3000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,0,0*200.48,0,0*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,0*3000,0*3000*200.48 ,7.565000,7.565000*200.48 ,7.565000,7.565000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0*200.48,0*3000,0*3000*200.48,0,0*3000,0,0*3000,?,?,?,4 from bo bo where bo.bostamp = 'aut67b860033467b8624593'
20250221@112417.9070 og07oqidbinv8u4qk5uek28nga Query : use flama_phc
20250221@112417.9074 og07oqidbinv8u4qk5uek28nga Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -110
20250221@112417.9158 og07oqidbinv8u4qk5uek28nga Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5467';
20250221@112417.9209 og07oqidbinv8u4qk5uek28nga Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5467';
20250221@112417.9815 0googopq91h39m5079912piuf0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@112417.9827 0googopq91h39m5079912piuf0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@112417.9904 0googopq91h39m5079912piuf0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5468';
20250221@112417.9981 0googopq91h39m5079912piuf0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5468';
20250221@112418.5300 0googopq91h39m5079912piuf0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5468';
20250221@112418.9900 0googopq91h39m5079912piuf0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5468';
20250221@112418.1610 0googopq91h39m5079912piuf0 Query : use flama_phc
20250221@112418.1650 0googopq91h39m5079912piuf0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@112418.2280 0googopq91h39m5079912piuf0 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.939.00.01'
20250221@112418.3410 0googopq91h39m5079912piuf0 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/69 and bi.ref ='324.939.00.01' and bi.lordem =1
20250221@112418.4520 0googopq91h39m5079912piuf0 Query : use flama_phc
20250221@112418.4550 0googopq91h39m5079912piuf0 Query : select top 1 1 valor from ts where ts.ndos = 61
20250221@112418.4850 0googopq91h39m5079912piuf0 Query : use flama_phc
20250221@112418.4880 0googopq91h39m5079912piuf0 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')
20250221@112418.5170 0googopq91h39m5079912piuf0 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
20250221@112418.5560 0googopq91h39m5079912piuf0 Query : use flama_phc
20250221@112418.5590 0googopq91h39m5079912piuf0 Query : select top 1 ~inactivo valor from fl where no = '1626' and estab = 26 order by inactivo desc
20250221@112418.7130 0googopq91h39m5079912piuf0 Query : use flama_phc
20250221@112418.7170 0googopq91h39m5079912piuf0 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250221@112418.8260 0googopq91h39m5079912piuf0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5468';
20250221@112418.8750 0googopq91h39m5079912piuf0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5468';
20250221@113611.4308 j3crembn2hkasd9d34juv8lfro Query : use flama_phc
20250221@113611.4313 j3crembn2hkasd9d34juv8lfro Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@113611.4397 j3crembn2hkasd9d34juv8lfro Query : use flama_phc
20250221@113611.4401 j3crembn2hkasd9d34juv8lfro Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@114215.7041 rpbf7m96aki2b8471t5g8oribq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@114215.7055 rpbf7m96aki2b8471t5g8oribq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@114215.7131 rpbf7m96aki2b8471t5g8oribq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5469';
20250221@114215.7197 rpbf7m96aki2b8471t5g8oribq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5469';
20250221@114215.7266 rpbf7m96aki2b8471t5g8oribq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5469';
20250221@114215.7305 rpbf7m96aki2b8471t5g8oribq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5469';
20250221@114215.7368 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114215.7372 rpbf7m96aki2b8471t5g8oribq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@114215.7436 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114215.7439 rpbf7m96aki2b8471t5g8oribq Query : select no, estab,szadrsdesc from szadrs where u_coddest=2926
20250221@114215.7593 rpbf7m96aki2b8471t5g8oribq Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 119 and bo.boano = 2025 and bo.obrano = 0000358 
20250221@114215.8033 rpbf7m96aki2b8471t5g8oribq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20250221@114215.8179 rpbf7m96aki2b8471t5g8oribq Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022135845,2620000-2 ' 
20250221@114215.8489 rpbf7m96aki2b8471t5g8oribq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20250221@114215.8511 rpbf7m96aki2b8471t5g8oribq Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022135845,2620000-2 ' 
20250221@114215.8534 rpbf7m96aki2b8471t5g8oribq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20250221@114215.8706 rpbf7m96aki2b8471t5g8oribq Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022135845,5120000-3 ' 
20250221@114215.9036 rpbf7m96aki2b8471t5g8oribq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20250221@114215.9077 rpbf7m96aki2b8471t5g8oribq Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022135845,5820000-4 ' 
20250221@114215.9533 rpbf7m96aki2b8471t5g8oribq Query : select top 1 tpdesc, tpstamp from bo where bostamp ='dgo25021840492,516000002 '
20250221@114215.9637 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114215.9640 rpbf7m96aki2b8471t5g8oribq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250221@114215.9822 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114215.9826 rpbf7m96aki2b8471t5g8oribq Query : select top 1 1 valor from td where td.ndoc = 39
20250221@114215.9917 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114215.9920 rpbf7m96aki2b8471t5g8oribq 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')
20250221@114215.9949 rpbf7m96aki2b8471t5g8oribq Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields ,temserie useserialnumber from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250221@114216.7000 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.7300 rpbf7m96aki2b8471t5g8oribq Query : select top 1 ~inactivo valor from cl where no = '102454' and estab = 0 order by inactivo desc
20250221@114216.2020 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.2050 rpbf7m96aki2b8471t5g8oribq Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250221@114216.2980 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.3020 rpbf7m96aki2b8471t5g8oribq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@114216.3500 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.3530 rpbf7m96aki2b8471t5g8oribq Query : select szadrsstamp valor from szadrs where szadrsdesc='carlos oliveira & cristina oliveira - electr. lda'
20250221@114216.3990 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.4020 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from td where ndoc = 39
20250221@114216.4720 rpbf7m96aki2b8471t5g8oribq Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250221@114216.5340 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.5500 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250221@114216.5790 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.5940 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250221@114216.6270 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.6420 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250221@114216.6570 rpbf7m96aki2b8471t5g8oribq Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250221@114216.8930 rpbf7m96aki2b8471t5g8oribq Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250221@114216.1188 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.1192 rpbf7m96aki2b8471t5g8oribq Query : select top 1 clstamp valor from cl where no = '102454' and estab = 0 order by inactivo desc
20250221@114216.1312 rpbf7m96aki2b8471t5g8oribq Query : select diames,mesesnaopag,formapag,descricao,dias,vencimento from tp where tpstamp = 'ris18061563245,327599831 '
20250221@114216.1364 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.1381 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250221@114216.1400 rpbf7m96aki2b8471t5g8oribq Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67b866873767b8669810' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250221@114216.1852 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.1891 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250221@114216.1931 rpbf7m96aki2b8471t5g8oribq Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp='dgo25021840492,516000002 '
20250221@114216.2036 rpbf7m96aki2b8471t5g8oribq Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp='dgo25021840492,516000002 '
20250221@114216.2123 rpbf7m96aki2b8471t5g8oribq Query : select top 1 bo.u_codposen valor from bo where bo.bostamp='dgo25021840492,516000002 '
20250221@114216.2270 rpbf7m96aki2b8471t5g8oribq Query : select top 1 bo.u_localenv valor from bo where bo.bostamp='dgo25021840492,516000002 '
20250221@114216.2355 rpbf7m96aki2b8471t5g8oribq Query : select top 1 bo.trab5 valor from bo where bo.bostamp='dgo25021840492,516000002 '
20250221@114216.2436 rpbf7m96aki2b8471t5g8oribq Query : select top 1 bo.serie valor from bo where bo.bostamp='dgo25021840492,516000002 '
20250221@114216.3036 rpbf7m96aki2b8471t5g8oribq Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,formapag,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ,dataentrega ) values ('aut67b866873767b8669810',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?,?,?)
20250221@114216.4484 rpbf7m96aki2b8471t5g8oribq Query : select top 1 fno valor from wsftdata order by fno desc
20250221@114216.4561 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.4577 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250221@114216.4610 rpbf7m96aki2b8471t5g8oribq Query : select 'normal' from dummy
20250221@114216.4659 rpbf7m96aki2b8471t5g8oribq Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,pdata,tpdesc,tpstamp,cdata,chora,carga,descar,site ,classe ,encomenda ,u_hdesc ,u_ddesc ) values ('aut67b866873767b8669810',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3099,102454,0,'2025-02-21',39,'euro',0,0,2025 ,'2025-04-22',?,'ris18061563245,327599831 ','20250221','1212',?,?,?,?,?,?,?)
20250221@114216.5085 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.5088 rpbf7m96aki2b8471t5g8oribq Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250221@114216.5104 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.5106 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.5216 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.5219 rpbf7m96aki2b8471t5g8oribq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1675.00.2' and sa.armazem = 133 
20250221@114216.5286 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.5289 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.5301 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.5304 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.5325 rpbf7m96aki2b8471t5g8oribq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20250221@114216.5483 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.5499 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.5527 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.5542 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.5552 rpbf7m96aki2b8471t5g8oribq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@114216.5566 rpbf7m96aki2b8471t5g8oribq Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2401094200a'
20250221@114216.5583 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.5599 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.5611 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b861696867b8669888','aut67b866873767b8669810' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@114216.5731 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.5748 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.5779 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b861696867b8669888',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut67b866873767b8669810' ,57.600000,0 ,2,23.00,10000,?,?,?,?,?,?,?,?,?)
20250221@114216.6334 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6337 rpbf7m96aki2b8471t5g8oribq Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250221@114216.6350 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6353 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.6369 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6371 rpbf7m96aki2b8471t5g8oribq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1675.00.2' and sa.armazem = 133 
20250221@114216.6394 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6397 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.6409 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6412 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.6436 rpbf7m96aki2b8471t5g8oribq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20250221@114216.6458 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.6475 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.6499 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.6514 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.6523 rpbf7m96aki2b8471t5g8oribq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@114216.6535 rpbf7m96aki2b8471t5g8oribq Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2401094200a'
20250221@114216.6548 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.6563 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.6575 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b860948067b866989f','aut67b866873767b8669810' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@114216.6579 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.6612 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.6640 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b860948067b866989f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1 ,'aut67b866873767b8669810' ,57.600000,0 ,2,23.00,20000,?,?,?,?,?,?,?,?,?)
20250221@114216.6854 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6857 rpbf7m96aki2b8471t5g8oribq Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20250221@114216.6872 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6874 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20250221@114216.6890 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6893 rpbf7m96aki2b8471t5g8oribq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1667.00.1' and sa.armazem = 133 
20250221@114216.6962 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6965 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20250221@114216.6978 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.6982 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20250221@114216.7000 rpbf7m96aki2b8471t5g8oribq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1667.00.1'
20250221@114216.7156 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.7203 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.7267 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.7283 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.7292 rpbf7m96aki2b8471t5g8oribq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@114216.7308 rpbf7m96aki2b8471t5g8oribq Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400923100a'
20250221@114216.7329 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.7347 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.7361 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b864818967b86698b2','aut67b866873767b8669810' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@114216.7365 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.7382 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.7421 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b864818967b86698b2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.0000 ,'aut67b866873767b8669810' ,89.600000,0 ,2,23.00,30000,?,?,?,?,?,?,?,?,?)
20250221@114216.7639 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.7681 rpbf7m96aki2b8471t5g8oribq Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250221@114216.7708 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.7711 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.7729 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.7732 rpbf7m96aki2b8471t5g8oribq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1675.00.2' and sa.armazem = 133 
20250221@114216.7773 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.7776 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.7789 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.7792 rpbf7m96aki2b8471t5g8oribq Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250221@114216.7812 rpbf7m96aki2b8471t5g8oribq Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20250221@114216.7827 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.7843 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.7872 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.7920 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.7930 rpbf7m96aki2b8471t5g8oribq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@114216.7944 rpbf7m96aki2b8471t5g8oribq Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2401094200a'
20250221@114216.7978 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.7994 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@114216.8014 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b864106967b86698c2','aut67b866873767b8669810' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@114216.8019 rpbf7m96aki2b8471t5g8oribq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@114216.8041 rpbf7m96aki2b8471t5g8oribq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@114216.8073 rpbf7m96aki2b8471t5g8oribq Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b864106967b86698c2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1 ,'aut67b866873767b8669810' ,57.600000,0 ,2,23.00,40000,?,?,?,?,?,?,?,?,?)
20250221@114216.8286 rpbf7m96aki2b8471t5g8oribq Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67b866873767b8669810','','wait',39,'adm09112754980.682000002')
20250221@114216.8380 rpbf7m96aki2b8471t5g8oribq Query : use flama_phc
20250221@114216.8383 rpbf7m96aki2b8471t5g8oribq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@114216.8415 rpbf7m96aki2b8471t5g8oribq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5469';
20250221@114216.8468 rpbf7m96aki2b8471t5g8oribq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5469';
20250221@114216.8526 rpbf7m96aki2b8471t5g8oribq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5469';
20250221@114216.8595 rpbf7m96aki2b8471t5g8oribq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5469';
20250221@115714.2854 d0gtli79dccmju0nusue09vkos Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@115714.2881 d0gtli79dccmju0nusue09vkos Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@115714.2961 d0gtli79dccmju0nusue09vkos Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5470';
20250221@115714.3050 d0gtli79dccmju0nusue09vkos Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5470';
20250221@115714.3121 d0gtli79dccmju0nusue09vkos Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5470';
20250221@115714.3164 d0gtli79dccmju0nusue09vkos Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5470';
20250221@115714.3238 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.3241 d0gtli79dccmju0nusue09vkos Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@115714.3304 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.3307 d0gtli79dccmju0nusue09vkos Query : select no, estab,szadrsdesc from szadrs where u_coddest=5546
20250221@115714.3362 d0gtli79dccmju0nusue09vkos Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 119 and bo.boano = 2025 and bo.obrano = 0000357 
20250221@115714.3841 d0gtli79dccmju0nusue09vkos Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.939.00.01'
20250221@115714.4076 d0gtli79dccmju0nusue09vkos Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022061409,1860000-2 ' 
20250221@115714.4420 d0gtli79dccmju0nusue09vkos Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.939.00.01'
20250221@115714.4439 d0gtli79dccmju0nusue09vkos Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022061409,1860000-2 ' 
20250221@115714.4463 d0gtli79dccmju0nusue09vkos Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.939.00.01'
20250221@115714.4482 d0gtli79dccmju0nusue09vkos Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022061409,1860000-2 ' 
20250221@115714.4503 d0gtli79dccmju0nusue09vkos Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.939.00.01'
20250221@115714.4521 d0gtli79dccmju0nusue09vkos Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022061409,1860000-2 ' 
20250221@115714.4542 d0gtli79dccmju0nusue09vkos Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.939.00.01'
20250221@115714.4562 d0gtli79dccmju0nusue09vkos Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'evc25022061409,1860000-2 ' 
20250221@115714.4580 d0gtli79dccmju0nusue09vkos Query : select top 1 tpdesc, tpstamp from bo where bostamp ='evc25021035053,605000001 '
20250221@115714.4687 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.4690 d0gtli79dccmju0nusue09vkos Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250221@115714.4723 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.4726 d0gtli79dccmju0nusue09vkos Query : select top 1 1 valor from td where td.ndoc = 39
20250221@115714.4757 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.4760 d0gtli79dccmju0nusue09vkos 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')
20250221@115714.4828 d0gtli79dccmju0nusue09vkos Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields ,temserie useserialnumber from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20250221@115714.4865 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.4868 d0gtli79dccmju0nusue09vkos Query : select top 1 ~inactivo valor from cl where no = '199506' and estab = 0 order by inactivo desc
20250221@115714.4994 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.4997 d0gtli79dccmju0nusue09vkos Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250221@115714.5027 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.5030 d0gtli79dccmju0nusue09vkos Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@115714.5067 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.5070 d0gtli79dccmju0nusue09vkos Query : select szadrsstamp valor from szadrs where szadrsdesc='199506 - itmp alimentar, s.a.'
20250221@115714.5116 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.5119 d0gtli79dccmju0nusue09vkos Query : select 1 valor from td where ndoc = 39
20250221@115714.5130 d0gtli79dccmju0nusue09vkos Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250221@115714.5147 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.5479 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250221@115714.5510 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.5527 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250221@115714.5559 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.5578 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250221@115714.5591 d0gtli79dccmju0nusue09vkos Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250221@115714.5703 d0gtli79dccmju0nusue09vkos Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250221@115714.5715 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.5718 d0gtli79dccmju0nusue09vkos Query : select top 1 clstamp valor from cl where no = '199506' and estab = 0 order by inactivo desc
20250221@115714.5828 d0gtli79dccmju0nusue09vkos Query : select diames,mesesnaopag,formapag,descricao,dias,vencimento from tp where tpstamp = 'ris18061563264,326353509 '
20250221@115714.5844 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.5860 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250221@115714.5881 d0gtli79dccmju0nusue09vkos Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut67b863819267b86a1a88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250221@115714.6054 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.6072 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250221@115714.6112 d0gtli79dccmju0nusue09vkos Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp='evc25021035053,605000001 '
20250221@115714.6254 d0gtli79dccmju0nusue09vkos Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp='evc25021035053,605000001 '
20250221@115714.6378 d0gtli79dccmju0nusue09vkos Query : select top 1 bo.u_codposen valor from bo where bo.bostamp='evc25021035053,605000001 '
20250221@115714.6493 d0gtli79dccmju0nusue09vkos Query : select top 1 bo.u_localenv valor from bo where bo.bostamp='evc25021035053,605000001 '
20250221@115714.6589 d0gtli79dccmju0nusue09vkos Query : select top 1 bo.trab5 valor from bo where bo.bostamp='evc25021035053,605000001 '
20250221@115714.6672 d0gtli79dccmju0nusue09vkos Query : select top 1 bo.serie valor from bo where bo.bostamp='evc25021035053,605000001 '
20250221@115714.6756 d0gtli79dccmju0nusue09vkos Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,formapag,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ,dataentrega ) values ('aut67b863819267b86a1a88',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?,?,?)
20250221@115714.6979 d0gtli79dccmju0nusue09vkos Query : select top 1 fno valor from wsftdata order by fno desc
20250221@115714.7028 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.7046 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250221@115714.7073 d0gtli79dccmju0nusue09vkos Query : select 'normal' from dummy
20250221@115714.7089 d0gtli79dccmju0nusue09vkos Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,pdata,tpdesc,tpstamp,cdata,chora,carga,descar,site ,classe ,encomenda ,u_hdesc ,u_ddesc ) values ('aut67b863819267b86a1a88',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3100,199506,0,'2025-02-21',39,'euro',0,0,2025 ,'2025-05-07',?,'ris18061563264,326353509 ','20250221','1227',?,?,?,?,?,?,?)
20250221@115714.7386 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.7389 d0gtli79dccmju0nusue09vkos Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20250221@115714.7408 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.7410 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.7428 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.7431 d0gtli79dccmju0nusue09vkos Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.939.00.01' and sa.armazem = 133 
20250221@115714.7515 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.7518 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.7532 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.7535 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.7560 d0gtli79dccmju0nusue09vkos Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.939.00.01'
20250221@115714.7722 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.7740 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.7792 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.7829 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.7860 d0gtli79dccmju0nusue09vkos Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@115714.7916 d0gtli79dccmju0nusue09vkos Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20250221@115714.7941 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.7959 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.7974 d0gtli79dccmju0nusue09vkos Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b868881367b86a1ac1','aut67b863819267b86a1a88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@115714.7979 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.7994 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.8029 d0gtli79dccmju0nusue09vkos Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b868881367b86a1ac1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut67b863819267b86a1a88' ,24.300000,0 ,2,23.00,10000,?,?,?,?,?,?,?,?,?)
20250221@115714.8271 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8275 d0gtli79dccmju0nusue09vkos Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20250221@115714.8289 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8293 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.8313 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8316 d0gtli79dccmju0nusue09vkos Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.939.00.01' and sa.armazem = 133 
20250221@115714.8339 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8342 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.8359 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8362 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.8389 d0gtli79dccmju0nusue09vkos Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.939.00.01'
20250221@115714.8414 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.8433 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.8461 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.8479 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.8489 d0gtli79dccmju0nusue09vkos Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@115714.8503 d0gtli79dccmju0nusue09vkos Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20250221@115714.8518 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.8537 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.8550 d0gtli79dccmju0nusue09vkos Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b865448367b86a1acf','aut67b863819267b86a1a88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@115714.8555 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.8572 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.8604 d0gtli79dccmju0nusue09vkos Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b865448367b86a1acf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',24.000 ,'aut67b863819267b86a1a88' ,24.300000,0 ,2,23.00,20000,?,?,?,?,?,?,?,?,?)
20250221@115714.8848 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8852 d0gtli79dccmju0nusue09vkos Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20250221@115714.8871 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8874 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.8890 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8893 d0gtli79dccmju0nusue09vkos Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.939.00.01' and sa.armazem = 133 
20250221@115714.8923 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8926 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.8938 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.8946 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.8967 d0gtli79dccmju0nusue09vkos Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.939.00.01'
20250221@115714.8986 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9005 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.9038 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9055 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.9065 d0gtli79dccmju0nusue09vkos Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@115714.9080 d0gtli79dccmju0nusue09vkos Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20250221@115714.9093 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9115 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.9128 d0gtli79dccmju0nusue09vkos Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b865478967b86a1ade','aut67b863819267b86a1a88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@115714.9133 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9150 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.9197 d0gtli79dccmju0nusue09vkos Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b865478967b86a1ade',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut67b863819267b86a1a88' ,24.300000,0 ,2,23.00,30000,?,?,?,?,?,?,?,?,?)
20250221@115714.9446 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.9455 d0gtli79dccmju0nusue09vkos Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20250221@115714.9470 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.9473 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.9488 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.9490 d0gtli79dccmju0nusue09vkos Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.939.00.01' and sa.armazem = 133 
20250221@115714.9527 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.9530 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.9553 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115714.9556 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115714.9576 d0gtli79dccmju0nusue09vkos Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.939.00.01'
20250221@115714.9592 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9610 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.9638 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9656 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.9669 d0gtli79dccmju0nusue09vkos Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@115714.9682 d0gtli79dccmju0nusue09vkos Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20250221@115714.9697 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9716 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115714.9735 d0gtli79dccmju0nusue09vkos Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b868982267b86a1aec','aut67b863819267b86a1a88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@115714.9739 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115714.9766 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115714.9803 d0gtli79dccmju0nusue09vkos Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b868982267b86a1aec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60.000 ,'aut67b863819267b86a1a88' ,24.300000,0 ,2,23.00,40000,?,?,?,?,?,?,?,?,?)
20250221@115715.1080 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115715.1240 d0gtli79dccmju0nusue09vkos Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20250221@115715.1370 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115715.1400 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115715.1580 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115715.1600 d0gtli79dccmju0nusue09vkos Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.939.00.01' and sa.armazem = 133 
20250221@115715.1820 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115715.1840 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115715.1970 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115715.2000 d0gtli79dccmju0nusue09vkos Query : select st.stns valor from st where st.ref = '324.939.00.01'
20250221@115715.2180 d0gtli79dccmju0nusue09vkos Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.939.00.01'
20250221@115715.2320 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115715.2490 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115715.2760 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115715.2930 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115715.3030 d0gtli79dccmju0nusue09vkos Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250221@115715.3170 d0gtli79dccmju0nusue09vkos Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20250221@115715.3300 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115715.3470 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250221@115715.3610 d0gtli79dccmju0nusue09vkos Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67b866402067b86a1b08','aut67b863819267b86a1a88' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250221@115715.3650 d0gtli79dccmju0nusue09vkos Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250221@115715.3790 d0gtli79dccmju0nusue09vkos Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250221@115715.4060 d0gtli79dccmju0nusue09vkos Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem,bistamp ,desconto ,desc2 ,desc3 ,desc4 ) values ('aut67b866402067b86a1b08',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',60 ,'aut67b863819267b86a1a88' ,24.300000,0 ,2,23.00,50000,?,?,?,?,?,?,?,?,?)
20250221@115715.6400 d0gtli79dccmju0nusue09vkos Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut67b863819267b86a1a88','','wait',39,'adm09112754980.682000002')
20250221@115715.7120 d0gtli79dccmju0nusue09vkos Query : use flama_phc
20250221@115715.7150 d0gtli79dccmju0nusue09vkos Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@115715.7420 d0gtli79dccmju0nusue09vkos Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5470';
20250221@115715.7900 d0gtli79dccmju0nusue09vkos Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5470';
20250221@115715.8530 d0gtli79dccmju0nusue09vkos Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5470';
20250221@115715.9000 d0gtli79dccmju0nusue09vkos Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5470';
20250221@121910.8191 48dkcj05jf8e2lsfec5db31vug Query : use flama_phc
20250221@121910.8196 48dkcj05jf8e2lsfec5db31vug Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@121910.8298 48dkcj05jf8e2lsfec5db31vug Query : use flama_phc
20250221@121910.8302 48dkcj05jf8e2lsfec5db31vug Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@123610.4379 tsspq5bgn891fjt14set6i9i2p Query : use flama_phc
20250221@123610.4383 tsspq5bgn891fjt14set6i9i2p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@123610.4565 tsspq5bgn891fjt14set6i9i2p Query : use flama_phc
20250221@123610.4594 tsspq5bgn891fjt14set6i9i2p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@131912.3784 05612bbbhp0k85ec699l9dn6an Query : use flama_phc
20250221@131912.3788 05612bbbhp0k85ec699l9dn6an Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@131912.3876 05612bbbhp0k85ec699l9dn6an Query : use flama_phc
20250221@131912.3879 05612bbbhp0k85ec699l9dn6an Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@133612.5010 gjlf0d35t62aq9n9daprgnvlp3 Query : use flama_phc
20250221@133612.5060 gjlf0d35t62aq9n9daprgnvlp3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@133612.5990 gjlf0d35t62aq9n9daprgnvlp3 Query : use flama_phc
20250221@133612.6020 gjlf0d35t62aq9n9daprgnvlp3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@141909.7331 0b50hfkb3thbfkok7ebu9llj4c Query : use flama_phc
20250221@141909.7335 0b50hfkb3thbfkok7ebu9llj4c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@141909.7423 0b50hfkb3thbfkok7ebu9llj4c Query : use flama_phc
20250221@141909.7426 0b50hfkb3thbfkok7ebu9llj4c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@143609.2737 k23lcn3jaem7p31sucd4pavdo7 Query : use flama_phc
20250221@143609.2743 k23lcn3jaem7p31sucd4pavdo7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@143609.2893 k23lcn3jaem7p31sucd4pavdo7 Query : use flama_phc
20250221@143609.2901 k23lcn3jaem7p31sucd4pavdo7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@143934.9066 k08lm40i2pdc0cjdk5oddbdajf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@143934.9084 k08lm40i2pdc0cjdk5oddbdajf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@143934.9373 k08lm40i2pdc0cjdk5oddbdajf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5471';
20250221@143934.9455 k08lm40i2pdc0cjdk5oddbdajf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5471';
20250221@143934.9540 k08lm40i2pdc0cjdk5oddbdajf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5471';
20250221@143934.9603 k08lm40i2pdc0cjdk5oddbdajf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5471';
20250221@143935.9200 1bfpr4doe1srgmpgj6n4l8ab67 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@143935.9340 1bfpr4doe1srgmpgj6n4l8ab67 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@143935.1009 1bfpr4doe1srgmpgj6n4l8ab67 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5472';
20250221@143935.1101 1bfpr4doe1srgmpgj6n4l8ab67 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5472';
20250221@143935.1184 1bfpr4doe1srgmpgj6n4l8ab67 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5472';
20250221@143935.1236 1bfpr4doe1srgmpgj6n4l8ab67 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5472';
20250221@144036.3416 6sl8g1unoatug2qlu83542sjsa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@144036.3428 6sl8g1unoatug2qlu83542sjsa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@144036.3504 6sl8g1unoatug2qlu83542sjsa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5473';
20250221@144036.3572 6sl8g1unoatug2qlu83542sjsa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5473';
20250221@144036.3642 6sl8g1unoatug2qlu83542sjsa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5473';
20250221@144036.3681 6sl8g1unoatug2qlu83542sjsa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5473';
20250221@151911.8170 710bftqvdjfo5oofflncntqgap Query : use flama_phc
20250221@151911.8220 710bftqvdjfo5oofflncntqgap Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@151911.9820 710bftqvdjfo5oofflncntqgap Query : use flama_phc
20250221@151911.9860 710bftqvdjfo5oofflncntqgap Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@153611.1614 2rpljuqfp5org6foenm2583ef6 Query : use flama_phc
20250221@153611.1618 2rpljuqfp5org6foenm2583ef6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@153611.1714 2rpljuqfp5org6foenm2583ef6 Query : use flama_phc
20250221@153611.1718 2rpljuqfp5org6foenm2583ef6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@155058.6218 7vp5gvrfcvc3llsvvbfqmjkboc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155058.6231 7vp5gvrfcvc3llsvvbfqmjkboc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155058.6319 7vp5gvrfcvc3llsvvbfqmjkboc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5474';
20250221@155058.6415 7vp5gvrfcvc3llsvvbfqmjkboc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5474';
20250221@155058.6521 7vp5gvrfcvc3llsvvbfqmjkboc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5474';
20250221@155058.6559 7vp5gvrfcvc3llsvvbfqmjkboc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5474';
20250221@155058.6624 7vp5gvrfcvc3llsvvbfqmjkboc Query : use flama_phc
20250221@155058.6628 7vp5gvrfcvc3llsvvbfqmjkboc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155058.6711 7vp5gvrfcvc3llsvvbfqmjkboc Query : use flama_phc
20250221@155058.6714 7vp5gvrfcvc3llsvvbfqmjkboc Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20250221@155058.6864 7vp5gvrfcvc3llsvvbfqmjkboc Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501342 
20250221@155058.7287 7vp5gvrfcvc3llsvvbfqmjkboc Query : use flama_phc
20250221@155058.7291 7vp5gvrfcvc3llsvvbfqmjkboc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155058.7368 7vp5gvrfcvc3llsvvbfqmjkboc Query : use flama_phc
20250221@155058.7371 7vp5gvrfcvc3llsvvbfqmjkboc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155058.7409 7vp5gvrfcvc3llsvvbfqmjkboc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155058.7433 7vp5gvrfcvc3llsvvbfqmjkboc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5474';
20250221@155058.7491 7vp5gvrfcvc3llsvvbfqmjkboc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5474';
20250221@155058.9252 gcmrcumsn62cok4hq7mrvh6o40 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155058.9263 gcmrcumsn62cok4hq7mrvh6o40 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155058.9342 gcmrcumsn62cok4hq7mrvh6o40 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5475';
20250221@155058.9441 gcmrcumsn62cok4hq7mrvh6o40 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5475';
20250221@155058.9516 gcmrcumsn62cok4hq7mrvh6o40 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5475';
20250221@155058.9562 gcmrcumsn62cok4hq7mrvh6o40 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5475';
20250221@155058.9637 gcmrcumsn62cok4hq7mrvh6o40 Query : use flama_phc
20250221@155058.9641 gcmrcumsn62cok4hq7mrvh6o40 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155058.9828 gcmrcumsn62cok4hq7mrvh6o40 Query : use flama_phc
20250221@155058.9832 gcmrcumsn62cok4hq7mrvh6o40 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20250221@155058.9930 gcmrcumsn62cok4hq7mrvh6o40 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501343 
20250221@155059.4510 gcmrcumsn62cok4hq7mrvh6o40 Query : use flama_phc
20250221@155059.4550 gcmrcumsn62cok4hq7mrvh6o40 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155059.4890 gcmrcumsn62cok4hq7mrvh6o40 Query : use flama_phc
20250221@155059.4930 gcmrcumsn62cok4hq7mrvh6o40 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155059.5110 gcmrcumsn62cok4hq7mrvh6o40 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155059.5340 gcmrcumsn62cok4hq7mrvh6o40 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5475';
20250221@155059.6110 gcmrcumsn62cok4hq7mrvh6o40 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5475';
20250221@155059.1283 gqv4gvl4cjfa8dnrjr9jt243qe Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155059.1294 gqv4gvl4cjfa8dnrjr9jt243qe Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155059.1808 gqv4gvl4cjfa8dnrjr9jt243qe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5476';
20250221@155059.1882 gqv4gvl4cjfa8dnrjr9jt243qe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5476';
20250221@155059.2011 gqv4gvl4cjfa8dnrjr9jt243qe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5476';
20250221@155059.2060 gqv4gvl4cjfa8dnrjr9jt243qe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5476';
20250221@155059.2184 gqv4gvl4cjfa8dnrjr9jt243qe Query : use flama_phc
20250221@155059.2187 gqv4gvl4cjfa8dnrjr9jt243qe Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155059.2316 gqv4gvl4cjfa8dnrjr9jt243qe Query : use flama_phc
20250221@155059.2357 gqv4gvl4cjfa8dnrjr9jt243qe Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250221@155059.2523 gqv4gvl4cjfa8dnrjr9jt243qe Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501344 
20250221@155059.3198 gqv4gvl4cjfa8dnrjr9jt243qe Query : use flama_phc
20250221@155059.3202 gqv4gvl4cjfa8dnrjr9jt243qe Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155059.3236 gqv4gvl4cjfa8dnrjr9jt243qe Query : use flama_phc
20250221@155059.3239 gqv4gvl4cjfa8dnrjr9jt243qe Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155059.3264 gqv4gvl4cjfa8dnrjr9jt243qe Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155059.3340 gqv4gvl4cjfa8dnrjr9jt243qe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5476';
20250221@155059.3390 gqv4gvl4cjfa8dnrjr9jt243qe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5476';
20250221@155059.3921 god6k7mpgdcnpt1c8kvt6kja1f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155059.3934 god6k7mpgdcnpt1c8kvt6kja1f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155059.4022 god6k7mpgdcnpt1c8kvt6kja1f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5477';
20250221@155059.4099 god6k7mpgdcnpt1c8kvt6kja1f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5477';
20250221@155059.4213 god6k7mpgdcnpt1c8kvt6kja1f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5477';
20250221@155059.4256 god6k7mpgdcnpt1c8kvt6kja1f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5477';
20250221@155059.4340 god6k7mpgdcnpt1c8kvt6kja1f Query : use flama_phc
20250221@155059.4344 god6k7mpgdcnpt1c8kvt6kja1f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155059.5916 god6k7mpgdcnpt1c8kvt6kja1f Query : use flama_phc
20250221@155059.5920 god6k7mpgdcnpt1c8kvt6kja1f Query : select no, estab,szadrsdesc from szadrs where u_coddest=2283
20250221@155059.6018 god6k7mpgdcnpt1c8kvt6kja1f Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501345 
20250221@155059.6461 god6k7mpgdcnpt1c8kvt6kja1f Query : use flama_phc
20250221@155059.6465 god6k7mpgdcnpt1c8kvt6kja1f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155059.6499 god6k7mpgdcnpt1c8kvt6kja1f Query : use flama_phc
20250221@155059.6502 god6k7mpgdcnpt1c8kvt6kja1f Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155059.6521 god6k7mpgdcnpt1c8kvt6kja1f Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155059.6556 god6k7mpgdcnpt1c8kvt6kja1f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5477';
20250221@155059.6601 god6k7mpgdcnpt1c8kvt6kja1f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5477';
20250221@155059.7109 pglhoe951g8bvs5tck0u7l5inq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155059.7120 pglhoe951g8bvs5tck0u7l5inq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155059.7235 pglhoe951g8bvs5tck0u7l5inq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5478';
20250221@155059.7300 pglhoe951g8bvs5tck0u7l5inq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5478';
20250221@155059.7382 pglhoe951g8bvs5tck0u7l5inq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5478';
20250221@155059.7421 pglhoe951g8bvs5tck0u7l5inq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5478';
20250221@155059.7482 pglhoe951g8bvs5tck0u7l5inq Query : use flama_phc
20250221@155059.7485 pglhoe951g8bvs5tck0u7l5inq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155059.7552 pglhoe951g8bvs5tck0u7l5inq Query : use flama_phc
20250221@155059.7555 pglhoe951g8bvs5tck0u7l5inq Query : select no, estab,szadrsdesc from szadrs where u_coddest=2765
20250221@155059.7647 pglhoe951g8bvs5tck0u7l5inq Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501348 
20250221@155059.8094 pglhoe951g8bvs5tck0u7l5inq Query : use flama_phc
20250221@155059.8098 pglhoe951g8bvs5tck0u7l5inq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155059.8132 pglhoe951g8bvs5tck0u7l5inq Query : use flama_phc
20250221@155059.8135 pglhoe951g8bvs5tck0u7l5inq Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155059.8151 pglhoe951g8bvs5tck0u7l5inq Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155059.8178 pglhoe951g8bvs5tck0u7l5inq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5478';
20250221@155059.8227 pglhoe951g8bvs5tck0u7l5inq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5478';
20250221@155059.8811 pm66fpm31q4ttp1cpjgmil90fc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155059.8824 pm66fpm31q4ttp1cpjgmil90fc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155059.8898 pm66fpm31q4ttp1cpjgmil90fc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5479';
20250221@155059.8970 pm66fpm31q4ttp1cpjgmil90fc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5479';
20250221@155059.9043 pm66fpm31q4ttp1cpjgmil90fc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5479';
20250221@155059.9080 pm66fpm31q4ttp1cpjgmil90fc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5479';
20250221@155059.9151 pm66fpm31q4ttp1cpjgmil90fc Query : use flama_phc
20250221@155059.9154 pm66fpm31q4ttp1cpjgmil90fc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155059.9222 pm66fpm31q4ttp1cpjgmil90fc Query : use flama_phc
20250221@155059.9226 pm66fpm31q4ttp1cpjgmil90fc Query : select no, estab,szadrsdesc from szadrs where u_coddest=313
20250221@155059.9329 pm66fpm31q4ttp1cpjgmil90fc Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501349 
20250221@155059.9749 pm66fpm31q4ttp1cpjgmil90fc Query : use flama_phc
20250221@155059.9752 pm66fpm31q4ttp1cpjgmil90fc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155059.9783 pm66fpm31q4ttp1cpjgmil90fc Query : use flama_phc
20250221@155059.9786 pm66fpm31q4ttp1cpjgmil90fc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155059.9803 pm66fpm31q4ttp1cpjgmil90fc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155059.9826 pm66fpm31q4ttp1cpjgmil90fc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5479';
20250221@155100.3000 pm66fpm31q4ttp1cpjgmil90fc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5479';
20250221@155100.5500 a1pcjllea483r2frg11096nmif Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155100.5610 a1pcjllea483r2frg11096nmif Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155100.6340 a1pcjllea483r2frg11096nmif Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5480';
20250221@155100.7040 a1pcjllea483r2frg11096nmif Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5480';
20250221@155100.7730 a1pcjllea483r2frg11096nmif Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5480';
20250221@155100.8100 a1pcjllea483r2frg11096nmif Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5480';
20250221@155100.8690 a1pcjllea483r2frg11096nmif Query : use flama_phc
20250221@155100.8710 a1pcjllea483r2frg11096nmif Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155100.9580 a1pcjllea483r2frg11096nmif Query : use flama_phc
20250221@155100.9620 a1pcjllea483r2frg11096nmif Query : select no, estab,szadrsdesc from szadrs where u_coddest=1123
20250221@155100.1054 a1pcjllea483r2frg11096nmif Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501351 
20250221@155100.1626 a1pcjllea483r2frg11096nmif Query : use flama_phc
20250221@155100.1640 a1pcjllea483r2frg11096nmif Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155100.1724 a1pcjllea483r2frg11096nmif Query : use flama_phc
20250221@155100.1730 a1pcjllea483r2frg11096nmif Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155100.1747 a1pcjllea483r2frg11096nmif Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155100.1770 a1pcjllea483r2frg11096nmif Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5480';
20250221@155100.1828 a1pcjllea483r2frg11096nmif Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5480';
20250221@155100.2446 3v1n4vjtuvcvpa372vv0eklq5h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155100.2458 3v1n4vjtuvcvpa372vv0eklq5h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155100.2572 3v1n4vjtuvcvpa372vv0eklq5h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5481';
20250221@155100.2666 3v1n4vjtuvcvpa372vv0eklq5h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5481';
20250221@155100.2739 3v1n4vjtuvcvpa372vv0eklq5h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5481';
20250221@155100.2789 3v1n4vjtuvcvpa372vv0eklq5h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5481';
20250221@155100.2855 3v1n4vjtuvcvpa372vv0eklq5h Query : use flama_phc
20250221@155100.2859 3v1n4vjtuvcvpa372vv0eklq5h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155100.2922 3v1n4vjtuvcvpa372vv0eklq5h Query : use flama_phc
20250221@155100.2926 3v1n4vjtuvcvpa372vv0eklq5h Query : select no, estab,szadrsdesc from szadrs where u_coddest=2874
20250221@155100.3037 3v1n4vjtuvcvpa372vv0eklq5h Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501353 
20250221@155100.3508 3v1n4vjtuvcvpa372vv0eklq5h Query : use flama_phc
20250221@155100.3512 3v1n4vjtuvcvpa372vv0eklq5h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155100.3545 3v1n4vjtuvcvpa372vv0eklq5h Query : use flama_phc
20250221@155100.3548 3v1n4vjtuvcvpa372vv0eklq5h Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155100.3566 3v1n4vjtuvcvpa372vv0eklq5h Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155100.3592 3v1n4vjtuvcvpa372vv0eklq5h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5481';
20250221@155100.3666 3v1n4vjtuvcvpa372vv0eklq5h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5481';
20250221@155100.5144 p69n0g9bmtkf3udnni3k3fv139 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155100.5154 p69n0g9bmtkf3udnni3k3fv139 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155100.5227 p69n0g9bmtkf3udnni3k3fv139 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5482';
20250221@155100.5297 p69n0g9bmtkf3udnni3k3fv139 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5482';
20250221@155100.5368 p69n0g9bmtkf3udnni3k3fv139 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5482';
20250221@155100.5406 p69n0g9bmtkf3udnni3k3fv139 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5482';
20250221@155100.5478 p69n0g9bmtkf3udnni3k3fv139 Query : use flama_phc
20250221@155100.5481 p69n0g9bmtkf3udnni3k3fv139 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155100.5572 p69n0g9bmtkf3udnni3k3fv139 Query : use flama_phc
20250221@155100.5575 p69n0g9bmtkf3udnni3k3fv139 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20250221@155100.5675 p69n0g9bmtkf3udnni3k3fv139 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501354 
20250221@155100.6121 p69n0g9bmtkf3udnni3k3fv139 Query : use flama_phc
20250221@155100.6124 p69n0g9bmtkf3udnni3k3fv139 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155100.6155 p69n0g9bmtkf3udnni3k3fv139 Query : use flama_phc
20250221@155100.6158 p69n0g9bmtkf3udnni3k3fv139 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155100.6174 p69n0g9bmtkf3udnni3k3fv139 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155100.6195 p69n0g9bmtkf3udnni3k3fv139 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5482';
20250221@155100.6248 p69n0g9bmtkf3udnni3k3fv139 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5482';
20250221@155100.6961 qsvd7ued83chnc61pgb3d5bv22 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@155100.7008 qsvd7ued83chnc61pgb3d5bv22 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@155100.7467 qsvd7ued83chnc61pgb3d5bv22 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5483';
20250221@155100.7902 qsvd7ued83chnc61pgb3d5bv22 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5483';
20250221@155100.8198 qsvd7ued83chnc61pgb3d5bv22 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5483';
20250221@155100.8247 qsvd7ued83chnc61pgb3d5bv22 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5483';
20250221@155100.8360 qsvd7ued83chnc61pgb3d5bv22 Query : use flama_phc
20250221@155100.8367 qsvd7ued83chnc61pgb3d5bv22 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@155100.8483 qsvd7ued83chnc61pgb3d5bv22 Query : use flama_phc
20250221@155100.8486 qsvd7ued83chnc61pgb3d5bv22 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250221@155100.8624 qsvd7ued83chnc61pgb3d5bv22 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501355 
20250221@155100.9069 qsvd7ued83chnc61pgb3d5bv22 Query : use flama_phc
20250221@155100.9072 qsvd7ued83chnc61pgb3d5bv22 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@155100.9104 qsvd7ued83chnc61pgb3d5bv22 Query : use flama_phc
20250221@155100.9109 qsvd7ued83chnc61pgb3d5bv22 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@155100.9126 qsvd7ued83chnc61pgb3d5bv22 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@155100.9154 qsvd7ued83chnc61pgb3d5bv22 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5483';
20250221@155100.9208 qsvd7ued83chnc61pgb3d5bv22 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5483';
20250221@161910.5069 g2i6gb0brj1vual617bpvp6q62 Query : use flama_phc
20250221@161910.5073 g2i6gb0brj1vual617bpvp6q62 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@161910.5160 g2i6gb0brj1vual617bpvp6q62 Query : use flama_phc
20250221@161910.5163 g2i6gb0brj1vual617bpvp6q62 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@163610.8786 3hhsbacro4edf1jd412f1ud0tn Query : use flama_phc
20250221@163610.8790 3hhsbacro4edf1jd412f1ud0tn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@163610.9238 3hhsbacro4edf1jd412f1ud0tn Query : use flama_phc
20250221@163610.9241 3hhsbacro4edf1jd412f1ud0tn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@171910.3641 r6pf3d661i857j1o00o70kqkju Query : use flama_phc
20250221@171910.3645 r6pf3d661i857j1o00o70kqkju Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@171910.3732 r6pf3d661i857j1o00o70kqkju Query : use flama_phc
20250221@171910.3735 r6pf3d661i857j1o00o70kqkju Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@173610.8048 efm8j9at61verie4j6og2c45qs Query : use flama_phc
20250221@173610.8054 efm8j9at61verie4j6og2c45qs Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@173610.8144 efm8j9at61verie4j6og2c45qs Query : use flama_phc
20250221@173610.8148 efm8j9at61verie4j6og2c45qs Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@173855.2024 fisthu50q2v3a6ni09eig8ua9q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@173855.2055 fisthu50q2v3a6ni09eig8ua9q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@173855.2458 fisthu50q2v3a6ni09eig8ua9q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5484';
20250221@173855.2576 fisthu50q2v3a6ni09eig8ua9q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5484';
20250221@173855.2668 fisthu50q2v3a6ni09eig8ua9q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5484';
20250221@173855.2708 fisthu50q2v3a6ni09eig8ua9q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5484';
20250221@173855.2776 fisthu50q2v3a6ni09eig8ua9q Query : use flama_phc
20250221@173855.2779 fisthu50q2v3a6ni09eig8ua9q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@173855.2910 fisthu50q2v3a6ni09eig8ua9q Query : use flama_phc
20250221@173855.2913 fisthu50q2v3a6ni09eig8ua9q Query : select no, estab,szadrsdesc from szadrs where u_coddest=635
20250221@173855.3020 fisthu50q2v3a6ni09eig8ua9q Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501358 
20250221@173855.3610 fisthu50q2v3a6ni09eig8ua9q Query : use flama_phc
20250221@173855.3613 fisthu50q2v3a6ni09eig8ua9q Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@173855.3684 fisthu50q2v3a6ni09eig8ua9q Query : use flama_phc
20250221@173855.3688 fisthu50q2v3a6ni09eig8ua9q Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@173855.3785 fisthu50q2v3a6ni09eig8ua9q Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@173855.3825 fisthu50q2v3a6ni09eig8ua9q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5484';
20250221@173855.3871 fisthu50q2v3a6ni09eig8ua9q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5484';
20250221@173855.4825 6td4tcmkl5g2414n2ieq41a8um Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250221@173855.4837 6td4tcmkl5g2414n2ieq41a8um Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250221@173855.4911 6td4tcmkl5g2414n2ieq41a8um Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5485';
20250221@173855.4981 6td4tcmkl5g2414n2ieq41a8um Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5485';
20250221@173855.5055 6td4tcmkl5g2414n2ieq41a8um Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5485';
20250221@173855.5096 6td4tcmkl5g2414n2ieq41a8um Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5485';
20250221@173855.5161 6td4tcmkl5g2414n2ieq41a8um Query : use flama_phc
20250221@173855.5164 6td4tcmkl5g2414n2ieq41a8um Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250221@173855.5243 6td4tcmkl5g2414n2ieq41a8um Query : use flama_phc
20250221@173855.5246 6td4tcmkl5g2414n2ieq41a8um Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20250221@173855.5375 6td4tcmkl5g2414n2ieq41a8um Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501359 
20250221@173855.5777 6td4tcmkl5g2414n2ieq41a8um Query : use flama_phc
20250221@173855.5782 6td4tcmkl5g2414n2ieq41a8um Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250221@173855.5813 6td4tcmkl5g2414n2ieq41a8um Query : use flama_phc
20250221@173855.5816 6td4tcmkl5g2414n2ieq41a8um Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250221@173855.5832 6td4tcmkl5g2414n2ieq41a8um Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250221@173855.5854 6td4tcmkl5g2414n2ieq41a8um Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5485';
20250221@173855.5900 6td4tcmkl5g2414n2ieq41a8um Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5485';
20250221@181911.8282 argh0t3fdhpnrhd7sij9egj63s Query : use flama_phc
20250221@181911.8287 argh0t3fdhpnrhd7sij9egj63s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@181911.8372 argh0t3fdhpnrhd7sij9egj63s Query : use flama_phc
20250221@181911.8375 argh0t3fdhpnrhd7sij9egj63s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@183611.7266 5j061ambo4o7utkhdep10ch9m3 Query : use flama_phc
20250221@183611.7271 5j061ambo4o7utkhdep10ch9m3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@183611.7401 5j061ambo4o7utkhdep10ch9m3 Query : use flama_phc
20250221@183611.7404 5j061ambo4o7utkhdep10ch9m3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@191917.2957 defo734o8i7ovk945tgljcd6sq Query : use flama_phc
20250221@191917.2961 defo734o8i7ovk945tgljcd6sq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@191917.3055 defo734o8i7ovk945tgljcd6sq Query : use flama_phc
20250221@191917.3059 defo734o8i7ovk945tgljcd6sq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@193617.3697 h0u91mrmoasv0p646oa2aj0kkk Query : use flama_phc
20250221@193617.3701 h0u91mrmoasv0p646oa2aj0kkk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@193617.3802 h0u91mrmoasv0p646oa2aj0kkk Query : use flama_phc
20250221@193617.3805 h0u91mrmoasv0p646oa2aj0kkk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@201911.5632 28or23ph78vs5e92oejgv0pj0g Query : use flama_phc
20250221@201911.5636 28or23ph78vs5e92oejgv0pj0g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@201911.5725 28or23ph78vs5e92oejgv0pj0g Query : use flama_phc
20250221@201911.5728 28or23ph78vs5e92oejgv0pj0g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@203611.3805 2b7e6fvdd1s74dl2vb8humqrud Query : use flama_phc
20250221@203611.3811 2b7e6fvdd1s74dl2vb8humqrud Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@203611.4012 2b7e6fvdd1s74dl2vb8humqrud Query : use flama_phc
20250221@203611.4016 2b7e6fvdd1s74dl2vb8humqrud Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@211910.6390 8njannqaasjai1fcoh5ad1cq67 Query : use flama_phc
20250221@211910.6430 8njannqaasjai1fcoh5ad1cq67 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@211910.7420 8njannqaasjai1fcoh5ad1cq67 Query : use flama_phc
20250221@211910.7460 8njannqaasjai1fcoh5ad1cq67 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@213610.3134 799o95hcurgv8b37eo19ogrsgi Query : use flama_phc
20250221@213610.3139 799o95hcurgv8b37eo19ogrsgi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@213610.3375 799o95hcurgv8b37eo19ogrsgi Query : use flama_phc
20250221@213610.3392 799o95hcurgv8b37eo19ogrsgi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@221911.8232 m8pejfniksn0sfarp9p923qruq Query : use flama_phc
20250221@221911.8237 m8pejfniksn0sfarp9p923qruq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@221911.8396 m8pejfniksn0sfarp9p923qruq Query : use flama_phc
20250221@221911.8418 m8pejfniksn0sfarp9p923qruq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@223612.8460 3k81d10ddb1bkcseh3f2hpgum9 Query : use flama_phc
20250221@223612.8510 3k81d10ddb1bkcseh3f2hpgum9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@223612.9590 3k81d10ddb1bkcseh3f2hpgum9 Query : use flama_phc
20250221@223612.9630 3k81d10ddb1bkcseh3f2hpgum9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@231911.9090 qk00ob8o9nl1fnnhhsaitn1vq8 Query : use flama_phc
20250221@231911.9130 qk00ob8o9nl1fnnhhsaitn1vq8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@231911.1021 qk00ob8o9nl1fnnhhsaitn1vq8 Query : use flama_phc
20250221@231911.1025 qk00ob8o9nl1fnnhhsaitn1vq8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250221@233611.1200 v9pco89e2jbc0emv0pljfshnir Query : use flama_phc
20250221@233611.1800 v9pco89e2jbc0emv0pljfshnir Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250221@233611.1290 v9pco89e2jbc0emv0pljfshnir Query : use flama_phc
20250221@233611.1330 v9pco89e2jbc0emv0pljfshnir Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@071911.4270 olgb2n0es0unbta1f3fgu9ha9m Query : use flama_phc
20250222@071911.4275 olgb2n0es0unbta1f3fgu9ha9m Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@071911.4706 olgb2n0es0unbta1f3fgu9ha9m Query : use flama_phc
20250222@071911.4710 olgb2n0es0unbta1f3fgu9ha9m Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@073611.2611 ol2t9qau45o29ipglut4mnrl4i Query : use flama_phc
20250222@073611.2616 ol2t9qau45o29ipglut4mnrl4i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@073611.2814 ol2t9qau45o29ipglut4mnrl4i Query : use flama_phc
20250222@073611.2822 ol2t9qau45o29ipglut4mnrl4i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@081910.6987 41ph0mogfqa2b5h7q79vpvm80m Query : use flama_phc
20250222@081910.6992 41ph0mogfqa2b5h7q79vpvm80m Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@081910.7122 41ph0mogfqa2b5h7q79vpvm80m Query : use flama_phc
20250222@081910.7126 41ph0mogfqa2b5h7q79vpvm80m Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@083610.3997 tvpkjf0gqcape8mnrlqjk3j277 Query : use flama_phc
20250222@083610.4002 tvpkjf0gqcape8mnrlqjk3j277 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@083610.4197 tvpkjf0gqcape8mnrlqjk3j277 Query : use flama_phc
20250222@083610.4201 tvpkjf0gqcape8mnrlqjk3j277 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@091911.7360 ti6f9n73ukll0doglnljp7kfjp Query : use flama_phc
20250222@091911.7410 ti6f9n73ukll0doglnljp7kfjp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@091911.8380 ti6f9n73ukll0doglnljp7kfjp Query : use flama_phc
20250222@091911.8420 ti6f9n73ukll0doglnljp7kfjp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@093611.3237 cs3tdkv43jfhvre03iks9id6ho Query : use flama_phc
20250222@093611.3242 cs3tdkv43jfhvre03iks9id6ho Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@093611.3360 cs3tdkv43jfhvre03iks9id6ho Query : use flama_phc
20250222@093611.3365 cs3tdkv43jfhvre03iks9id6ho Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@101911.3730 pqbea428j8ksircepkaijetpu6 Query : use flama_phc
20250222@101911.3790 pqbea428j8ksircepkaijetpu6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@101911.4710 pqbea428j8ksircepkaijetpu6 Query : use flama_phc
20250222@101911.4750 pqbea428j8ksircepkaijetpu6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@103611.1119 cbjjmm78b0asmqpem518scnj6g Query : use flama_phc
20250222@103611.1124 cbjjmm78b0asmqpem518scnj6g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@103611.1226 cbjjmm78b0asmqpem518scnj6g Query : use flama_phc
20250222@103611.1229 cbjjmm78b0asmqpem518scnj6g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@111911.4112 m768lut84f6gr081s6g7akeu7s Query : use flama_phc
20250222@111911.4116 m768lut84f6gr081s6g7akeu7s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@111911.4209 m768lut84f6gr081s6g7akeu7s Query : use flama_phc
20250222@111911.4213 m768lut84f6gr081s6g7akeu7s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@113611.1041 kc55b9t9jmf4gon42pg8u24d1g Query : use flama_phc
20250222@113611.1046 kc55b9t9jmf4gon42pg8u24d1g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@113611.1139 kc55b9t9jmf4gon42pg8u24d1g Query : use flama_phc
20250222@113611.1143 kc55b9t9jmf4gon42pg8u24d1g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@121911.3379 nf4d4rlsmnf3kqimmmri19bf8n Query : use flama_phc
20250222@121911.3384 nf4d4rlsmnf3kqimmmri19bf8n Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@121911.3481 nf4d4rlsmnf3kqimmmri19bf8n Query : use flama_phc
20250222@121911.3485 nf4d4rlsmnf3kqimmmri19bf8n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@123611.4090 8ea0qvfvkocqjoplbjjpcu650k Query : use flama_phc
20250222@123611.4160 8ea0qvfvkocqjoplbjjpcu650k Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@123611.6190 8ea0qvfvkocqjoplbjjpcu650k Query : use flama_phc
20250222@123611.6240 8ea0qvfvkocqjoplbjjpcu650k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@131911.4558 uvebn7mn571m5n5ok3itpibs4d Query : use flama_phc
20250222@131911.4564 uvebn7mn571m5n5ok3itpibs4d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@131911.4668 uvebn7mn571m5n5ok3itpibs4d Query : use flama_phc
20250222@131911.4672 uvebn7mn571m5n5ok3itpibs4d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@133611.7225 lvh9ps7ri4t00kjkpo33c63dob Query : use flama_phc
20250222@133611.7229 lvh9ps7ri4t00kjkpo33c63dob Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@133611.7318 lvh9ps7ri4t00kjkpo33c63dob Query : use flama_phc
20250222@133611.7321 lvh9ps7ri4t00kjkpo33c63dob Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@141911.6905 neelnreu8uq4j3jm3tb98hhohh Query : use flama_phc
20250222@141911.6910 neelnreu8uq4j3jm3tb98hhohh Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@141911.7003 neelnreu8uq4j3jm3tb98hhohh Query : use flama_phc
20250222@141911.7007 neelnreu8uq4j3jm3tb98hhohh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@143611.7200 dn2conlb13dopivc212pa4je3p Query : use flama_phc
20250222@143611.7205 dn2conlb13dopivc212pa4je3p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@143611.7297 dn2conlb13dopivc212pa4je3p Query : use flama_phc
20250222@143611.7301 dn2conlb13dopivc212pa4je3p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@151911.7504 fejfqojhngok8j85bap557ctk9 Query : use flama_phc
20250222@151911.7509 fejfqojhngok8j85bap557ctk9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@151911.7611 fejfqojhngok8j85bap557ctk9 Query : use flama_phc
20250222@151911.7619 fejfqojhngok8j85bap557ctk9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@153611.5519 oalkhkp7upsm3r6crj6b7lksso Query : use flama_phc
20250222@153611.5523 oalkhkp7upsm3r6crj6b7lksso Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@153611.5609 oalkhkp7upsm3r6crj6b7lksso Query : use flama_phc
20250222@153611.5612 oalkhkp7upsm3r6crj6b7lksso Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@161910.9074 sj592nf7lac39bp6scj9i10da5 Query : use flama_phc
20250222@161910.9080 sj592nf7lac39bp6scj9i10da5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@161910.9198 sj592nf7lac39bp6scj9i10da5 Query : use flama_phc
20250222@161910.9202 sj592nf7lac39bp6scj9i10da5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@163610.5540 p83s4ivnga8gnf19g59rc4slf0 Query : use flama_phc
20250222@163610.5545 p83s4ivnga8gnf19g59rc4slf0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@163610.5986 p83s4ivnga8gnf19g59rc4slf0 Query : use flama_phc
20250222@163610.5992 p83s4ivnga8gnf19g59rc4slf0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@171910.8303 grgq8i4p0d7f44u4f2jt08js8d Query : use flama_phc
20250222@171910.8309 grgq8i4p0d7f44u4f2jt08js8d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@171910.8403 grgq8i4p0d7f44u4f2jt08js8d Query : use flama_phc
20250222@171910.8406 grgq8i4p0d7f44u4f2jt08js8d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@173611.8210 b0mp2s1vmksf53t2he3c9icssa Query : use flama_phc
20250222@173611.8250 b0mp2s1vmksf53t2he3c9icssa Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@173611.9090 b0mp2s1vmksf53t2he3c9icssa Query : use flama_phc
20250222@173611.9120 b0mp2s1vmksf53t2he3c9icssa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@181910.8668 s8l5uo043nf63qkh7vna266odi Query : use flama_phc
20250222@181910.8673 s8l5uo043nf63qkh7vna266odi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@181910.8823 s8l5uo043nf63qkh7vna266odi Query : use flama_phc
20250222@181910.8826 s8l5uo043nf63qkh7vna266odi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@191910.4199 80e00jl9l6fu2b49e5tj0j4r6p Query : use flama_phc
20250222@191910.4203 80e00jl9l6fu2b49e5tj0j4r6p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@191910.4284 80e00jl9l6fu2b49e5tj0j4r6p Query : use flama_phc
20250222@191910.4287 80e00jl9l6fu2b49e5tj0j4r6p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@193655.4399 2fcv21i0sh8u75bl4d41q2cr95 Query : use flama_phc
20250222@193655.4405 2fcv21i0sh8u75bl4d41q2cr95 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@193655.4553 2fcv21i0sh8u75bl4d41q2cr95 Query : use flama_phc
20250222@193655.4556 2fcv21i0sh8u75bl4d41q2cr95 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@201911.1437 r9j2h14b31fskno7eo8rilm7b9 Query : use flama_phc
20250222@201911.1441 r9j2h14b31fskno7eo8rilm7b9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@201911.1524 r9j2h14b31fskno7eo8rilm7b9 Query : use flama_phc
20250222@201911.1527 r9j2h14b31fskno7eo8rilm7b9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@203610.6879 mmgemm2p6spcea7qj7uvvgquts Query : use flama_phc
20250222@203610.6884 mmgemm2p6spcea7qj7uvvgquts Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@203610.7190 mmgemm2p6spcea7qj7uvvgquts Query : use flama_phc
20250222@203610.7194 mmgemm2p6spcea7qj7uvvgquts Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@211910.8773 a8187p2ovl6lcchrsjcvqiekjn Query : use flama_phc
20250222@211910.8778 a8187p2ovl6lcchrsjcvqiekjn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@211910.8957 a8187p2ovl6lcchrsjcvqiekjn Query : use flama_phc
20250222@211910.8960 a8187p2ovl6lcchrsjcvqiekjn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@213610.5727 cp37f4pakc29vjuqssbhn5fjs7 Query : use flama_phc
20250222@213610.5733 cp37f4pakc29vjuqssbhn5fjs7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@213610.6086 cp37f4pakc29vjuqssbhn5fjs7 Query : use flama_phc
20250222@213610.6116 cp37f4pakc29vjuqssbhn5fjs7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@221910.7247 bofe8rs4285f69h6sp1cf7iqgu Query : use flama_phc
20250222@221910.7291 bofe8rs4285f69h6sp1cf7iqgu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@221910.7692 bofe8rs4285f69h6sp1cf7iqgu Query : use flama_phc
20250222@221910.7696 bofe8rs4285f69h6sp1cf7iqgu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@223610.6730 cnvjqeje59dqe9dq4qrg06hnek Query : use flama_phc
20250222@223610.6734 cnvjqeje59dqe9dq4qrg06hnek Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@223610.6865 cnvjqeje59dqe9dq4qrg06hnek Query : use flama_phc
20250222@223610.6869 cnvjqeje59dqe9dq4qrg06hnek Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@231910.8849 h3ib0akg6e4iirc3u47raq124p Query : use flama_phc
20250222@231910.8853 h3ib0akg6e4iirc3u47raq124p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@231910.8958 h3ib0akg6e4iirc3u47raq124p Query : use flama_phc
20250222@231910.8963 h3ib0akg6e4iirc3u47raq124p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250222@233610.8387 s39sudqlkas6tpkechjak9sh2a Query : use flama_phc
20250222@233610.8391 s39sudqlkas6tpkechjak9sh2a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250222@233610.8485 s39sudqlkas6tpkechjak9sh2a Query : use flama_phc
20250222@233610.8489 s39sudqlkas6tpkechjak9sh2a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@071910.2128 mj7iielqan3omis9vovt27kltp Query : use flama_phc
20250223@071910.2132 mj7iielqan3omis9vovt27kltp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@071910.2321 mj7iielqan3omis9vovt27kltp Query : use flama_phc
20250223@071910.2324 mj7iielqan3omis9vovt27kltp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@073609.9084 v3f6a9kid04j3s1721th4fl9an Query : use flama_phc
20250223@073609.9088 v3f6a9kid04j3s1721th4fl9an Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@073609.9204 v3f6a9kid04j3s1721th4fl9an Query : use flama_phc
20250223@073609.9207 v3f6a9kid04j3s1721th4fl9an Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@081910.1317 flgh4bshmp0rp0ptagfsn7mu78 Query : use flama_phc
20250223@081910.1322 flgh4bshmp0rp0ptagfsn7mu78 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@081910.1421 flgh4bshmp0rp0ptagfsn7mu78 Query : use flama_phc
20250223@081910.1425 flgh4bshmp0rp0ptagfsn7mu78 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@083609.7404 ml7nd1e5ihm3re5eh1koo3ras2 Query : use flama_phc
20250223@083609.7409 ml7nd1e5ihm3re5eh1koo3ras2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@083609.7543 ml7nd1e5ihm3re5eh1koo3ras2 Query : use flama_phc
20250223@083609.7546 ml7nd1e5ihm3re5eh1koo3ras2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@091909.3801 59uii5n9bv581qp4cpmukbhfij Query : use flama_phc
20250223@091909.3805 59uii5n9bv581qp4cpmukbhfij Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@091909.3892 59uii5n9bv581qp4cpmukbhfij Query : use flama_phc
20250223@091909.3895 59uii5n9bv581qp4cpmukbhfij Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@093609.7239 n26hbeu1k21v8gl2tvmjg1jssk Query : use flama_phc
20250223@093609.7244 n26hbeu1k21v8gl2tvmjg1jssk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@093609.7330 n26hbeu1k21v8gl2tvmjg1jssk Query : use flama_phc
20250223@093609.7335 n26hbeu1k21v8gl2tvmjg1jssk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@101909.1033 6m06qb13s1qpft7mobv6f2e25g Query : use flama_phc
20250223@101909.1038 6m06qb13s1qpft7mobv6f2e25g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@101909.1149 6m06qb13s1qpft7mobv6f2e25g Query : use flama_phc
20250223@101909.1152 6m06qb13s1qpft7mobv6f2e25g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@103609.4955 qndqes889edc6ul3svnolvjgce Query : use flama_phc
20250223@103609.4959 qndqes889edc6ul3svnolvjgce Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@103609.5074 qndqes889edc6ul3svnolvjgce Query : use flama_phc
20250223@103609.5078 qndqes889edc6ul3svnolvjgce Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@111909.2198 brk8lk7h3ukjbrjn55mg76ls4c Query : use flama_phc
20250223@111909.2204 brk8lk7h3ukjbrjn55mg76ls4c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@111909.2356 brk8lk7h3ukjbrjn55mg76ls4c Query : use flama_phc
20250223@111909.2361 brk8lk7h3ukjbrjn55mg76ls4c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@113609.5010 dp6dl5hop2r814521nnb1mg7q1 Query : use flama_phc
20250223@113609.5014 dp6dl5hop2r814521nnb1mg7q1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@113609.5108 dp6dl5hop2r814521nnb1mg7q1 Query : use flama_phc
20250223@113609.5111 dp6dl5hop2r814521nnb1mg7q1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@121909.3502 te5nvnbeqmv2129evs6mtl2qk5 Query : use flama_phc
20250223@121909.3508 te5nvnbeqmv2129evs6mtl2qk5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@121909.3634 te5nvnbeqmv2129evs6mtl2qk5 Query : use flama_phc
20250223@121909.3638 te5nvnbeqmv2129evs6mtl2qk5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@123609.5196 mnt7f3gss3ikt4gr66aqt4proq Query : use flama_phc
20250223@123609.5200 mnt7f3gss3ikt4gr66aqt4proq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@123609.5331 mnt7f3gss3ikt4gr66aqt4proq Query : use flama_phc
20250223@123609.5336 mnt7f3gss3ikt4gr66aqt4proq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@131909.8723 fu3pc84ts2bmq09kk096ojln1h Query : use flama_phc
20250223@131909.8728 fu3pc84ts2bmq09kk096ojln1h Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@131909.8814 fu3pc84ts2bmq09kk096ojln1h Query : use flama_phc
20250223@131909.8818 fu3pc84ts2bmq09kk096ojln1h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@133609.6439 kvesl39ngi1g0qchc0ae769gp6 Query : use flama_phc
20250223@133609.6444 kvesl39ngi1g0qchc0ae769gp6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@133609.6533 kvesl39ngi1g0qchc0ae769gp6 Query : use flama_phc
20250223@133609.6536 kvesl39ngi1g0qchc0ae769gp6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@141909.6529 ege1if8dikkikaaf0r5ov7eglp Query : use flama_phc
20250223@141909.6534 ege1if8dikkikaaf0r5ov7eglp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@141909.6622 ege1if8dikkikaaf0r5ov7eglp Query : use flama_phc
20250223@141909.6626 ege1if8dikkikaaf0r5ov7eglp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@143609.6746 7m1lcrqlsjlm6ca0ne3ut6ds4t Query : use flama_phc
20250223@143609.6751 7m1lcrqlsjlm6ca0ne3ut6ds4t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@143609.6839 7m1lcrqlsjlm6ca0ne3ut6ds4t Query : use flama_phc
20250223@143609.6842 7m1lcrqlsjlm6ca0ne3ut6ds4t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@151909.7324 co3i7qavpdmd3926qslms15cnh Query : use flama_phc
20250223@151909.7329 co3i7qavpdmd3926qslms15cnh Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@151909.7418 co3i7qavpdmd3926qslms15cnh Query : use flama_phc
20250223@151909.7422 co3i7qavpdmd3926qslms15cnh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@153609.9047 llp26rq6rk4abn0iih1i41q64i Query : use flama_phc
20250223@153609.9051 llp26rq6rk4abn0iih1i41q64i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@153609.9142 llp26rq6rk4abn0iih1i41q64i Query : use flama_phc
20250223@153609.9146 llp26rq6rk4abn0iih1i41q64i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@161910.3742 7hk5bmofnj22buc3phrgefjtl8 Query : use flama_phc
20250223@161910.3747 7hk5bmofnj22buc3phrgefjtl8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@161910.3835 7hk5bmofnj22buc3phrgefjtl8 Query : use flama_phc
20250223@161910.3839 7hk5bmofnj22buc3phrgefjtl8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@163610.2071 1lue10o5m434utj7c98ui2hvo7 Query : use flama_phc
20250223@163610.2075 1lue10o5m434utj7c98ui2hvo7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@163610.2160 1lue10o5m434utj7c98ui2hvo7 Query : use flama_phc
20250223@163610.2164 1lue10o5m434utj7c98ui2hvo7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@171909.8485 6tgkb47btokohf41ar6rpuanhi Query : use flama_phc
20250223@171909.8489 6tgkb47btokohf41ar6rpuanhi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@171909.8571 6tgkb47btokohf41ar6rpuanhi Query : use flama_phc
20250223@171909.8573 6tgkb47btokohf41ar6rpuanhi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@173610.1470 9prmsi0ecpr91lc22ch8qrh7lp Query : use flama_phc
20250223@173610.1520 9prmsi0ecpr91lc22ch8qrh7lp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@173610.2370 9prmsi0ecpr91lc22ch8qrh7lp Query : use flama_phc
20250223@173610.2400 9prmsi0ecpr91lc22ch8qrh7lp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@181909.6534 ttr748akh2v2fo1288m7c7hikp Query : use flama_phc
20250223@181909.6540 ttr748akh2v2fo1288m7c7hikp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@181909.6631 ttr748akh2v2fo1288m7c7hikp Query : use flama_phc
20250223@181909.6635 ttr748akh2v2fo1288m7c7hikp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@183610.1547 ao9j1eq5h1pip2ciugdhl8raeg Query : use flama_phc
20250223@183610.1555 ao9j1eq5h1pip2ciugdhl8raeg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@183610.1645 ao9j1eq5h1pip2ciugdhl8raeg Query : use flama_phc
20250223@183610.1649 ao9j1eq5h1pip2ciugdhl8raeg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@191912.5370 3pbtdnqb1u264moanqn0u6nda4 Query : use flama_phc
20250223@191912.5430 3pbtdnqb1u264moanqn0u6nda4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@191912.6530 3pbtdnqb1u264moanqn0u6nda4 Query : use flama_phc
20250223@191912.6570 3pbtdnqb1u264moanqn0u6nda4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@193611.7627 p25kai2qb9r2fd1hc6nl6hm226 Query : use flama_phc
20250223@193611.7632 p25kai2qb9r2fd1hc6nl6hm226 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@193611.7733 p25kai2qb9r2fd1hc6nl6hm226 Query : use flama_phc
20250223@193611.7736 p25kai2qb9r2fd1hc6nl6hm226 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@201909.7290 i8fp8732vukqd26kgepni4gb03 Query : use flama_phc
20250223@201909.7294 i8fp8732vukqd26kgepni4gb03 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@201909.7382 i8fp8732vukqd26kgepni4gb03 Query : use flama_phc
20250223@201909.7385 i8fp8732vukqd26kgepni4gb03 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@203609.9541 5np76sm7m2ab835n0chm4iv19g Query : use flama_phc
20250223@203609.9545 5np76sm7m2ab835n0chm4iv19g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@203609.9696 5np76sm7m2ab835n0chm4iv19g Query : use flama_phc
20250223@203609.9700 5np76sm7m2ab835n0chm4iv19g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@211910.2715 dv20lslsuugfr4ncc847o97mh5 Query : use flama_phc
20250223@211910.2719 dv20lslsuugfr4ncc847o97mh5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@211910.2812 dv20lslsuugfr4ncc847o97mh5 Query : use flama_phc
20250223@211910.2816 dv20lslsuugfr4ncc847o97mh5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@213610.2779 3t31l18ha7o6toj4j246hfl034 Query : use flama_phc
20250223@213610.2783 3t31l18ha7o6toj4j246hfl034 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@213610.2868 3t31l18ha7o6toj4j246hfl034 Query : use flama_phc
20250223@213610.2871 3t31l18ha7o6toj4j246hfl034 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@221925.6813 bvj9rgolpqvfscg39vc7t80o7p Query : use flama_phc
20250223@221925.6818 bvj9rgolpqvfscg39vc7t80o7p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@221925.6910 bvj9rgolpqvfscg39vc7t80o7p Query : use flama_phc
20250223@221925.6913 bvj9rgolpqvfscg39vc7t80o7p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@223625.4076 ggbul2e90d7vne2po8unhic3vs Query : use flama_phc
20250223@223625.4083 ggbul2e90d7vne2po8unhic3vs Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@223625.4209 ggbul2e90d7vne2po8unhic3vs Query : use flama_phc
20250223@223625.4214 ggbul2e90d7vne2po8unhic3vs Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@231925.4906 36p3isglel760jbls979fp8rvl Query : use flama_phc
20250223@231925.4949 36p3isglel760jbls979fp8rvl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@231925.5259 36p3isglel760jbls979fp8rvl Query : use flama_phc
20250223@231925.5263 36p3isglel760jbls979fp8rvl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250223@233625.6476 g8kdor4u83eqtmoo3du4o77hk6 Query : use flama_phc
20250223@233625.6501 g8kdor4u83eqtmoo3du4o77hk6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250223@233625.6630 g8kdor4u83eqtmoo3du4o77hk6 Query : use flama_phc
20250223@233625.6634 g8kdor4u83eqtmoo3du4o77hk6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250224@071925.3823 aq9kr67uvssfn96voe91jlojr2 Query : use flama_phc
20250224@071925.3827 aq9kr67uvssfn96voe91jlojr2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250224@071925.3911 aq9kr67uvssfn96voe91jlojr2 Query : use flama_phc
20250224@071925.3914 aq9kr67uvssfn96voe91jlojr2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250224@073625.9132 lndo513bof2gfpjp5smbocdb7i Query : use flama_phc
20250224@073625.9136 lndo513bof2gfpjp5smbocdb7i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250224@073625.9264 lndo513bof2gfpjp5smbocdb7i Query : use flama_phc
20250224@073625.9268 lndo513bof2gfpjp5smbocdb7i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250224@080522.1537 bbtp4n1redafdopu78ofk9spdl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250224@080522.1573 bbtp4n1redafdopu78ofk9spdl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250224@080522.1978 bbtp4n1redafdopu78ofk9spdl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5486';
20250224@080522.2073 bbtp4n1redafdopu78ofk9spdl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5486';
20250224@080522.2166 bbtp4n1redafdopu78ofk9spdl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5486';
20250224@080522.2215 bbtp4n1redafdopu78ofk9spdl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5486';
20250224@080522.2319 bbtp4n1redafdopu78ofk9spdl Query : use flama_phc
20250224@080522.2323 bbtp4n1redafdopu78ofk9spdl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250224@080522.2867 bbtp4n1redafdopu78ofk9spdl Query : use flama_phc
20250224@080522.2883 bbtp4n1redafdopu78ofk9spdl Query : select no, estab,szadrsdesc from szadrs where u_coddest=6852
20250224@080522.3000 bbtp4n1redafdopu78ofk9spdl Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2013 and bo.obrano = 2501347 
20250224@080522.3460 bbtp4n1redafdopu78ofk9spdl Query : use flama_phc
20250224@080522.3464 bbtp4n1redafdopu78ofk9spdl Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250224@080522.3534 bbtp4n1redafdopu78ofk9spdl Query : use flama_phc
20250224@080522.3537 bbtp4n1redafdopu78ofk9spdl Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250224@080522.3600 bbtp4n1redafdopu78ofk9spdl Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250224@080522.3644 bbtp4n1redafdopu78ofk9spdl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5486';
20250224@080522.3693 bbtp4n1redafdopu78ofk9spdl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5486';
20250224@080613.8250 cq9vpfthub7s3vsgnbbukc7q9u Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250224@080613.8360 cq9vpfthub7s3vsgnbbukc7q9u Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250224@080613.9160 cq9vpfthub7s3vsgnbbukc7q9u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5487';
20250224@080613.1037 cq9vpfthub7s3vsgnbbukc7q9u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5487';
20250224@080613.1119 cq9vpfthub7s3vsgnbbukc7q9u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5487';
20250224@080613.1160 cq9vpfthub7s3vsgnbbukc7q9u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5487';
20250224@080613.2153 63ibnobpoh4v3hhghgt8m4ngi2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250224@080613.2173 63ibnobpoh4v3hhghgt8m4ngi2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250224@080613.2336 63ibnobpoh4v3hhghgt8m4ngi2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5488';
20250224@080613.2414 63ibnobpoh4v3hhghgt8m4ngi2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5488';
20250224@080613.2487 63ibnobpoh4v3hhghgt8m4ngi2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5488';
20250224@080613.2537 63ibnobpoh4v3hhghgt8m4ngi2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5488';
20250224@080613.2598 63ibnobpoh4v3hhghgt8m4ngi2 Query : use flama_phc
20250224@080613.2601 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250224@080613.2695 63ibnobpoh4v3hhghgt8m4ngi2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20250224@080613.2792 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1646.00.1'
20250224@080613.2913 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.1646.00.1' and bi.lordem =10000
20250224@080613.3271 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143796,889000001 ' 
20250224@080613.3579 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1684.00.1'
20250224@080613.3699 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.1684.00.1' and bi.lordem =20000
20250224@080613.4026 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143813,967000002 ' 
20250224@080613.4338 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1685.00.1'
20250224@080613.4459 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.1685.00.1' and bi.lordem =30000
20250224@080613.4828 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143819,692000003 ' 
20250224@080613.5222 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4521.00.1'
20250224@080613.5344 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.4521.00.1' and bi.lordem =40000
20250224@080613.5676 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143841,392000004 ' 
20250224@080613.5999 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20250224@080613.6120 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.4970.00.1' and bi.lordem =50000
20250224@080613.6463 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143846,782000005 ' 
20250224@080613.6967 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20250224@080613.7126 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.958.00.01' and bi.lordem =70000
20250224@080613.7486 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143859,653000007 ' 
20250224@080613.8061 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20250224@080613.8179 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.948.00.01' and bi.lordem =80000
20250224@080613.8510 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143864,836000008 ' 
20250224@080613.8817 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20250224@080613.8936 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.988.00.01' and bi.lordem =90000
20250224@080613.9271 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143871,515000009 ' 
20250224@080614.3200 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4988.00.1'
20250224@080614.5930 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.4988.00.1' and bi.lordem =100000
20250224@080614.1600 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143877,747000010 ' 
20250224@080614.2348 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4988.00.1'
20250224@080614.2368 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.4988.00.1' and bi.lordem =100000
20250224@080614.2419 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143877,747000010 ' 
20250224@080614.2440 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.645.00.01'
20250224@080614.2566 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.645.00.01' and bi.lordem =110000
20250224@080614.2915 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143883,820000011 ' 
20250224@080614.3250 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.657.00.01'
20250224@080614.3375 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.657.00.01' and bi.lordem =120000
20250224@080614.3779 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143889,335000012 ' 
20250224@080614.4099 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.658.00.01'
20250224@080614.4225 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.658.00.01' and bi.lordem =130000
20250224@080614.4576 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143895,411000013 ' 
20250224@080614.4902 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.658.00.01'
20250224@080614.4926 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.658.00.01' and bi.lordem =130000
20250224@080614.4949 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143895,411000013 ' 
20250224@080614.4973 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.681.00.01'
20250224@080614.5103 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.681.00.01' and bi.lordem =140000
20250224@080614.5459 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143900,918000014 ' 
20250224@080614.5774 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.682.00.01'
20250224@080614.5903 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.682.00.01' and bi.lordem =150000
20250224@080614.6239 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143916,028000015 ' 
20250224@080614.6566 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.682.00.01'
20250224@080614.6589 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.682.00.01' and bi.lordem =150000
20250224@080614.6611 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143916,028000015 ' 
20250224@080614.6633 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20250224@080614.6763 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.692.00.01' and bi.lordem =160000
20250224@080614.7113 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143923,468000016 ' 
20250224@080614.7431 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1817.00.1'
20250224@080614.7556 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.1817.00.1' and bi.lordem =170000
20250224@080614.7929 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022143930,233000017 ' 
20250224@080614.8264 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5342.00.1'
20250224@080614.8387 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.5342.00.1' and bi.lordem =180000
20250224@080614.8726 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144049,979000020 ' 
20250224@080614.9051 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2300.00.1'
20250224@080614.9179 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.2300.00.1' and bi.lordem =190000
20250224@080614.9527 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144055,995000021 ' 
20250224@080614.9865 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2066.00.1'
20250224@080614.9993 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.2066.00.1' and bi.lordem =200000
20250224@080615.3350 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144065,368000022 ' 
20250224@080615.6540 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20250224@080615.7740 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.5501.00.1' and bi.lordem =210000
20250224@080615.1094 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144072,255000023 ' 
20250224@080615.1398 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2031.00.1'
20250224@080615.1514 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.2031.00.1' and bi.lordem =220000
20250224@080615.1839 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144085,591000024 ' 
20250224@080615.2498 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1221.00.1'
20250224@080615.2687 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.1221.00.1' and bi.lordem =230000
20250224@080615.3058 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144094,345000025 ' 
20250224@080615.3375 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1266.00.1'
20250224@080615.3492 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.1266.00.1' and bi.lordem =240000
20250224@080615.3813 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144101,603000026 ' 
20250224@080615.4124 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1256.00.1'
20250224@080615.4302 63ibnobpoh4v3hhghgt8m4ngi2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000502 and bi.ref ='324.1256.00.1' and bi.lordem =250000
20250224@080615.4630 63ibnobpoh4v3hhghgt8m4ngi2 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 = 'av25022144112,593000027 ' 
