20250122@202759.5488 3esl5qqg44o6f6ldfaubkg63d3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4900';
20250122@202759.6000 jjittemon79f8u3u32opdgquhl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250122@202759.6012 jjittemon79f8u3u32opdgquhl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250122@202759.6093 jjittemon79f8u3u32opdgquhl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4901';
20250122@202759.6166 jjittemon79f8u3u32opdgquhl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4901';
20250122@202759.6236 jjittemon79f8u3u32opdgquhl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4901';
20250122@202759.6274 jjittemon79f8u3u32opdgquhl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4901';
20250122@202759.6336 jjittemon79f8u3u32opdgquhl Query : use flama_phc
20250122@202759.6340 jjittemon79f8u3u32opdgquhl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250122@202759.6407 jjittemon79f8u3u32opdgquhl Query : use flama_phc
20250122@202759.6410 jjittemon79f8u3u32opdgquhl Query : select no, estab,szadrsdesc from szadrs where u_coddest=1161
20250122@202759.6498 jjittemon79f8u3u32opdgquhl 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500633 
20250122@202759.6824 jjittemon79f8u3u32opdgquhl Query : use flama_phc
20250122@202759.6829 jjittemon79f8u3u32opdgquhl Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250122@202759.6865 jjittemon79f8u3u32opdgquhl Query : use flama_phc
20250122@202759.6870 jjittemon79f8u3u32opdgquhl Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250122@202759.6888 jjittemon79f8u3u32opdgquhl Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250122@202759.6912 jjittemon79f8u3u32opdgquhl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4901';
20250122@202759.6963 jjittemon79f8u3u32opdgquhl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4901';
20250122@202759.7466 1uqp8vdqf2enq0la5uuq2t5891 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250122@202759.7478 1uqp8vdqf2enq0la5uuq2t5891 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250122@202759.7566 1uqp8vdqf2enq0la5uuq2t5891 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4902';
20250122@202759.7648 1uqp8vdqf2enq0la5uuq2t5891 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4902';
20250122@202759.7716 1uqp8vdqf2enq0la5uuq2t5891 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4902';
20250122@202759.7761 1uqp8vdqf2enq0la5uuq2t5891 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4902';
20250122@202759.7824 1uqp8vdqf2enq0la5uuq2t5891 Query : use flama_phc
20250122@202759.7827 1uqp8vdqf2enq0la5uuq2t5891 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250122@202759.7895 1uqp8vdqf2enq0la5uuq2t5891 Query : use flama_phc
20250122@202759.7899 1uqp8vdqf2enq0la5uuq2t5891 Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20250122@202759.7999 1uqp8vdqf2enq0la5uuq2t5891 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500634 
20250122@202759.8320 1uqp8vdqf2enq0la5uuq2t5891 Query : use flama_phc
20250122@202759.8324 1uqp8vdqf2enq0la5uuq2t5891 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250122@202759.8358 1uqp8vdqf2enq0la5uuq2t5891 Query : use flama_phc
20250122@202759.8374 1uqp8vdqf2enq0la5uuq2t5891 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250122@202759.8392 1uqp8vdqf2enq0la5uuq2t5891 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250122@202759.8414 1uqp8vdqf2enq0la5uuq2t5891 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4902';
20250122@202759.8463 1uqp8vdqf2enq0la5uuq2t5891 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4902';
20250122@202759.8971 9kmhs90cuht0lc3jhlhjj3jd4s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250122@202759.8983 9kmhs90cuht0lc3jhlhjj3jd4s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250122@202759.9065 9kmhs90cuht0lc3jhlhjj3jd4s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4903';
20250122@202759.9131 9kmhs90cuht0lc3jhlhjj3jd4s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4903';
20250122@202759.9202 9kmhs90cuht0lc3jhlhjj3jd4s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4903';
20250122@202759.9253 9kmhs90cuht0lc3jhlhjj3jd4s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4903';
20250122@202759.9329 9kmhs90cuht0lc3jhlhjj3jd4s Query : use flama_phc
20250122@202759.9334 9kmhs90cuht0lc3jhlhjj3jd4s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250122@202759.9412 9kmhs90cuht0lc3jhlhjj3jd4s Query : use flama_phc
20250122@202759.9416 9kmhs90cuht0lc3jhlhjj3jd4s Query : select no, estab,szadrsdesc from szadrs where u_coddest=803
20250122@202759.9509 9kmhs90cuht0lc3jhlhjj3jd4s 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500637 
20250122@202759.9824 9kmhs90cuht0lc3jhlhjj3jd4s Query : use flama_phc
20250122@202759.9828 9kmhs90cuht0lc3jhlhjj3jd4s Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250122@202759.9872 9kmhs90cuht0lc3jhlhjj3jd4s Query : use flama_phc
20250122@202759.9875 9kmhs90cuht0lc3jhlhjj3jd4s Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250122@202759.9892 9kmhs90cuht0lc3jhlhjj3jd4s Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250122@202759.9914 9kmhs90cuht0lc3jhlhjj3jd4s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4903';
20250122@202759.9960 9kmhs90cuht0lc3jhlhjj3jd4s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4903';
20250122@203610.8332 ksn42qhpm5cuk6jpifuk9u28fp Query : use flama_phc
20250122@203610.8337 ksn42qhpm5cuk6jpifuk9u28fp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250122@203610.8505 ksn42qhpm5cuk6jpifuk9u28fp Query : use flama_phc
20250122@203610.8510 ksn42qhpm5cuk6jpifuk9u28fp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250122@211911.8830 kj378nnt7apjb7v3acld2pprs6 Query : use flama_phc
20250122@211911.8870 kj378nnt7apjb7v3acld2pprs6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250122@211911.9850 kj378nnt7apjb7v3acld2pprs6 Query : use flama_phc
20250122@211911.9890 kj378nnt7apjb7v3acld2pprs6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250122@213610.8925 3ptpdepjq4787k5s15tremhdjm Query : use flama_phc
20250122@213610.8930 3ptpdepjq4787k5s15tremhdjm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250122@213610.9036 3ptpdepjq4787k5s15tremhdjm Query : use flama_phc
20250122@213610.9040 3ptpdepjq4787k5s15tremhdjm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250122@221911.6206 ivgsmmn9knok0dvl6dmeaphste Query : use flama_phc
20250122@221911.6210 ivgsmmn9knok0dvl6dmeaphste Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250122@221911.6302 ivgsmmn9knok0dvl6dmeaphste Query : use flama_phc
20250122@221911.6305 ivgsmmn9knok0dvl6dmeaphste Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250122@223611.7643 38frochrrk6c7dqdi9bdsegja1 Query : use flama_phc
20250122@223611.7647 38frochrrk6c7dqdi9bdsegja1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250122@223611.7756 38frochrrk6c7dqdi9bdsegja1 Query : use flama_phc
20250122@223611.7760 38frochrrk6c7dqdi9bdsegja1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250122@231911.1590 19tpu8cpo2fjn54cuq5cj2damj Query : use flama_phc
20250122@231911.1640 19tpu8cpo2fjn54cuq5cj2damj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250122@231911.2680 19tpu8cpo2fjn54cuq5cj2damj Query : use flama_phc
20250122@231911.2730 19tpu8cpo2fjn54cuq5cj2damj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250122@233610.8558 48mhdsel4v1qer6h4grmqo7foa Query : use flama_phc
20250122@233610.8563 48mhdsel4v1qer6h4grmqo7foa Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250122@233610.8666 48mhdsel4v1qer6h4grmqo7foa Query : use flama_phc
20250122@233610.8670 48mhdsel4v1qer6h4grmqo7foa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@071911.6655 h7c000nn7gdaegtdl9oj888ddo Query : use flama_phc
20250123@071911.6660 h7c000nn7gdaegtdl9oj888ddo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@071911.7290 h7c000nn7gdaegtdl9oj888ddo Query : use flama_phc
20250123@071911.7296 h7c000nn7gdaegtdl9oj888ddo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@073655.9149 9pgd4fheu392ib2965t2s3snjo Query : use flama_phc
20250123@073655.9154 9pgd4fheu392ib2965t2s3snjo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@073655.9862 9pgd4fheu392ib2965t2s3snjo Query : use flama_phc
20250123@073655.9866 9pgd4fheu392ib2965t2s3snjo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@081910.7667 tap2tdvogedfq7r6b9n6mni7vu Query : use flama_phc
20250123@081910.7672 tap2tdvogedfq7r6b9n6mni7vu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@081910.7795 tap2tdvogedfq7r6b9n6mni7vu Query : use flama_phc
20250123@081910.7800 tap2tdvogedfq7r6b9n6mni7vu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@083511.4145 2eep2qni1aq3sq8pr5bqb98qhc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@083511.4333 2eep2qni1aq3sq8pr5bqb98qhc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@083511.4878 2eep2qni1aq3sq8pr5bqb98qhc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4904';
20250123@083511.4983 2eep2qni1aq3sq8pr5bqb98qhc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4904';
20250123@083511.5082 2eep2qni1aq3sq8pr5bqb98qhc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4904';
20250123@083511.5125 2eep2qni1aq3sq8pr5bqb98qhc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4904';
20250123@083511.5205 2eep2qni1aq3sq8pr5bqb98qhc Query : use flama_phc
20250123@083511.5209 2eep2qni1aq3sq8pr5bqb98qhc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@083511.5341 2eep2qni1aq3sq8pr5bqb98qhc Query : use flama_phc
20250123@083511.5344 2eep2qni1aq3sq8pr5bqb98qhc Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20250123@083511.5727 2eep2qni1aq3sq8pr5bqb98qhc 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500638 
20250123@083511.6258 2eep2qni1aq3sq8pr5bqb98qhc Query : use flama_phc
20250123@083511.6262 2eep2qni1aq3sq8pr5bqb98qhc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@083511.6336 2eep2qni1aq3sq8pr5bqb98qhc Query : use flama_phc
20250123@083511.6340 2eep2qni1aq3sq8pr5bqb98qhc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@083511.6423 2eep2qni1aq3sq8pr5bqb98qhc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@083511.6465 2eep2qni1aq3sq8pr5bqb98qhc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4904';
20250123@083511.6512 2eep2qni1aq3sq8pr5bqb98qhc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4904';
20250123@083610.3230 ruuihcbeimt7d6keuddshmkh51 Query : use flama_phc
20250123@083610.3236 ruuihcbeimt7d6keuddshmkh51 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@083610.3336 ruuihcbeimt7d6keuddshmkh51 Query : use flama_phc
20250123@083610.3341 ruuihcbeimt7d6keuddshmkh51 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@091911.5127 of2oopc0lih6lbsuna937ie9gh Query : use flama_phc
20250123@091911.5181 of2oopc0lih6lbsuna937ie9gh Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@091911.5634 of2oopc0lih6lbsuna937ie9gh Query : use flama_phc
20250123@091911.5638 of2oopc0lih6lbsuna937ie9gh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@093611.4806 lltolqj3rfna9desjeossfrfg7 Query : use flama_phc
20250123@093611.5033 lltolqj3rfna9desjeossfrfg7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@093611.9573 lltolqj3rfna9desjeossfrfg7 Query : use flama_phc
20250123@093611.9813 lltolqj3rfna9desjeossfrfg7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@101913.9126 ga59ro05cutjq14mncf5hloa1v Query : use flama_phc
20250123@101913.9131 ga59ro05cutjq14mncf5hloa1v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@101914.4360 ga59ro05cutjq14mncf5hloa1v Query : use flama_phc
20250123@101914.4420 ga59ro05cutjq14mncf5hloa1v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@103613.7106 4eb0grqim5mk2depbolt4vit3v Query : use flama_phc
20250123@103613.7159 4eb0grqim5mk2depbolt4vit3v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@103613.7707 4eb0grqim5mk2depbolt4vit3v Query : use flama_phc
20250123@103613.7957 4eb0grqim5mk2depbolt4vit3v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@111911.3721 70lg0qfn5utjg1okm0lkj7itd1 Query : use flama_phc
20250123@111911.3725 70lg0qfn5utjg1okm0lkj7itd1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@111911.3829 70lg0qfn5utjg1okm0lkj7itd1 Query : use flama_phc
20250123@111911.3832 70lg0qfn5utjg1okm0lkj7itd1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@113611.3551 tvdlnvv093836m29bna2i02lqc Query : use flama_phc
20250123@113611.3564 tvdlnvv093836m29bna2i02lqc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@113611.3971 tvdlnvv093836m29bna2i02lqc Query : use flama_phc
20250123@113611.3983 tvdlnvv093836m29bna2i02lqc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@121916.2341 lv70vigmah3bnlb9dmovb1vcc1 Query : use flama_phc
20250123@121916.2345 lv70vigmah3bnlb9dmovb1vcc1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@121916.2434 lv70vigmah3bnlb9dmovb1vcc1 Query : use flama_phc
20250123@121916.2437 lv70vigmah3bnlb9dmovb1vcc1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@123616.3193 2l2s8cgmfvgm1bsn8190dg596c Query : use flama_phc
20250123@123616.3199 2l2s8cgmfvgm1bsn8190dg596c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@123616.3293 2l2s8cgmfvgm1bsn8190dg596c Query : use flama_phc
20250123@123616.3297 2l2s8cgmfvgm1bsn8190dg596c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@131913.3248 u5lb1ahu4mpd6b3to26aolu3es Query : use flama_phc
20250123@131913.3253 u5lb1ahu4mpd6b3to26aolu3es Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@131913.3375 u5lb1ahu4mpd6b3to26aolu3es Query : use flama_phc
20250123@131913.3380 u5lb1ahu4mpd6b3to26aolu3es Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@133613.2156 qj6l23lf4ni78940fg4kohutln Query : use flama_phc
20250123@133613.2162 qj6l23lf4ni78940fg4kohutln Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@133613.2253 qj6l23lf4ni78940fg4kohutln Query : use flama_phc
20250123@133613.2257 qj6l23lf4ni78940fg4kohutln Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@141918.8834 fuq0rttm2ci0d4e34rd64296s8 Query : use flama_phc
20250123@141918.8838 fuq0rttm2ci0d4e34rd64296s8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@141918.8932 fuq0rttm2ci0d4e34rd64296s8 Query : use flama_phc
20250123@141918.8937 fuq0rttm2ci0d4e34rd64296s8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@143618.8256 sn36tolqvull9odchtkn5uulg5 Query : use flama_phc
20250123@143618.8279 sn36tolqvull9odchtkn5uulg5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@143618.8377 sn36tolqvull9odchtkn5uulg5 Query : use flama_phc
20250123@143618.8380 sn36tolqvull9odchtkn5uulg5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@150459.6149 pku3f50ggfg317go4rq9f34k39 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150459.6186 pku3f50ggfg317go4rq9f34k39 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150459.7616 pku3f50ggfg317go4rq9f34k39 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4905';
20250123@150459.7701 pku3f50ggfg317go4rq9f34k39 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4905';
20250123@150459.7794 pku3f50ggfg317go4rq9f34k39 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4905';
20250123@150459.7871 pku3f50ggfg317go4rq9f34k39 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4905';
20250123@150459.7975 pku3f50ggfg317go4rq9f34k39 Query : use flama_phc
20250123@150459.7985 pku3f50ggfg317go4rq9f34k39 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150459.8137 pku3f50ggfg317go4rq9f34k39 Query : use flama_phc
20250123@150459.8142 pku3f50ggfg317go4rq9f34k39 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2305
20250123@150459.8388 pku3f50ggfg317go4rq9f34k39 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500640 
20250123@150459.9534 pku3f50ggfg317go4rq9f34k39 Query : use flama_phc
20250123@150459.9575 pku3f50ggfg317go4rq9f34k39 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150459.9657 pku3f50ggfg317go4rq9f34k39 Query : use flama_phc
20250123@150459.9661 pku3f50ggfg317go4rq9f34k39 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150459.9725 pku3f50ggfg317go4rq9f34k39 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150459.9764 pku3f50ggfg317go4rq9f34k39 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4905';
20250123@150459.9810 pku3f50ggfg317go4rq9f34k39 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4905';
20250123@150500.4540 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150500.4690 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150500.5670 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4906';
20250123@150500.6580 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4906';
20250123@150500.7480 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4906';
20250123@150500.7960 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4906';
20250123@150500.1016 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : use flama_phc
20250123@150500.1020 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150500.1102 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : use flama_phc
20250123@150500.1108 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4537
20250123@150500.1213 ll6d6q6f4fb5hs3bm0hpaq8vq5 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500642 
20250123@150500.1544 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : use flama_phc
20250123@150500.1548 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150500.1579 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : use flama_phc
20250123@150500.1584 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150500.1604 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150500.1625 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4906';
20250123@150500.1677 ll6d6q6f4fb5hs3bm0hpaq8vq5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4906';
20250123@150500.2268 hu3ghppr8uk8aoj10gf4v6pji8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150500.2279 hu3ghppr8uk8aoj10gf4v6pji8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150500.2415 hu3ghppr8uk8aoj10gf4v6pji8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4907';
20250123@150500.2493 hu3ghppr8uk8aoj10gf4v6pji8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4907';
20250123@150500.2560 hu3ghppr8uk8aoj10gf4v6pji8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4907';
20250123@150500.2650 hu3ghppr8uk8aoj10gf4v6pji8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4907';
20250123@150500.2720 hu3ghppr8uk8aoj10gf4v6pji8 Query : use flama_phc
20250123@150500.2724 hu3ghppr8uk8aoj10gf4v6pji8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150500.2796 hu3ghppr8uk8aoj10gf4v6pji8 Query : use flama_phc
20250123@150500.2800 hu3ghppr8uk8aoj10gf4v6pji8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20250123@150500.2906 hu3ghppr8uk8aoj10gf4v6pji8 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500643 
20250123@150500.3400 hu3ghppr8uk8aoj10gf4v6pji8 Query : use flama_phc
20250123@150500.3403 hu3ghppr8uk8aoj10gf4v6pji8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150500.3522 hu3ghppr8uk8aoj10gf4v6pji8 Query : use flama_phc
20250123@150500.3669 hu3ghppr8uk8aoj10gf4v6pji8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150500.3730 hu3ghppr8uk8aoj10gf4v6pji8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150500.3830 hu3ghppr8uk8aoj10gf4v6pji8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4907';
20250123@150500.4003 hu3ghppr8uk8aoj10gf4v6pji8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4907';
20250123@150500.4637 0v8c97it9mbt85a95h7rpd8qeb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150500.4670 0v8c97it9mbt85a95h7rpd8qeb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150500.4773 0v8c97it9mbt85a95h7rpd8qeb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4908';
20250123@150500.4853 0v8c97it9mbt85a95h7rpd8qeb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4908';
20250123@150500.4942 0v8c97it9mbt85a95h7rpd8qeb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4908';
20250123@150500.5006 0v8c97it9mbt85a95h7rpd8qeb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4908';
20250123@150500.5097 0v8c97it9mbt85a95h7rpd8qeb Query : use flama_phc
20250123@150500.5111 0v8c97it9mbt85a95h7rpd8qeb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150500.5251 0v8c97it9mbt85a95h7rpd8qeb Query : use flama_phc
20250123@150500.5255 0v8c97it9mbt85a95h7rpd8qeb Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250123@150500.5355 0v8c97it9mbt85a95h7rpd8qeb 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500644 
20250123@150500.5635 0v8c97it9mbt85a95h7rpd8qeb Query : use flama_phc
20250123@150500.5639 0v8c97it9mbt85a95h7rpd8qeb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150500.5706 0v8c97it9mbt85a95h7rpd8qeb Query : use flama_phc
20250123@150500.5709 0v8c97it9mbt85a95h7rpd8qeb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150500.5756 0v8c97it9mbt85a95h7rpd8qeb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150500.5784 0v8c97it9mbt85a95h7rpd8qeb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4908';
20250123@150500.5875 0v8c97it9mbt85a95h7rpd8qeb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4908';
20250123@150500.6520 dd9s5mt2v3i6q9b9l339tsi5u6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150500.6530 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150500.6670 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4909';
20250123@150500.6739 dd9s5mt2v3i6q9b9l339tsi5u6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4909';
20250123@150500.6813 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4909';
20250123@150500.6876 dd9s5mt2v3i6q9b9l339tsi5u6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4909';
20250123@150500.6960 dd9s5mt2v3i6q9b9l339tsi5u6 Query : use flama_phc
20250123@150500.6963 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150500.7064 dd9s5mt2v3i6q9b9l339tsi5u6 Query : use flama_phc
20250123@150500.7067 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250123@150500.7123 dd9s5mt2v3i6q9b9l339tsi5u6 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500645 
20250123@150500.7444 dd9s5mt2v3i6q9b9l339tsi5u6 Query : use flama_phc
20250123@150500.7452 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150500.7483 dd9s5mt2v3i6q9b9l339tsi5u6 Query : use flama_phc
20250123@150500.7486 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150500.7527 dd9s5mt2v3i6q9b9l339tsi5u6 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150500.7553 dd9s5mt2v3i6q9b9l339tsi5u6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4909';
20250123@150500.9163 dd9s5mt2v3i6q9b9l339tsi5u6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4909';
20250123@150500.9838 2ugat8dgik0f6f5gqdtj2gr49i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150500.9850 2ugat8dgik0f6f5gqdtj2gr49i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150500.9962 2ugat8dgik0f6f5gqdtj2gr49i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4910';
20250123@150501.5000 2ugat8dgik0f6f5gqdtj2gr49i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4910';
20250123@150501.1300 2ugat8dgik0f6f5gqdtj2gr49i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4910';
20250123@150501.1760 2ugat8dgik0f6f5gqdtj2gr49i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4910';
20250123@150501.2620 2ugat8dgik0f6f5gqdtj2gr49i Query : use flama_phc
20250123@150501.2660 2ugat8dgik0f6f5gqdtj2gr49i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150501.3750 2ugat8dgik0f6f5gqdtj2gr49i Query : use flama_phc
20250123@150501.3820 2ugat8dgik0f6f5gqdtj2gr49i Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250123@150501.5210 2ugat8dgik0f6f5gqdtj2gr49i 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500646 
20250123@150501.1203 2ugat8dgik0f6f5gqdtj2gr49i Query : use flama_phc
20250123@150501.1216 2ugat8dgik0f6f5gqdtj2gr49i Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150501.1260 2ugat8dgik0f6f5gqdtj2gr49i Query : use flama_phc
20250123@150501.1265 2ugat8dgik0f6f5gqdtj2gr49i Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150501.1336 2ugat8dgik0f6f5gqdtj2gr49i Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150501.1412 2ugat8dgik0f6f5gqdtj2gr49i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4910';
20250123@150501.1731 2ugat8dgik0f6f5gqdtj2gr49i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4910';
20250123@150501.2887 gr2hgrie8sudvi52ll5cbku5vn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150501.2911 gr2hgrie8sudvi52ll5cbku5vn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150501.2996 gr2hgrie8sudvi52ll5cbku5vn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4911';
20250123@150501.3067 gr2hgrie8sudvi52ll5cbku5vn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4911';
20250123@150501.3142 gr2hgrie8sudvi52ll5cbku5vn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4911';
20250123@150501.3184 gr2hgrie8sudvi52ll5cbku5vn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4911';
20250123@150501.3258 gr2hgrie8sudvi52ll5cbku5vn Query : use flama_phc
20250123@150501.3267 gr2hgrie8sudvi52ll5cbku5vn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150501.3354 gr2hgrie8sudvi52ll5cbku5vn Query : use flama_phc
20250123@150501.3357 gr2hgrie8sudvi52ll5cbku5vn Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250123@150501.3448 gr2hgrie8sudvi52ll5cbku5vn 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500647 
20250123@150501.3775 gr2hgrie8sudvi52ll5cbku5vn Query : use flama_phc
20250123@150501.3779 gr2hgrie8sudvi52ll5cbku5vn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150501.3823 gr2hgrie8sudvi52ll5cbku5vn Query : use flama_phc
20250123@150501.3845 gr2hgrie8sudvi52ll5cbku5vn Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150501.3861 gr2hgrie8sudvi52ll5cbku5vn Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150501.3882 gr2hgrie8sudvi52ll5cbku5vn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4911';
20250123@150501.3927 gr2hgrie8sudvi52ll5cbku5vn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4911';
20250123@150501.4563 um6tivadohkdojdolo9evt2buh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150501.4575 um6tivadohkdojdolo9evt2buh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150501.4648 um6tivadohkdojdolo9evt2buh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4912';
20250123@150501.4735 um6tivadohkdojdolo9evt2buh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4912';
20250123@150501.4842 um6tivadohkdojdolo9evt2buh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4912';
20250123@150501.4894 um6tivadohkdojdolo9evt2buh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4912';
20250123@150501.4996 um6tivadohkdojdolo9evt2buh Query : use flama_phc
20250123@150501.5011 um6tivadohkdojdolo9evt2buh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150501.5138 um6tivadohkdojdolo9evt2buh Query : use flama_phc
20250123@150501.5141 um6tivadohkdojdolo9evt2buh Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20250123@150501.5238 um6tivadohkdojdolo9evt2buh 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500648 
20250123@150501.5536 um6tivadohkdojdolo9evt2buh Query : use flama_phc
20250123@150501.5540 um6tivadohkdojdolo9evt2buh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150501.5571 um6tivadohkdojdolo9evt2buh Query : use flama_phc
20250123@150501.5574 um6tivadohkdojdolo9evt2buh Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150501.5591 um6tivadohkdojdolo9evt2buh Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150501.5646 um6tivadohkdojdolo9evt2buh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4912';
20250123@150501.5715 um6tivadohkdojdolo9evt2buh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4912';
20250123@150501.6303 8c2u9mgg9v5qb20tukducsl9s8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150501.6314 8c2u9mgg9v5qb20tukducsl9s8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150501.6472 8c2u9mgg9v5qb20tukducsl9s8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4913';
20250123@150501.6596 8c2u9mgg9v5qb20tukducsl9s8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4913';
20250123@150501.6696 8c2u9mgg9v5qb20tukducsl9s8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4913';
20250123@150501.6800 8c2u9mgg9v5qb20tukducsl9s8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4913';
20250123@150501.6910 8c2u9mgg9v5qb20tukducsl9s8 Query : use flama_phc
20250123@150501.6915 8c2u9mgg9v5qb20tukducsl9s8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150501.7447 8c2u9mgg9v5qb20tukducsl9s8 Query : use flama_phc
20250123@150501.7467 8c2u9mgg9v5qb20tukducsl9s8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=235
20250123@150501.7562 8c2u9mgg9v5qb20tukducsl9s8 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500649 
20250123@150502.7300 8c2u9mgg9v5qb20tukducsl9s8 Query : use flama_phc
20250123@150502.7600 8c2u9mgg9v5qb20tukducsl9s8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150502.1180 8c2u9mgg9v5qb20tukducsl9s8 Query : use flama_phc
20250123@150502.1490 8c2u9mgg9v5qb20tukducsl9s8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150502.1830 8c2u9mgg9v5qb20tukducsl9s8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150502.2110 8c2u9mgg9v5qb20tukducsl9s8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4913';
20250123@150502.2550 8c2u9mgg9v5qb20tukducsl9s8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4913';
20250123@150502.8560 d29buk76lakvutdjj9ic6uukae Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150502.8670 d29buk76lakvutdjj9ic6uukae Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150502.9550 d29buk76lakvutdjj9ic6uukae Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4914';
20250123@150502.1051 d29buk76lakvutdjj9ic6uukae Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4914';
20250123@150502.1164 d29buk76lakvutdjj9ic6uukae Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4914';
20250123@150502.1212 d29buk76lakvutdjj9ic6uukae Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4914';
20250123@150502.1327 d29buk76lakvutdjj9ic6uukae Query : use flama_phc
20250123@150502.1330 d29buk76lakvutdjj9ic6uukae Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150502.1395 d29buk76lakvutdjj9ic6uukae Query : use flama_phc
20250123@150502.1398 d29buk76lakvutdjj9ic6uukae Query : select no, estab,szadrsdesc from szadrs where u_coddest=6258
20250123@150502.1512 d29buk76lakvutdjj9ic6uukae 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500650 
20250123@150502.1817 d29buk76lakvutdjj9ic6uukae Query : use flama_phc
20250123@150502.1820 d29buk76lakvutdjj9ic6uukae Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150502.1851 d29buk76lakvutdjj9ic6uukae Query : use flama_phc
20250123@150502.1855 d29buk76lakvutdjj9ic6uukae Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150502.1870 d29buk76lakvutdjj9ic6uukae Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150502.1925 d29buk76lakvutdjj9ic6uukae Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4914';
20250123@150502.2052 d29buk76lakvutdjj9ic6uukae Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4914';
20250123@150502.2745 fsh1gnpikjbpg9ap0g1ji6l43b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@150502.2755 fsh1gnpikjbpg9ap0g1ji6l43b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@150502.2826 fsh1gnpikjbpg9ap0g1ji6l43b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4915';
20250123@150502.2896 fsh1gnpikjbpg9ap0g1ji6l43b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4915';
20250123@150502.2973 fsh1gnpikjbpg9ap0g1ji6l43b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4915';
20250123@150502.3019 fsh1gnpikjbpg9ap0g1ji6l43b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4915';
20250123@150502.3082 fsh1gnpikjbpg9ap0g1ji6l43b Query : use flama_phc
20250123@150502.3085 fsh1gnpikjbpg9ap0g1ji6l43b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@150502.3150 fsh1gnpikjbpg9ap0g1ji6l43b Query : use flama_phc
20250123@150502.3153 fsh1gnpikjbpg9ap0g1ji6l43b Query : select no, estab,szadrsdesc from szadrs where u_coddest=228
20250123@150502.3241 fsh1gnpikjbpg9ap0g1ji6l43b 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500651 
20250123@150502.3522 fsh1gnpikjbpg9ap0g1ji6l43b Query : use flama_phc
20250123@150502.3525 fsh1gnpikjbpg9ap0g1ji6l43b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@150502.3559 fsh1gnpikjbpg9ap0g1ji6l43b Query : use flama_phc
20250123@150502.3562 fsh1gnpikjbpg9ap0g1ji6l43b Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@150502.3578 fsh1gnpikjbpg9ap0g1ji6l43b Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@150502.3605 fsh1gnpikjbpg9ap0g1ji6l43b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4915';
20250123@150502.3647 fsh1gnpikjbpg9ap0g1ji6l43b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4915';
20250123@151912.7449 8g7ikru4n9vuqaikpfhq9gm7et Query : use flama_phc
20250123@151912.7455 8g7ikru4n9vuqaikpfhq9gm7et Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@151912.7735 8g7ikru4n9vuqaikpfhq9gm7et Query : use flama_phc
20250123@151912.7749 8g7ikru4n9vuqaikpfhq9gm7et Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@152803.3956 4oqs3gb8ra7mfkmapg5et8lc29 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@152803.3972 4oqs3gb8ra7mfkmapg5et8lc29 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@152803.4047 4oqs3gb8ra7mfkmapg5et8lc29 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4916';
20250123@152803.4111 4oqs3gb8ra7mfkmapg5et8lc29 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4916';
20250123@152803.4182 4oqs3gb8ra7mfkmapg5et8lc29 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4916';
20250123@152803.4216 4oqs3gb8ra7mfkmapg5et8lc29 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4916';
20250123@152803.4268 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152803.4272 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@152803.4350 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20250123@152803.4625 4oqs3gb8ra7mfkmapg5et8lc29 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 = 2401038 and bi.ref ='324.988.00.01' and bi.lordem =20000
20250123@152803.4957 4oqs3gb8ra7mfkmapg5et8lc29 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 = 'cps24090641555,686000002 ' 
20250123@152803.5335 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152803.5338 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 1 valor from ts where ts.ndos = 61
20250123@152803.5727 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152803.5732 4oqs3gb8ra7mfkmapg5et8lc29 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')
20250123@152803.5814 4oqs3gb8ra7mfkmapg5et8lc29 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
20250123@152803.5960 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152803.5964 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 ~inactivo valor from fl where no = '202383' and estab = 00 order by inactivo desc
20250123@152803.6426 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152803.6446 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from ts where ndos = 61
20250123@152803.6545 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152803.7027 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250123@152803.7101 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152803.7120 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250123@152803.7131 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152803.7159 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250123@152803.7170 4oqs3gb8ra7mfkmapg5et8lc29 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
20250123@152803.7284 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250123@152803.7376 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250123@152803.7409 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152803.7417 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202383' and estab=00
20250123@152803.7498 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152803.7516 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250123@152803.7560 4oqs3gb8ra7mfkmapg5et8lc29 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut679267211867926003b4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250123@152803.7626 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152803.7645 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250123@152803.7670 4oqs3gb8ra7mfkmapg5et8lc29 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut679267211867926003b4','--','bo',7.9185520361990950226 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250123@152803.7857 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152803.7876 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250123@152803.7905 4oqs3gb8ra7mfkmapg5et8lc29 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 ('aut679267211867926003b4','guia r. fornecedor','2025-01-23',61,2500272,?,?,?,?,?,?,?,?,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')
20250123@152807.4220 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152807.4224 4oqs3gb8ra7mfkmapg5et8lc29 Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20250123@152807.4392 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.988.00.01'
20250123@152807.4550 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152807.4568 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250123@152807.4586 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152807.4605 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250123@152807.4616 4oqs3gb8ra7mfkmapg5et8lc29 Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2401038200a'
20250123@152807.4675 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152807.4695 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250123@152807.4706 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152807.4995 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250123@152807.5013 4oqs3gb8ra7mfkmapg5et8lc29 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67926200296792600772',?,?,'20250123',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250123@152807.5613 4oqs3gb8ra7mfkmapg5et8lc29 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@152807.5661 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152807.5685 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250123@152807.5703 4oqs3gb8ra7mfkmapg5et8lc29 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6792687523679260078a','aut679267211867926003b4',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 = 'aut679267211867926003b4'
20250123@152807.5875 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@152807.5897 4oqs3gb8ra7mfkmapg5et8lc29 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250123@152807.5919 4oqs3gb8ra7mfkmapg5et8lc29 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 'aut6792687523679260078a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2800, 2800*.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 ,8.84,8.84*200.48,8.84,8.84*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,8.84*2800,8.84*2800*200.48 ,12.395000,12.395000*200.48 ,12.395000,12.395000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.84,8.84*200.48,8.84*2800,8.84*2800*200.48,'cps24090641555,686000002 ',70,70*2800,70,70*2800,?,?,?,4 from bo bo where bo.bostamp = 'aut679267211867926003b4'
20250123@152816.4896 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152816.4902 4oqs3gb8ra7mfkmapg5et8lc29 Query : declare @bostamp varchar(25) = 'aut679267211867926003b4' ,@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 
20250123@152829.7152 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152829.7193 4oqs3gb8ra7mfkmapg5et8lc29 Query : select 1 valor from bo where bo.bostamp = 'aut679267211867926003b4'
20250123@152829.7356 4oqs3gb8ra7mfkmapg5et8lc29 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) = 'aut679267211867926003b4' 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 
20250123@152832.1455 4oqs3gb8ra7mfkmapg5et8lc29 Query : use flama_phc
20250123@152832.1459 4oqs3gb8ra7mfkmapg5et8lc29 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@152832.1518 4oqs3gb8ra7mfkmapg5et8lc29 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4916';
20250123@152832.1570 4oqs3gb8ra7mfkmapg5et8lc29 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4916';
20250123@153613.1496 mg607jkqrrd6rhpbsso35qdcg4 Query : use flama_phc
20250123@153613.1503 mg607jkqrrd6rhpbsso35qdcg4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@153613.1627 mg607jkqrrd6rhpbsso35qdcg4 Query : use flama_phc
20250123@153613.1632 mg607jkqrrd6rhpbsso35qdcg4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@161911.9805 ot90tbbelun0p2n0enmjqboucr Query : use flama_phc
20250123@161911.9810 ot90tbbelun0p2n0enmjqboucr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@161911.9922 ot90tbbelun0p2n0enmjqboucr Query : use flama_phc
20250123@161911.9927 ot90tbbelun0p2n0enmjqboucr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@163611.9023 n0dh9uam684jqgpgv94k7eesbf Query : use flama_phc
20250123@163611.9028 n0dh9uam684jqgpgv94k7eesbf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@163611.9394 n0dh9uam684jqgpgv94k7eesbf Query : use flama_phc
20250123@163611.9399 n0dh9uam684jqgpgv94k7eesbf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@164409.1874 2ld4n056pprasgs64g1c68o78p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@164409.1890 2ld4n056pprasgs64g1c68o78p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@164409.2052 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4917';
20250123@164409.2131 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4917';
20250123@164409.2207 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4917';
20250123@164409.2249 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4917';
20250123@164409.2370 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164409.2375 2ld4n056pprasgs64g1c68o78p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@164409.2449 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164409.2454 2ld4n056pprasgs64g1c68o78p 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 0000348 
20250123@164409.2978 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250123@164409.3137 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8580000-3 ' 
20250123@164409.3504 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250123@164409.3530 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8770000-4 ' 
20250123@164409.3889 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164409.4043 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164409.4391 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164409.4413 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164409.4438 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164409.4462 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164409.4485 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164409.4508 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164409.4533 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164409.4555 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164409.4580 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164409.4584 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250123@164409.4780 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164409.4785 2ld4n056pprasgs64g1c68o78p Query : select top 1 1 valor from td where td.ndoc = 39
20250123@164409.4880 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164409.4884 2ld4n056pprasgs64g1c68o78p 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')
20250123@164409.4946 2ld4n056pprasgs64g1c68o78p 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
20250123@164409.5099 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164409.5104 2ld4n056pprasgs64g1c68o78p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@164409.5148 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164409.5152 2ld4n056pprasgs64g1c68o78p Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -140
20250123@164409.5225 2ld4n056pprasgs64g1c68o78p Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-140,?,'ft',?,?)
20250123@164409.5263 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4917';
20250123@164409.5314 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4917';
20250123@164444.1292 2ld4n056pprasgs64g1c68o78p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@164444.1303 2ld4n056pprasgs64g1c68o78p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@164444.1387 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4918';
20250123@164444.1455 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4918';
20250123@164444.1534 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4918';
20250123@164444.1578 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4918';
20250123@164444.1663 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164444.1668 2ld4n056pprasgs64g1c68o78p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@164444.1736 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164444.1741 2ld4n056pprasgs64g1c68o78p 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 0000348 
20250123@164444.1800 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250123@164444.1824 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8580000-3 ' 
20250123@164444.1846 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250123@164444.1868 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8770000-4 ' 
20250123@164444.1891 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164444.1913 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164444.1935 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164444.1956 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164444.1978 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164444.2001 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164444.2023 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164444.2043 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164444.2104 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164444.2129 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164444.2176 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164444.2181 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250123@164444.2221 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164444.2224 2ld4n056pprasgs64g1c68o78p Query : select top 1 1 valor from td where td.ndoc = 39
20250123@164444.2274 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164444.2277 2ld4n056pprasgs64g1c68o78p 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')
20250123@164444.2317 2ld4n056pprasgs64g1c68o78p 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
20250123@164444.2361 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164444.2364 2ld4n056pprasgs64g1c68o78p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@164444.2396 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164444.2399 2ld4n056pprasgs64g1c68o78p Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250123@164444.2454 2ld4n056pprasgs64g1c68o78p Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-230,?,'ft',?,?)
20250123@164444.2489 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4918';
20250123@164444.2548 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4918';
20250123@164527.3670 2ld4n056pprasgs64g1c68o78p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@164527.3683 2ld4n056pprasgs64g1c68o78p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@164527.3780 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4919';
20250123@164527.3856 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4919';
20250123@164527.3953 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4919';
20250123@164527.5259 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4919';
20250123@164527.5368 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.5373 2ld4n056pprasgs64g1c68o78p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@164527.5448 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.5452 2ld4n056pprasgs64g1c68o78p Query : select no, estab,szadrsdesc from szadrs where u_coddest=8857
20250123@164527.5592 2ld4n056pprasgs64g1c68o78p 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 0000348 
20250123@164527.5648 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250123@164527.5669 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8580000-3 ' 
20250123@164527.5718 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250123@164527.5742 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8770000-4 ' 
20250123@164527.5769 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164527.5794 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164527.5841 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164527.5865 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164527.5887 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164527.5909 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164527.5952 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164527.5975 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164527.5996 2ld4n056pprasgs64g1c68o78p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250123@164527.6018 2ld4n056pprasgs64g1c68o78p 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 = 'evc25012233396,8380000-2 ' 
20250123@164527.6057 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6061 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250123@164527.6095 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6098 2ld4n056pprasgs64g1c68o78p Query : select top 1 1 valor from td where td.ndoc = 39
20250123@164527.6137 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6141 2ld4n056pprasgs64g1c68o78p 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')
20250123@164527.6195 2ld4n056pprasgs64g1c68o78p 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
20250123@164527.6236 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6240 2ld4n056pprasgs64g1c68o78p Query : select top 1 ~inactivo valor from cl where no = '100001' and estab = 0 order by inactivo desc
20250123@164527.6386 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6390 2ld4n056pprasgs64g1c68o78p Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250123@164527.6507 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6511 2ld4n056pprasgs64g1c68o78p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@164527.6580 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6584 2ld4n056pprasgs64g1c68o78p Query : select szadrsstamp valor from szadrs where szadrsdesc='100001 flama - cesar (usar encomenda p/ arm 133)'
20250123@164527.6643 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164527.6646 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from td where ndoc = 39
20250123@164527.6749 2ld4n056pprasgs64g1c68o78p Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250123@164527.6837 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164527.6856 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250123@164527.6885 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164527.6901 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250123@164527.6957 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164527.6975 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250123@164527.6994 2ld4n056pprasgs64g1c68o78p Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250123@164527.7267 2ld4n056pprasgs64g1c68o78p Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250123@164527.7489 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164527.7510 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250123@164527.7537 2ld4n056pprasgs64g1c68o78p Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250123@164527.8032 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164527.8053 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250123@164527.8115 2ld4n056pprasgs64g1c68o78p Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250123@164527.8241 2ld4n056pprasgs64g1c68o78p Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250123@164527.8361 2ld4n056pprasgs64g1c68o78p Query : select top 1 bo.u_codposen valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250123@164527.8477 2ld4n056pprasgs64g1c68o78p Query : select top 1 bo.u_localenv valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250123@164527.8593 2ld4n056pprasgs64g1c68o78p Query : select top 1 bo.trab5 valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250123@164528.1060 2ld4n056pprasgs64g1c68o78p Query : select top 1 bo.serie valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250123@164528.9910 2ld4n056pprasgs64g1c68o78p Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut679279454067927227aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250123@164528.1929 2ld4n056pprasgs64g1c68o78p Query : select top 1 fno valor from wsftdata order by fno desc
20250123@164528.2033 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.2053 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250123@164528.2078 2ld4n056pprasgs64g1c68o78p Query : select 'normal' from dummy
20250123@164528.2154 2ld4n056pprasgs64g1c68o78p Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ,encomenda ) values ('aut679279454067927227aa',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3086,100001,0,'2025-01-23',39,'euro',0,0,2025 ,?,?,?)
20250123@164528.2686 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.2689 2ld4n056pprasgs64g1c68o78p Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20250123@164528.2714 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.2718 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250123@164528.2839 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.2842 2ld4n056pprasgs64g1c68o78p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1646.00.1' and sa.armazem = 133 
20250123@164528.2907 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.2912 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250123@164528.2925 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.2927 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250123@164528.2949 2ld4n056pprasgs64g1c68o78p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20250123@164528.3093 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.3111 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.3139 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.3155 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.3166 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.3185 2ld4n056pprasgs64g1c68o78p Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2400725100a'
20250123@164528.3202 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.3218 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.3230 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6792727254679272284e','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.3308 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.3326 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.3358 2ld4n056pprasgs64g1c68o78p 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 ('aut6792727254679272284e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.0000 ,'aut679279454067927227aa' ,46.780000,0 ,2,23.00,10000,?,?,?,?,?,?,?,?,?)
20250123@164528.4073 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4077 2ld4n056pprasgs64g1c68o78p Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20250123@164528.4099 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4103 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250123@164528.4129 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4133 2ld4n056pprasgs64g1c68o78p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1646.00.1' and sa.armazem = 133 
20250123@164528.4157 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4161 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250123@164528.4175 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4179 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250123@164528.4204 2ld4n056pprasgs64g1c68o78p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20250123@164528.4222 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.4242 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.4271 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.4288 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.4298 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.4311 2ld4n056pprasgs64g1c68o78p Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2400725100a'
20250123@164528.4325 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.4341 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.4354 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67927762146792722869','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.4360 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.4378 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.4411 2ld4n056pprasgs64g1c68o78p 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 ('aut67927762146792722869',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.0000 ,'aut679279454067927227aa' ,.000000,0 ,2,23.00,20000,?,?,?,?,?,?,?,?,?)
20250123@164528.4684 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4688 2ld4n056pprasgs64g1c68o78p Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250123@164528.4706 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4713 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.4733 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4736 2ld4n056pprasgs64g1c68o78p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250123@164528.4816 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4820 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.4833 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.4837 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.4857 2ld4n056pprasgs64g1c68o78p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250123@164528.5023 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5040 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.5077 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5094 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.5103 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.5120 2ld4n056pprasgs64g1c68o78p Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250123@164528.5149 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5165 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.5178 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6792721812679272287d','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.5183 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5200 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.5233 2ld4n056pprasgs64g1c68o78p 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 ('aut6792721812679272287d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut679279454067927227aa' ,30.420000,0 ,2,23.00,30000,?,?,?,?,?,?,?,?,?)
20250123@164528.5488 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5516 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.5552 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5569 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.5579 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.5593 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5610 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.5652 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67927176086792722888','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.5668 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.5686 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.5719 2ld4n056pprasgs64g1c68o78p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67927176086792722888',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut679279454067927227aa' ,0,0 ,2,23.00,40000,?,?,?)
20250123@164528.5982 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.5986 2ld4n056pprasgs64g1c68o78p Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250123@164528.6002 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.6005 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.6023 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.6026 2ld4n056pprasgs64g1c68o78p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250123@164528.6050 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.6053 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.6065 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.6068 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.6088 2ld4n056pprasgs64g1c68o78p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250123@164528.6104 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.6122 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.6149 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.6167 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.6177 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.6191 2ld4n056pprasgs64g1c68o78p Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250123@164528.6217 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.6277 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.6377 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67927066086792722897','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.6385 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.6404 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.6672 2ld4n056pprasgs64g1c68o78p 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 ('aut67927066086792722897',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut679279454067927227aa' ,30.420000,0 ,2,23.00,60000,?,?,?,?,?,?,?,?,?)
20250123@164528.7742 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.7763 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.7791 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.7808 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.7818 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.7832 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.7848 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.7863 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut679278104967927228bf','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.7869 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.7884 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.7916 2ld4n056pprasgs64g1c68o78p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut679278104967927228bf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut679279454067927227aa' ,0,0 ,2,23.00,70000,?,?,?)
20250123@164528.8157 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.8161 2ld4n056pprasgs64g1c68o78p Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250123@164528.8179 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.8182 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.8200 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.8203 2ld4n056pprasgs64g1c68o78p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250123@164528.8228 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.8230 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.8244 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.8247 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.8275 2ld4n056pprasgs64g1c68o78p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250123@164528.8296 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8317 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.8344 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8363 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.8374 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.8388 2ld4n056pprasgs64g1c68o78p Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250123@164528.8403 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8421 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.8435 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut679272152667927228cd','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.8441 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8458 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.8490 2ld4n056pprasgs64g1c68o78p 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 ('aut679272152667927228cd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut679279454067927227aa' ,30.420000,0 ,2,23.00,90000,?,?,?,?,?,?,?,?,?)
20250123@164528.8754 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8775 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.8805 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8835 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.8844 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.8860 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8880 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.8897 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut679272259267927228d8','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.8902 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.8920 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.8954 2ld4n056pprasgs64g1c68o78p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut679272259267927228d8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut679279454067927227aa' ,0,0 ,2,23.00,100000,?,?,?)
20250123@164528.9250 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.9253 2ld4n056pprasgs64g1c68o78p Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250123@164528.9269 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.9275 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.9293 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.9296 2ld4n056pprasgs64g1c68o78p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250123@164528.9324 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.9328 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.9342 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164528.9345 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164528.9365 2ld4n056pprasgs64g1c68o78p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250123@164528.9381 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.9402 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.9435 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.9479 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.9489 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164528.9506 2ld4n056pprasgs64g1c68o78p Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250123@164528.9540 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.9557 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.9571 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut679270856067927228e8','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164528.9576 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.9592 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.9625 2ld4n056pprasgs64g1c68o78p 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 ('aut679270856067927228e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut679279454067927227aa' ,30.420000,0 ,2,23.00,120000,?,?,?,?,?,?,?,?,?)
20250123@164528.9896 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.9916 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164528.9951 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164528.9976 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164528.9986 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164529.1000 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.1800 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164529.4400 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67927715086792722900','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164529.5500 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.9300 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164529.1270 2ld4n056pprasgs64g1c68o78p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut67927715086792722900',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut679279454067927227aa' ,0,0 ,2,23.00,130000,?,?,?)
20250123@164529.3870 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164529.3910 2ld4n056pprasgs64g1c68o78p Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250123@164529.4070 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164529.4100 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164529.4280 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164529.4310 2ld4n056pprasgs64g1c68o78p Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250123@164529.4600 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164529.4630 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164529.4760 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164529.4790 2ld4n056pprasgs64g1c68o78p Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250123@164529.5000 2ld4n056pprasgs64g1c68o78p Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250123@164529.5170 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.5340 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164529.5910 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.6080 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164529.6180 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164529.6310 2ld4n056pprasgs64g1c68o78p Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250123@164529.6450 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.6600 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164529.6720 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6792705339679272290f','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164529.6770 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.6920 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164529.7250 2ld4n056pprasgs64g1c68o78p 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 ('aut6792705339679272290f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20 ,'aut679279454067927227aa' ,30.420000,0 ,2,23.00,150000,?,?,?,?,?,?,?,?,?)
20250123@164529.9800 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.1000 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164529.1034 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.1053 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164529.1065 2ld4n056pprasgs64g1c68o78p Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250123@164529.1081 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.1096 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250123@164529.1111 2ld4n056pprasgs64g1c68o78p Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6792717888679272291a','aut679279454067927227aa' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250123@164529.1116 2ld4n056pprasgs64g1c68o78p Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250123@164529.1133 2ld4n056pprasgs64g1c68o78p Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250123@164529.1167 2ld4n056pprasgs64g1c68o78p Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6792717888679272291a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut679279454067927227aa' ,0,0 ,2,23.00,160000,?,?,?)
20250123@164529.1425 2ld4n056pprasgs64g1c68o78p Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut679279454067927227aa','','wait',39,'adm09112754980.682000002')
20250123@164529.1550 2ld4n056pprasgs64g1c68o78p Query : use flama_phc
20250123@164529.1554 2ld4n056pprasgs64g1c68o78p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@164529.1589 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4919';
20250123@164529.1640 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4919';
20250123@164529.1700 2ld4n056pprasgs64g1c68o78p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4919';
20250123@164529.1745 2ld4n056pprasgs64g1c68o78p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4919';
20250123@171915.1247 1sgs1gmm2o8nu1k7epc821ji1g Query : use flama_phc
20250123@171915.1253 1sgs1gmm2o8nu1k7epc821ji1g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@171915.1401 1sgs1gmm2o8nu1k7epc821ji1g Query : use flama_phc
20250123@171915.1405 1sgs1gmm2o8nu1k7epc821ji1g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@173614.8314 uvtefj8s6icn5u07e2sisidc3k Query : use flama_phc
20250123@173614.8318 uvtefj8s6icn5u07e2sisidc3k Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@173614.8413 uvtefj8s6icn5u07e2sisidc3k Query : use flama_phc
20250123@173614.8417 uvtefj8s6icn5u07e2sisidc3k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@181911.6155 ici195hnv96eh3en5pfupq40tc Query : use flama_phc
20250123@181911.6160 ici195hnv96eh3en5pfupq40tc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@181911.6253 ici195hnv96eh3en5pfupq40tc Query : use flama_phc
20250123@181911.6257 ici195hnv96eh3en5pfupq40tc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@182555.4134 quuj3d5uvfrg983m9ucdrteeq5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@182555.4165 quuj3d5uvfrg983m9ucdrteeq5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@182555.4468 quuj3d5uvfrg983m9ucdrteeq5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4920';
20250123@182555.4559 quuj3d5uvfrg983m9ucdrteeq5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4920';
20250123@182555.4637 quuj3d5uvfrg983m9ucdrteeq5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4920';
20250123@182555.4686 quuj3d5uvfrg983m9ucdrteeq5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4920';
20250123@182555.4774 quuj3d5uvfrg983m9ucdrteeq5 Query : use flama_phc
20250123@182555.4778 quuj3d5uvfrg983m9ucdrteeq5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@182555.4899 quuj3d5uvfrg983m9ucdrteeq5 Query : use flama_phc
20250123@182555.4903 quuj3d5uvfrg983m9ucdrteeq5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=313
20250123@182555.5015 quuj3d5uvfrg983m9ucdrteeq5 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500652 
20250123@182555.5338 quuj3d5uvfrg983m9ucdrteeq5 Query : use flama_phc
20250123@182555.5343 quuj3d5uvfrg983m9ucdrteeq5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@182555.5419 quuj3d5uvfrg983m9ucdrteeq5 Query : use flama_phc
20250123@182555.5423 quuj3d5uvfrg983m9ucdrteeq5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@182555.5491 quuj3d5uvfrg983m9ucdrteeq5 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@182555.5527 quuj3d5uvfrg983m9ucdrteeq5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4920';
20250123@182555.5578 quuj3d5uvfrg983m9ucdrteeq5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4920';
20250123@182555.6120 rodqm85d46huim7hfvm42jgf1a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@182555.6132 rodqm85d46huim7hfvm42jgf1a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@182555.6213 rodqm85d46huim7hfvm42jgf1a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4921';
20250123@182555.6298 rodqm85d46huim7hfvm42jgf1a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4921';
20250123@182555.6393 rodqm85d46huim7hfvm42jgf1a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4921';
20250123@182555.6437 rodqm85d46huim7hfvm42jgf1a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4921';
20250123@182555.6531 rodqm85d46huim7hfvm42jgf1a Query : use flama_phc
20250123@182555.6537 rodqm85d46huim7hfvm42jgf1a Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@182555.6605 rodqm85d46huim7hfvm42jgf1a Query : use flama_phc
20250123@182555.6609 rodqm85d46huim7hfvm42jgf1a Query : select no, estab,szadrsdesc from szadrs where u_coddest=1123
20250123@182555.6723 rodqm85d46huim7hfvm42jgf1a 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500653 
20250123@182555.7052 rodqm85d46huim7hfvm42jgf1a Query : use flama_phc
20250123@182555.7056 rodqm85d46huim7hfvm42jgf1a Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@182555.7196 rodqm85d46huim7hfvm42jgf1a Query : use flama_phc
20250123@182555.7238 rodqm85d46huim7hfvm42jgf1a Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@182555.7294 rodqm85d46huim7hfvm42jgf1a Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@182555.7318 rodqm85d46huim7hfvm42jgf1a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4921';
20250123@182555.7370 rodqm85d46huim7hfvm42jgf1a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4921';
20250123@182555.7949 482p84f9a66eh89dksnghs2v3d Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@182555.7961 482p84f9a66eh89dksnghs2v3d Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@182555.8035 482p84f9a66eh89dksnghs2v3d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4922';
20250123@182555.8108 482p84f9a66eh89dksnghs2v3d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4922';
20250123@182555.8178 482p84f9a66eh89dksnghs2v3d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4922';
20250123@182555.8259 482p84f9a66eh89dksnghs2v3d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4922';
20250123@182555.8333 482p84f9a66eh89dksnghs2v3d Query : use flama_phc
20250123@182555.8337 482p84f9a66eh89dksnghs2v3d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@182555.8414 482p84f9a66eh89dksnghs2v3d Query : use flama_phc
20250123@182555.8417 482p84f9a66eh89dksnghs2v3d Query : select no, estab,szadrsdesc from szadrs where u_coddest=2136
20250123@182555.8565 482p84f9a66eh89dksnghs2v3d 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500654 
20250123@182555.8864 482p84f9a66eh89dksnghs2v3d Query : use flama_phc
20250123@182555.8868 482p84f9a66eh89dksnghs2v3d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@182555.8903 482p84f9a66eh89dksnghs2v3d Query : use flama_phc
20250123@182555.8907 482p84f9a66eh89dksnghs2v3d Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@182555.8923 482p84f9a66eh89dksnghs2v3d Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@182555.8951 482p84f9a66eh89dksnghs2v3d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4922';
20250123@182555.9007 482p84f9a66eh89dksnghs2v3d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4922';
20250123@182556.4440 ti98hrtgv3721rnqtb7nvppp73 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250123@182556.4580 ti98hrtgv3721rnqtb7nvppp73 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250123@182556.5420 ti98hrtgv3721rnqtb7nvppp73 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4923';
20250123@182556.7190 ti98hrtgv3721rnqtb7nvppp73 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4923';
20250123@182556.1395 ti98hrtgv3721rnqtb7nvppp73 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4923';
20250123@182556.1444 ti98hrtgv3721rnqtb7nvppp73 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4923';
20250123@182556.1509 ti98hrtgv3721rnqtb7nvppp73 Query : use flama_phc
20250123@182556.1514 ti98hrtgv3721rnqtb7nvppp73 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250123@182556.1629 ti98hrtgv3721rnqtb7nvppp73 Query : use flama_phc
20250123@182556.1635 ti98hrtgv3721rnqtb7nvppp73 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3046
20250123@182556.1735 ti98hrtgv3721rnqtb7nvppp73 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500655 
20250123@182556.2073 ti98hrtgv3721rnqtb7nvppp73 Query : use flama_phc
20250123@182556.2078 ti98hrtgv3721rnqtb7nvppp73 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250123@182556.2163 ti98hrtgv3721rnqtb7nvppp73 Query : use flama_phc
20250123@182556.2167 ti98hrtgv3721rnqtb7nvppp73 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250123@182556.2186 ti98hrtgv3721rnqtb7nvppp73 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250123@182556.2208 ti98hrtgv3721rnqtb7nvppp73 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4923';
20250123@182556.2260 ti98hrtgv3721rnqtb7nvppp73 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4923';
20250123@183611.5205 o6eq0sctu5u5cn0n8l90453p7g Query : use flama_phc
20250123@183611.5214 o6eq0sctu5u5cn0n8l90453p7g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@183611.5340 o6eq0sctu5u5cn0n8l90453p7g Query : use flama_phc
20250123@183611.5348 o6eq0sctu5u5cn0n8l90453p7g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@191913.6070 ne6bqsus3p33pqa9ps4j1b3d47 Query : use flama_phc
20250123@191913.6075 ne6bqsus3p33pqa9ps4j1b3d47 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@191913.6169 ne6bqsus3p33pqa9ps4j1b3d47 Query : use flama_phc
20250123@191913.6174 ne6bqsus3p33pqa9ps4j1b3d47 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@193613.5141 4esge5aklpk22onvua241c5otl Query : use flama_phc
20250123@193613.5146 4esge5aklpk22onvua241c5otl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@193613.5279 4esge5aklpk22onvua241c5otl Query : use flama_phc
20250123@193613.5282 4esge5aklpk22onvua241c5otl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@201911.7937 q4nhfo8rti9pffv5d43ab4992e Query : use flama_phc
20250123@201911.7941 q4nhfo8rti9pffv5d43ab4992e Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@201911.8040 q4nhfo8rti9pffv5d43ab4992e Query : use flama_phc
20250123@201911.8046 q4nhfo8rti9pffv5d43ab4992e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@203611.4874 meoki2ul5irpmgju774icknkom Query : use flama_phc
20250123@203611.4879 meoki2ul5irpmgju774icknkom Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@203611.5120 meoki2ul5irpmgju774icknkom Query : use flama_phc
20250123@203611.5124 meoki2ul5irpmgju774icknkom Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@211914.3546 9rqlrrlrm4mj553j8bp7pk09h5 Query : use flama_phc
20250123@211914.3551 9rqlrrlrm4mj553j8bp7pk09h5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@211914.3644 9rqlrrlrm4mj553j8bp7pk09h5 Query : use flama_phc
20250123@211914.3649 9rqlrrlrm4mj553j8bp7pk09h5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@213614.3347 n9dh6nfm0vf6uo4iuobdj102pr Query : use flama_phc
20250123@213614.3351 n9dh6nfm0vf6uo4iuobdj102pr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@213614.3449 n9dh6nfm0vf6uo4iuobdj102pr Query : use flama_phc
20250123@213614.3453 n9dh6nfm0vf6uo4iuobdj102pr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@221913.1962 ddifr5t5ko9s1a1jh6lrqim0gf Query : use flama_phc
20250123@221913.1968 ddifr5t5ko9s1a1jh6lrqim0gf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@221913.2131 ddifr5t5ko9s1a1jh6lrqim0gf Query : use flama_phc
20250123@221913.2135 ddifr5t5ko9s1a1jh6lrqim0gf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@223613.6096 rs8lq817eeh419in4arfasbf1e Query : use flama_phc
20250123@223613.6101 rs8lq817eeh419in4arfasbf1e Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@223613.6207 rs8lq817eeh419in4arfasbf1e Query : use flama_phc
20250123@223613.6211 rs8lq817eeh419in4arfasbf1e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@231917.6125 doeh027tli5redjps9o64qgg89 Query : use flama_phc
20250123@231917.6132 doeh027tli5redjps9o64qgg89 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@231917.6240 doeh027tli5redjps9o64qgg89 Query : use flama_phc
20250123@231917.6243 doeh027tli5redjps9o64qgg89 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250123@233618.9180 o7j7aq23briskm04pq7mb4eo1j Query : use flama_phc
20250123@233618.9280 o7j7aq23briskm04pq7mb4eo1j Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250123@233618.1025 o7j7aq23briskm04pq7mb4eo1j Query : use flama_phc
20250123@233618.1030 o7j7aq23briskm04pq7mb4eo1j Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@071911.3445 u58egvd5n4maa0qk1g79vlgcrm Query : use flama_phc
20250124@071911.3449 u58egvd5n4maa0qk1g79vlgcrm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@071911.3608 u58egvd5n4maa0qk1g79vlgcrm Query : use flama_phc
20250124@071911.3613 u58egvd5n4maa0qk1g79vlgcrm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@073644.2890 gv2im56uhttaegug39reb5b70o Query : use flama_phc
20250124@073644.2940 gv2im56uhttaegug39reb5b70o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@073644.3900 gv2im56uhttaegug39reb5b70o Query : use flama_phc
20250124@073644.3930 gv2im56uhttaegug39reb5b70o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@081910.4695 bh6952dh2nv2a8g4sb8tgpajnt Query : use flama_phc
20250124@081910.4701 bh6952dh2nv2a8g4sb8tgpajnt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@081910.7027 bh6952dh2nv2a8g4sb8tgpajnt Query : use flama_phc
20250124@081910.7033 bh6952dh2nv2a8g4sb8tgpajnt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@083610.3244 os074f2pb3r9g4mpasdvb2b22t Query : use flama_phc
20250124@083610.3249 os074f2pb3r9g4mpasdvb2b22t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@083610.3351 os074f2pb3r9g4mpasdvb2b22t Query : use flama_phc
20250124@083610.3356 os074f2pb3r9g4mpasdvb2b22t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@091910.9416 hd5obr8tqd5n9rd8l9444ui43g Query : use flama_phc
20250124@091910.9421 hd5obr8tqd5n9rd8l9444ui43g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@091910.9519 hd5obr8tqd5n9rd8l9444ui43g Query : use flama_phc
20250124@091910.9523 hd5obr8tqd5n9rd8l9444ui43g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@092130.9395 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@092130.9427 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@092130.9741 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4924';
20250124@092130.9818 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4924';
20250124@092130.9911 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4924';
20250124@092130.9969 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4924';
20250124@092131.4200 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : use flama_phc
20250124@092131.4600 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@092131.1570 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : use flama_phc
20250124@092131.1600 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=227
20250124@092131.2540 1vfre3hk1nrbm3dgfa1vmbs0h3 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500656 
20250124@092131.5650 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : use flama_phc
20250124@092131.5700 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@092131.6380 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : use flama_phc
20250124@092131.6410 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@092131.7040 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@092131.7420 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4924';
20250124@092131.7890 1vfre3hk1nrbm3dgfa1vmbs0h3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4924';
20250124@093610.6481 g33q93qapbgtlhd7tb02j3e2br Query : use flama_phc
20250124@093610.6485 g33q93qapbgtlhd7tb02j3e2br Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@093610.6626 g33q93qapbgtlhd7tb02j3e2br Query : use flama_phc
20250124@093610.6630 g33q93qapbgtlhd7tb02j3e2br Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@101912.9415 bpe6dlsejgged2f4lopqhml7c1 Query : use flama_phc
20250124@101912.9419 bpe6dlsejgged2f4lopqhml7c1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@101912.9511 bpe6dlsejgged2f4lopqhml7c1 Query : use flama_phc
20250124@101912.9515 bpe6dlsejgged2f4lopqhml7c1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@103612.9497 kbggpqnl2uouaabgrfvipv0ne3 Query : use flama_phc
20250124@103612.9514 kbggpqnl2uouaabgrfvipv0ne3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@103613.1740 kbggpqnl2uouaabgrfvipv0ne3 Query : use flama_phc
20250124@103613.1800 kbggpqnl2uouaabgrfvipv0ne3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@111912.5284 j7qcpj9773n8q4v6p5s7cr0an1 Query : use flama_phc
20250124@111912.5290 j7qcpj9773n8q4v6p5s7cr0an1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@111912.5377 j7qcpj9773n8q4v6p5s7cr0an1 Query : use flama_phc
20250124@111912.5381 j7qcpj9773n8q4v6p5s7cr0an1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@113612.2895 eghfcursfubereps08be0q6i8o Query : use flama_phc
20250124@113612.2900 eghfcursfubereps08be0q6i8o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@113612.3014 eghfcursfubereps08be0q6i8o Query : use flama_phc
20250124@113612.3017 eghfcursfubereps08be0q6i8o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@121911.5702 f8a9efddmri6tsumd3tv2lqvaf Query : use flama_phc
20250124@121911.5706 f8a9efddmri6tsumd3tv2lqvaf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@121911.6543 f8a9efddmri6tsumd3tv2lqvaf Query : use flama_phc
20250124@121911.6547 f8a9efddmri6tsumd3tv2lqvaf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@123611.7989 hajcjblqui871nbllkds8po7hr Query : use flama_phc
20250124@123611.7993 hajcjblqui871nbllkds8po7hr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@123611.8108 hajcjblqui871nbllkds8po7hr Query : use flama_phc
20250124@123611.8111 hajcjblqui871nbllkds8po7hr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@131912.5346 en2m67gbl1fqnplld13fql7qj2 Query : use flama_phc
20250124@131912.5350 en2m67gbl1fqnplld13fql7qj2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@131912.5446 en2m67gbl1fqnplld13fql7qj2 Query : use flama_phc
20250124@131912.5449 en2m67gbl1fqnplld13fql7qj2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@133612.4666 pkmidi39hvgimftndnb0edido6 Query : use flama_phc
20250124@133612.4671 pkmidi39hvgimftndnb0edido6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@133612.4794 pkmidi39hvgimftndnb0edido6 Query : use flama_phc
20250124@133612.4797 pkmidi39hvgimftndnb0edido6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@141106.7420 e62p85cctd4ugsm4odrsagfck7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141106.7433 e62p85cctd4ugsm4odrsagfck7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141106.7671 e62p85cctd4ugsm4odrsagfck7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4925';
20250124@141106.7752 e62p85cctd4ugsm4odrsagfck7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4925';
20250124@141106.7824 e62p85cctd4ugsm4odrsagfck7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4925';
20250124@141106.7867 e62p85cctd4ugsm4odrsagfck7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4925';
20250124@141106.7962 e62p85cctd4ugsm4odrsagfck7 Query : use flama_phc
20250124@141106.7966 e62p85cctd4ugsm4odrsagfck7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141106.8038 e62p85cctd4ugsm4odrsagfck7 Query : use flama_phc
20250124@141106.8041 e62p85cctd4ugsm4odrsagfck7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1760
20250124@141106.8175 e62p85cctd4ugsm4odrsagfck7 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500657 
20250124@141106.8524 e62p85cctd4ugsm4odrsagfck7 Query : use flama_phc
20250124@141106.8527 e62p85cctd4ugsm4odrsagfck7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141106.8566 e62p85cctd4ugsm4odrsagfck7 Query : use flama_phc
20250124@141106.8569 e62p85cctd4ugsm4odrsagfck7 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141106.8605 e62p85cctd4ugsm4odrsagfck7 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141106.8628 e62p85cctd4ugsm4odrsagfck7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4925';
20250124@141106.8679 e62p85cctd4ugsm4odrsagfck7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4925';
20250124@141106.9242 ekc83435gbn3a6kcrn21a2qtuh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141106.9255 ekc83435gbn3a6kcrn21a2qtuh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141106.9348 ekc83435gbn3a6kcrn21a2qtuh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4926';
20250124@141106.9452 ekc83435gbn3a6kcrn21a2qtuh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4926';
20250124@141106.9527 ekc83435gbn3a6kcrn21a2qtuh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4926';
20250124@141106.9599 ekc83435gbn3a6kcrn21a2qtuh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4926';
20250124@141106.9666 ekc83435gbn3a6kcrn21a2qtuh Query : use flama_phc
20250124@141106.9670 ekc83435gbn3a6kcrn21a2qtuh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141106.9747 ekc83435gbn3a6kcrn21a2qtuh Query : use flama_phc
20250124@141106.9752 ekc83435gbn3a6kcrn21a2qtuh Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20250124@141107.1150 ekc83435gbn3a6kcrn21a2qtuh 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500658 
20250124@141107.1086 ekc83435gbn3a6kcrn21a2qtuh Query : use flama_phc
20250124@141107.1090 ekc83435gbn3a6kcrn21a2qtuh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141107.1123 ekc83435gbn3a6kcrn21a2qtuh Query : use flama_phc
20250124@141107.1126 ekc83435gbn3a6kcrn21a2qtuh Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141107.1149 ekc83435gbn3a6kcrn21a2qtuh Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141107.1171 ekc83435gbn3a6kcrn21a2qtuh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4926';
20250124@141107.1271 ekc83435gbn3a6kcrn21a2qtuh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4926';
20250124@141107.2066 dk7ug9qic96ua6fhjm9dhtsm7l Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141107.2077 dk7ug9qic96ua6fhjm9dhtsm7l Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141107.2192 dk7ug9qic96ua6fhjm9dhtsm7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4927';
20250124@141107.2289 dk7ug9qic96ua6fhjm9dhtsm7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4927';
20250124@141107.2369 dk7ug9qic96ua6fhjm9dhtsm7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4927';
20250124@141107.2418 dk7ug9qic96ua6fhjm9dhtsm7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4927';
20250124@141107.2619 dk7ug9qic96ua6fhjm9dhtsm7l Query : use flama_phc
20250124@141107.2623 dk7ug9qic96ua6fhjm9dhtsm7l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141107.2691 dk7ug9qic96ua6fhjm9dhtsm7l Query : use flama_phc
20250124@141107.2695 dk7ug9qic96ua6fhjm9dhtsm7l Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250124@141107.2795 dk7ug9qic96ua6fhjm9dhtsm7l 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500660 
20250124@141107.3083 dk7ug9qic96ua6fhjm9dhtsm7l Query : use flama_phc
20250124@141107.3087 dk7ug9qic96ua6fhjm9dhtsm7l Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141107.3120 dk7ug9qic96ua6fhjm9dhtsm7l Query : use flama_phc
20250124@141107.3124 dk7ug9qic96ua6fhjm9dhtsm7l Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141107.3173 dk7ug9qic96ua6fhjm9dhtsm7l Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141107.3201 dk7ug9qic96ua6fhjm9dhtsm7l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4927';
20250124@141107.3250 dk7ug9qic96ua6fhjm9dhtsm7l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4927';
20250124@141107.3782 i2t6e5uk6et7a0hiq2ue2bfa0v Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141107.3794 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141107.3869 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4928';
20250124@141107.3941 i2t6e5uk6et7a0hiq2ue2bfa0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4928';
20250124@141107.4010 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4928';
20250124@141107.4053 i2t6e5uk6et7a0hiq2ue2bfa0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4928';
20250124@141107.4117 i2t6e5uk6et7a0hiq2ue2bfa0v Query : use flama_phc
20250124@141107.4122 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141107.4187 i2t6e5uk6et7a0hiq2ue2bfa0v Query : use flama_phc
20250124@141107.4190 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250124@141107.4281 i2t6e5uk6et7a0hiq2ue2bfa0v 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500662 
20250124@141107.4575 i2t6e5uk6et7a0hiq2ue2bfa0v Query : use flama_phc
20250124@141107.4578 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141107.4614 i2t6e5uk6et7a0hiq2ue2bfa0v Query : use flama_phc
20250124@141107.4618 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141107.4636 i2t6e5uk6et7a0hiq2ue2bfa0v Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141107.4845 i2t6e5uk6et7a0hiq2ue2bfa0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4928';
20250124@141107.4911 i2t6e5uk6et7a0hiq2ue2bfa0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4928';
20250124@141107.5445 3bju4rs1hnbi8moq6s785i9556 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141107.5456 3bju4rs1hnbi8moq6s785i9556 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141107.5532 3bju4rs1hnbi8moq6s785i9556 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4929';
20250124@141107.5600 3bju4rs1hnbi8moq6s785i9556 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4929';
20250124@141107.5670 3bju4rs1hnbi8moq6s785i9556 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4929';
20250124@141107.5713 3bju4rs1hnbi8moq6s785i9556 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4929';
20250124@141107.5777 3bju4rs1hnbi8moq6s785i9556 Query : use flama_phc
20250124@141107.5781 3bju4rs1hnbi8moq6s785i9556 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141107.5847 3bju4rs1hnbi8moq6s785i9556 Query : use flama_phc
20250124@141107.5851 3bju4rs1hnbi8moq6s785i9556 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250124@141107.5900 3bju4rs1hnbi8moq6s785i9556 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500663 
20250124@141107.6237 3bju4rs1hnbi8moq6s785i9556 Query : use flama_phc
20250124@141107.6242 3bju4rs1hnbi8moq6s785i9556 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141107.6277 3bju4rs1hnbi8moq6s785i9556 Query : use flama_phc
20250124@141107.6280 3bju4rs1hnbi8moq6s785i9556 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141107.6297 3bju4rs1hnbi8moq6s785i9556 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141107.6319 3bju4rs1hnbi8moq6s785i9556 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4929';
20250124@141107.6369 3bju4rs1hnbi8moq6s785i9556 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4929';
20250124@141107.7339 ec5alid7upvcpqrrcsmh0p9tkq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141107.7351 ec5alid7upvcpqrrcsmh0p9tkq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141107.7426 ec5alid7upvcpqrrcsmh0p9tkq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4930';
20250124@141107.7502 ec5alid7upvcpqrrcsmh0p9tkq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4930';
20250124@141107.7572 ec5alid7upvcpqrrcsmh0p9tkq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4930';
20250124@141107.7614 ec5alid7upvcpqrrcsmh0p9tkq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4930';
20250124@141107.7675 ec5alid7upvcpqrrcsmh0p9tkq Query : use flama_phc
20250124@141107.7678 ec5alid7upvcpqrrcsmh0p9tkq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141107.7746 ec5alid7upvcpqrrcsmh0p9tkq Query : use flama_phc
20250124@141107.7749 ec5alid7upvcpqrrcsmh0p9tkq Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250124@141107.7798 ec5alid7upvcpqrrcsmh0p9tkq 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500664 
20250124@141107.8098 ec5alid7upvcpqrrcsmh0p9tkq Query : use flama_phc
20250124@141107.8101 ec5alid7upvcpqrrcsmh0p9tkq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141107.8136 ec5alid7upvcpqrrcsmh0p9tkq Query : use flama_phc
20250124@141107.8140 ec5alid7upvcpqrrcsmh0p9tkq Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141107.8157 ec5alid7upvcpqrrcsmh0p9tkq Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141107.8180 ec5alid7upvcpqrrcsmh0p9tkq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4930';
20250124@141107.8229 ec5alid7upvcpqrrcsmh0p9tkq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4930';
20250124@141107.8938 8leqk2vkgrk9ckbf85r40470up Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141107.8952 8leqk2vkgrk9ckbf85r40470up Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141107.9036 8leqk2vkgrk9ckbf85r40470up Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4931';
20250124@141107.9114 8leqk2vkgrk9ckbf85r40470up Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4931';
20250124@141107.9182 8leqk2vkgrk9ckbf85r40470up Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4931';
20250124@141107.9246 8leqk2vkgrk9ckbf85r40470up Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4931';
20250124@141107.9331 8leqk2vkgrk9ckbf85r40470up Query : use flama_phc
20250124@141107.9336 8leqk2vkgrk9ckbf85r40470up Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141107.9411 8leqk2vkgrk9ckbf85r40470up Query : use flama_phc
20250124@141107.9414 8leqk2vkgrk9ckbf85r40470up Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250124@141107.9467 8leqk2vkgrk9ckbf85r40470up 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500665 
20250124@141107.9798 8leqk2vkgrk9ckbf85r40470up Query : use flama_phc
20250124@141107.9802 8leqk2vkgrk9ckbf85r40470up Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141107.9867 8leqk2vkgrk9ckbf85r40470up Query : use flama_phc
20250124@141107.9872 8leqk2vkgrk9ckbf85r40470up Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141107.9895 8leqk2vkgrk9ckbf85r40470up Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141107.9916 8leqk2vkgrk9ckbf85r40470up Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4931';
20250124@141107.9965 8leqk2vkgrk9ckbf85r40470up Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4931';
20250124@141108.4880 a4gtta5rcqfcc6a51uqjo70m2h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141108.5000 a4gtta5rcqfcc6a51uqjo70m2h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141108.5750 a4gtta5rcqfcc6a51uqjo70m2h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4932';
20250124@141108.6490 a4gtta5rcqfcc6a51uqjo70m2h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4932';
20250124@141108.7180 a4gtta5rcqfcc6a51uqjo70m2h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4932';
20250124@141108.7570 a4gtta5rcqfcc6a51uqjo70m2h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4932';
20250124@141108.8240 a4gtta5rcqfcc6a51uqjo70m2h Query : use flama_phc
20250124@141108.8270 a4gtta5rcqfcc6a51uqjo70m2h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141108.8960 a4gtta5rcqfcc6a51uqjo70m2h Query : use flama_phc
20250124@141108.9000 a4gtta5rcqfcc6a51uqjo70m2h Query : select no, estab,szadrsdesc from szadrs where u_coddest=910
20250124@141108.9960 a4gtta5rcqfcc6a51uqjo70m2h 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500667 
20250124@141108.1313 a4gtta5rcqfcc6a51uqjo70m2h Query : use flama_phc
20250124@141108.1317 a4gtta5rcqfcc6a51uqjo70m2h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141108.1351 a4gtta5rcqfcc6a51uqjo70m2h Query : use flama_phc
20250124@141108.1354 a4gtta5rcqfcc6a51uqjo70m2h Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141108.1697 a4gtta5rcqfcc6a51uqjo70m2h Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141108.1721 a4gtta5rcqfcc6a51uqjo70m2h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4932';
20250124@141108.1768 a4gtta5rcqfcc6a51uqjo70m2h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4932';
20250124@141108.2434 knps66sr4obkmi14ranknk69ba Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141108.2445 knps66sr4obkmi14ranknk69ba Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141108.2517 knps66sr4obkmi14ranknk69ba Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4933';
20250124@141108.2583 knps66sr4obkmi14ranknk69ba Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4933';
20250124@141108.2649 knps66sr4obkmi14ranknk69ba Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4933';
20250124@141108.2686 knps66sr4obkmi14ranknk69ba Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4933';
20250124@141108.2751 knps66sr4obkmi14ranknk69ba Query : use flama_phc
20250124@141108.2755 knps66sr4obkmi14ranknk69ba Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141108.2818 knps66sr4obkmi14ranknk69ba Query : use flama_phc
20250124@141108.2821 knps66sr4obkmi14ranknk69ba Query : select no, estab,szadrsdesc from szadrs where u_coddest=7117
20250124@141108.2905 knps66sr4obkmi14ranknk69ba 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500668 
20250124@141108.3200 knps66sr4obkmi14ranknk69ba Query : use flama_phc
20250124@141108.3204 knps66sr4obkmi14ranknk69ba Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141108.3248 knps66sr4obkmi14ranknk69ba Query : use flama_phc
20250124@141108.3252 knps66sr4obkmi14ranknk69ba Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141108.3270 knps66sr4obkmi14ranknk69ba Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141108.3293 knps66sr4obkmi14ranknk69ba Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4933';
20250124@141108.3338 knps66sr4obkmi14ranknk69ba Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4933';
20250124@141108.3917 u5oglp9gf605enorug74u9tubj Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141108.3927 u5oglp9gf605enorug74u9tubj Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141108.4000 u5oglp9gf605enorug74u9tubj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4934';
20250124@141108.4064 u5oglp9gf605enorug74u9tubj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4934';
20250124@141108.4133 u5oglp9gf605enorug74u9tubj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4934';
20250124@141108.4171 u5oglp9gf605enorug74u9tubj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4934';
20250124@141108.4234 u5oglp9gf605enorug74u9tubj Query : use flama_phc
20250124@141108.4237 u5oglp9gf605enorug74u9tubj Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141108.4304 u5oglp9gf605enorug74u9tubj Query : use flama_phc
20250124@141108.4308 u5oglp9gf605enorug74u9tubj Query : select no, estab,szadrsdesc from szadrs where u_coddest=5084
20250124@141108.4398 u5oglp9gf605enorug74u9tubj 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500669 
20250124@141108.4928 u5oglp9gf605enorug74u9tubj Query : use flama_phc
20250124@141108.4931 u5oglp9gf605enorug74u9tubj Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141108.4964 u5oglp9gf605enorug74u9tubj Query : use flama_phc
20250124@141108.4968 u5oglp9gf605enorug74u9tubj Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141108.4990 u5oglp9gf605enorug74u9tubj Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141108.5015 u5oglp9gf605enorug74u9tubj Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4934';
20250124@141108.5060 u5oglp9gf605enorug74u9tubj Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4934';
20250124@141108.5587 7r0aftrjgj97qr3fma1uvs7t4h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141108.5598 7r0aftrjgj97qr3fma1uvs7t4h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141108.5684 7r0aftrjgj97qr3fma1uvs7t4h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4935';
20250124@141108.5753 7r0aftrjgj97qr3fma1uvs7t4h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4935';
20250124@141108.5819 7r0aftrjgj97qr3fma1uvs7t4h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4935';
20250124@141108.5875 7r0aftrjgj97qr3fma1uvs7t4h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4935';
20250124@141108.5935 7r0aftrjgj97qr3fma1uvs7t4h Query : use flama_phc
20250124@141108.5938 7r0aftrjgj97qr3fma1uvs7t4h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141108.6000 7r0aftrjgj97qr3fma1uvs7t4h Query : use flama_phc
20250124@141108.6003 7r0aftrjgj97qr3fma1uvs7t4h Query : select no, estab,szadrsdesc from szadrs where u_coddest=1596
20250124@141108.6091 7r0aftrjgj97qr3fma1uvs7t4h 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500670 
20250124@141108.6554 7r0aftrjgj97qr3fma1uvs7t4h Query : use flama_phc
20250124@141108.6557 7r0aftrjgj97qr3fma1uvs7t4h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141108.6589 7r0aftrjgj97qr3fma1uvs7t4h Query : use flama_phc
20250124@141108.6592 7r0aftrjgj97qr3fma1uvs7t4h Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141108.6626 7r0aftrjgj97qr3fma1uvs7t4h Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141108.6647 7r0aftrjgj97qr3fma1uvs7t4h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4935';
20250124@141108.6690 7r0aftrjgj97qr3fma1uvs7t4h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4935';
20250124@141108.7224 vd2p3el2k7lgbd102gq1ohpmg6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141108.7235 vd2p3el2k7lgbd102gq1ohpmg6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141108.7304 vd2p3el2k7lgbd102gq1ohpmg6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4936';
20250124@141108.7373 vd2p3el2k7lgbd102gq1ohpmg6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4936';
20250124@141108.7444 vd2p3el2k7lgbd102gq1ohpmg6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4936';
20250124@141108.7481 vd2p3el2k7lgbd102gq1ohpmg6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4936';
20250124@141108.7539 vd2p3el2k7lgbd102gq1ohpmg6 Query : use flama_phc
20250124@141108.7542 vd2p3el2k7lgbd102gq1ohpmg6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141108.7714 vd2p3el2k7lgbd102gq1ohpmg6 Query : use flama_phc
20250124@141108.7758 vd2p3el2k7lgbd102gq1ohpmg6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20250124@141108.8089 vd2p3el2k7lgbd102gq1ohpmg6 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500671 
20250124@141108.8386 vd2p3el2k7lgbd102gq1ohpmg6 Query : use flama_phc
20250124@141108.8389 vd2p3el2k7lgbd102gq1ohpmg6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141108.8425 vd2p3el2k7lgbd102gq1ohpmg6 Query : use flama_phc
20250124@141108.8429 vd2p3el2k7lgbd102gq1ohpmg6 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141108.8446 vd2p3el2k7lgbd102gq1ohpmg6 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141108.8469 vd2p3el2k7lgbd102gq1ohpmg6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4936';
20250124@141108.8514 vd2p3el2k7lgbd102gq1ohpmg6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4936';
20250124@141108.9011 pkq0otmfgpgc6ok24mdekds2nv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141108.9023 pkq0otmfgpgc6ok24mdekds2nv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141108.9099 pkq0otmfgpgc6ok24mdekds2nv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4937';
20250124@141108.9525 pkq0otmfgpgc6ok24mdekds2nv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4937';
20250124@141108.9627 pkq0otmfgpgc6ok24mdekds2nv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4937';
20250124@141108.9688 pkq0otmfgpgc6ok24mdekds2nv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4937';
20250124@141109.6660 pkq0otmfgpgc6ok24mdekds2nv Query : use flama_phc
20250124@141109.6700 pkq0otmfgpgc6ok24mdekds2nv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141109.7560 pkq0otmfgpgc6ok24mdekds2nv Query : use flama_phc
20250124@141109.7590 pkq0otmfgpgc6ok24mdekds2nv Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250124@141109.8090 pkq0otmfgpgc6ok24mdekds2nv 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500673 
20250124@141109.1111 pkq0otmfgpgc6ok24mdekds2nv Query : use flama_phc
20250124@141109.1115 pkq0otmfgpgc6ok24mdekds2nv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141109.1151 pkq0otmfgpgc6ok24mdekds2nv Query : use flama_phc
20250124@141109.1155 pkq0otmfgpgc6ok24mdekds2nv Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141109.1176 pkq0otmfgpgc6ok24mdekds2nv Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141109.1218 pkq0otmfgpgc6ok24mdekds2nv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4937';
20250124@141109.1266 pkq0otmfgpgc6ok24mdekds2nv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4937';
20250124@141109.4177 je69188morg79lusah23dv5a84 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141109.4191 je69188morg79lusah23dv5a84 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141109.4269 je69188morg79lusah23dv5a84 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4938';
20250124@141109.4339 je69188morg79lusah23dv5a84 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4938';
20250124@141109.4407 je69188morg79lusah23dv5a84 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4938';
20250124@141109.4447 je69188morg79lusah23dv5a84 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4938';
20250124@141109.4515 je69188morg79lusah23dv5a84 Query : use flama_phc
20250124@141109.4518 je69188morg79lusah23dv5a84 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141109.4586 je69188morg79lusah23dv5a84 Query : use flama_phc
20250124@141109.4590 je69188morg79lusah23dv5a84 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250124@141109.4639 je69188morg79lusah23dv5a84 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500674 
20250124@141109.4934 je69188morg79lusah23dv5a84 Query : use flama_phc
20250124@141109.4937 je69188morg79lusah23dv5a84 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141109.4971 je69188morg79lusah23dv5a84 Query : use flama_phc
20250124@141109.4975 je69188morg79lusah23dv5a84 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141109.4994 je69188morg79lusah23dv5a84 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141109.5018 je69188morg79lusah23dv5a84 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4938';
20250124@141109.5067 je69188morg79lusah23dv5a84 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4938';
20250124@141109.5584 une20ebeuesmm5ktfnsgth097s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141109.5618 une20ebeuesmm5ktfnsgth097s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141109.5707 une20ebeuesmm5ktfnsgth097s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4939';
20250124@141109.5785 une20ebeuesmm5ktfnsgth097s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4939';
20250124@141109.5861 une20ebeuesmm5ktfnsgth097s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4939';
20250124@141109.5905 une20ebeuesmm5ktfnsgth097s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4939';
20250124@141109.6000 une20ebeuesmm5ktfnsgth097s Query : use flama_phc
20250124@141109.6004 une20ebeuesmm5ktfnsgth097s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141109.6120 une20ebeuesmm5ktfnsgth097s Query : use flama_phc
20250124@141109.6172 une20ebeuesmm5ktfnsgth097s Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20250124@141109.6330 une20ebeuesmm5ktfnsgth097s 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500675 
20250124@141109.6713 une20ebeuesmm5ktfnsgth097s Query : use flama_phc
20250124@141109.6755 une20ebeuesmm5ktfnsgth097s Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141109.7016 une20ebeuesmm5ktfnsgth097s Query : use flama_phc
20250124@141109.7020 une20ebeuesmm5ktfnsgth097s Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141109.7038 une20ebeuesmm5ktfnsgth097s Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141109.7061 une20ebeuesmm5ktfnsgth097s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4939';
20250124@141109.7111 une20ebeuesmm5ktfnsgth097s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4939';
20250124@141109.7634 9jkl2ferjnnipeh71864fbelcu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141109.7645 9jkl2ferjnnipeh71864fbelcu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141109.7721 9jkl2ferjnnipeh71864fbelcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4940';
20250124@141109.7803 9jkl2ferjnnipeh71864fbelcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4940';
20250124@141109.7873 9jkl2ferjnnipeh71864fbelcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4940';
20250124@141109.7912 9jkl2ferjnnipeh71864fbelcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4940';
20250124@141109.7974 9jkl2ferjnnipeh71864fbelcu Query : use flama_phc
20250124@141109.7978 9jkl2ferjnnipeh71864fbelcu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141109.8050 9jkl2ferjnnipeh71864fbelcu Query : use flama_phc
20250124@141109.8054 9jkl2ferjnnipeh71864fbelcu Query : select no, estab,szadrsdesc from szadrs where u_coddest=721
20250124@141109.8163 9jkl2ferjnnipeh71864fbelcu 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500676 
20250124@141109.8487 9jkl2ferjnnipeh71864fbelcu Query : use flama_phc
20250124@141109.8491 9jkl2ferjnnipeh71864fbelcu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141109.8830 9jkl2ferjnnipeh71864fbelcu Query : use flama_phc
20250124@141109.8835 9jkl2ferjnnipeh71864fbelcu Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141109.8853 9jkl2ferjnnipeh71864fbelcu Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141109.8877 9jkl2ferjnnipeh71864fbelcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4940';
20250124@141109.8927 9jkl2ferjnnipeh71864fbelcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4940';
20250124@141109.9588 8a3rs69eo9rhbc4ccr321jbves Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141109.9600 8a3rs69eo9rhbc4ccr321jbves Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141109.9680 8a3rs69eo9rhbc4ccr321jbves Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4941';
20250124@141109.9752 8a3rs69eo9rhbc4ccr321jbves Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4941';
20250124@141109.9824 8a3rs69eo9rhbc4ccr321jbves Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4941';
20250124@141109.9867 8a3rs69eo9rhbc4ccr321jbves Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4941';
20250124@141110.2700 8a3rs69eo9rhbc4ccr321jbves Query : use flama_phc
20250124@141110.3120 8a3rs69eo9rhbc4ccr321jbves Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141110.5830 8a3rs69eo9rhbc4ccr321jbves Query : use flama_phc
20250124@141110.6020 8a3rs69eo9rhbc4ccr321jbves Query : select no, estab,szadrsdesc from szadrs where u_coddest=410
20250124@141110.7270 8a3rs69eo9rhbc4ccr321jbves 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500678 
20250124@141110.1107 8a3rs69eo9rhbc4ccr321jbves Query : use flama_phc
20250124@141110.1111 8a3rs69eo9rhbc4ccr321jbves Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141110.1147 8a3rs69eo9rhbc4ccr321jbves Query : use flama_phc
20250124@141110.1151 8a3rs69eo9rhbc4ccr321jbves Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141110.1181 8a3rs69eo9rhbc4ccr321jbves Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141110.1204 8a3rs69eo9rhbc4ccr321jbves Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4941';
20250124@141110.1250 8a3rs69eo9rhbc4ccr321jbves Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4941';
20250124@141110.1826 ain09m5tkvpi5gu4iqjrkp8m67 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141110.1839 ain09m5tkvpi5gu4iqjrkp8m67 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141110.1958 ain09m5tkvpi5gu4iqjrkp8m67 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4942';
20250124@141110.2222 ain09m5tkvpi5gu4iqjrkp8m67 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4942';
20250124@141110.2298 ain09m5tkvpi5gu4iqjrkp8m67 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4942';
20250124@141110.2342 ain09m5tkvpi5gu4iqjrkp8m67 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4942';
20250124@141110.2418 ain09m5tkvpi5gu4iqjrkp8m67 Query : use flama_phc
20250124@141110.2422 ain09m5tkvpi5gu4iqjrkp8m67 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141110.2487 ain09m5tkvpi5gu4iqjrkp8m67 Query : use flama_phc
20250124@141110.2490 ain09m5tkvpi5gu4iqjrkp8m67 Query : select no, estab,szadrsdesc from szadrs where u_coddest=928
20250124@141110.2584 ain09m5tkvpi5gu4iqjrkp8m67 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500679 
20250124@141110.3024 ain09m5tkvpi5gu4iqjrkp8m67 Query : use flama_phc
20250124@141110.3029 ain09m5tkvpi5gu4iqjrkp8m67 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141110.3066 ain09m5tkvpi5gu4iqjrkp8m67 Query : use flama_phc
20250124@141110.3070 ain09m5tkvpi5gu4iqjrkp8m67 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141110.3162 ain09m5tkvpi5gu4iqjrkp8m67 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141110.3295 ain09m5tkvpi5gu4iqjrkp8m67 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4942';
20250124@141110.3343 ain09m5tkvpi5gu4iqjrkp8m67 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4942';
20250124@141110.5110 56dce11141sb0964t000rmv0n9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141110.5122 56dce11141sb0964t000rmv0n9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141110.5200 56dce11141sb0964t000rmv0n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4943';
20250124@141110.5269 56dce11141sb0964t000rmv0n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4943';
20250124@141110.5340 56dce11141sb0964t000rmv0n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4943';
20250124@141110.5378 56dce11141sb0964t000rmv0n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4943';
20250124@141110.5439 56dce11141sb0964t000rmv0n9 Query : use flama_phc
20250124@141110.5443 56dce11141sb0964t000rmv0n9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141110.5512 56dce11141sb0964t000rmv0n9 Query : use flama_phc
20250124@141110.5515 56dce11141sb0964t000rmv0n9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3155
20250124@141110.5614 56dce11141sb0964t000rmv0n9 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500680 
20250124@141110.6100 56dce11141sb0964t000rmv0n9 Query : use flama_phc
20250124@141110.6104 56dce11141sb0964t000rmv0n9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141110.6148 56dce11141sb0964t000rmv0n9 Query : use flama_phc
20250124@141110.6151 56dce11141sb0964t000rmv0n9 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141110.6199 56dce11141sb0964t000rmv0n9 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141110.6229 56dce11141sb0964t000rmv0n9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4943';
20250124@141110.6279 56dce11141sb0964t000rmv0n9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4943';
20250124@141110.6879 41r3uutepue44p0r6n06ik1onb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141110.6893 41r3uutepue44p0r6n06ik1onb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141110.6969 41r3uutepue44p0r6n06ik1onb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4944';
20250124@141110.7046 41r3uutepue44p0r6n06ik1onb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4944';
20250124@141110.7133 41r3uutepue44p0r6n06ik1onb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4944';
20250124@141110.7173 41r3uutepue44p0r6n06ik1onb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4944';
20250124@141110.7237 41r3uutepue44p0r6n06ik1onb Query : use flama_phc
20250124@141110.7241 41r3uutepue44p0r6n06ik1onb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141110.7317 41r3uutepue44p0r6n06ik1onb Query : use flama_phc
20250124@141110.7321 41r3uutepue44p0r6n06ik1onb Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250124@141110.7371 41r3uutepue44p0r6n06ik1onb 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500681 
20250124@141110.7677 41r3uutepue44p0r6n06ik1onb Query : use flama_phc
20250124@141110.7681 41r3uutepue44p0r6n06ik1onb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141110.7716 41r3uutepue44p0r6n06ik1onb Query : use flama_phc
20250124@141110.7720 41r3uutepue44p0r6n06ik1onb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141110.7739 41r3uutepue44p0r6n06ik1onb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141110.7764 41r3uutepue44p0r6n06ik1onb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4944';
20250124@141110.7878 41r3uutepue44p0r6n06ik1onb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4944';
20250124@141110.8449 17k5abkb7nt46o684mppojfj1r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@141110.8463 17k5abkb7nt46o684mppojfj1r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@141110.8552 17k5abkb7nt46o684mppojfj1r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4945';
20250124@141110.8626 17k5abkb7nt46o684mppojfj1r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4945';
20250124@141110.8710 17k5abkb7nt46o684mppojfj1r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4945';
20250124@141110.8757 17k5abkb7nt46o684mppojfj1r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4945';
20250124@141110.8825 17k5abkb7nt46o684mppojfj1r Query : use flama_phc
20250124@141110.8829 17k5abkb7nt46o684mppojfj1r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@141110.8903 17k5abkb7nt46o684mppojfj1r Query : use flama_phc
20250124@141110.8907 17k5abkb7nt46o684mppojfj1r Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250124@141110.8972 17k5abkb7nt46o684mppojfj1r 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500683 
20250124@141110.9505 17k5abkb7nt46o684mppojfj1r Query : use flama_phc
20250124@141110.9510 17k5abkb7nt46o684mppojfj1r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250124@141110.9543 17k5abkb7nt46o684mppojfj1r Query : use flama_phc
20250124@141110.9547 17k5abkb7nt46o684mppojfj1r Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250124@141110.9565 17k5abkb7nt46o684mppojfj1r Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250124@141110.9589 17k5abkb7nt46o684mppojfj1r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4945';
20250124@141110.9638 17k5abkb7nt46o684mppojfj1r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4945';
20250124@141912.5019 06tojmr431avl03k47ktrih8np Query : use flama_phc
20250124@141912.5024 06tojmr431avl03k47ktrih8np Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@141912.5110 06tojmr431avl03k47ktrih8np Query : use flama_phc
20250124@141912.5113 06tojmr431avl03k47ktrih8np Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@143612.3546 unuv2n9s875jbiahfjvrv62hdu Query : use flama_phc
20250124@143612.3551 unuv2n9s875jbiahfjvrv62hdu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@143612.3635 unuv2n9s875jbiahfjvrv62hdu Query : use flama_phc
20250124@143612.3638 unuv2n9s875jbiahfjvrv62hdu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@151912.8068 bv2063743d9cb8aak18lshgekn Query : use flama_phc
20250124@151912.8072 bv2063743d9cb8aak18lshgekn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@151912.8156 bv2063743d9cb8aak18lshgekn Query : use flama_phc
20250124@151912.8159 bv2063743d9cb8aak18lshgekn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@153613.9750 06ca7u7lphv6kjapias7s59dii Query : use flama_phc
20250124@153613.9850 06ca7u7lphv6kjapias7s59dii Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@153613.1169 06ca7u7lphv6kjapias7s59dii Query : use flama_phc
20250124@153613.1173 06ca7u7lphv6kjapias7s59dii Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@154551.1913 th8qoe3lv2jblgdpqiehmhuq57 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250124@154551.1942 th8qoe3lv2jblgdpqiehmhuq57 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250124@154551.2130 th8qoe3lv2jblgdpqiehmhuq57 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4946';
20250124@154551.2197 th8qoe3lv2jblgdpqiehmhuq57 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4946';
20250124@154551.2268 th8qoe3lv2jblgdpqiehmhuq57 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4946';
20250124@154551.2309 th8qoe3lv2jblgdpqiehmhuq57 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4946';
20250124@154551.2381 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154551.2385 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250124@154551.2519 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.646.00.01'
20250124@154551.2642 th8qoe3lv2jblgdpqiehmhuq57 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 = 2400836 and bi.ref ='324.646.00.01' and bi.lordem =20000
20250124@154551.3012 th8qoe3lv2jblgdpqiehmhuq57 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 = 'cps24070956654,741000002 ' 
20250124@154551.4730 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154551.4734 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 1 valor from ts where ts.ndos = 61
20250124@154551.4825 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154551.4828 th8qoe3lv2jblgdpqiehmhuq57 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')
20250124@154551.4913 th8qoe3lv2jblgdpqiehmhuq57 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
20250124@154551.5070 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154551.5073 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 ~inactivo valor from fl where no = '202090' and estab = 00 order by inactivo desc
20250124@154551.5207 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154551.5210 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from ts where ndos = 61
20250124@154551.5311 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154551.5602 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250124@154551.5676 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154551.5692 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250124@154551.5701 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154551.5716 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250124@154551.5726 th8qoe3lv2jblgdpqiehmhuq57 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
20250124@154551.5847 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250124@154551.5939 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250124@154551.5984 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154551.5992 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202090' and estab=00
20250124@154551.6078 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154551.6107 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250124@154551.6148 th8qoe3lv2jblgdpqiehmhuq57 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6793b536076793b5af92',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250124@154551.6221 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154551.6239 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250124@154551.6255 th8qoe3lv2jblgdpqiehmhuq57 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6793b536076793b5af92','--','bo',7.8523537803138373751 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250124@154551.6455 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154551.6475 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250124@154551.6488 th8qoe3lv2jblgdpqiehmhuq57 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 ('aut6793b536076793b5af92','guia r. fornecedor','2025-01-24',61,2500295,?,?,?,?,?,?,?,?,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')
20250124@154555.1812 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154555.1816 th8qoe3lv2jblgdpqiehmhuq57 Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20250124@154555.1932 th8qoe3lv2jblgdpqiehmhuq57 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.646.00.01'
20250124@154555.2070 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154555.2088 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250124@154555.2110 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154555.2127 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250124@154555.2144 th8qoe3lv2jblgdpqiehmhuq57 Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400836200a'
20250124@154555.2203 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154555.2225 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250124@154555.2242 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154555.2258 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250124@154555.2272 th8qoe3lv2jblgdpqiehmhuq57 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6793b026636793b5b336',?,?,'20250124',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250124@154555.2880 th8qoe3lv2jblgdpqiehmhuq57 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250124@154555.3100 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154555.3119 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250124@154555.3135 th8qoe3lv2jblgdpqiehmhuq57 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6793b721926793b5b34b','aut6793b536076793b5af92',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 = 'aut6793b536076793b5af92'
20250124@154555.3328 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250124@154555.3349 th8qoe3lv2jblgdpqiehmhuq57 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250124@154555.3366 th8qoe3lv2jblgdpqiehmhuq57 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 'aut6793b721926793b5b34b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1428, 1428*.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 ,14.02,14.02*200.48,14.02,14.02*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,14.02*1428,14.02*1428*200.48 ,18.369000,18.369000*200.48 ,18.369000,18.369000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,14.02,14.02*200.48,14.02*1428,14.02*1428*200.48,'cps24070956654,741000002 ',110.09,110.09*1428,110.09,110.09*1428,?,?,?,4 from bo bo where bo.bostamp = 'aut6793b536076793b5af92'
20250124@154604.4524 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154604.4529 th8qoe3lv2jblgdpqiehmhuq57 Query : declare @bostamp varchar(25) = 'aut6793b536076793b5af92' ,@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 
20250124@154618.5327 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154618.5330 th8qoe3lv2jblgdpqiehmhuq57 Query : select 1 valor from bo where bo.bostamp = 'aut6793b536076793b5af92'
20250124@154618.6166 th8qoe3lv2jblgdpqiehmhuq57 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) = 'aut6793b536076793b5af92' 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 
20250124@154621.8057 th8qoe3lv2jblgdpqiehmhuq57 Query : use flama_phc
20250124@154621.8062 th8qoe3lv2jblgdpqiehmhuq57 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@154621.8159 th8qoe3lv2jblgdpqiehmhuq57 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4946';
20250124@154621.8210 th8qoe3lv2jblgdpqiehmhuq57 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4946';
20250124@161915.3208 3dcb0cmd4v4g5vb4upefsvnivc Query : use flama_phc
20250124@161915.3213 3dcb0cmd4v4g5vb4upefsvnivc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@161915.3378 3dcb0cmd4v4g5vb4upefsvnivc Query : use flama_phc
20250124@161915.3384 3dcb0cmd4v4g5vb4upefsvnivc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@163615.2334 hv8jrrirt9d8o201hjv0i9talc Query : use flama_phc
20250124@163615.2379 hv8jrrirt9d8o201hjv0i9talc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@163615.3280 hv8jrrirt9d8o201hjv0i9talc Query : use flama_phc
20250124@163615.3322 hv8jrrirt9d8o201hjv0i9talc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@171912.9030 1n52g45i8jhj0b1848i8b39n2e Query : use flama_phc
20250124@171912.9080 1n52g45i8jhj0b1848i8b39n2e Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@171912.1009 1n52g45i8jhj0b1848i8b39n2e Query : use flama_phc
20250124@171912.1013 1n52g45i8jhj0b1848i8b39n2e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@173611.8592 rcfvojnqs02uqb17dmufo992k2 Query : use flama_phc
20250124@173611.8596 rcfvojnqs02uqb17dmufo992k2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@173611.8684 rcfvojnqs02uqb17dmufo992k2 Query : use flama_phc
20250124@173611.8687 rcfvojnqs02uqb17dmufo992k2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@181911.3925 qtc0hv6pub7aeou5nq4rr0s5h5 Query : use flama_phc
20250124@181911.3930 qtc0hv6pub7aeou5nq4rr0s5h5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@181911.4177 qtc0hv6pub7aeou5nq4rr0s5h5 Query : use flama_phc
20250124@181911.4182 qtc0hv6pub7aeou5nq4rr0s5h5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@183611.6037 9g81hl95lk5idikjg9gankkaeg Query : use flama_phc
20250124@183611.6042 9g81hl95lk5idikjg9gankkaeg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@183611.6160 9g81hl95lk5idikjg9gankkaeg Query : use flama_phc
20250124@183611.6173 9g81hl95lk5idikjg9gankkaeg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@191913.5248 35ghk0bcn7637haobq9n4qbp1u Query : use flama_phc
20250124@191913.5253 35ghk0bcn7637haobq9n4qbp1u Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@191913.5361 35ghk0bcn7637haobq9n4qbp1u Query : use flama_phc
20250124@191913.5365 35ghk0bcn7637haobq9n4qbp1u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@193612.9566 voqnnahp1tpqc3e05pm6n1pc0l Query : use flama_phc
20250124@193612.9571 voqnnahp1tpqc3e05pm6n1pc0l Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@193612.9764 voqnnahp1tpqc3e05pm6n1pc0l Query : use flama_phc
20250124@193612.9769 voqnnahp1tpqc3e05pm6n1pc0l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@201913.1106 2un5v36oeu1pviateoao0gsa85 Query : use flama_phc
20250124@201913.1111 2un5v36oeu1pviateoao0gsa85 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@201913.1195 2un5v36oeu1pviateoao0gsa85 Query : use flama_phc
20250124@201913.1198 2un5v36oeu1pviateoao0gsa85 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@203613.3460 vu2iftt8puqns6oap2b4o0kcbh Query : use flama_phc
20250124@203613.3465 vu2iftt8puqns6oap2b4o0kcbh Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@203613.3706 vu2iftt8puqns6oap2b4o0kcbh Query : use flama_phc
20250124@203613.3710 vu2iftt8puqns6oap2b4o0kcbh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@211913.3680 galtsgtap7o0j0d2k0o78belu7 Query : use flama_phc
20250124@211913.3730 galtsgtap7o0j0d2k0o78belu7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@211913.4690 galtsgtap7o0j0d2k0o78belu7 Query : use flama_phc
20250124@211913.4730 galtsgtap7o0j0d2k0o78belu7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@213613.5291 fjmq8c95cjbm1mjhohmk0srqpo Query : use flama_phc
20250124@213613.5297 fjmq8c95cjbm1mjhohmk0srqpo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@213613.5391 fjmq8c95cjbm1mjhohmk0srqpo Query : use flama_phc
20250124@213613.5394 fjmq8c95cjbm1mjhohmk0srqpo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@221915.9391 4knp0tmvd8l7d1hgtpgn4jmo18 Query : use flama_phc
20250124@221915.9663 4knp0tmvd8l7d1hgtpgn4jmo18 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@221915.9908 4knp0tmvd8l7d1hgtpgn4jmo18 Query : use flama_phc
20250124@221915.9913 4knp0tmvd8l7d1hgtpgn4jmo18 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@223615.8177 8llqr0kthc09034kjpaqrc2ojr Query : use flama_phc
20250124@223615.8183 8llqr0kthc09034kjpaqrc2ojr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@223615.8337 8llqr0kthc09034kjpaqrc2ojr Query : use flama_phc
20250124@223615.8342 8llqr0kthc09034kjpaqrc2ojr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@231912.8039 1tla8h34epaitpauet377n918t Query : use flama_phc
20250124@231912.8044 1tla8h34epaitpauet377n918t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@231912.8222 1tla8h34epaitpauet377n918t Query : use flama_phc
20250124@231912.8226 1tla8h34epaitpauet377n918t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250124@233612.7363 o6jdsndgpcrm2pqmnvbr436eh3 Query : use flama_phc
20250124@233612.7405 o6jdsndgpcrm2pqmnvbr436eh3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250124@233612.8384 o6jdsndgpcrm2pqmnvbr436eh3 Query : use flama_phc
20250124@233612.8390 o6jdsndgpcrm2pqmnvbr436eh3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@071910.9320 vu4c3hu0jjrj01t2mk98k11qge Query : use flama_phc
20250125@071910.9324 vu4c3hu0jjrj01t2mk98k11qge Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@071910.9459 vu4c3hu0jjrj01t2mk98k11qge Query : use flama_phc
20250125@071910.9462 vu4c3hu0jjrj01t2mk98k11qge Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@073630.7681 2ufr9qv6n72gfnkupkqq5h50pe Query : use flama_phc
20250125@073630.7686 2ufr9qv6n72gfnkupkqq5h50pe Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@073630.7790 2ufr9qv6n72gfnkupkqq5h50pe Query : use flama_phc
20250125@073630.7795 2ufr9qv6n72gfnkupkqq5h50pe Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@081910.8215 5jpog9g91421gcha6og3g8udcu Query : use flama_phc
20250125@081910.8219 5jpog9g91421gcha6og3g8udcu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@081910.8314 5jpog9g91421gcha6og3g8udcu Query : use flama_phc
20250125@081910.8317 5jpog9g91421gcha6og3g8udcu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@083610.7356 dvqkdteon78ji3062abjdur0nk Query : use flama_phc
20250125@083610.7362 dvqkdteon78ji3062abjdur0nk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@083610.7459 dvqkdteon78ji3062abjdur0nk Query : use flama_phc
20250125@083610.7463 dvqkdteon78ji3062abjdur0nk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@091911.1925 ar0pg41e8rqpcd79rhgefai2ko Query : use flama_phc
20250125@091911.1933 ar0pg41e8rqpcd79rhgefai2ko Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@091911.2037 ar0pg41e8rqpcd79rhgefai2ko Query : use flama_phc
20250125@091911.2040 ar0pg41e8rqpcd79rhgefai2ko Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@093611.2773 kf0asotn2b0eutt57m605l8994 Query : use flama_phc
20250125@093611.2778 kf0asotn2b0eutt57m605l8994 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@093611.2869 kf0asotn2b0eutt57m605l8994 Query : use flama_phc
20250125@093611.2874 kf0asotn2b0eutt57m605l8994 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@101911.1504 d19of98q00j32ko7k5h13cjh3f Query : use flama_phc
20250125@101911.1508 d19of98q00j32ko7k5h13cjh3f Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@101911.1620 d19of98q00j32ko7k5h13cjh3f Query : use flama_phc
20250125@101911.1625 d19of98q00j32ko7k5h13cjh3f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@103610.8859 o2s9ferclg8q6i5d6bueese5mc Query : use flama_phc
20250125@103610.8864 o2s9ferclg8q6i5d6bueese5mc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@103610.8961 o2s9ferclg8q6i5d6bueese5mc Query : use flama_phc
20250125@103610.8965 o2s9ferclg8q6i5d6bueese5mc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@111911.1071 lvmhk8ditem5bv0j3gpjhu27bn Query : use flama_phc
20250125@111911.1075 lvmhk8ditem5bv0j3gpjhu27bn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@111911.1173 lvmhk8ditem5bv0j3gpjhu27bn Query : use flama_phc
20250125@111911.1177 lvmhk8ditem5bv0j3gpjhu27bn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@113611.3450 m3tcurhbdjrkl959b51pfbc913 Query : use flama_phc
20250125@113611.3455 m3tcurhbdjrkl959b51pfbc913 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@113611.3578 m3tcurhbdjrkl959b51pfbc913 Query : use flama_phc
20250125@113611.3582 m3tcurhbdjrkl959b51pfbc913 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@121911.2413 agbht18hu2bqvbi198e0455k2g Query : use flama_phc
20250125@121911.2419 agbht18hu2bqvbi198e0455k2g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@121911.2516 agbht18hu2bqvbi198e0455k2g Query : use flama_phc
20250125@121911.2520 agbht18hu2bqvbi198e0455k2g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@123611.4330 2427ogfpb8pakvse5sj3jqqdpe Query : use flama_phc
20250125@123611.4380 2427ogfpb8pakvse5sj3jqqdpe Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@123611.5350 2427ogfpb8pakvse5sj3jqqdpe Query : use flama_phc
20250125@123611.5390 2427ogfpb8pakvse5sj3jqqdpe Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@131911.3202 ot0gh2i8nplmp5r1pad038ibts Query : use flama_phc
20250125@131911.3206 ot0gh2i8nplmp5r1pad038ibts Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@131911.3303 ot0gh2i8nplmp5r1pad038ibts Query : use flama_phc
20250125@131911.3307 ot0gh2i8nplmp5r1pad038ibts Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@133611.4518 kjvq4j2nfvavgcsel5r25d60dr Query : use flama_phc
20250125@133611.4523 kjvq4j2nfvavgcsel5r25d60dr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@133611.4616 kjvq4j2nfvavgcsel5r25d60dr Query : use flama_phc
20250125@133611.4620 kjvq4j2nfvavgcsel5r25d60dr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@141910.8796 sutfnt1g81unfo9s0tnhuef5dp Query : use flama_phc
20250125@141910.8800 sutfnt1g81unfo9s0tnhuef5dp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@141910.8908 sutfnt1g81unfo9s0tnhuef5dp Query : use flama_phc
20250125@141910.8913 sutfnt1g81unfo9s0tnhuef5dp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@143611.3250 qkml4lbevu9nc900otmrv7ufdc Query : use flama_phc
20250125@143611.3257 qkml4lbevu9nc900otmrv7ufdc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@143611.3351 qkml4lbevu9nc900otmrv7ufdc Query : use flama_phc
20250125@143611.3354 qkml4lbevu9nc900otmrv7ufdc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@151911.6665 adrat3cavbbbg594ijidup5udm Query : use flama_phc
20250125@151911.6670 adrat3cavbbbg594ijidup5udm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@151911.6777 adrat3cavbbbg594ijidup5udm Query : use flama_phc
20250125@151911.6780 adrat3cavbbbg594ijidup5udm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@153611.4278 83ub3q0e67qgv9bg6c50k0nr45 Query : use flama_phc
20250125@153611.4283 83ub3q0e67qgv9bg6c50k0nr45 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@153611.4391 83ub3q0e67qgv9bg6c50k0nr45 Query : use flama_phc
20250125@153611.4396 83ub3q0e67qgv9bg6c50k0nr45 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@161911.1653 4npd246bo5pn331samcd4o863i Query : use flama_phc
20250125@161911.1658 4npd246bo5pn331samcd4o863i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@161911.1755 4npd246bo5pn331samcd4o863i Query : use flama_phc
20250125@161911.1758 4npd246bo5pn331samcd4o863i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@163611.3628 fv6f8blku317pkjq7dn2qbmhst Query : use flama_phc
20250125@163611.3648 fv6f8blku317pkjq7dn2qbmhst Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@163611.3747 fv6f8blku317pkjq7dn2qbmhst Query : use flama_phc
20250125@163611.3751 fv6f8blku317pkjq7dn2qbmhst Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@171910.7425 3k26gdvf0n15lqu78b40u84nt4 Query : use flama_phc
20250125@171910.7430 3k26gdvf0n15lqu78b40u84nt4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@171910.7537 3k26gdvf0n15lqu78b40u84nt4 Query : use flama_phc
20250125@171910.7541 3k26gdvf0n15lqu78b40u84nt4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@173610.9610 50vip55st22bi0q8v0f872gvpq Query : use flama_phc
20250125@173610.9614 50vip55st22bi0q8v0f872gvpq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@173610.9696 50vip55st22bi0q8v0f872gvpq Query : use flama_phc
20250125@173610.9699 50vip55st22bi0q8v0f872gvpq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@181914.6610 9fqnb8bipf2gt32a6ocbalaabe Query : use flama_phc
20250125@181914.6650 9fqnb8bipf2gt32a6ocbalaabe Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@181914.7640 9fqnb8bipf2gt32a6ocbalaabe Query : use flama_phc
20250125@181914.7680 9fqnb8bipf2gt32a6ocbalaabe Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@183613.7756 oarjhvkl0m6a55g66ba7b8jbo0 Query : use flama_phc
20250125@183613.7761 oarjhvkl0m6a55g66ba7b8jbo0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@183613.7853 oarjhvkl0m6a55g66ba7b8jbo0 Query : use flama_phc
20250125@183613.7857 oarjhvkl0m6a55g66ba7b8jbo0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@191911.2275 mdspso9bv1hvb1utvagjm97fj2 Query : use flama_phc
20250125@191911.2279 mdspso9bv1hvb1utvagjm97fj2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@191911.2382 mdspso9bv1hvb1utvagjm97fj2 Query : use flama_phc
20250125@191911.2385 mdspso9bv1hvb1utvagjm97fj2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@193611.1644 1hfm2s95hbdsffq1jde5jq5nef Query : use flama_phc
20250125@193611.1650 1hfm2s95hbdsffq1jde5jq5nef Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@193611.1758 1hfm2s95hbdsffq1jde5jq5nef Query : use flama_phc
20250125@193611.1762 1hfm2s95hbdsffq1jde5jq5nef Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@201911.3979 s15cteo10jjvf3scv99hsp096a Query : use flama_phc
20250125@201911.3985 s15cteo10jjvf3scv99hsp096a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@201911.5480 s15cteo10jjvf3scv99hsp096a Query : use flama_phc
20250125@201911.5563 s15cteo10jjvf3scv99hsp096a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@203611.8557 85hpnklbn1n90evtvmht866f3p Query : use flama_phc
20250125@203611.8563 85hpnklbn1n90evtvmht866f3p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@203611.8762 85hpnklbn1n90evtvmht866f3p Query : use flama_phc
20250125@203611.8767 85hpnklbn1n90evtvmht866f3p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@211911.2366 lkrs08fge5nqjb5vd4ed9njh13 Query : use flama_phc
20250125@211911.2371 lkrs08fge5nqjb5vd4ed9njh13 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@211911.2558 lkrs08fge5nqjb5vd4ed9njh13 Query : use flama_phc
20250125@211911.2562 lkrs08fge5nqjb5vd4ed9njh13 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@213610.8575 lqitmbkepvicr82n44bojeh1u8 Query : use flama_phc
20250125@213610.8580 lqitmbkepvicr82n44bojeh1u8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@213610.8733 lqitmbkepvicr82n44bojeh1u8 Query : use flama_phc
20250125@213610.8738 lqitmbkepvicr82n44bojeh1u8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@221911.1774 cgjvq17k8nfeu74tbo8qfs47ha Query : use flama_phc
20250125@221911.1779 cgjvq17k8nfeu74tbo8qfs47ha Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@221911.2951 cgjvq17k8nfeu74tbo8qfs47ha Query : use flama_phc
20250125@221911.2955 cgjvq17k8nfeu74tbo8qfs47ha Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@223610.9416 419fmlghvjjaph5t8khmdoq4bo Query : use flama_phc
20250125@223610.9421 419fmlghvjjaph5t8khmdoq4bo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@223610.9527 419fmlghvjjaph5t8khmdoq4bo Query : use flama_phc
20250125@223610.9531 419fmlghvjjaph5t8khmdoq4bo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@231911.9045 t2lt3ie0ikh92tcnfujeab28g1 Query : use flama_phc
20250125@231911.9049 t2lt3ie0ikh92tcnfujeab28g1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@231911.9148 t2lt3ie0ikh92tcnfujeab28g1 Query : use flama_phc
20250125@231911.9152 t2lt3ie0ikh92tcnfujeab28g1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250125@233611.8873 gdni0349tmbeluvba1197b3dp5 Query : use flama_phc
20250125@233611.8916 gdni0349tmbeluvba1197b3dp5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250125@233611.9694 gdni0349tmbeluvba1197b3dp5 Query : use flama_phc
20250125@233611.9736 gdni0349tmbeluvba1197b3dp5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@071912.5030 v0bj1rtea8ki4mj5sbcc7vetli Query : use flama_phc
20250126@071912.5080 v0bj1rtea8ki4mj5sbcc7vetli Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@071912.6390 v0bj1rtea8ki4mj5sbcc7vetli Query : use flama_phc
20250126@071912.6430 v0bj1rtea8ki4mj5sbcc7vetli Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@073611.7671 s9a6ch84949lq7coq42i28uvvr Query : use flama_phc
20250126@073611.7771 s9a6ch84949lq7coq42i28uvvr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@073611.9696 s9a6ch84949lq7coq42i28uvvr Query : use flama_phc
20250126@073611.9738 s9a6ch84949lq7coq42i28uvvr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@081912.1537 bsdq69rg232m18nmju9oukjf5b Query : use flama_phc
20250126@081912.1542 bsdq69rg232m18nmju9oukjf5b Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@081912.1635 bsdq69rg232m18nmju9oukjf5b Query : use flama_phc
20250126@081912.1639 bsdq69rg232m18nmju9oukjf5b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@083612.6593 uebrkfutoncpc93k38jtoaqoui Query : use flama_phc
20250126@083612.6638 uebrkfutoncpc93k38jtoaqoui Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@083612.7422 uebrkfutoncpc93k38jtoaqoui Query : use flama_phc
20250126@083612.7464 uebrkfutoncpc93k38jtoaqoui Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@091912.3397 vc5lcvah311ql7jridufvd6ktu Query : use flama_phc
20250126@091912.3401 vc5lcvah311ql7jridufvd6ktu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@091912.3485 vc5lcvah311ql7jridufvd6ktu Query : use flama_phc
20250126@091912.3489 vc5lcvah311ql7jridufvd6ktu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@093612.1810 khb5o6urmrceilpbc1io487mke Query : use flama_phc
20250126@093612.1816 khb5o6urmrceilpbc1io487mke Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@093612.1920 khb5o6urmrceilpbc1io487mke Query : use flama_phc
20250126@093612.1924 khb5o6urmrceilpbc1io487mke Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@101912.4953 q11igv25j9ostis2fdnr0onmg5 Query : use flama_phc
20250126@101912.4958 q11igv25j9ostis2fdnr0onmg5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@101912.5053 q11igv25j9ostis2fdnr0onmg5 Query : use flama_phc
20250126@101912.5057 q11igv25j9ostis2fdnr0onmg5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@103612.4389 2hv8tbn0r7dp8ajpg6mr1jp8uf Query : use flama_phc
20250126@103612.4394 2hv8tbn0r7dp8ajpg6mr1jp8uf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@103612.4491 2hv8tbn0r7dp8ajpg6mr1jp8uf Query : use flama_phc
20250126@103612.4494 2hv8tbn0r7dp8ajpg6mr1jp8uf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@111911.2307 5vb8rmsdge6j52mi1hpr4q6qsd Query : use flama_phc
20250126@111911.2311 5vb8rmsdge6j52mi1hpr4q6qsd Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@111911.2438 5vb8rmsdge6j52mi1hpr4q6qsd Query : use flama_phc
20250126@111911.2442 5vb8rmsdge6j52mi1hpr4q6qsd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@113611.3271 iru7r49mtr5vrcueu83gjnt84d Query : use flama_phc
20250126@113611.3276 iru7r49mtr5vrcueu83gjnt84d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@113611.3371 iru7r49mtr5vrcueu83gjnt84d Query : use flama_phc
20250126@113611.3375 iru7r49mtr5vrcueu83gjnt84d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@121911.8178 e8jg9kmn64fcav9516uf4jlidb Query : use flama_phc
20250126@121911.8182 e8jg9kmn64fcav9516uf4jlidb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@121911.8273 e8jg9kmn64fcav9516uf4jlidb Query : use flama_phc
20250126@121911.8277 e8jg9kmn64fcav9516uf4jlidb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@123611.7555 c5gtfh9o129cbt0jteqm6564o0 Query : use flama_phc
20250126@123611.7560 c5gtfh9o129cbt0jteqm6564o0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@123611.7659 c5gtfh9o129cbt0jteqm6564o0 Query : use flama_phc
20250126@123611.7663 c5gtfh9o129cbt0jteqm6564o0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@131946.6199 v678p3cpa6evrtrucb2qps6ras Query : use flama_phc
20250126@131946.6204 v678p3cpa6evrtrucb2qps6ras Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@131946.6298 v678p3cpa6evrtrucb2qps6ras Query : use flama_phc
20250126@131946.6301 v678p3cpa6evrtrucb2qps6ras Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@133646.4224 192n12peocsphappj21238d9og Query : use flama_phc
20250126@133646.4229 192n12peocsphappj21238d9og Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@133646.4325 192n12peocsphappj21238d9og Query : use flama_phc
20250126@133646.4329 192n12peocsphappj21238d9og Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@141911.7313 hdm6okcamk40q7hm6jhprmkshb Query : use flama_phc
20250126@141911.7319 hdm6okcamk40q7hm6jhprmkshb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@141911.7410 hdm6okcamk40q7hm6jhprmkshb Query : use flama_phc
20250126@141911.7415 hdm6okcamk40q7hm6jhprmkshb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@143611.4848 b9cgub10rg0igtibj7lrefgd61 Query : use flama_phc
20250126@143611.4853 b9cgub10rg0igtibj7lrefgd61 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@143611.4951 b9cgub10rg0igtibj7lrefgd61 Query : use flama_phc
20250126@143611.4954 b9cgub10rg0igtibj7lrefgd61 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@151911.1303 damhm8lk8dilfs3b902berv1nk Query : use flama_phc
20250126@151911.1308 damhm8lk8dilfs3b902berv1nk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@151911.1405 damhm8lk8dilfs3b902berv1nk Query : use flama_phc
20250126@151911.1408 damhm8lk8dilfs3b902berv1nk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@153611.1776 dflsavnoojkjho0vklntp2a3qo Query : use flama_phc
20250126@153611.1781 dflsavnoojkjho0vklntp2a3qo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@153611.1872 dflsavnoojkjho0vklntp2a3qo Query : use flama_phc
20250126@153611.1876 dflsavnoojkjho0vklntp2a3qo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@161911.1639 u6jbjqh47vitud4oh6bpld6nu2 Query : use flama_phc
20250126@161911.1645 u6jbjqh47vitud4oh6bpld6nu2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@161911.1739 u6jbjqh47vitud4oh6bpld6nu2 Query : use flama_phc
20250126@161911.1742 u6jbjqh47vitud4oh6bpld6nu2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@163611.4368 m13lg5c9pjv7dc66erc4ve34ph Query : use flama_phc
20250126@163611.4373 m13lg5c9pjv7dc66erc4ve34ph Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@163611.4470 m13lg5c9pjv7dc66erc4ve34ph Query : use flama_phc
20250126@163611.4475 m13lg5c9pjv7dc66erc4ve34ph Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@171910.8059 p9svfd0k4dt3lut0ci6abv4ea1 Query : use flama_phc
20250126@171910.8064 p9svfd0k4dt3lut0ci6abv4ea1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@171910.8154 p9svfd0k4dt3lut0ci6abv4ea1 Query : use flama_phc
20250126@171910.8157 p9svfd0k4dt3lut0ci6abv4ea1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@173610.7145 4sl705o6tnoku7k7t7f0cv0jjs Query : use flama_phc
20250126@173610.7150 4sl705o6tnoku7k7t7f0cv0jjs Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@173610.8547 4sl705o6tnoku7k7t7f0cv0jjs Query : use flama_phc
20250126@173610.8553 4sl705o6tnoku7k7t7f0cv0jjs Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@181910.5953 gphkn9tjvshng6g6pvc5u1efuo Query : use flama_phc
20250126@181910.5957 gphkn9tjvshng6g6pvc5u1efuo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@181910.6049 gphkn9tjvshng6g6pvc5u1efuo Query : use flama_phc
20250126@181910.6053 gphkn9tjvshng6g6pvc5u1efuo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@183610.8496 5g3eu3sbd72au4avridcq668pt Query : use flama_phc
20250126@183610.8501 5g3eu3sbd72au4avridcq668pt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@183610.8594 5g3eu3sbd72au4avridcq668pt Query : use flama_phc
20250126@183610.8609 5g3eu3sbd72au4avridcq668pt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@191910.6737 cialpn5giu7tpgur405tf4vvh9 Query : use flama_phc
20250126@191910.6744 cialpn5giu7tpgur405tf4vvh9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@191910.6857 cialpn5giu7tpgur405tf4vvh9 Query : use flama_phc
20250126@191910.6865 cialpn5giu7tpgur405tf4vvh9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@193610.6649 ugnvhhv017ge1i0u7tvqacnbgv Query : use flama_phc
20250126@193610.6654 ugnvhhv017ge1i0u7tvqacnbgv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@193610.6756 ugnvhhv017ge1i0u7tvqacnbgv Query : use flama_phc
20250126@193610.6760 ugnvhhv017ge1i0u7tvqacnbgv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@201912.3860 vjic2el4mrke8k8cs7l74fqehc Query : use flama_phc
20250126@201912.3980 vjic2el4mrke8k8cs7l74fqehc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@201912.4960 vjic2el4mrke8k8cs7l74fqehc Query : use flama_phc
20250126@201912.5020 vjic2el4mrke8k8cs7l74fqehc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@203612.6000 isurt7oc7o17doec5r9gteai5d Query : use flama_phc
20250126@203612.6080 isurt7oc7o17doec5r9gteai5d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@203612.1938 isurt7oc7o17doec5r9gteai5d Query : use flama_phc
20250126@203612.1942 isurt7oc7o17doec5r9gteai5d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@211910.7082 84bv6h774l2dblgalv8806u77c Query : use flama_phc
20250126@211910.7086 84bv6h774l2dblgalv8806u77c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@211910.7195 84bv6h774l2dblgalv8806u77c Query : use flama_phc
20250126@211910.7198 84bv6h774l2dblgalv8806u77c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@213610.6386 7atsbenl7f0i4ptaohhimmuvvk Query : use flama_phc
20250126@213610.6391 7atsbenl7f0i4ptaohhimmuvvk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@213610.6523 7atsbenl7f0i4ptaohhimmuvvk Query : use flama_phc
20250126@213610.6527 7atsbenl7f0i4ptaohhimmuvvk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@221912.9799 m6g01u10874kqdig97bo28cbq8 Query : use flama_phc
20250126@221912.9804 m6g01u10874kqdig97bo28cbq8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@221912.9903 m6g01u10874kqdig97bo28cbq8 Query : use flama_phc
20250126@221912.9907 m6g01u10874kqdig97bo28cbq8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@223612.8950 79q6gujr11j20qfcc9idocrpoo Query : use flama_phc
20250126@223612.8954 79q6gujr11j20qfcc9idocrpoo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@223612.9062 79q6gujr11j20qfcc9idocrpoo Query : use flama_phc
20250126@223612.9066 79q6gujr11j20qfcc9idocrpoo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@231912.3758 bsjplue9hl6rci028dkfh200nt Query : use flama_phc
20250126@231912.3764 bsjplue9hl6rci028dkfh200nt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@231912.3891 bsjplue9hl6rci028dkfh200nt Query : use flama_phc
20250126@231912.3896 bsjplue9hl6rci028dkfh200nt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250126@233612.1079 prap8bktulpq3h4stt3ni3nf0a Query : use flama_phc
20250126@233612.1084 prap8bktulpq3h4stt3ni3nf0a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250126@233612.1198 prap8bktulpq3h4stt3ni3nf0a Query : use flama_phc
20250126@233612.1202 prap8bktulpq3h4stt3ni3nf0a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@071919.8861 fr6tjg8pt4nkk8klkvbhqnp9n7 Query : use flama_phc
20250127@071919.8865 fr6tjg8pt4nkk8klkvbhqnp9n7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@071919.8990 fr6tjg8pt4nkk8klkvbhqnp9n7 Query : use flama_phc
20250127@071919.8994 fr6tjg8pt4nkk8klkvbhqnp9n7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@073614.2450 papp8k0apg3jaa616l9sq9a5ka Query : use flama_phc
20250127@073614.2500 papp8k0apg3jaa616l9sq9a5ka Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@073614.1762 papp8k0apg3jaa616l9sq9a5ka Query : use flama_phc
20250127@073614.1801 papp8k0apg3jaa616l9sq9a5ka Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@074844.9454 4uai3m6bcb6eknsqdliho3352b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@074844.9576 4uai3m6bcb6eknsqdliho3352b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@074845.1105 4uai3m6bcb6eknsqdliho3352b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4947';
20250127@074845.1627 4uai3m6bcb6eknsqdliho3352b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4947';
20250127@074845.2156 4uai3m6bcb6eknsqdliho3352b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4947';
20250127@074845.2552 4uai3m6bcb6eknsqdliho3352b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4947';
20250127@074845.3035 4uai3m6bcb6eknsqdliho3352b Query : use flama_phc
20250127@074845.3085 4uai3m6bcb6eknsqdliho3352b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@074845.3647 4uai3m6bcb6eknsqdliho3352b Query : use flama_phc
20250127@074845.3652 4uai3m6bcb6eknsqdliho3352b Query : select no, estab,szadrsdesc from szadrs where u_coddest=2155
20250127@074845.3854 4uai3m6bcb6eknsqdliho3352b 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500690 
20250127@074845.4300 4uai3m6bcb6eknsqdliho3352b Query : use flama_phc
20250127@074845.4305 4uai3m6bcb6eknsqdliho3352b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250127@074845.4426 4uai3m6bcb6eknsqdliho3352b Query : use flama_phc
20250127@074845.4436 4uai3m6bcb6eknsqdliho3352b Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250127@074845.4522 4uai3m6bcb6eknsqdliho3352b Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250127@074845.4596 4uai3m6bcb6eknsqdliho3352b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4947';
20250127@074845.4665 4uai3m6bcb6eknsqdliho3352b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4947';
20250127@074845.6193 6bc2tu2jjqfnf3vfk0i09ki1hv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@074845.6207 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@074845.6296 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4948';
20250127@074845.6405 6bc2tu2jjqfnf3vfk0i09ki1hv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4948';
20250127@074845.6488 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4948';
20250127@074845.6544 6bc2tu2jjqfnf3vfk0i09ki1hv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4948';
20250127@074845.6786 6bc2tu2jjqfnf3vfk0i09ki1hv Query : use flama_phc
20250127@074845.6790 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@074845.6866 6bc2tu2jjqfnf3vfk0i09ki1hv Query : use flama_phc
20250127@074845.6870 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select no, estab,szadrsdesc from szadrs where u_coddest=7958
20250127@074845.7005 6bc2tu2jjqfnf3vfk0i09ki1hv 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500694 
20250127@074845.7372 6bc2tu2jjqfnf3vfk0i09ki1hv Query : use flama_phc
20250127@074845.7377 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250127@074845.7419 6bc2tu2jjqfnf3vfk0i09ki1hv Query : use flama_phc
20250127@074845.7423 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250127@074845.7442 6bc2tu2jjqfnf3vfk0i09ki1hv Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250127@074845.7487 6bc2tu2jjqfnf3vfk0i09ki1hv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4948';
20250127@074845.7541 6bc2tu2jjqfnf3vfk0i09ki1hv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4948';
20250127@074845.8099 jjdvrutbbm5ih9ag5jdgj9ptrq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@074845.8112 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@074845.8228 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4949';
20250127@074845.8332 jjdvrutbbm5ih9ag5jdgj9ptrq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4949';
20250127@074845.8422 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4949';
20250127@074845.8481 jjdvrutbbm5ih9ag5jdgj9ptrq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4949';
20250127@074845.8586 jjdvrutbbm5ih9ag5jdgj9ptrq Query : use flama_phc
20250127@074845.8592 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@074845.8674 jjdvrutbbm5ih9ag5jdgj9ptrq Query : use flama_phc
20250127@074845.8679 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20250127@074845.8796 jjdvrutbbm5ih9ag5jdgj9ptrq 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500695 
20250127@074845.9179 jjdvrutbbm5ih9ag5jdgj9ptrq Query : use flama_phc
20250127@074845.9183 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250127@074845.9225 jjdvrutbbm5ih9ag5jdgj9ptrq Query : use flama_phc
20250127@074845.9229 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250127@074845.9249 jjdvrutbbm5ih9ag5jdgj9ptrq Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250127@074845.9278 jjdvrutbbm5ih9ag5jdgj9ptrq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4949';
20250127@074845.9333 jjdvrutbbm5ih9ag5jdgj9ptrq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4949';
20250127@074845.9988 t44kbv4clmndrtci2vvamrclta Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@074846.5000 t44kbv4clmndrtci2vvamrclta Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@074846.1020 t44kbv4clmndrtci2vvamrclta Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4950';
20250127@074846.2440 t44kbv4clmndrtci2vvamrclta Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4950';
20250127@074846.3660 t44kbv4clmndrtci2vvamrclta Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4950';
20250127@074846.4320 t44kbv4clmndrtci2vvamrclta Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4950';
20250127@074846.5290 t44kbv4clmndrtci2vvamrclta Query : use flama_phc
20250127@074846.5330 t44kbv4clmndrtci2vvamrclta Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@074846.6610 t44kbv4clmndrtci2vvamrclta Query : use flama_phc
20250127@074846.6650 t44kbv4clmndrtci2vvamrclta Query : select no, estab,szadrsdesc from szadrs where u_coddest=2064
20250127@074846.8020 t44kbv4clmndrtci2vvamrclta 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500696 
20250127@074846.1167 t44kbv4clmndrtci2vvamrclta Query : use flama_phc
20250127@074846.1171 t44kbv4clmndrtci2vvamrclta Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250127@074846.1210 t44kbv4clmndrtci2vvamrclta Query : use flama_phc
20250127@074846.1214 t44kbv4clmndrtci2vvamrclta Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250127@074846.1233 t44kbv4clmndrtci2vvamrclta Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250127@074846.1261 t44kbv4clmndrtci2vvamrclta Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4950';
20250127@074846.1313 t44kbv4clmndrtci2vvamrclta Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4950';
20250127@074846.1883 reagntgd2gpergolp2chrunq7p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@074846.1895 reagntgd2gpergolp2chrunq7p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@074846.2007 reagntgd2gpergolp2chrunq7p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4951';
20250127@074846.2108 reagntgd2gpergolp2chrunq7p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4951';
20250127@074846.2231 reagntgd2gpergolp2chrunq7p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4951';
20250127@074846.2880 reagntgd2gpergolp2chrunq7p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4951';
20250127@074846.3464 reagntgd2gpergolp2chrunq7p Query : use flama_phc
20250127@074846.3509 reagntgd2gpergolp2chrunq7p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@074846.3999 reagntgd2gpergolp2chrunq7p Query : use flama_phc
20250127@074846.4014 reagntgd2gpergolp2chrunq7p Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20250127@074846.4086 reagntgd2gpergolp2chrunq7p 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 2006 and bo.obrano = 2500697 
20250127@074846.4551 reagntgd2gpergolp2chrunq7p Query : use flama_phc
20250127@074846.4556 reagntgd2gpergolp2chrunq7p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250127@074846.4643 reagntgd2gpergolp2chrunq7p Query : use flama_phc
20250127@074846.4648 reagntgd2gpergolp2chrunq7p Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250127@074846.4670 reagntgd2gpergolp2chrunq7p Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250127@074846.4715 reagntgd2gpergolp2chrunq7p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4951';
20250127@074846.4803 reagntgd2gpergolp2chrunq7p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4951';
20250127@081916.7055 3u40l7a82kjklr8a38m1vt532h Query : use flama_phc
20250127@081916.7138 3u40l7a82kjklr8a38m1vt532h Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@081916.8189 3u40l7a82kjklr8a38m1vt532h Query : use flama_phc
20250127@081916.8245 3u40l7a82kjklr8a38m1vt532h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@083616.7148 s40rmvea9cnrq8r6rllk37g6mp Query : use flama_phc
20250127@083616.7153 s40rmvea9cnrq8r6rllk37g6mp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@083616.7327 s40rmvea9cnrq8r6rllk37g6mp Query : use flama_phc
20250127@083616.7332 s40rmvea9cnrq8r6rllk37g6mp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@091914.4074 vod5ucgc0hbqehpid6autegfno Query : use flama_phc
20250127@091914.4082 vod5ucgc0hbqehpid6autegfno Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@091914.4226 vod5ucgc0hbqehpid6autegfno Query : use flama_phc
20250127@091914.4230 vod5ucgc0hbqehpid6autegfno Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@093614.4478 cv64ad3psi401tlnt7fkusapii Query : use flama_phc
20250127@093614.4484 cv64ad3psi401tlnt7fkusapii Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@093614.4629 cv64ad3psi401tlnt7fkusapii Query : use flama_phc
20250127@093614.4637 cv64ad3psi401tlnt7fkusapii Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@101917.2796 m198mb7c6ei89jpufs31d1pt7t Query : use flama_phc
20250127@101917.2802 m198mb7c6ei89jpufs31d1pt7t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@101917.3002 m198mb7c6ei89jpufs31d1pt7t Query : use flama_phc
20250127@101917.3006 m198mb7c6ei89jpufs31d1pt7t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@103616.8648 8gbinckaoh470kst0c5p0i0cs9 Query : use flama_phc
20250127@103616.8653 8gbinckaoh470kst0c5p0i0cs9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@103616.8749 8gbinckaoh470kst0c5p0i0cs9 Query : use flama_phc
20250127@103616.8752 8gbinckaoh470kst0c5p0i0cs9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@111913.1305 e07ij5h81pbpe30nmeehgtjb70 Query : use flama_phc
20250127@111913.1309 e07ij5h81pbpe30nmeehgtjb70 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@111913.1407 e07ij5h81pbpe30nmeehgtjb70 Query : use flama_phc
20250127@111913.1412 e07ij5h81pbpe30nmeehgtjb70 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@113612.9822 rlcr33lu7l0ojgkkq3qngk2q9f Query : use flama_phc
20250127@113612.9904 rlcr33lu7l0ojgkkq3qngk2q9f Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@113613.4800 rlcr33lu7l0ojgkkq3qngk2q9f Query : use flama_phc
20250127@113613.5300 rlcr33lu7l0ojgkkq3qngk2q9f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@121918.1503 4ar3pmumf6iddd3js0c01dt6ui Query : use flama_phc
20250127@121918.1508 4ar3pmumf6iddd3js0c01dt6ui Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@121918.1611 4ar3pmumf6iddd3js0c01dt6ui Query : use flama_phc
20250127@121918.1614 4ar3pmumf6iddd3js0c01dt6ui Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@123618.1567 ngtia167lglk8f0hp1ntrevl7n Query : use flama_phc
20250127@123618.1573 ngtia167lglk8f0hp1ntrevl7n Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@123618.1693 ngtia167lglk8f0hp1ntrevl7n Query : use flama_phc
20250127@123618.1697 ngtia167lglk8f0hp1ntrevl7n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@131921.4975 l7869kt8uegtdueh06fcjrvgo6 Query : use flama_phc
20250127@131921.4980 l7869kt8uegtdueh06fcjrvgo6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@131921.5166 l7869kt8uegtdueh06fcjrvgo6 Query : use flama_phc
20250127@131921.5170 l7869kt8uegtdueh06fcjrvgo6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@133621.5559 iq91s4n449sp5rs1s789au8tda Query : use flama_phc
20250127@133621.5565 iq91s4n449sp5rs1s789au8tda Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@133621.5704 iq91s4n449sp5rs1s789au8tda Query : use flama_phc
20250127@133621.5707 iq91s4n449sp5rs1s789au8tda Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@141915.9523 gu226c1q3dpfjl7asooh5s25h6 Query : use flama_phc
20250127@141915.9527 gu226c1q3dpfjl7asooh5s25h6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@141915.9619 gu226c1q3dpfjl7asooh5s25h6 Query : use flama_phc
20250127@141915.9623 gu226c1q3dpfjl7asooh5s25h6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@143616.1930 ld7ckbt9vhb5g7utm4kjq3129o Query : use flama_phc
20250127@143616.1936 ld7ckbt9vhb5g7utm4kjq3129o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@143616.2064 ld7ckbt9vhb5g7utm4kjq3129o Query : use flama_phc
20250127@143616.2067 ld7ckbt9vhb5g7utm4kjq3129o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@151913.4890 h5t4e9lkpuf05nto1l9q0gk3ch Query : use flama_phc
20250127@151913.4895 h5t4e9lkpuf05nto1l9q0gk3ch Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@151913.5001 h5t4e9lkpuf05nto1l9q0gk3ch Query : use flama_phc
20250127@151913.5005 h5t4e9lkpuf05nto1l9q0gk3ch Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@153409.3819 1kt60lk1dqplf627ag4soaf8ki Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@153409.3850 1kt60lk1dqplf627ag4soaf8ki Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@153409.4456 1kt60lk1dqplf627ag4soaf8ki Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4952';
20250127@153409.4566 1kt60lk1dqplf627ag4soaf8ki Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4952';
20250127@153409.4709 1kt60lk1dqplf627ag4soaf8ki Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4952';
20250127@153409.4756 1kt60lk1dqplf627ag4soaf8ki Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4952';
20250127@153409.4849 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153409.4853 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@153409.5039 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20250127@153409.5231 1kt60lk1dqplf627ag4soaf8ki 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 = 2401231 and bi.ref ='324.4970.00.1' and bi.lordem =20000
20250127@153409.5798 1kt60lk1dqplf627ag4soaf8ki 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 = 'cps24102931844,619000002 ' 
20250127@153409.7178 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153409.7182 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 1 valor from ts where ts.ndos = 61
20250127@153409.7281 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153409.7285 1kt60lk1dqplf627ag4soaf8ki 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')
20250127@153409.7405 1kt60lk1dqplf627ag4soaf8ki 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
20250127@153409.7642 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153409.7646 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 ~inactivo valor from fl where no = '202278' and estab = 00 order by inactivo desc
20250127@153409.7773 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153409.7777 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from ts where ndos = 61
20250127@153409.7847 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153409.8227 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250127@153409.8324 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153409.8375 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250127@153409.8390 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153409.8410 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250127@153409.8422 1kt60lk1dqplf627ag4soaf8ki 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
20250127@153409.8550 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250127@153409.8650 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250127@153409.8672 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153409.8681 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202278' and estab=00
20250127@153409.8810 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153409.8828 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250127@153409.8866 1kt60lk1dqplf627ag4soaf8ki Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a851496797a771d3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250127@153409.8970 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153409.9253 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250127@153409.9285 1kt60lk1dqplf627ag4soaf8ki Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a851496797a771d3','--','bo',1.0705445544554455445 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250127@153409.9508 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153409.9529 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250127@153409.9544 1kt60lk1dqplf627ag4soaf8ki 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 ('aut6797a851496797a771d3','guia r. fornecedor','2025-01-27',61,2500309,?,?,?,?,?,?,?,?,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')
20250127@153412.8749 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153412.8753 1kt60lk1dqplf627ag4soaf8ki Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20250127@153412.8930 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4970.00.1'
20250127@153412.9140 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153412.9158 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250127@153412.9173 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153412.9188 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250127@153412.9197 1kt60lk1dqplf627ag4soaf8ki Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2401231200a'
20250127@153412.9256 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153412.9325 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250127@153412.9335 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153412.9354 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250127@153412.9368 1kt60lk1dqplf627ag4soaf8ki Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a831986797a774e3',?,?,'20250127',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250127@153413.5000 1kt60lk1dqplf627ag4soaf8ki Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@153413.9300 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153413.1110 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250127@153413.1250 1kt60lk1dqplf627ag4soaf8ki Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6797a817386797a77502','aut6797a851496797a771d3',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 = 'aut6797a851496797a771d3'
20250127@153413.3570 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@153413.4070 1kt60lk1dqplf627ag4soaf8ki Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250127@153413.4270 1kt60lk1dqplf627ag4soaf8ki 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 'aut6797a817386797a77502',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5760, 5760*.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 ,8.08,8.08*200.48,8.08,8.08*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,8.08*5760,8.08*5760*200.48 ,9.098000,9.098000*200.48 ,9.098000,9.098000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.08,8.08*200.48,8.08*5760,8.08*5760*200.48,'cps24102931844,619000002 ',8.65,8.65*5760,8.65,8.65*5760,?,?,?,4 from bo bo where bo.bostamp = 'aut6797a851496797a771d3'
20250127@153420.7637 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153420.7642 1kt60lk1dqplf627ag4soaf8ki Query : declare @bostamp varchar(25) = 'aut6797a851496797a771d3' ,@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 
20250127@153433.8621 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153433.8624 1kt60lk1dqplf627ag4soaf8ki Query : select 1 valor from bo where bo.bostamp = 'aut6797a851496797a771d3'
20250127@153433.8722 1kt60lk1dqplf627ag4soaf8ki 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) = 'aut6797a851496797a771d3' 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 
20250127@153436.5319 1kt60lk1dqplf627ag4soaf8ki Query : use flama_phc
20250127@153436.5323 1kt60lk1dqplf627ag4soaf8ki Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@153436.5481 1kt60lk1dqplf627ag4soaf8ki Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4952';
20250127@153436.5530 1kt60lk1dqplf627ag4soaf8ki Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4952';
20250127@153613.5489 l6rchb5055lndlmlp9jtrobnui Query : use flama_phc
20250127@153613.5494 l6rchb5055lndlmlp9jtrobnui Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250127@153613.5585 l6rchb5055lndlmlp9jtrobnui Query : use flama_phc
20250127@153613.5588 l6rchb5055lndlmlp9jtrobnui Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@160948.4078 2lc30u8rno3m6ibb1j0hvt868q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@160948.4258 2lc30u8rno3m6ibb1j0hvt868q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@160948.4944 2lc30u8rno3m6ibb1j0hvt868q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4953';
20250127@160948.5228 2lc30u8rno3m6ibb1j0hvt868q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4953';
20250127@160948.5328 2lc30u8rno3m6ibb1j0hvt868q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4953';
20250127@160948.5414 2lc30u8rno3m6ibb1j0hvt868q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4953';
20250127@160948.5526 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160948.5531 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@160948.5740 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160948.5744 2lc30u8rno3m6ibb1j0hvt868q Query : select no, estab,szadrsdesc from szadrs where u_coddest=8857
20250127@160948.5943 2lc30u8rno3m6ibb1j0hvt868q 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 ,sum(qtt) over (partition by bi.ref) qtt_total 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 = 0000348 
20250127@160948.6984 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250127@160948.9939 2lc30u8rno3m6ibb1j0hvt868q 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 = 'evc25012233396,8580000-3 ' 
20250127@160949.1290 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20250127@160949.1580 2lc30u8rno3m6ibb1j0hvt868q 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 = 'evc25012233396,8770000-4 ' 
20250127@160949.2832 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250127@160949.4417 2lc30u8rno3m6ibb1j0hvt868q 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 = 'evc25012233396,8380000-2 ' 
20250127@160949.6178 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250127@160949.6886 2lc30u8rno3m6ibb1j0hvt868q 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 = 'evc25012233396,8380000-2 ' 
20250127@160949.9703 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250127@160950.4607 2lc30u8rno3m6ibb1j0hvt868q 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 = 'evc25012233396,8380000-2 ' 
20250127@160950.7225 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250127@160950.7520 2lc30u8rno3m6ibb1j0hvt868q 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 = 'evc25012233396,8380000-2 ' 
20250127@160950.7656 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20250127@160950.7691 2lc30u8rno3m6ibb1j0hvt868q 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 = 'evc25012233396,8380000-2 ' 
20250127@160950.7718 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.7722 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20250127@160950.7967 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.7971 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 1 valor from td where td.ndoc = 39
20250127@160950.8438 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.8443 2lc30u8rno3m6ibb1j0hvt868q 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')
20250127@160950.8475 2lc30u8rno3m6ibb1j0hvt868q 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
20250127@160950.8622 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.8626 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 ~inactivo valor from cl where no = '100001' and estab = 0 order by inactivo desc
20250127@160950.8748 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.8752 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 tipodoc,regrd from td where ndoc = 39
20250127@160950.8954 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.8958 2lc30u8rno3m6ibb1j0hvt868q Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250127@160950.9036 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.9040 2lc30u8rno3m6ibb1j0hvt868q Query : select szadrsstamp valor from szadrs where szadrsdesc='100001 flama - cesar (usar encomenda p/ arm 133)'
20250127@160950.9100 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160950.9103 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from td where ndoc = 39
20250127@160950.9201 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20250127@160950.9281 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160950.9300 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20250127@160950.9324 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160950.9340 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20250127@160950.9375 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160950.9393 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20250127@160950.9408 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250127@160950.9687 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2025 order by fno desc
20250127@160950.9801 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160950.9820 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20250127@160950.9840 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20250127@160951.1453 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160951.2070 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20250127@160951.3471 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250127@160951.4721 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250127@160951.5303 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 bo.u_codposen valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250127@160951.5413 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 bo.u_localenv valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250127@160951.6147 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 bo.trab5 valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250127@160951.7804 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 bo.serie valor from bo where bo.bostamp='dgo25012140177,967000002 '
20250127@160951.8464 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut6797a570236797afcee5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20250127@160952.6180 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 fno valor from wsftdata order by fno desc
20250127@160952.1603 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160952.2258 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20250127@160952.3169 2lc30u8rno3m6ibb1j0hvt868q Query : select 'normal' from dummy
20250127@160952.3290 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ,encomenda ) values ('aut6797a570236797afcee5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3087,100001,0,'2025-01-27',39,'euro',0,0,2025 ,?,?,?)
20250127@160952.5583 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160952.5707 2lc30u8rno3m6ibb1j0hvt868q Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20250127@160952.6134 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160952.6173 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250127@160952.7617 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160952.7703 2lc30u8rno3m6ibb1j0hvt868q Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1646.00.1' and sa.armazem = 133 
20250127@160952.8950 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160952.8994 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250127@160952.9416 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160952.9581 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250127@160952.9972 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20250127@160953.2040 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.2530 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160953.3850 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.4280 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160953.4470 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160953.4620 2lc30u8rno3m6ibb1j0hvt868q Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2400725100a'
20250127@160953.5030 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.5820 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160953.5980 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a612396797afd10c','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160953.6760 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.6970 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160953.1168 2lc30u8rno3m6ibb1j0hvt868q 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 ('aut6797a612396797afd10c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.0000 ,'aut6797a570236797afcee5' ,46.780000,0 ,2,23.00,10000,?,?,?,?,?,?,?,?,?)
20250127@160953.2565 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.2570 2lc30u8rno3m6ibb1j0hvt868q Query : select st.usalote valor from st where st.ref = '324.1646.00.1'
20250127@160953.2596 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.2599 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250127@160953.2681 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.2685 2lc30u8rno3m6ibb1j0hvt868q Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1646.00.1' and sa.armazem = 133 
20250127@160953.2714 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.2718 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250127@160953.2736 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.2739 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1646.00.1'
20250127@160953.2771 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1646.00.1'
20250127@160953.3528 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.3619 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160953.3669 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.3688 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160953.3697 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160953.3711 2lc30u8rno3m6ibb1j0hvt868q Query : select sestamp valor from se where ref ='324.1646.00.1' and lote = 'r2400725100a'
20250127@160953.3729 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.3878 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160953.4086 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a302236797afd15b','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160953.4130 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.4628 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160953.5413 2lc30u8rno3m6ibb1j0hvt868q 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 ('aut6797a302236797afd15b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',1.0000 ,'aut6797a570236797afcee5' ,.000000,0 ,2,23.00,20000,?,?,?,?,?,?,?,?,?)
20250127@160953.5864 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.5906 2lc30u8rno3m6ibb1j0hvt868q Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250127@160953.6321 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.6444 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160953.7622 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.7649 2lc30u8rno3m6ibb1j0hvt868q Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250127@160953.7823 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.7827 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160953.7865 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160953.7880 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160953.7940 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250127@160953.8152 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160953.9026 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160954.3360 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160954.5340 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160954.5460 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160954.6230 2lc30u8rno3m6ibb1j0hvt868q Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250127@160954.1673 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160954.1804 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160954.2588 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a122846797afd228','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160954.2727 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160954.2833 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160954.4053 2lc30u8rno3m6ibb1j0hvt868q 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 ('aut6797a122846797afd228',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',12.000 ,'aut6797a570236797afcee5' ,30.420000,0 ,2,23.00,30000,?,?,?,?,?,?,?,?,?)
20250127@160954.4738 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160954.5140 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160954.6337 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160954.6969 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160954.7199 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160954.7307 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160954.7538 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160954.8125 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a771476797afd2b2','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160954.8168 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160954.9235 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160955.4300 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6797a771476797afd2b2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6797a570236797afcee5' ,0,0 ,2,23.00,40000,?,?,?)
20250127@160955.6350 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160955.6420 2lc30u8rno3m6ibb1j0hvt868q Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250127@160955.7290 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160955.8010 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160955.8510 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160955.8560 2lc30u8rno3m6ibb1j0hvt868q Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250127@160955.8800 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160955.8840 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160955.9000 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160955.9030 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160955.9290 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250127@160955.9460 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.9660 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160955.9970 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.1015 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160955.1025 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160955.1606 2lc30u8rno3m6ibb1j0hvt868q Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250127@160955.1624 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.1644 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160955.1658 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a676196797afd327','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160955.1665 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.2056 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160955.2121 2lc30u8rno3m6ibb1j0hvt868q 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 ('aut6797a676196797afd327',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',3.000 ,'aut6797a570236797afcee5' ,30.420000,0 ,2,23.00,60000,?,?,?,?,?,?,?,?,?)
20250127@160955.4105 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.4164 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160955.4193 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.4210 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160955.4219 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160955.4233 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.4253 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160955.4267 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a000876797afd367','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160955.4272 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160955.4288 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160955.4318 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6797a000876797afd367',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6797a570236797afcee5' ,0,0 ,2,23.00,70000,?,?,?)
20250127@160955.4996 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160955.5617 2lc30u8rno3m6ibb1j0hvt868q Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250127@160955.8370 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160955.8452 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160956.1167 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160956.1254 2lc30u8rno3m6ibb1j0hvt868q Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250127@160956.2664 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160956.2869 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160956.3469 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160956.3837 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160956.7661 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250127@160956.8580 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160956.9333 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160956.9867 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160956.9902 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160957.3940 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160957.6560 2lc30u8rno3m6ibb1j0hvt868q Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250127@160957.1514 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160957.2015 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160957.2140 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a990226797afd524','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160957.2186 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160957.3522 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160957.5159 2lc30u8rno3m6ibb1j0hvt868q 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 ('aut6797a990226797afd524',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut6797a570236797afcee5' ,30.420000,0 ,2,23.00,90000,?,?,?,?,?,?,?,?,?)
20250127@160957.6594 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160957.7421 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160957.9471 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160957.9645 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160957.9660 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160957.9684 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160957.9756 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160957.9792 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a204486797afd5ec','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160957.9796 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160957.9812 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160957.9844 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6797a204486797afd5ec',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6797a570236797afcee5' ,0,0 ,2,23.00,100000,?,?,?)
20250127@160958.9900 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160958.1020 2lc30u8rno3m6ibb1j0hvt868q Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250127@160958.1550 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160958.1580 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160958.2150 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160958.2580 2lc30u8rno3m6ibb1j0hvt868q Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250127@160958.7430 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160958.7490 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160958.7770 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160958.7800 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160958.9410 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250127@160958.9710 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.1044 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160958.2051 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.2071 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160958.2080 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160958.2093 2lc30u8rno3m6ibb1j0hvt868q Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250127@160958.2122 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.2140 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160958.2152 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a151556797afd633','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160958.2157 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.2173 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160958.2201 2lc30u8rno3m6ibb1j0hvt868q 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 ('aut6797a151556797afd633',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20.000 ,'aut6797a570236797afcee5' ,30.420000,0 ,2,23.00,120000,?,?,?,?,?,?,?,?,?)
20250127@160958.2499 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.2522 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160958.2547 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.3173 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160958.3973 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160958.4544 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.4625 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160958.4638 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a955166797afd66e','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160958.4643 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160958.5173 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160958.9735 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6797a955166797afd66e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6797a570236797afcee5' ,0,0 ,2,23.00,130000,?,?,?)
20250127@160959.7360 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160959.1059 2lc30u8rno3m6ibb1j0hvt868q Query : select st.usalote valor from st where st.ref = '324.1824.00.1'
20250127@160959.1107 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160959.1110 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160959.1133 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160959.1136 2lc30u8rno3m6ibb1j0hvt868q Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1824.00.1' and sa.armazem = 133 
20250127@160959.1165 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160959.1168 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160959.1192 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160959.1195 2lc30u8rno3m6ibb1j0hvt868q Query : select st.stns valor from st where st.ref = '324.1824.00.1'
20250127@160959.1224 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1824.00.1'
20250127@160959.1238 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.1255 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160959.1287 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.1302 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160959.1311 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160959.1323 2lc30u8rno3m6ibb1j0hvt868q Query : select sestamp valor from se where ref ='324.1824.00.1' and lote = 'r2400217200a'
20250127@160959.1335 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.1385 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160959.1398 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a989836797afd720','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160959.1403 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.1575 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160959.1604 2lc30u8rno3m6ibb1j0hvt868q 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 ('aut6797a989836797afd720',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',20 ,'aut6797a570236797afcee5' ,30.420000,0 ,2,23.00,150000,?,?,?,?,?,?,?,?,?)
20250127@160959.1892 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.1933 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160959.1991 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.2113 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160959.2218 2lc30u8rno3m6ibb1j0hvt868q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250127@160959.2282 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.2339 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20250127@160959.2398 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797a380886797afd737','aut6797a570236797afcee5' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20250127@160959.2405 2lc30u8rno3m6ibb1j0hvt868q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@160959.2451 2lc30u8rno3m6ibb1j0hvt868q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20250127@160959.2769 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,armazem) values ('aut6797a380886797afd737',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',0 ,'aut6797a570236797afcee5' ,0,0 ,2,23.00,160000,?,?,?)
20250127@160959.3183 2lc30u8rno3m6ibb1j0hvt868q Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut6797a570236797afcee5','','wait',39,'adm09112754980.682000002')
20250127@160959.4826 2lc30u8rno3m6ibb1j0hvt868q Query : use flama_phc
20250127@160959.4842 2lc30u8rno3m6ibb1j0hvt868q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250127@160959.4888 2lc30u8rno3m6ibb1j0hvt868q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4953';
20250127@160959.5009 2lc30u8rno3m6ibb1j0hvt868q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4953';
20250127@160959.5125 2lc30u8rno3m6ibb1j0hvt868q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4953';
20250127@160959.5205 2lc30u8rno3m6ibb1j0hvt868q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4953';
20250127@161614.1773 gfu8bj36secikc6h6sao6gsv60 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250127@161614.2871 gfu8bj36secikc6h6sao6gsv60 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250127@161614.6708 gfu8bj36secikc6h6sao6gsv60 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4954';
20250127@161614.7993 gfu8bj36secikc6h6sao6gsv60 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4954';
20250127@161615.1330 gfu8bj36secikc6h6sao6gsv60 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='4954';
20250127@161615.7900 gfu8bj36secikc6h6sao6gsv60 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='4954';
20250127@161615.1269 gfu8bj36secikc6h6sao6gsv60 Query : use flama_phc
20250127@161615.1351 gfu8bj36secikc6h6sao6gsv60 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250127@161615.2379 gfu8bj36secikc6h6sao6gsv60 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4521.00.1'
20250127@161615.3233 gfu8bj36secikc6h6sao6gsv60 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 = 2400955 and bi.ref ='324.4521.00.1' and bi.lordem =20000
20250127@161615.5229 gfu8bj36secikc6h6sao6gsv60 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 = 'cps24080142608,114000002 ' 
20250127@161615.7417 gfu8bj36secikc6h6sao6gsv60 Query : use flama_phc
20250127@161615.7505 gfu8bj36secikc6h6sao6gsv60 Query : select top 1 1 valor from ts where ts.ndos = 61
20250127@161615.8270 gfu8bj36secikc6h6sao6gsv60 Query : use flama_phc
20250127@161615.8360 gfu8bj36secikc6h6sao6gsv60 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')
20250127@161615.9313 gfu8bj36secikc6h6sao6gsv60 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
20250127@161616.1860 gfu8bj36secikc6h6sao6gsv60 Query : use flama_phc
20250127@161616.2780 gfu8bj36secikc6h6sao6gsv60 Query : select top 1 ~inactivo valor from fl where no = '202291' and estab = 00 order by inactivo desc
20250127@161616.1544 gfu8bj36secikc6h6sao6gsv60 Query : use flama_phc
20250127@161616.1632 gfu8bj36secikc6h6sao6gsv60 Query : select 1 valor from ts where ndos = 61
20250127@161616.2151 gfu8bj36secikc6h6sao6gsv60 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@161616.2702 gfu8bj36secikc6h6sao6gsv60 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250127@161616.3092 gfu8bj36secikc6h6sao6gsv60 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@161616.3627 gfu8bj36secikc6h6sao6gsv60 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250127@161616.3990 gfu8bj36secikc6h6sao6gsv60 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@161616.4750 gfu8bj36secikc6h6sao6gsv60 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250127@161616.5108 gfu8bj36secikc6h6sao6gsv60 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
20250127@161616.5697 gfu8bj36secikc6h6sao6gsv60 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250127@161616.6239 gfu8bj36secikc6h6sao6gsv60 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250127@161616.6859 gfu8bj36secikc6h6sao6gsv60 Query : use flama_phc
20250127@161616.7080 gfu8bj36secikc6h6sao6gsv60 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202291' and estab=00
20250127@161616.7894 gfu8bj36secikc6h6sao6gsv60 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@161616.8427 gfu8bj36secikc6h6sao6gsv60 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250127@161616.8878 gfu8bj36secikc6h6sao6gsv60 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797b181066797b150a7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250127@161616.9007 gfu8bj36secikc6h6sao6gsv60 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@161616.9543 gfu8bj36secikc6h6sao6gsv60 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250127@161616.9976 gfu8bj36secikc6h6sao6gsv60 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6797b181066797b150a7','--','bo',1.0731707317073170731 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250127@161617.6400 gfu8bj36secikc6h6sao6gsv60 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250127@161617.5920 gfu8bj36secikc6h6sao6gsv60 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
