20250312@162929.2099 7q7on9rma5suvkmcd5f7qhs86h Query : use flama_phc
20250312@162929.2102 7q7on9rma5suvkmcd5f7qhs86h Query : select no, estab,szadrsdesc from szadrs where u_coddest=5187
20250312@162929.2150 7q7on9rma5suvkmcd5f7qhs86h Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501709 
20250312@162929.2566 7q7on9rma5suvkmcd5f7qhs86h Query : use flama_phc
20250312@162929.2569 7q7on9rma5suvkmcd5f7qhs86h Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@162929.2599 7q7on9rma5suvkmcd5f7qhs86h Query : use flama_phc
20250312@162929.2603 7q7on9rma5suvkmcd5f7qhs86h Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@162929.2619 7q7on9rma5suvkmcd5f7qhs86h Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@162929.2640 7q7on9rma5suvkmcd5f7qhs86h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5877';
20250312@162929.2689 7q7on9rma5suvkmcd5f7qhs86h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5877';
20250312@162929.3363 e6v3n2k0414d2qj2jmjdohiik4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@162929.3376 e6v3n2k0414d2qj2jmjdohiik4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@162929.3496 e6v3n2k0414d2qj2jmjdohiik4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5878';
20250312@162929.3591 e6v3n2k0414d2qj2jmjdohiik4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5878';
20250312@162929.3752 e6v3n2k0414d2qj2jmjdohiik4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5878';
20250312@162929.4023 e6v3n2k0414d2qj2jmjdohiik4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5878';
20250312@162929.4109 e6v3n2k0414d2qj2jmjdohiik4 Query : use flama_phc
20250312@162929.4113 e6v3n2k0414d2qj2jmjdohiik4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@162929.4190 e6v3n2k0414d2qj2jmjdohiik4 Query : use flama_phc
20250312@162929.4194 e6v3n2k0414d2qj2jmjdohiik4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1549
20250312@162929.4294 e6v3n2k0414d2qj2jmjdohiik4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501710 
20250312@162929.4722 e6v3n2k0414d2qj2jmjdohiik4 Query : use flama_phc
20250312@162929.4725 e6v3n2k0414d2qj2jmjdohiik4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@162929.4770 e6v3n2k0414d2qj2jmjdohiik4 Query : use flama_phc
20250312@162929.4773 e6v3n2k0414d2qj2jmjdohiik4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@162929.4789 e6v3n2k0414d2qj2jmjdohiik4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@162929.4825 e6v3n2k0414d2qj2jmjdohiik4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5878';
20250312@162929.4875 e6v3n2k0414d2qj2jmjdohiik4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5878';
20250312@162929.5434 lmovdr9srrh84r0hvtic8fbb0t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@162929.5483 lmovdr9srrh84r0hvtic8fbb0t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@162929.5572 lmovdr9srrh84r0hvtic8fbb0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5879';
20250312@162929.5677 lmovdr9srrh84r0hvtic8fbb0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5879';
20250312@162929.5750 lmovdr9srrh84r0hvtic8fbb0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5879';
20250312@162929.5799 lmovdr9srrh84r0hvtic8fbb0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5879';
20250312@162929.5884 lmovdr9srrh84r0hvtic8fbb0t Query : use flama_phc
20250312@162929.5888 lmovdr9srrh84r0hvtic8fbb0t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@162929.5953 lmovdr9srrh84r0hvtic8fbb0t Query : use flama_phc
20250312@162929.5957 lmovdr9srrh84r0hvtic8fbb0t Query : select no, estab,szadrsdesc from szadrs where u_coddest=4799
20250312@162929.6052 lmovdr9srrh84r0hvtic8fbb0t Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501711 
20250312@162929.6487 lmovdr9srrh84r0hvtic8fbb0t Query : use flama_phc
20250312@162929.6490 lmovdr9srrh84r0hvtic8fbb0t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@162929.6523 lmovdr9srrh84r0hvtic8fbb0t Query : use flama_phc
20250312@162929.6526 lmovdr9srrh84r0hvtic8fbb0t Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@162929.6575 lmovdr9srrh84r0hvtic8fbb0t Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@162929.6599 lmovdr9srrh84r0hvtic8fbb0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5879';
20250312@162929.6651 lmovdr9srrh84r0hvtic8fbb0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5879';
20250312@162929.7218 5qe5f51e950vjpu5qhgfelgm6o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@162929.7228 5qe5f51e950vjpu5qhgfelgm6o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@162929.7304 5qe5f51e950vjpu5qhgfelgm6o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5880';
20250312@162929.7379 5qe5f51e950vjpu5qhgfelgm6o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5880';
20250312@162929.7482 5qe5f51e950vjpu5qhgfelgm6o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5880';
20250312@162929.7527 5qe5f51e950vjpu5qhgfelgm6o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5880';
20250312@162929.7594 5qe5f51e950vjpu5qhgfelgm6o Query : use flama_phc
20250312@162929.7597 5qe5f51e950vjpu5qhgfelgm6o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@162929.7658 5qe5f51e950vjpu5qhgfelgm6o Query : use flama_phc
20250312@162929.7661 5qe5f51e950vjpu5qhgfelgm6o Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250312@162929.7770 5qe5f51e950vjpu5qhgfelgm6o Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501712 
20250312@162929.8229 5qe5f51e950vjpu5qhgfelgm6o Query : use flama_phc
20250312@162929.8232 5qe5f51e950vjpu5qhgfelgm6o Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@162929.8263 5qe5f51e950vjpu5qhgfelgm6o Query : use flama_phc
20250312@162929.8280 5qe5f51e950vjpu5qhgfelgm6o Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@162929.8297 5qe5f51e950vjpu5qhgfelgm6o Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@162929.8318 5qe5f51e950vjpu5qhgfelgm6o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5880';
20250312@162929.8365 5qe5f51e950vjpu5qhgfelgm6o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5880';
20250312@162929.8852 r15pa087eljv3o5eq5i52fhp9g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@162929.8864 r15pa087eljv3o5eq5i52fhp9g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@162929.8942 r15pa087eljv3o5eq5i52fhp9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5881';
20250312@162929.9021 r15pa087eljv3o5eq5i52fhp9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5881';
20250312@162929.9092 r15pa087eljv3o5eq5i52fhp9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5881';
20250312@162929.9135 r15pa087eljv3o5eq5i52fhp9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5881';
20250312@162930.5900 mb87oe7bib9pbp4geoatnve16b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@162930.7100 mb87oe7bib9pbp4geoatnve16b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@162930.1404 mb87oe7bib9pbp4geoatnve16b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5882';
20250312@162930.1481 mb87oe7bib9pbp4geoatnve16b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5882';
20250312@162930.1613 mb87oe7bib9pbp4geoatnve16b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5882';
20250312@162930.1691 mb87oe7bib9pbp4geoatnve16b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5882';
20250312@162930.1754 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162930.1757 mb87oe7bib9pbp4geoatnve16b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@162930.1818 mb87oe7bib9pbp4geoatnve16b Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20250312@162930.1916 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20250312@162930.2051 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.948.00.01' and bi.lordem =10000
20250312@162930.2417 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031163546,309000001 ' 
20250312@162930.2722 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4901.00.1'
20250312@162930.2831 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.4901.00.1' and bi.lordem =20000
20250312@162930.3194 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031163996,725000002 ' 
20250312@162930.3515 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5500.00.1'
20250312@162930.3626 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.5500.00.1' and bi.lordem =30000
20250312@162930.3998 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031164217,571000003 ' 
20250312@162930.4549 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9902.00.1'
20250312@162930.4662 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='328.9902.00.1' and bi.lordem =40000
20250312@162930.5124 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031164231,505000004 ' 
20250312@162930.5471 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2231.00.2'
20250312@162930.5583 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.2231.00.2' and bi.lordem =50000
20250312@162930.5917 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031164321,196000005 ' 
20250312@162930.6255 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20250312@162930.6363 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.988.00.01' and bi.lordem =60000
20250312@162930.6706 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031164366,031000006 ' 
20250312@162930.7050 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2907.00.1'
20250312@162930.7155 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.2907.00.1' and bi.lordem =70000
20250312@162930.7500 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031164457,887000007 ' 
20250312@162930.7840 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20250312@162930.8019 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.692.00.01' and bi.lordem =80000
20250312@162930.8461 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031164475,739000008 ' 
20250312@162930.8907 mb87oe7bib9pbp4geoatnve16b Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20250312@162930.8929 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000012 and bi.ref ='324.692.00.01' and bi.lordem =80000
20250312@162930.8952 mb87oe7bib9pbp4geoatnve16b 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 = 'pll25031164475,739000008 ' 
20250312@162930.8991 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162930.8995 mb87oe7bib9pbp4geoatnve16b Query : select top 1 1 valor from ts where ts.ndos = 5
20250312@162930.9129 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162930.9134 mb87oe7bib9pbp4geoatnve16b 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')
20250312@162930.9238 mb87oe7bib9pbp4geoatnve16b Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20250312@162930.9483 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162930.9488 mb87oe7bib9pbp4geoatnve16b Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20250312@162930.9629 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162930.9634 mb87oe7bib9pbp4geoatnve16b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@162930.9713 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162930.9718 mb87oe7bib9pbp4geoatnve16b Query : select szadrsstamp valor from szadrs where szadrsdesc='flama-fab.louÇas e electrodomesticos,sa'
20250312@162930.9780 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162930.9783 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from ts where ndos = 5
20250312@162930.9880 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.2450 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20250312@162931.3450 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.3630 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20250312@162931.3730 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.3870 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20250312@162931.3980 mb87oe7bib9pbp4geoatnve16b Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20250312@162931.5130 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250312@162931.6220 mb87oe7bib9pbp4geoatnve16b Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250312@162931.8560 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.8630 mb87oe7bib9pbp4geoatnve16b Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100999' and estab=0
20250312@162931.9810 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.9970 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20250312@162931.1036 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d1b3405767d1b66b14',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250312@162931.1129 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.1152 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20250312@162931.1167 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut67d1b3405767d1b66b14','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20250312','16:59',?,?)
20250312@162931.1553 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.1573 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20250312@162931.1592 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut67d1b3405767d1b66b14','trf entre armazéns a','2025-03-12',5,105,?,?,?,?,?,?,?,?,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',?)
20250312@162931.2328 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.2332 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20250312@162931.2478 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.2481 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.948.00.01'
20250312@162931.2599 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.2605 mb87oe7bib9pbp4geoatnve16b Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.948.00.01' and sa.armazem = 133 
20250312@162931.2810 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.2814 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.948.00.01'
20250312@162931.2846 mb87oe7bib9pbp4geoatnve16b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20250312@162931.3004 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.3026 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.3042 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.3059 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.3069 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2400703100a'
20250312@162931.3140 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162931.3219 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.3237 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.3252 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b1293267d1b66b4e','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.3608 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.3627 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.3646 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b1293267d1b66b4e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,30.1*4.000,30.1*4.000*200.48 ,11.700000,11.700000*200.48 ,11.700000,11.700000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,30.1,30.1*200.48,30.1*4.000,30.1*4.000*200.48,'pll25031163546,309000001 ',30.1,30.1*4.000,30.1,30.1*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.4152 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.4157 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.4901.00.1'
20250312@162931.4173 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.4176 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.4901.00.1'
20250312@162931.4229 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.4233 mb87oe7bib9pbp4geoatnve16b 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.4901.00.1' and sa.armazem = 133 
20250312@162931.4310 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.4313 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.4901.00.1'
20250312@162931.4331 mb87oe7bib9pbp4geoatnve16b 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.4901.00.1'
20250312@162931.4496 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.4515 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.4641 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.4825 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.4836 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.4901.00.1' and lote = 'r2300206200a'
20250312@162931.4874 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162931.4889 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.4908 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.4924 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b6530867d1b66b77','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.5138 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.5191 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.5213 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b6530867d1b66b77',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,25.6,25.6*200.48,25.6,25.6*200.48 ,0,0,'un ','' ,bo.marcada,1 ,25.6*4.000,25.6*4.000*200.48 ,12.957000,12.957000*200.48 ,12.957000,12.957000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.6,25.6*200.48,25.6*4.000,25.6*4.000*200.48,'pll25031163996,725000002 ',25.6,25.6*4.000,25.6,25.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.5558 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.5563 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20250312@162931.5581 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.5584 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20250312@162931.5601 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.5604 mb87oe7bib9pbp4geoatnve16b 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.5500.00.1' and sa.armazem = 133 
20250312@162931.5692 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.5696 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20250312@162931.5735 mb87oe7bib9pbp4geoatnve16b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5500.00.1'
20250312@162931.5910 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.5926 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.5941 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.5958 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.5967 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2401058200a'
20250312@162931.5982 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162931.5998 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.6015 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.6029 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b1099967d1b66b92','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.6190 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.6249 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.6267 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b1099967d1b66b92',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,64,64*200.48,64,64*200.48 ,0,0,'un ','' ,bo.marcada,1 ,64*6.000,64*6.000*200.48 ,23.873000,23.873000*200.48 ,23.873000,23.873000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*6.000,64*6.000*200.48,'pll25031164217,571000003 ',64,64*6.000,64,64*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.6567 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.6571 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20250312@162931.6587 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.6590 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '328.9902.00.1'
20250312@162931.6680 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.6683 mb87oe7bib9pbp4geoatnve16b Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '328.9902.00.1' and sa.armazem = 133 
20250312@162931.6773 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.6776 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '328.9902.00.1'
20250312@162931.6830 mb87oe7bib9pbp4geoatnve16b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9902.00.1'
20250312@162931.6992 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.7015 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.7028 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.7043 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.7052 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2401260200a'
20250312@162931.7065 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162931.7076 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.7162 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.7244 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b4150767d1b66bac','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.7420 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.7440 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.7458 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b4150767d1b66bac',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,352,352*200.48,352,352*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,352*2.000,352*2.000*200.48 ,167.986000,167.986000*200.48 ,167.986000,167.986000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,352,352*200.48,352*2.000,352*2.000*200.48,'pll25031164231,505000004 ',352,352*2.000,352,352*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.7745 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.7750 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.2231.00.2'
20250312@162931.7795 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.7798 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.2231.00.2'
20250312@162931.7815 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.7818 mb87oe7bib9pbp4geoatnve16b 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.2231.00.2' and sa.armazem = 133 
20250312@162931.7888 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.7891 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.2231.00.2'
20250312@162931.7915 mb87oe7bib9pbp4geoatnve16b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2231.00.2'
20250312@162931.8058 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.8075 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.8089 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.8104 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.8113 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.2231.00.2' and lote = 'r2401062400a'
20250312@162931.8133 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162931.8145 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.8191 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.8203 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b9831367d1b66bc6','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.8362 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.8384 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.8402 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b9831367d1b66bc6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,38.4,38.4*200.48,38.4,38.4*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,38.4*8.000,38.4*8.000*200.48 ,11.192000,11.192000*200.48 ,11.192000,11.192000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,38.4,38.4*200.48,38.4*8.000,38.4*8.000*200.48,'pll25031164321,196000005 ',38.4,38.4*8.000,38.4,38.4*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.8726 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.8730 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20250312@162931.8746 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.8749 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.988.00.01'
20250312@162931.8766 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.8768 mb87oe7bib9pbp4geoatnve16b 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.988.00.01' and sa.armazem = 133 
20250312@162931.8839 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.8842 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.988.00.01'
20250312@162931.8869 mb87oe7bib9pbp4geoatnve16b 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'
20250312@162931.9032 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.9049 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.9064 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.9079 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.9090 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2401038200a'
20250312@162931.9105 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162931.9119 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.9163 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162931.9176 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b1615967d1b66bde','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.9336 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.9358 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162931.9377 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b1615967d1b66bde',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*4.000,32*4.000*200.48 ,10.652000,10.652000*200.48 ,10.652000,10.652000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*4.000,32*4.000*200.48,'pll25031164366,031000006 ',32,32*4.000,32,32*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162931.9684 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.9689 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20250312@162931.9705 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.9708 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.2907.00.1'
20250312@162931.9725 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.9728 mb87oe7bib9pbp4geoatnve16b 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.2907.00.1' and sa.armazem = 133 
20250312@162931.9813 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162931.9817 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.2907.00.1'
20250312@162931.9837 mb87oe7bib9pbp4geoatnve16b Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2907.00.1'
20250312@162931.9979 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162931.9997 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162932.1100 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.2900 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162932.3900 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20250312@162932.8900 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162932.1040 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.1200 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162932.1330 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b5702067d1b66c02','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162932.2890 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.3110 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162932.3280 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b5702067d1b66c02',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,70000 ,12.8,12.8*200.48,12.8,12.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,12.8*8.000,12.8*8.000*200.48 ,3.998000,3.998000*200.48 ,3.998000,3.998000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,12.8,12.8*200.48,12.8*8.000,12.8*8.000*200.48,'pll25031164457,887000007 ',12.8,12.8*8.000,12.8,12.8*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162932.6380 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.6440 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20250312@162932.6600 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.6630 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.692.00.01'
20250312@162932.6910 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.6950 mb87oe7bib9pbp4geoatnve16b 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.692.00.01' and sa.armazem = 133 
20250312@162932.7750 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.7780 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.692.00.01'
20250312@162932.8080 mb87oe7bib9pbp4geoatnve16b 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.692.00.01'
20250312@162932.9580 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.9760 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162932.9900 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.1006 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162932.1015 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400837300a'
20250312@162932.1029 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162932.1042 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.1126 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162932.1140 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b6105867d1b66c19','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162932.1297 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.1317 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162932.1334 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b6105867d1b66c19',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,80000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*3.000,96*3.000*200.48 ,31.886000,31.886000*200.48 ,31.886000,31.886000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*3.000,96*3.000*200.48,'pll25031164475,739000008 ',96,96*3.000,96,96*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162932.1977 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.2059 mb87oe7bib9pbp4geoatnve16b Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20250312@162932.2555 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.2637 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.692.00.01'
20250312@162932.2799 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.2803 mb87oe7bib9pbp4geoatnve16b 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.692.00.01' and sa.armazem = 133 
20250312@162932.2828 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.2831 mb87oe7bib9pbp4geoatnve16b Query : select st.stns valor from st where st.ref = '324.692.00.01'
20250312@162932.2849 mb87oe7bib9pbp4geoatnve16b 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.692.00.01'
20250312@162932.2863 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.2880 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162932.2893 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.2908 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162932.2918 mb87oe7bib9pbp4geoatnve16b Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400837300a'
20250312@162932.2962 mb87oe7bib9pbp4geoatnve16b Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@162932.2974 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.3020 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250312@162932.3031 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1b4433267d1b66c48','aut67d1b3405767d1b66b14',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162932.3195 mb87oe7bib9pbp4geoatnve16b Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@162932.3216 mb87oe7bib9pbp4geoatnve16b Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250312@162932.3238 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d1b4433267d1b66c48',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 7.000, 7.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,90000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*7.000,96*7.000*200.48 ,31.886000,31.886000*200.48 ,31.886000,31.886000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*7.000,96*7.000*200.48,'pll25031164475,739000008 ',96,96*7.000,96,96*7.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d1b3405767d1b66b14'
20250312@162932.3524 mb87oe7bib9pbp4geoatnve16b Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut67d1b3405767d1b66b14','','wait',5,'adm12071144683,938000003','')
20250312@162932.3630 mb87oe7bib9pbp4geoatnve16b Query : use flama_phc
20250312@162932.3633 mb87oe7bib9pbp4geoatnve16b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@162932.3695 mb87oe7bib9pbp4geoatnve16b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5882';
20250312@162932.3742 mb87oe7bib9pbp4geoatnve16b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5882';
20250312@163609.5545 oddd8niifij8gvlm9fv8nl409g Query : use flama_phc
20250312@163609.5549 oddd8niifij8gvlm9fv8nl409g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@163609.6073 oddd8niifij8gvlm9fv8nl409g Query : use flama_phc
20250312@163609.6087 oddd8niifij8gvlm9fv8nl409g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@171737.8151 1nn99imogolmomqvja709pamps Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@171737.8163 1nn99imogolmomqvja709pamps Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@171737.8283 1nn99imogolmomqvja709pamps Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5883';
20250312@171737.8401 1nn99imogolmomqvja709pamps Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5883';
20250312@171737.8509 1nn99imogolmomqvja709pamps Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5883';
20250312@171737.8562 1nn99imogolmomqvja709pamps Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5883';
20250312@171737.8680 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171737.8684 1nn99imogolmomqvja709pamps Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@171737.8748 1nn99imogolmomqvja709pamps Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20250312@171737.8799 1nn99imogolmomqvja709pamps 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 = 2401242 and bi.ref ='324.988.00.01' and bi.lordem =30000
20250312@171737.9334 1nn99imogolmomqvja709pamps 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 = 'cps24103034062,205000003 ' 
20250312@171737.9815 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171737.9819 1nn99imogolmomqvja709pamps Query : select top 1 1 valor from ts where ts.ndos = 61
20250312@171737.9942 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171737.9945 1nn99imogolmomqvja709pamps 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')
20250312@171737.9986 1nn99imogolmomqvja709pamps 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
20250312@171738.2060 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171738.2090 1nn99imogolmomqvja709pamps Query : select top 1 ~inactivo valor from fl where no = '202383' and estab = 00 order by inactivo desc
20250312@171738.4510 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171738.4550 1nn99imogolmomqvja709pamps Query : select 1 valor from ts where ndos = 61
20250312@171738.4700 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171738.4960 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250312@171738.5680 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171738.5850 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250312@171738.5940 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171738.6090 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250312@171738.6180 1nn99imogolmomqvja709pamps 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
20250312@171738.8660 1nn99imogolmomqvja709pamps Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250312@171738.1010 1nn99imogolmomqvja709pamps Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250312@171738.1224 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171738.1264 1nn99imogolmomqvja709pamps Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202383' and estab=00
20250312@171738.1401 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171738.1421 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250312@171738.1437 1nn99imogolmomqvja709pamps Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d1c9816467d1c1b21d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250312@171738.1542 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171738.1584 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250312@171738.1598 1nn99imogolmomqvja709pamps Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d1c9816467d1c1b21d','--','bo',7.8555045871559633027 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250312@171738.1877 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171738.1904 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250312@171738.2025 1nn99imogolmomqvja709pamps 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 ('aut67d1c9816467d1c1b21d','guia r. fornecedor','2025-03-12',61,2500968,?,?,?,?,?,?,?,?,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')
20250312@171742.1820 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171742.1823 1nn99imogolmomqvja709pamps Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20250312@171742.1849 1nn99imogolmomqvja709pamps 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'
20250312@171742.1864 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171742.1881 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250312@171742.1896 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171742.1910 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250312@171742.1920 1nn99imogolmomqvja709pamps Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2401242300a'
20250312@171742.1933 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171742.1947 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250312@171742.1957 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171742.1973 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250312@171742.1987 1nn99imogolmomqvja709pamps Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d1c5108967d1c1b62f',?,?,'20250312',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250312@171742.2610 1nn99imogolmomqvja709pamps Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250312@171742.2626 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171742.2702 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250312@171742.2715 1nn99imogolmomqvja709pamps Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d1c0522467d1c1b640','aut67d1c9816467d1c1b21d',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 = 'aut67d1c9816467d1c1b21d'
20250312@171742.2913 1nn99imogolmomqvja709pamps Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250312@171742.2940 1nn99imogolmomqvja709pamps Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250312@171742.2960 1nn99imogolmomqvja709pamps 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 'aut67d1c0522467d1c1b640',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.72,8.72*200.48,8.72,8.72*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,8.72*2800,8.72*2800*200.48 ,10.652000,10.652000*200.48 ,10.652000,10.652000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.72,8.72*200.48,8.72*2800,8.72*2800*200.48,'cps24103034062,205000003 ',68.5,68.5*2800,68.5,68.5*2800,?,?,?,4 from bo bo where bo.bostamp = 'aut67d1c9816467d1c1b21d'
20250312@171802.2464 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171802.2470 1nn99imogolmomqvja709pamps Query : declare @bostamp varchar(25) = 'aut67d1c9816467d1c1b21d' ,@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 
20250312@171817.4756 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171817.4759 1nn99imogolmomqvja709pamps Query : select 1 valor from bo where bo.bostamp = 'aut67d1c9816467d1c1b21d'
20250312@171817.4861 1nn99imogolmomqvja709pamps 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) = 'aut67d1c9816467d1c1b21d' 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 
20250312@171819.7643 1nn99imogolmomqvja709pamps Query : use flama_phc
20250312@171819.7647 1nn99imogolmomqvja709pamps Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@171819.7705 1nn99imogolmomqvja709pamps Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5883';
20250312@171819.7759 1nn99imogolmomqvja709pamps Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5883';
20250312@171908.5744 3u8q48n1bf6rdp4i81h8rvkbto Query : use flama_phc
20250312@171908.5748 3u8q48n1bf6rdp4i81h8rvkbto Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@171908.5833 3u8q48n1bf6rdp4i81h8rvkbto Query : use flama_phc
20250312@171908.5836 3u8q48n1bf6rdp4i81h8rvkbto Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@173608.8667 an45mjv3o53q67lreqbs0h5662 Query : use flama_phc
20250312@173608.8671 an45mjv3o53q67lreqbs0h5662 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@173608.8786 an45mjv3o53q67lreqbs0h5662 Query : use flama_phc
20250312@173608.8790 an45mjv3o53q67lreqbs0h5662 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@174856.8628 nannq0g6tfn737e790bmjflmme Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174856.8642 nannq0g6tfn737e790bmjflmme Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174856.8770 nannq0g6tfn737e790bmjflmme Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5884';
20250312@174856.8891 nannq0g6tfn737e790bmjflmme Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5884';
20250312@174856.8999 nannq0g6tfn737e790bmjflmme Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5884';
20250312@174856.9058 nannq0g6tfn737e790bmjflmme Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5884';
20250312@174856.9150 nannq0g6tfn737e790bmjflmme Query : use flama_phc
20250312@174856.9154 nannq0g6tfn737e790bmjflmme Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174856.9228 nannq0g6tfn737e790bmjflmme Query : use flama_phc
20250312@174856.9233 nannq0g6tfn737e790bmjflmme Query : select no, estab,szadrsdesc from szadrs where u_coddest=2114
20250312@174856.9373 nannq0g6tfn737e790bmjflmme Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501713 
20250312@174856.9985 nannq0g6tfn737e790bmjflmme Query : use flama_phc
20250312@174856.9998 nannq0g6tfn737e790bmjflmme Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174857.4500 nannq0g6tfn737e790bmjflmme Query : use flama_phc
20250312@174857.4900 nannq0g6tfn737e790bmjflmme Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174857.7900 nannq0g6tfn737e790bmjflmme Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174857.1060 nannq0g6tfn737e790bmjflmme Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5884';
20250312@174857.1680 nannq0g6tfn737e790bmjflmme Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5884';
20250312@174857.8250 bbs5777bme5svq16f9f0onvs2f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174857.8380 bbs5777bme5svq16f9f0onvs2f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174857.9430 bbs5777bme5svq16f9f0onvs2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5885';
20250312@174857.1042 bbs5777bme5svq16f9f0onvs2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5885';
20250312@174857.1218 bbs5777bme5svq16f9f0onvs2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5885';
20250312@174857.1335 bbs5777bme5svq16f9f0onvs2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5885';
20250312@174857.1486 bbs5777bme5svq16f9f0onvs2f Query : use flama_phc
20250312@174857.1492 bbs5777bme5svq16f9f0onvs2f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174857.1588 bbs5777bme5svq16f9f0onvs2f Query : use flama_phc
20250312@174857.1593 bbs5777bme5svq16f9f0onvs2f Query : select no, estab,szadrsdesc from szadrs where u_coddest=1124
20250312@174857.1747 bbs5777bme5svq16f9f0onvs2f Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501715 
20250312@174857.2296 bbs5777bme5svq16f9f0onvs2f Query : use flama_phc
20250312@174857.2300 bbs5777bme5svq16f9f0onvs2f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174857.2351 bbs5777bme5svq16f9f0onvs2f Query : use flama_phc
20250312@174857.2403 bbs5777bme5svq16f9f0onvs2f Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174857.2425 bbs5777bme5svq16f9f0onvs2f Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174857.2452 bbs5777bme5svq16f9f0onvs2f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5885';
20250312@174857.2511 bbs5777bme5svq16f9f0onvs2f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5885';
20250312@174857.3205 5l17d6ji0jfmj14eskr9uv417b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174857.3221 5l17d6ji0jfmj14eskr9uv417b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174857.3324 5l17d6ji0jfmj14eskr9uv417b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5886';
20250312@174857.3423 5l17d6ji0jfmj14eskr9uv417b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5886';
20250312@174857.3560 5l17d6ji0jfmj14eskr9uv417b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5886';
20250312@174857.3639 5l17d6ji0jfmj14eskr9uv417b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5886';
20250312@174857.3739 5l17d6ji0jfmj14eskr9uv417b Query : use flama_phc
20250312@174857.3746 5l17d6ji0jfmj14eskr9uv417b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174857.3834 5l17d6ji0jfmj14eskr9uv417b Query : use flama_phc
20250312@174857.3838 5l17d6ji0jfmj14eskr9uv417b Query : select no, estab,szadrsdesc from szadrs where u_coddest=3155
20250312@174857.3904 5l17d6ji0jfmj14eskr9uv417b Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501716 
20250312@174857.4434 5l17d6ji0jfmj14eskr9uv417b Query : use flama_phc
20250312@174857.4439 5l17d6ji0jfmj14eskr9uv417b Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174857.4476 5l17d6ji0jfmj14eskr9uv417b Query : use flama_phc
20250312@174857.4480 5l17d6ji0jfmj14eskr9uv417b Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174857.4504 5l17d6ji0jfmj14eskr9uv417b Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174857.4540 5l17d6ji0jfmj14eskr9uv417b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5886';
20250312@174857.4607 5l17d6ji0jfmj14eskr9uv417b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5886';
20250312@174857.5328 ua5ikrk2bs81mo89kgvbqp3b74 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174857.5343 ua5ikrk2bs81mo89kgvbqp3b74 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174857.5466 ua5ikrk2bs81mo89kgvbqp3b74 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5887';
20250312@174857.5594 ua5ikrk2bs81mo89kgvbqp3b74 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5887';
20250312@174857.5776 ua5ikrk2bs81mo89kgvbqp3b74 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5887';
20250312@174857.5870 ua5ikrk2bs81mo89kgvbqp3b74 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5887';
20250312@174857.5991 ua5ikrk2bs81mo89kgvbqp3b74 Query : use flama_phc
20250312@174857.5995 ua5ikrk2bs81mo89kgvbqp3b74 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174857.6080 ua5ikrk2bs81mo89kgvbqp3b74 Query : use flama_phc
20250312@174857.6119 ua5ikrk2bs81mo89kgvbqp3b74 Query : select no, estab,szadrsdesc from szadrs where u_coddest=10191
20250312@174857.6233 ua5ikrk2bs81mo89kgvbqp3b74 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501717 
20250312@174857.7025 ua5ikrk2bs81mo89kgvbqp3b74 Query : use flama_phc
20250312@174857.7029 ua5ikrk2bs81mo89kgvbqp3b74 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174857.7065 ua5ikrk2bs81mo89kgvbqp3b74 Query : use flama_phc
20250312@174857.7068 ua5ikrk2bs81mo89kgvbqp3b74 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174857.7093 ua5ikrk2bs81mo89kgvbqp3b74 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174857.7120 ua5ikrk2bs81mo89kgvbqp3b74 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5887';
20250312@174857.8927 ua5ikrk2bs81mo89kgvbqp3b74 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5887';
20250312@174857.9631 fdb910dce1vs8oi6tphek04d0k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174857.9655 fdb910dce1vs8oi6tphek04d0k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174857.9764 fdb910dce1vs8oi6tphek04d0k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5888';
20250312@174857.9864 fdb910dce1vs8oi6tphek04d0k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5888';
20250312@174857.9971 fdb910dce1vs8oi6tphek04d0k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5888';
20250312@174858.1230 fdb910dce1vs8oi6tphek04d0k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5888';
20250312@174858.2270 fdb910dce1vs8oi6tphek04d0k Query : use flama_phc
20250312@174858.2320 fdb910dce1vs8oi6tphek04d0k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174858.3210 fdb910dce1vs8oi6tphek04d0k Query : use flama_phc
20250312@174858.3250 fdb910dce1vs8oi6tphek04d0k Query : select no, estab,szadrsdesc from szadrs where u_coddest=9486
20250312@174858.4390 fdb910dce1vs8oi6tphek04d0k Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501718 
20250312@174858.9920 fdb910dce1vs8oi6tphek04d0k Query : use flama_phc
20250312@174858.9970 fdb910dce1vs8oi6tphek04d0k Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174858.1031 fdb910dce1vs8oi6tphek04d0k Query : use flama_phc
20250312@174858.1035 fdb910dce1vs8oi6tphek04d0k Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174858.1063 fdb910dce1vs8oi6tphek04d0k Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174858.1097 fdb910dce1vs8oi6tphek04d0k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5888';
20250312@174858.1168 fdb910dce1vs8oi6tphek04d0k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5888';
20250312@174858.1787 fh2u625gm4lqrvdgudsjl4q5n7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174858.1800 fh2u625gm4lqrvdgudsjl4q5n7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174858.1904 fh2u625gm4lqrvdgudsjl4q5n7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5889';
20250312@174858.2047 fh2u625gm4lqrvdgudsjl4q5n7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5889';
20250312@174858.2179 fh2u625gm4lqrvdgudsjl4q5n7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5889';
20250312@174858.2297 fh2u625gm4lqrvdgudsjl4q5n7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5889';
20250312@174858.2417 fh2u625gm4lqrvdgudsjl4q5n7 Query : use flama_phc
20250312@174858.2423 fh2u625gm4lqrvdgudsjl4q5n7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174858.2563 fh2u625gm4lqrvdgudsjl4q5n7 Query : use flama_phc
20250312@174858.2568 fh2u625gm4lqrvdgudsjl4q5n7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=10025
20250312@174858.2703 fh2u625gm4lqrvdgudsjl4q5n7 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501719 
20250312@174858.3287 fh2u625gm4lqrvdgudsjl4q5n7 Query : use flama_phc
20250312@174858.3290 fh2u625gm4lqrvdgudsjl4q5n7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174858.3328 fh2u625gm4lqrvdgudsjl4q5n7 Query : use flama_phc
20250312@174858.3372 fh2u625gm4lqrvdgudsjl4q5n7 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174858.3429 fh2u625gm4lqrvdgudsjl4q5n7 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174858.3464 fh2u625gm4lqrvdgudsjl4q5n7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5889';
20250312@174858.3526 fh2u625gm4lqrvdgudsjl4q5n7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5889';
20250312@174858.4173 sagkl47rvn09eu4qsvd9gksnvq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174858.4186 sagkl47rvn09eu4qsvd9gksnvq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174858.4300 sagkl47rvn09eu4qsvd9gksnvq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5890';
20250312@174858.4386 sagkl47rvn09eu4qsvd9gksnvq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5890';
20250312@174858.4477 sagkl47rvn09eu4qsvd9gksnvq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5890';
20250312@174858.4553 sagkl47rvn09eu4qsvd9gksnvq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5890';
20250312@174858.4694 sagkl47rvn09eu4qsvd9gksnvq Query : use flama_phc
20250312@174858.4698 sagkl47rvn09eu4qsvd9gksnvq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174858.4785 sagkl47rvn09eu4qsvd9gksnvq Query : use flama_phc
20250312@174858.4790 sagkl47rvn09eu4qsvd9gksnvq Query : select no, estab,szadrsdesc from szadrs where u_coddest=832
20250312@174858.4944 sagkl47rvn09eu4qsvd9gksnvq Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501720 
20250312@174858.5421 sagkl47rvn09eu4qsvd9gksnvq Query : use flama_phc
20250312@174858.5426 sagkl47rvn09eu4qsvd9gksnvq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174858.5463 sagkl47rvn09eu4qsvd9gksnvq Query : use flama_phc
20250312@174858.5467 sagkl47rvn09eu4qsvd9gksnvq Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174858.5502 sagkl47rvn09eu4qsvd9gksnvq Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174858.5579 sagkl47rvn09eu4qsvd9gksnvq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5890';
20250312@174858.5660 sagkl47rvn09eu4qsvd9gksnvq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5890';
20250312@174858.6343 a63nc0r87k06nq1sjp3hdud8kb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174858.6356 a63nc0r87k06nq1sjp3hdud8kb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174858.6497 a63nc0r87k06nq1sjp3hdud8kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5891';
20250312@174858.6598 a63nc0r87k06nq1sjp3hdud8kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5891';
20250312@174858.6713 a63nc0r87k06nq1sjp3hdud8kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5891';
20250312@174858.6774 a63nc0r87k06nq1sjp3hdud8kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5891';
20250312@174858.6879 a63nc0r87k06nq1sjp3hdud8kb Query : use flama_phc
20250312@174858.6883 a63nc0r87k06nq1sjp3hdud8kb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174858.7165 a63nc0r87k06nq1sjp3hdud8kb Query : use flama_phc
20250312@174858.7169 a63nc0r87k06nq1sjp3hdud8kb Query : select no, estab,szadrsdesc from szadrs where u_coddest=489
20250312@174858.7308 a63nc0r87k06nq1sjp3hdud8kb Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501721 
20250312@174858.7831 a63nc0r87k06nq1sjp3hdud8kb Query : use flama_phc
20250312@174858.7835 a63nc0r87k06nq1sjp3hdud8kb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174858.7889 a63nc0r87k06nq1sjp3hdud8kb Query : use flama_phc
20250312@174858.7894 a63nc0r87k06nq1sjp3hdud8kb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174858.7916 a63nc0r87k06nq1sjp3hdud8kb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174858.7980 a63nc0r87k06nq1sjp3hdud8kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5891';
20250312@174858.8054 a63nc0r87k06nq1sjp3hdud8kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5891';
20250312@174858.9081 iadhh9dn3talqi2kkffajsucou Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174858.9093 iadhh9dn3talqi2kkffajsucou Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174858.9212 iadhh9dn3talqi2kkffajsucou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5892';
20250312@174858.9314 iadhh9dn3talqi2kkffajsucou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5892';
20250312@174858.9418 iadhh9dn3talqi2kkffajsucou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5892';
20250312@174858.9548 iadhh9dn3talqi2kkffajsucou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5892';
20250312@174859.8260 iadhh9dn3talqi2kkffajsucou Query : use flama_phc
20250312@174859.8310 iadhh9dn3talqi2kkffajsucou Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174859.9440 iadhh9dn3talqi2kkffajsucou Query : use flama_phc
20250312@174859.9480 iadhh9dn3talqi2kkffajsucou Query : select no, estab,szadrsdesc from szadrs where u_coddest=672
20250312@174859.1065 iadhh9dn3talqi2kkffajsucou Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501722 
20250312@174859.1709 iadhh9dn3talqi2kkffajsucou Query : use flama_phc
20250312@174859.1713 iadhh9dn3talqi2kkffajsucou Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174859.1754 iadhh9dn3talqi2kkffajsucou Query : use flama_phc
20250312@174859.1757 iadhh9dn3talqi2kkffajsucou Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174859.1776 iadhh9dn3talqi2kkffajsucou Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174859.1801 iadhh9dn3talqi2kkffajsucou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5892';
20250312@174859.1862 iadhh9dn3talqi2kkffajsucou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5892';
20250312@174859.2569 6al0665h8thqef4p3uq3ltso9f Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174859.2587 6al0665h8thqef4p3uq3ltso9f Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174859.2701 6al0665h8thqef4p3uq3ltso9f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5893';
20250312@174859.2807 6al0665h8thqef4p3uq3ltso9f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5893';
20250312@174859.2929 6al0665h8thqef4p3uq3ltso9f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5893';
20250312@174859.3004 6al0665h8thqef4p3uq3ltso9f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5893';
20250312@174859.3162 6al0665h8thqef4p3uq3ltso9f Query : use flama_phc
20250312@174859.3172 6al0665h8thqef4p3uq3ltso9f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174859.3278 6al0665h8thqef4p3uq3ltso9f Query : use flama_phc
20250312@174859.3282 6al0665h8thqef4p3uq3ltso9f Query : select no, estab,szadrsdesc from szadrs where u_coddest=2498
20250312@174859.3438 6al0665h8thqef4p3uq3ltso9f Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501723 
20250312@174859.4115 6al0665h8thqef4p3uq3ltso9f Query : use flama_phc
20250312@174859.4119 6al0665h8thqef4p3uq3ltso9f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174859.4257 6al0665h8thqef4p3uq3ltso9f Query : use flama_phc
20250312@174859.4263 6al0665h8thqef4p3uq3ltso9f Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174859.4320 6al0665h8thqef4p3uq3ltso9f Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174859.4395 6al0665h8thqef4p3uq3ltso9f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5893';
20250312@174859.4490 6al0665h8thqef4p3uq3ltso9f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5893';
20250312@174859.5795 k34h6l6upemh9i9ghtsq7a8n3m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174859.6062 k34h6l6upemh9i9ghtsq7a8n3m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174859.6784 k34h6l6upemh9i9ghtsq7a8n3m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5894';
20250312@174859.6957 k34h6l6upemh9i9ghtsq7a8n3m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5894';
20250312@174859.7364 k34h6l6upemh9i9ghtsq7a8n3m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5894';
20250312@174859.7467 k34h6l6upemh9i9ghtsq7a8n3m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5894';
20250312@174859.8213 k34h6l6upemh9i9ghtsq7a8n3m Query : use flama_phc
20250312@174859.8235 k34h6l6upemh9i9ghtsq7a8n3m Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174859.8570 k34h6l6upemh9i9ghtsq7a8n3m Query : use flama_phc
20250312@174859.8577 k34h6l6upemh9i9ghtsq7a8n3m Query : select no, estab,szadrsdesc from szadrs where u_coddest=2119
20250312@174859.8718 k34h6l6upemh9i9ghtsq7a8n3m Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501724 
20250312@174859.9252 k34h6l6upemh9i9ghtsq7a8n3m Query : use flama_phc
20250312@174859.9257 k34h6l6upemh9i9ghtsq7a8n3m Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174859.9297 k34h6l6upemh9i9ghtsq7a8n3m Query : use flama_phc
20250312@174859.9300 k34h6l6upemh9i9ghtsq7a8n3m Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174859.9321 k34h6l6upemh9i9ghtsq7a8n3m Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174859.9353 k34h6l6upemh9i9ghtsq7a8n3m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5894';
20250312@174859.9429 k34h6l6upemh9i9ghtsq7a8n3m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5894';
20250312@174900.1250 jisqmg9b52dc0r57vsh4eo4au7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174900.1380 jisqmg9b52dc0r57vsh4eo4au7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174900.2590 jisqmg9b52dc0r57vsh4eo4au7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5895';
20250312@174900.3580 jisqmg9b52dc0r57vsh4eo4au7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5895';
20250312@174900.4700 jisqmg9b52dc0r57vsh4eo4au7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5895';
20250312@174900.5460 jisqmg9b52dc0r57vsh4eo4au7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5895';
20250312@174900.6910 jisqmg9b52dc0r57vsh4eo4au7 Query : use flama_phc
20250312@174900.6990 jisqmg9b52dc0r57vsh4eo4au7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174900.1106 jisqmg9b52dc0r57vsh4eo4au7 Query : use flama_phc
20250312@174900.1113 jisqmg9b52dc0r57vsh4eo4au7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3168
20250312@174900.1315 jisqmg9b52dc0r57vsh4eo4au7 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501725 
20250312@174900.2077 jisqmg9b52dc0r57vsh4eo4au7 Query : use flama_phc
20250312@174900.2084 jisqmg9b52dc0r57vsh4eo4au7 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174900.2170 jisqmg9b52dc0r57vsh4eo4au7 Query : use flama_phc
20250312@174900.2176 jisqmg9b52dc0r57vsh4eo4au7 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174900.2199 jisqmg9b52dc0r57vsh4eo4au7 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174900.2227 jisqmg9b52dc0r57vsh4eo4au7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5895';
20250312@174900.2315 jisqmg9b52dc0r57vsh4eo4au7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5895';
20250312@174900.3036 appd33lclcqc2559ivei21en2n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174900.3055 appd33lclcqc2559ivei21en2n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174900.3174 appd33lclcqc2559ivei21en2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5896';
20250312@174900.3282 appd33lclcqc2559ivei21en2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5896';
20250312@174900.3382 appd33lclcqc2559ivei21en2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5896';
20250312@174900.3462 appd33lclcqc2559ivei21en2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5896';
20250312@174900.3591 appd33lclcqc2559ivei21en2n Query : use flama_phc
20250312@174900.3595 appd33lclcqc2559ivei21en2n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174900.3681 appd33lclcqc2559ivei21en2n Query : use flama_phc
20250312@174900.3686 appd33lclcqc2559ivei21en2n Query : select no, estab,szadrsdesc from szadrs where u_coddest=2121
20250312@174900.3812 appd33lclcqc2559ivei21en2n Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501726 
20250312@174900.5620 appd33lclcqc2559ivei21en2n Query : use flama_phc
20250312@174900.5626 appd33lclcqc2559ivei21en2n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174900.5713 appd33lclcqc2559ivei21en2n Query : use flama_phc
20250312@174900.5717 appd33lclcqc2559ivei21en2n Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174900.5738 appd33lclcqc2559ivei21en2n Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174900.5764 appd33lclcqc2559ivei21en2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5896';
20250312@174900.5833 appd33lclcqc2559ivei21en2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5896';
20250312@174900.6515 iuas00d6l29kt6uknd98k6e666 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174900.6530 iuas00d6l29kt6uknd98k6e666 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174900.6640 iuas00d6l29kt6uknd98k6e666 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5897';
20250312@174900.6734 iuas00d6l29kt6uknd98k6e666 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5897';
20250312@174900.6830 iuas00d6l29kt6uknd98k6e666 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5897';
20250312@174900.6890 iuas00d6l29kt6uknd98k6e666 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5897';
20250312@174900.7003 iuas00d6l29kt6uknd98k6e666 Query : use flama_phc
20250312@174900.7006 iuas00d6l29kt6uknd98k6e666 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174900.7081 iuas00d6l29kt6uknd98k6e666 Query : use flama_phc
20250312@174900.7086 iuas00d6l29kt6uknd98k6e666 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2821
20250312@174900.7196 iuas00d6l29kt6uknd98k6e666 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501727 
20250312@174900.7955 iuas00d6l29kt6uknd98k6e666 Query : use flama_phc
20250312@174900.7960 iuas00d6l29kt6uknd98k6e666 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174900.7997 iuas00d6l29kt6uknd98k6e666 Query : use flama_phc
20250312@174900.8000 iuas00d6l29kt6uknd98k6e666 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174900.8017 iuas00d6l29kt6uknd98k6e666 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174900.8045 iuas00d6l29kt6uknd98k6e666 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5897';
20250312@174900.8106 iuas00d6l29kt6uknd98k6e666 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5897';
20250312@174900.8737 g1m2oc319q8tk23ukqqaheou64 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174900.8750 g1m2oc319q8tk23ukqqaheou64 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174900.8864 g1m2oc319q8tk23ukqqaheou64 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5898';
20250312@174900.8957 g1m2oc319q8tk23ukqqaheou64 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5898';
20250312@174900.9042 g1m2oc319q8tk23ukqqaheou64 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5898';
20250312@174900.9117 g1m2oc319q8tk23ukqqaheou64 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5898';
20250312@174900.9213 g1m2oc319q8tk23ukqqaheou64 Query : use flama_phc
20250312@174900.9217 g1m2oc319q8tk23ukqqaheou64 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174900.9345 g1m2oc319q8tk23ukqqaheou64 Query : use flama_phc
20250312@174900.9351 g1m2oc319q8tk23ukqqaheou64 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2214
20250312@174900.9507 g1m2oc319q8tk23ukqqaheou64 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501728 
20250312@174900.9986 g1m2oc319q8tk23ukqqaheou64 Query : use flama_phc
20250312@174900.9990 g1m2oc319q8tk23ukqqaheou64 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174901.3700 g1m2oc319q8tk23ukqqaheou64 Query : use flama_phc
20250312@174901.4100 g1m2oc319q8tk23ukqqaheou64 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174901.5900 g1m2oc319q8tk23ukqqaheou64 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174901.2990 g1m2oc319q8tk23ukqqaheou64 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5898';
20250312@174901.3760 g1m2oc319q8tk23ukqqaheou64 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5898';
20250312@174901.2057 lsk5gihibci37igqj06pms3ige Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174901.2143 lsk5gihibci37igqj06pms3ige Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174901.2608 lsk5gihibci37igqj06pms3ige Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5899';
20250312@174901.2715 lsk5gihibci37igqj06pms3ige Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5899';
20250312@174901.2860 lsk5gihibci37igqj06pms3ige Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5899';
20250312@174901.2935 lsk5gihibci37igqj06pms3ige Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5899';
20250312@174901.3077 lsk5gihibci37igqj06pms3ige Query : use flama_phc
20250312@174901.3081 lsk5gihibci37igqj06pms3ige Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174901.3167 lsk5gihibci37igqj06pms3ige Query : use flama_phc
20250312@174901.3170 lsk5gihibci37igqj06pms3ige Query : select no, estab,szadrsdesc from szadrs where u_coddest=4790
20250312@174901.3303 lsk5gihibci37igqj06pms3ige Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501729 
20250312@174901.3848 lsk5gihibci37igqj06pms3ige Query : use flama_phc
20250312@174901.3855 lsk5gihibci37igqj06pms3ige Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174901.3918 lsk5gihibci37igqj06pms3ige Query : use flama_phc
20250312@174901.3923 lsk5gihibci37igqj06pms3ige Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174901.3953 lsk5gihibci37igqj06pms3ige Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174901.4008 lsk5gihibci37igqj06pms3ige Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5899';
20250312@174901.4103 lsk5gihibci37igqj06pms3ige Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5899';
20250312@174901.4839 25nid0s9gli6ec8qa4t6cccipb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250312@174901.4852 25nid0s9gli6ec8qa4t6cccipb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250312@174901.4970 25nid0s9gli6ec8qa4t6cccipb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5900';
20250312@174901.5087 25nid0s9gli6ec8qa4t6cccipb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5900';
20250312@174901.5203 25nid0s9gli6ec8qa4t6cccipb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5900';
20250312@174901.5279 25nid0s9gli6ec8qa4t6cccipb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5900';
20250312@174901.5401 25nid0s9gli6ec8qa4t6cccipb Query : use flama_phc
20250312@174901.5405 25nid0s9gli6ec8qa4t6cccipb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250312@174901.5508 25nid0s9gli6ec8qa4t6cccipb Query : use flama_phc
20250312@174901.5512 25nid0s9gli6ec8qa4t6cccipb Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250312@174901.5575 25nid0s9gli6ec8qa4t6cccipb Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2017 and bo.obrano = 2501730 
20250312@174901.7694 25nid0s9gli6ec8qa4t6cccipb Query : use flama_phc
20250312@174901.7699 25nid0s9gli6ec8qa4t6cccipb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250312@174901.7743 25nid0s9gli6ec8qa4t6cccipb Query : use flama_phc
20250312@174901.7748 25nid0s9gli6ec8qa4t6cccipb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250312@174901.7787 25nid0s9gli6ec8qa4t6cccipb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250312@174901.7976 25nid0s9gli6ec8qa4t6cccipb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5900';
20250312@174901.8100 25nid0s9gli6ec8qa4t6cccipb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5900';
20250312@181908.3886 h7t26tva1n5fc90j2d1qjv60tr Query : use flama_phc
20250312@181908.3890 h7t26tva1n5fc90j2d1qjv60tr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@181908.3978 h7t26tva1n5fc90j2d1qjv60tr Query : use flama_phc
20250312@181908.3981 h7t26tva1n5fc90j2d1qjv60tr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@183608.8188 395fos6r919hcgh438nrp88v3a Query : use flama_phc
20250312@183608.8193 395fos6r919hcgh438nrp88v3a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@183608.8294 395fos6r919hcgh438nrp88v3a Query : use flama_phc
20250312@183608.8298 395fos6r919hcgh438nrp88v3a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@191909.6875 aiui819eulv6hdrfmj4sp41hmr Query : use flama_phc
20250312@191909.6879 aiui819eulv6hdrfmj4sp41hmr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@191909.6970 aiui819eulv6hdrfmj4sp41hmr Query : use flama_phc
20250312@191909.6974 aiui819eulv6hdrfmj4sp41hmr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@193610.2350 313ucdbcsbc17og8dg24u5fq1b Query : use flama_phc
20250312@193610.2390 313ucdbcsbc17og8dg24u5fq1b Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@193610.3330 313ucdbcsbc17og8dg24u5fq1b Query : use flama_phc
20250312@193610.3360 313ucdbcsbc17og8dg24u5fq1b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@201909.1785 osga0p4msk4vvr36mscbnlrla9 Query : use flama_phc
20250312@201909.1791 osga0p4msk4vvr36mscbnlrla9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@201909.2220 osga0p4msk4vvr36mscbnlrla9 Query : use flama_phc
20250312@201909.2224 osga0p4msk4vvr36mscbnlrla9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@203609.4849 icsa7c6tbbfidfuncaaqopvdsc Query : use flama_phc
20250312@203609.4900 icsa7c6tbbfidfuncaaqopvdsc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@203609.5236 icsa7c6tbbfidfuncaaqopvdsc Query : use flama_phc
20250312@203609.5240 icsa7c6tbbfidfuncaaqopvdsc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@211909.6081 2u1mmirpt417le8c0ab7rvvn0k Query : use flama_phc
20250312@211909.6086 2u1mmirpt417le8c0ab7rvvn0k Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@211909.6176 2u1mmirpt417le8c0ab7rvvn0k Query : use flama_phc
20250312@211909.6179 2u1mmirpt417le8c0ab7rvvn0k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@213609.8762 mlr80jo5tj0dg19jfqltge1l1r Query : use flama_phc
20250312@213609.8766 mlr80jo5tj0dg19jfqltge1l1r Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@213609.8854 mlr80jo5tj0dg19jfqltge1l1r Query : use flama_phc
20250312@213609.8858 mlr80jo5tj0dg19jfqltge1l1r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@221911.6109 ekpr1stq564fl4ulh2i0nqbgi7 Query : use flama_phc
20250312@221911.6114 ekpr1stq564fl4ulh2i0nqbgi7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@221911.6207 ekpr1stq564fl4ulh2i0nqbgi7 Query : use flama_phc
20250312@221911.6211 ekpr1stq564fl4ulh2i0nqbgi7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@223611.4000 0b26difhnuetiodepou0g8q5op Query : use flama_phc
20250312@223611.4006 0b26difhnuetiodepou0g8q5op Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@223611.4102 0b26difhnuetiodepou0g8q5op Query : use flama_phc
20250312@223611.4105 0b26difhnuetiodepou0g8q5op Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@231908.4435 8gds8nm6ad5nphdf84udm6vik4 Query : use flama_phc
20250312@231908.4439 8gds8nm6ad5nphdf84udm6vik4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@231908.4549 8gds8nm6ad5nphdf84udm6vik4 Query : use flama_phc
20250312@231908.4552 8gds8nm6ad5nphdf84udm6vik4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250312@233608.8887 uumrkuiejfn8up1gege5dae3l4 Query : use flama_phc
20250312@233608.8892 uumrkuiejfn8up1gege5dae3l4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250312@233608.8987 uumrkuiejfn8up1gege5dae3l4 Query : use flama_phc
20250312@233608.8990 uumrkuiejfn8up1gege5dae3l4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@071913.5564 65q796fvt1gtirj8npa59ee0dm Query : use flama_phc
20250313@071913.5569 65q796fvt1gtirj8npa59ee0dm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@071913.5724 65q796fvt1gtirj8npa59ee0dm Query : use flama_phc
20250313@071913.5727 65q796fvt1gtirj8npa59ee0dm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@073657.4447 9fgcknub7i911a5bgidp44mbgv Query : use flama_phc
20250313@073657.4453 9fgcknub7i911a5bgidp44mbgv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@073657.4590 9fgcknub7i911a5bgidp44mbgv Query : use flama_phc
20250313@073657.4594 9fgcknub7i911a5bgidp44mbgv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@081909.1464 d8hf61emb118r3aof6cqaherg4 Query : use flama_phc
20250313@081909.1491 d8hf61emb118r3aof6cqaherg4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@081909.1581 d8hf61emb118r3aof6cqaherg4 Query : use flama_phc
20250313@081909.1584 d8hf61emb118r3aof6cqaherg4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@083608.8803 50lockktj3hr17sg6k4mbl1ic3 Query : use flama_phc
20250313@083608.8808 50lockktj3hr17sg6k4mbl1ic3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@083608.8900 50lockktj3hr17sg6k4mbl1ic3 Query : use flama_phc
20250313@083608.8904 50lockktj3hr17sg6k4mbl1ic3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@091021.4355 3adii4c0kd0hff5e0m62i5d6o5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250313@091021.4383 3adii4c0kd0hff5e0m62i5d6o5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250313@091021.6175 3adii4c0kd0hff5e0m62i5d6o5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5901';
20250313@091021.6353 3adii4c0kd0hff5e0m62i5d6o5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5901';
20250313@091021.6443 3adii4c0kd0hff5e0m62i5d6o5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5901';
20250313@091021.6487 3adii4c0kd0hff5e0m62i5d6o5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5901';
20250313@091021.6545 3adii4c0kd0hff5e0m62i5d6o5 Query : use flama_phc
20250313@091021.6549 3adii4c0kd0hff5e0m62i5d6o5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250313@091021.6655 3adii4c0kd0hff5e0m62i5d6o5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1608.00.1'
20250313@091021.6783 3adii4c0kd0hff5e0m62i5d6o5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =250 and bo.boano =2016 and bo.obrano = 2501693 and bi.ref ='324.1608.00.1' and bi.lordem =1
20250313@091021.7172 3adii4c0kd0hff5e0m62i5d6o5 Query : use flama_phc
20250313@091021.7176 3adii4c0kd0hff5e0m62i5d6o5 Query : select top 1 1 valor from ts where ts.ndos = 61
20250313@091021.7278 3adii4c0kd0hff5e0m62i5d6o5 Query : use flama_phc
20250313@091021.7281 3adii4c0kd0hff5e0m62i5d6o5 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')
20250313@091021.7375 3adii4c0kd0hff5e0m62i5d6o5 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
20250313@091021.7609 3adii4c0kd0hff5e0m62i5d6o5 Query : use flama_phc
20250313@091021.7613 3adii4c0kd0hff5e0m62i5d6o5 Query : select top 1 ~inactivo valor from fl where no = '1626' and estab = 26 order by inactivo desc
20250313@091021.7748 3adii4c0kd0hff5e0m62i5d6o5 Query : use flama_phc
20250313@091021.7751 3adii4c0kd0hff5e0m62i5d6o5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250313@091021.7840 3adii4c0kd0hff5e0m62i5d6o5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5901';
20250313@091021.7896 3adii4c0kd0hff5e0m62i5d6o5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5901';
20250313@091909.1580 h8rfnvgvakidac905voosj7sfi Query : use flama_phc
20250313@091909.1584 h8rfnvgvakidac905voosj7sfi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@091909.1750 h8rfnvgvakidac905voosj7sfi Query : use flama_phc
20250313@091909.1777 h8rfnvgvakidac905voosj7sfi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@092323.4123 f5ketcg2mc9ueue366ia1tluup Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250313@092323.4136 f5ketcg2mc9ueue366ia1tluup Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250313@092323.4215 f5ketcg2mc9ueue366ia1tluup Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5902';
20250313@092323.4319 f5ketcg2mc9ueue366ia1tluup Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5902';
20250313@092323.4393 f5ketcg2mc9ueue366ia1tluup Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5902';
20250313@092323.4438 f5ketcg2mc9ueue366ia1tluup Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5902';
20250313@092323.4544 f5ketcg2mc9ueue366ia1tluup Query : use flama_phc
20250313@092323.4547 f5ketcg2mc9ueue366ia1tluup Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250313@092323.4613 f5ketcg2mc9ueue366ia1tluup Query : use flama_phc
20250313@092323.4616 f5ketcg2mc9ueue366ia1tluup Query : select no, estab,szadrsdesc from szadrs where u_coddest=2064
20250313@092323.4716 f5ketcg2mc9ueue366ia1tluup Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2016 and bo.obrano = 2501693 
20250313@092323.5117 f5ketcg2mc9ueue366ia1tluup Query : use flama_phc
20250313@092323.5120 f5ketcg2mc9ueue366ia1tluup Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250313@092323.5179 f5ketcg2mc9ueue366ia1tluup Query : use flama_phc
20250313@092323.5182 f5ketcg2mc9ueue366ia1tluup Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250313@092323.5228 f5ketcg2mc9ueue366ia1tluup Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250313@092323.5268 f5ketcg2mc9ueue366ia1tluup Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5902';
20250313@092323.5316 f5ketcg2mc9ueue366ia1tluup Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5902';
20250313@093608.9340 icfa2uvloig09kkd54t8fbdo2u Query : use flama_phc
20250313@093608.9345 icfa2uvloig09kkd54t8fbdo2u Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@093608.9950 icfa2uvloig09kkd54t8fbdo2u Query : use flama_phc
20250313@093608.9993 icfa2uvloig09kkd54t8fbdo2u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@101908.8823 p9daes8ani9e57kq18t62vpf7u Query : use flama_phc
20250313@101908.8827 p9daes8ani9e57kq18t62vpf7u Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@101908.8919 p9daes8ani9e57kq18t62vpf7u Query : use flama_phc
20250313@101908.8922 p9daes8ani9e57kq18t62vpf7u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@103609.1730 ut84ocd3inunh3krcvi5q9ge03 Query : use flama_phc
20250313@103609.1780 ut84ocd3inunh3krcvi5q9ge03 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@103609.1545 ut84ocd3inunh3krcvi5q9ge03 Query : use flama_phc
20250313@103609.1549 ut84ocd3inunh3krcvi5q9ge03 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@111908.6629 5h0a260ugr4psr4hd1p7r8rilp Query : use flama_phc
20250313@111908.6634 5h0a260ugr4psr4hd1p7r8rilp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@111908.6764 5h0a260ugr4psr4hd1p7r8rilp Query : use flama_phc
20250313@111908.6767 5h0a260ugr4psr4hd1p7r8rilp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@113609.2550 tgsnh1o86b1jqo0rsrcf2dpcng Query : use flama_phc
20250313@113609.2590 tgsnh1o86b1jqo0rsrcf2dpcng Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@113609.3450 tgsnh1o86b1jqo0rsrcf2dpcng Query : use flama_phc
20250313@113609.3480 tgsnh1o86b1jqo0rsrcf2dpcng Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@121910.1326 mvcs0bmdk7g9b6to8j6onvjpod Query : use flama_phc
20250313@121910.1332 mvcs0bmdk7g9b6to8j6onvjpod Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@121910.1417 mvcs0bmdk7g9b6to8j6onvjpod Query : use flama_phc
20250313@121910.1420 mvcs0bmdk7g9b6to8j6onvjpod Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@123610.1390 cv4tagqtprusot7irlo41qru0j Query : use flama_phc
20250313@123610.1434 cv4tagqtprusot7irlo41qru0j Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@123610.2267 cv4tagqtprusot7irlo41qru0j Query : use flama_phc
20250313@123610.2309 cv4tagqtprusot7irlo41qru0j Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@131908.9110 41t8p2371p5i8aeiovb41av42a Query : use flama_phc
20250313@131908.9115 41t8p2371p5i8aeiovb41av42a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@131908.9303 41t8p2371p5i8aeiovb41av42a Query : use flama_phc
20250313@131908.9307 41t8p2371p5i8aeiovb41av42a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@133609.1977 7vd4mluijvhngdk40m8a40fmmp Query : use flama_phc
20250313@133609.1980 7vd4mluijvhngdk40m8a40fmmp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@133609.2103 7vd4mluijvhngdk40m8a40fmmp Query : use flama_phc
20250313@133609.2107 7vd4mluijvhngdk40m8a40fmmp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@141909.2230 adgqg26mvo16o5h8619ojp5d8o Query : use flama_phc
20250313@141909.2260 adgqg26mvo16o5h8619ojp5d8o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@141909.3080 adgqg26mvo16o5h8619ojp5d8o Query : use flama_phc
20250313@141909.3110 adgqg26mvo16o5h8619ojp5d8o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@143608.9804 1m53j75dpliada1tj7jf3390m3 Query : use flama_phc
20250313@143608.9808 1m53j75dpliada1tj7jf3390m3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@143608.9902 1m53j75dpliada1tj7jf3390m3 Query : use flama_phc
20250313@143608.9907 1m53j75dpliada1tj7jf3390m3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@151057.9224 kj6l9av3m6hj5l6ms3fl9aai96 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250313@151057.9276 kj6l9av3m6hj5l6ms3fl9aai96 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250313@151058.2360 kj6l9av3m6hj5l6ms3fl9aai96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5903';
20250313@151058.4190 kj6l9av3m6hj5l6ms3fl9aai96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5903';
20250313@151058.5870 kj6l9av3m6hj5l6ms3fl9aai96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5903';
20250313@151058.6820 kj6l9av3m6hj5l6ms3fl9aai96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5903';
20250313@151058.7660 kj6l9av3m6hj5l6ms3fl9aai96 Query : use flama_phc
20250313@151058.7700 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250313@151058.1016 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2326.00.1'
20250313@151058.1205 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.2326.00.1' and bi.lordem =8
20250313@151058.1355 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.600.94.01'
20250313@151058.1527 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.600.94.01' and bi.lordem =6
20250313@151058.1728 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9903.00.1'
20250313@151058.1928 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='328.9903.00.1' and bi.lordem =15
20250313@151058.2197 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.700.94.01'
20250313@151058.2503 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.700.94.01' and bi.lordem =2
20250313@151058.2757 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2187.00.1'
20250313@151058.2914 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='304.2187.00.1' and bi.lordem =14
20250313@151058.3147 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '327.8410.00.1'
20250313@151058.3348 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='327.8410.00.1' and bi.lordem =11
20250313@151058.3495 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4910.00.1'
20250313@151058.3778 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.4910.00.1' and bi.lordem =17
20250313@151058.4017 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2200.94.1'
20250313@151058.4161 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.2200.94.1' and bi.lordem =5
20250313@151058.4302 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '305.21851.022'
20250313@151058.4536 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='305.21851.022' and bi.lordem =18
20250313@151058.4967 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4320.00.1'
20250313@151058.5157 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='304.4320.00.1' and bi.lordem =13
20250313@151058.5476 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2330.00.1'
20250313@151058.5625 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.2330.00.1' and bi.lordem =1
20250313@151058.5770 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4901.00.1'
20250313@151058.5977 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.4901.00.1' and bi.lordem =16
20250313@151058.6153 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2000.94.1'
20250313@151058.6393 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.2000.94.1' and bi.lordem =4
20250313@151058.6626 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2388.00.1'
20250313@151058.7137 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.2388.00.1' and bi.lordem =9
20250313@151058.7566 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2317.00.1'
20250313@151058.8217 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.2317.00.1' and bi.lordem =10
20250313@151058.8555 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.421.00.04'
20250313@151058.9056 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='304.421.00.04' and bi.lordem =12
20250313@151058.9610 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.900.94.01'
20250313@151059.2980 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 2025/97 and bi.ref ='324.900.94.01' and bi.lordem =3
20250313@151059.8720 kj6l9av3m6hj5l6ms3fl9aai96 Query : use flama_phc
20250313@151059.9080 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 1 valor from ts where ts.ndos = 61
20250313@151059.1533 kj6l9av3m6hj5l6ms3fl9aai96 Query : use flama_phc
20250313@151059.1577 kj6l9av3m6hj5l6ms3fl9aai96 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')
20250313@151059.2487 kj6l9av3m6hj5l6ms3fl9aai96 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
20250313@151059.3556 kj6l9av3m6hj5l6ms3fl9aai96 Query : use flama_phc
20250313@151059.3603 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 ~inactivo valor from fl where no = '1626' and estab = 26 order by inactivo desc
20250313@151059.4460 kj6l9av3m6hj5l6ms3fl9aai96 Query : use flama_phc
20250313@151059.4541 kj6l9av3m6hj5l6ms3fl9aai96 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250313@151059.5301 kj6l9av3m6hj5l6ms3fl9aai96 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5903';
20250313@151059.5719 kj6l9av3m6hj5l6ms3fl9aai96 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5903';
20250313@151909.2162 i7hbhteqal1c08vj9irivcl9s5 Query : use flama_phc
20250313@151909.2166 i7hbhteqal1c08vj9irivcl9s5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@151909.2292 i7hbhteqal1c08vj9irivcl9s5 Query : use flama_phc
20250313@151909.2296 i7hbhteqal1c08vj9irivcl9s5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@153609.3807 l7nc0uv1fluc6sj6ee7ubr9c38 Query : use flama_phc
20250313@153609.3970 l7nc0uv1fluc6sj6ee7ubr9c38 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@153609.5788 l7nc0uv1fluc6sj6ee7ubr9c38 Query : use flama_phc
20250313@153609.5830 l7nc0uv1fluc6sj6ee7ubr9c38 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@161909.9795 1vms1c047jr436900nlm7il7km Query : use flama_phc
20250313@161909.9799 1vms1c047jr436900nlm7il7km Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@161909.9900 1vms1c047jr436900nlm7il7km Query : use flama_phc
20250313@161909.9904 1vms1c047jr436900nlm7il7km Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@163609.5656 slo6fk0oglmvu063n8a16htiri Query : use flama_phc
20250313@163609.5660 slo6fk0oglmvu063n8a16htiri Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@163609.5824 slo6fk0oglmvu063n8a16htiri Query : use flama_phc
20250313@163609.5828 slo6fk0oglmvu063n8a16htiri Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@164455.1534 4bm8cumra3i8830bnnfns5gquf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250313@164455.1550 4bm8cumra3i8830bnnfns5gquf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250313@164455.1827 4bm8cumra3i8830bnnfns5gquf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5904';
20250313@164455.1950 4bm8cumra3i8830bnnfns5gquf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5904';
20250313@164455.2023 4bm8cumra3i8830bnnfns5gquf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5904';
20250313@164455.2156 4bm8cumra3i8830bnnfns5gquf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5904';
20250313@164455.2220 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164455.2223 4bm8cumra3i8830bnnfns5gquf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250313@164455.2285 4bm8cumra3i8830bnnfns5gquf Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20250313@164455.2392 4bm8cumra3i8830bnnfns5gquf 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 = 2401242 and bi.ref ='324.948.00.01' and bi.lordem =20000
20250313@164455.2718 4bm8cumra3i8830bnnfns5gquf 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 = 'cps24103034061,862000002 ' 
20250313@164455.3011 4bm8cumra3i8830bnnfns5gquf Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20250313@164455.3111 4bm8cumra3i8830bnnfns5gquf 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 = 2401242 and bi.ref ='324.988.00.01' and bi.lordem =30000
20250313@164455.3427 4bm8cumra3i8830bnnfns5gquf 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 = 'cps24103034062,205000003 ' 
20250313@164455.3750 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164455.3754 4bm8cumra3i8830bnnfns5gquf Query : select top 1 1 valor from ts where ts.ndos = 61
20250313@164455.3787 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164455.3792 4bm8cumra3i8830bnnfns5gquf 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')
20250313@164455.3832 4bm8cumra3i8830bnnfns5gquf 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
20250313@164455.3906 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164455.3911 4bm8cumra3i8830bnnfns5gquf Query : select top 1 ~inactivo valor from fl where no = '202383' and estab = 00 order by inactivo desc
20250313@164455.4058 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164455.4062 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from ts where ndos = 61
20250313@164455.4132 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164455.4550 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250313@164455.4625 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164455.4641 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250313@164455.4675 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164455.4691 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250313@164455.4701 4bm8cumra3i8830bnnfns5gquf 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
20250313@164455.4824 4bm8cumra3i8830bnnfns5gquf Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250313@164455.4918 4bm8cumra3i8830bnnfns5gquf Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250313@164455.4939 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164455.4946 4bm8cumra3i8830bnnfns5gquf Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202383' and estab=00
20250313@164455.5064 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164455.5081 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250313@164455.5122 4bm8cumra3i8830bnnfns5gquf Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d303217767d30b8778',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250313@164455.5192 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164455.5208 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250313@164455.5253 4bm8cumra3i8830bnnfns5gquf Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d303217767d30b8778','--','bo',7.8555045871559633027 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250313@164455.5455 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164455.5475 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250313@164455.5489 4bm8cumra3i8830bnnfns5gquf 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 ('aut67d303217767d30b8778','guia r. fornecedor','2025-03-13',61,2500989,?,?,?,?,?,?,?,?,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')
20250313@164458.6300 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164458.6304 4bm8cumra3i8830bnnfns5gquf Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20250313@164458.6423 4bm8cumra3i8830bnnfns5gquf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20250313@164458.6564 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164458.6582 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250313@164458.6598 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164458.6613 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250313@164458.6626 4bm8cumra3i8830bnnfns5gquf Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2401242200a'
20250313@164458.6682 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164458.6696 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250313@164458.6707 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164458.6723 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250313@164458.6735 4bm8cumra3i8830bnnfns5gquf Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d300589867d30b8aa3',?,?,'20250313',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250313@164458.7780 4bm8cumra3i8830bnnfns5gquf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@164458.7823 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164458.7860 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250313@164458.7878 4bm8cumra3i8830bnnfns5gquf Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d306232767d30b8abe','aut67d303217767d30b8778',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 = 'aut67d303217767d30b8778'
20250313@164458.8083 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164458.8111 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250313@164458.8131 4bm8cumra3i8830bnnfns5gquf 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 'aut67d306232767d30b8abe',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2400, 2400*.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.72,8.72*200.48,8.72,8.72*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,8.72*2400,8.72*2400*200.48 ,11.700000,11.700000*200.48 ,11.700000,11.700000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.72,8.72*200.48,8.72*2400,8.72*2400*200.48,'cps24103034061,862000002 ',68.5,68.5*2400,68.5,68.5*2400,?,?,?,4 from bo bo where bo.bostamp = 'aut67d303217767d30b8778'
20250313@164515.4649 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164515.4656 4bm8cumra3i8830bnnfns5gquf Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20250313@164515.4681 4bm8cumra3i8830bnnfns5gquf 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'
20250313@164515.4827 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164515.4847 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250313@164515.4861 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164515.4882 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250313@164515.4891 4bm8cumra3i8830bnnfns5gquf Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2401242300a'
20250313@164515.4924 4bm8cumra3i8830bnnfns5gquf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@164515.4939 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164515.4964 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250313@164515.4977 4bm8cumra3i8830bnnfns5gquf Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d309986267d30b9b78','aut67d303217767d30b8778',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 = 'aut67d303217767d30b8778'
20250313@164515.5147 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@164515.5167 4bm8cumra3i8830bnnfns5gquf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250313@164515.5187 4bm8cumra3i8830bnnfns5gquf 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 'aut67d309986267d30b9b78',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 400, 400*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,8.72,8.72*200.48,8.72,8.72*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,8.72*400,8.72*400*200.48 ,9.336000,9.336000*200.48 ,9.336000,9.336000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,8.72,8.72*200.48,8.72*400,8.72*400*200.48,'cps24103034062,205000003 ',68.5,68.5*400,68.5,68.5*400,?,?,?,4 from bo bo where bo.bostamp = 'aut67d303217767d30b8778'
20250313@164526.1538 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164526.1543 4bm8cumra3i8830bnnfns5gquf Query : declare @bostamp varchar(25) = 'aut67d303217767d30b8778' ,@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 
20250313@164538.4740 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164538.4744 4bm8cumra3i8830bnnfns5gquf Query : select 1 valor from bo where bo.bostamp = 'aut67d303217767d30b8778'
20250313@164538.4855 4bm8cumra3i8830bnnfns5gquf 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) = 'aut67d303217767d30b8778' 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 
20250313@164540.5578 4bm8cumra3i8830bnnfns5gquf Query : use flama_phc
20250313@164540.5581 4bm8cumra3i8830bnnfns5gquf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@164540.5650 4bm8cumra3i8830bnnfns5gquf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5904';
20250313@164540.5697 4bm8cumra3i8830bnnfns5gquf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5904';
20250313@171909.3763 mnqlvhunesh4uau5bcl9e7h45f Query : use flama_phc
20250313@171909.3767 mnqlvhunesh4uau5bcl9e7h45f Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@171909.3892 mnqlvhunesh4uau5bcl9e7h45f Query : use flama_phc
20250313@171909.3895 mnqlvhunesh4uau5bcl9e7h45f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@173609.4619 n35nnt2ldqcmv4hu63isgobvol Query : use flama_phc
20250313@173609.4624 n35nnt2ldqcmv4hu63isgobvol Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20250313@173609.4717 n35nnt2ldqcmv4hu63isgobvol Query : use flama_phc
20250313@173609.4720 n35nnt2ldqcmv4hu63isgobvol Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250313@181014.2490 f438ird22o449de9i8a43qk9qr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250313@181014.2516 f438ird22o449de9i8a43qk9qr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250313@181014.2702 f438ird22o449de9i8a43qk9qr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5905';
20250313@181014.2778 f438ird22o449de9i8a43qk9qr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5905';
20250313@181014.2853 f438ird22o449de9i8a43qk9qr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5905';
20250313@181014.4075 f438ird22o449de9i8a43qk9qr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5905';
20250313@181014.4986 ib0rra0bb3uckgo6gnras85cap Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250313@181014.4997 ib0rra0bb3uckgo6gnras85cap Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250313@181014.5072 ib0rra0bb3uckgo6gnras85cap Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5906';
20250313@181014.5144 ib0rra0bb3uckgo6gnras85cap Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5906';
20250313@181014.5213 ib0rra0bb3uckgo6gnras85cap Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5906';
20250313@181014.5253 ib0rra0bb3uckgo6gnras85cap Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5906';
20250313@181014.5366 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181014.5370 ib0rra0bb3uckgo6gnras85cap Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250313@181014.5479 ib0rra0bb3uckgo6gnras85cap Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20250313@181014.5758 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1716.00.1'
20250313@181014.5878 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1716.00.1' and bi.lordem =10000
20250313@181014.6223 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042542,976000001 ' 
20250313@181014.6533 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2200.94.1'
20250313@181014.6638 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.2200.94.1' and bi.lordem =20000
20250313@181014.6957 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042568,435000002 ' 
20250313@181014.7271 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4320.00.1'
20250313@181014.7375 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='304.4320.00.1' and bi.lordem =40000
20250313@181014.7705 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042588,358000004 ' 
20250313@181014.8057 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4521.00.1'
20250313@181014.8169 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.4521.00.1' and bi.lordem =50000
20250313@181014.8541 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042597,202000005 ' 
20250313@181014.8877 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4960.00.1'
20250313@181014.8981 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.4960.00.1' and bi.lordem =60000
20250313@181014.9300 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042601,830000006 ' 
20250313@181014.9932 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4990.00.1'
20250313@181015.4500 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.4990.00.1' and bi.lordem =70000
20250313@181015.3720 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042617,504000007 ' 
20250313@181015.8990 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4980.00.1'
20250313@181015.1036 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.4980.00.1' and bi.lordem =80000
20250313@181015.1363 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042623,594000008 ' 
20250313@181015.1670 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20250313@181015.1776 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.4970.00.1' and bi.lordem =110000
20250313@181015.2092 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042646,481000011 ' 
20250313@181015.2384 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.958.00.01'
20250313@181015.2498 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.958.00.01' and bi.lordem =120000
20250313@181015.2823 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042662,194000012 ' 
20250313@181015.3126 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.969.00.01'
20250313@181015.3255 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.969.00.01' and bi.lordem =130000
20250313@181015.4373 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042669,858000013 ' 
20250313@181015.5841 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.988.00.01'
20250313@181015.5862 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.988.00.01' and bi.lordem =140000
20250313@181015.6193 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042677,501000014 ' 
20250313@181015.6501 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20250313@181015.6521 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.948.00.01' and bi.lordem =150000
20250313@181015.6860 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042683,347000015 ' 
20250313@181015.7164 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4988.00.1'
20250313@181015.7269 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.4988.00.1' and bi.lordem =160000
20250313@181015.7805 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042693,922000016 ' 
20250313@181015.8115 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.645.00.01'
20250313@181015.8221 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.645.00.01' and bi.lordem =170000
20250313@181015.8545 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042702,619000017 ' 
20250313@181015.8867 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.645.00.01'
20250313@181015.8887 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.645.00.01' and bi.lordem =170000
20250313@181015.8909 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042702,619000017 ' 
20250313@181015.8929 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.657.00.01'
20250313@181015.9035 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.657.00.01' and bi.lordem =180000
20250313@181015.9375 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042709,198000018 ' 
20250313@181015.9688 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.657.00.01'
20250313@181015.9711 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.657.00.01' and bi.lordem =180000
20250313@181015.9733 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042709,198000018 ' 
20250313@181015.9755 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.682.00.01'
20250313@181015.9863 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.682.00.01' and bi.lordem =190000
20250313@181016.2040 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042727,567000019 ' 
20250313@181016.6020 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.646.00.01'
20250313@181016.7170 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.646.00.01' and bi.lordem =200000
20250313@181016.1069 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042737,964000020 ' 
20250313@181016.1388 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20250313@181016.1499 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.691.00.01' and bi.lordem =210000
20250313@181016.1863 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042746,787000021 ' 
20250313@181016.2185 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20250313@181016.2206 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.691.00.01' and bi.lordem =210000
20250313@181016.2228 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042746,787000021 ' 
20250313@181016.2249 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20250313@181016.2365 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.692.00.01' and bi.lordem =220000
20250313@181016.2713 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042755,464000022 ' 
20250313@181016.3275 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1675.00.2'
20250313@181016.3392 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1675.00.2' and bi.lordem =230000
20250313@181016.3731 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042764,134000023 ' 
20250313@181016.4044 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20250313@181016.4150 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1847.00.1' and bi.lordem =240000
20250313@181016.4500 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042771,723000024 ' 
20250313@181016.4870 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1847.00.1'
20250313@181016.4890 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1847.00.1' and bi.lordem =240000
20250313@181016.4929 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042771,723000024 ' 
20250313@181016.4959 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1817.00.1'
20250313@181016.5075 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1817.00.1' and bi.lordem =260000
20250313@181016.5435 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042816,087000026 ' 
20250313@181016.5877 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1406.00.1'
20250313@181016.5988 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1406.00.1' and bi.lordem =270000
20250313@181016.6939 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042822,350000027 ' 
20250313@181016.8364 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2386.00.1'
20250313@181016.8498 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.2386.00.1' and bi.lordem =280000
20250313@181016.8845 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042847,787000028 ' 
20250313@181016.9154 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1892.00.1'
20250313@181016.9273 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1892.00.1' and bi.lordem =290000
20250313@181016.9616 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042859,549000029 ' 
20250313@181016.9923 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.679.00.01'
20250313@181017.3200 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.679.00.01' and bi.lordem =300000
20250313@181017.3810 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042868,566000030 ' 
20250313@181017.7730 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2300.00.1'
20250313@181017.8840 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.2300.00.1' and bi.lordem =320000
20250313@181017.1215 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042884,292000032 ' 
20250313@181017.1516 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2301.00.3'
20250313@181017.1619 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.2301.00.3' and bi.lordem =330000
20250313@181017.1936 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042890,412000033 ' 
20250313@181017.2241 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2308.00.1'
20250313@181017.2350 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.2308.00.1' and bi.lordem =340000
20250313@181017.2764 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042897,838000034 ' 
20250313@181017.3118 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5342.00.1'
20250313@181017.3228 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.5342.00.1' and bi.lordem =350000
20250313@181017.3566 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042912,037000035 ' 
20250313@181017.3875 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20250313@181017.3985 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.5501.00.1' and bi.lordem =360000
20250313@181017.4315 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042936,689000036 ' 
20250313@181017.4631 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20250313@181017.4651 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.5501.00.1' and bi.lordem =360000
20250313@181017.4675 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042936,689000036 ' 
20250313@181017.4696 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2028.00.2'
20250313@181017.4806 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.2028.00.2' and bi.lordem =370000
20250313@181017.5133 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042945,309000037 ' 
20250313@181017.5464 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2907.00.1'
20250313@181017.5569 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.2907.00.1' and bi.lordem =380000
20250313@181017.5942 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042953,787000038 ' 
20250313@181017.6278 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1705.00.1'
20250313@181017.6384 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1705.00.1' and bi.lordem =390000
20250313@181017.6711 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042967,994000039 ' 
20250313@181017.7013 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1706.00.1'
20250313@181017.7117 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.1706.00.1' and bi.lordem =400000
20250313@181017.7437 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042974,282000040 ' 
20250313@181017.7773 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.644.00.01'
20250313@181017.7881 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.644.00.01' and bi.lordem =410000
20250313@181017.9325 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042988,266000041 ' 
20250313@181017.9654 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.648.00.01'
20250313@181017.9755 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.648.00.01' and bi.lordem =420000
20250313@181018.9600 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031042995,084000042 ' 
20250313@181018.4130 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.678.00.01'
20250313@181018.5140 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.678.00.01' and bi.lordem =430000
20250313@181018.8380 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031043001,701000043 ' 
20250313@181018.1155 ib0rra0bb3uckgo6gnras85cap Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.719.00.02'
20250313@181018.1262 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000603 and bi.ref ='324.719.00.02' and bi.lordem =440000
20250313@181018.1585 ib0rra0bb3uckgo6gnras85cap 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 = 'av25031043014,768000044 ' 
20250313@181018.1886 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.1889 ib0rra0bb3uckgo6gnras85cap Query : select top 1 1 valor from ts where ts.ndos = 5
20250313@181018.1971 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.1974 ib0rra0bb3uckgo6gnras85cap 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')
20250313@181018.2046 ib0rra0bb3uckgo6gnras85cap Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20250313@181018.2182 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.2185 ib0rra0bb3uckgo6gnras85cap Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20250313@181018.2288 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.2292 ib0rra0bb3uckgo6gnras85cap Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250313@181018.2362 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.2365 ib0rra0bb3uckgo6gnras85cap Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20250313@181018.2413 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.2416 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from ts where ndos = 5
20250313@181018.2429 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.2446 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20250313@181018.2468 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.2486 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20250313@181018.2499 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.2513 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20250313@181018.2524 ib0rra0bb3uckgo6gnras85cap Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 5
20250313@181018.2639 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250313@181018.2776 ib0rra0bb3uckgo6gnras85cap Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250313@181018.2869 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.2875 ib0rra0bb3uckgo6gnras85cap Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20250313@181018.2964 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.2981 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20250313@181018.2995 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67d315582467d31f8a46',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250313@181018.3074 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.3091 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20250313@181018.3104 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut67d315582467d31f8a46','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20250313','18:40',?,?)
20250313@181018.3724 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.3751 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20250313@181018.3775 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut67d315582467d31f8a46','trf entre armazéns a','2025-03-13',5,110,?,?,?,?,?,?,?,?,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',?)
20250313@181018.4398 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.4402 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1716.00.1'
20250313@181018.4419 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.4421 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1716.00.1'
20250313@181018.4530 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.4533 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1716.00.1' and sa.armazem = 133 
20250313@181018.4638 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.4641 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1716.00.1'
20250313@181018.4665 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1716.00.1'
20250313@181018.4807 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.4823 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.4839 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.4855 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.4865 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1716.00.1' and lote = 'r2100312300a'
20250313@181018.4895 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181018.4910 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.4925 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.4939 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d315427767d31f8a77','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.5490 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.5509 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.5528 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d315427767d31f8a77',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*4.000,28.8*4.000*200.48 ,11.292000,11.292000*200.48 ,11.292000,11.292000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*4.000,28.8*4.000*200.48,'av25031042542,976000001 ',28.8,28.8*4.000,28.8,28.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.6104 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.6109 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.2200.94.1'
20250313@181018.6124 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.6127 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2200.94.1'
20250313@181018.6144 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.6147 ib0rra0bb3uckgo6gnras85cap 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.2200.94.1' and sa.armazem = 133 
20250313@181018.6232 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.6235 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2200.94.1'
20250313@181018.6256 ib0rra0bb3uckgo6gnras85cap 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.2200.94.1'
20250313@181018.6388 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.6408 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.6422 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.6437 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.6446 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.2200.94.1' and lote = 'r2400293100a'
20250313@181018.6460 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181018.6473 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.6488 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.6542 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319716067d31f8a9e','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.6698 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.6716 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.6731 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319716067d31f8a9e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,20000 ,0,0*200.48,0,0*200.48 ,0,0,'un ','' ,bo.marcada,1 ,0*12.000,0*12.000*200.48 ,14.182000,14.182000*200.48 ,14.182000,14.182000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,0,0*200.48,0*12.000,0*12.000*200.48,'av25031042568,435000002 ',0,0*12.000,0,0*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.7022 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.7027 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '304.4320.00.1'
20250313@181018.7045 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.7048 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '304.4320.00.1'
20250313@181018.7066 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.7069 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '304.4320.00.1' and sa.armazem = 133 
20250313@181018.7136 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.7138 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '304.4320.00.1'
20250313@181018.7157 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '304.4320.00.1'
20250313@181018.7286 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.7303 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.7317 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.7332 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.7341 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='304.4320.00.1' and lote = '241183'
20250313@181018.7370 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181018.7383 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.7398 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.7411 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d310781967d31f8ab4','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.7560 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.7577 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.7667 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d310781967d31f8ab4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,30000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,28.8*4.000,28.8*4.000*200.48 ,12.681000,12.681000*200.48 ,12.681000,12.681000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*4.000,28.8*4.000*200.48,'av25031042588,358000004 ',28.8,28.8*4.000,28.8,28.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.7966 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.7970 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20250313@181018.7986 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.7989 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20250313@181018.8468 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.8510 ib0rra0bb3uckgo6gnras85cap 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.4521.00.1' and sa.armazem = 133 
20250313@181018.9191 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.9194 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20250313@181018.9221 ib0rra0bb3uckgo6gnras85cap 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.4521.00.1'
20250313@181018.9376 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.9395 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.9408 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.9425 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.9435 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400955200a'
20250313@181018.9455 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181018.9468 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.9484 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181018.9496 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d315601367d31f8ae7','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.9652 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181018.9669 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181018.9685 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d315601367d31f8ae7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,40000 ,41.6,41.6*200.48,41.6,41.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,41.6*4.000,41.6*4.000*200.48 ,16.519000,16.519000*200.48 ,16.519000,16.519000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,41.6,41.6*200.48,41.6*4.000,41.6*4.000*200.48,'av25031042597,202000005 ',41.6,41.6*4.000,41.6,41.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181018.9972 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.9976 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.4960.00.1'
20250313@181018.9991 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181018.9996 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20250313@181019.1200 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.1500 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4960.00.1' and sa.armazem = 133 
20250313@181019.8200 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.8500 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4960.00.1'
20250313@181019.1030 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4960.00.1'
20250313@181019.2380 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.2550 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.2690 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.2850 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.2950 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.4960.00.1' and lote = 'r2100754100a'
20250313@181019.3170 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.3300 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.3460 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.3610 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d311906967d31f8b08','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.5260 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.5460 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.5630 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d311906967d31f8b08',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,19.2,19.2*200.48,19.2,19.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,19.2*6.000,19.2*6.000*200.48 ,6.102000,6.102000*200.48 ,6.102000,6.102000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.2,19.2*200.48,19.2*6.000,19.2*6.000*200.48,'av25031042601,830000006 ',19.2,19.2*6.000,19.2,19.2*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.8460 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.8510 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.4990.00.1'
20250313@181019.1177 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.1181 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250313@181019.1212 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.1215 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4990.00.1' and sa.armazem = 133 
20250313@181019.1311 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.1314 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4990.00.1'
20250313@181019.1337 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4990.00.1'
20250313@181019.1471 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.1489 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.1502 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.1520 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.1529 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.4990.00.1' and lote = 'r2100189200a'
20250313@181019.1554 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.1567 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.1584 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.1597 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d315938867d31f8b26','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.1747 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.1763 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.1782 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d315938867d31f8b26',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,28.8*4.000,28.8*4.000*200.48 ,12.265000,12.265000*200.48 ,12.265000,12.265000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*4.000,28.8*4.000*200.48,'av25031042617,504000007 ',28.8,28.8*4.000,28.8,28.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.2256 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.3160 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.4980.00.1'
20250313@181019.3181 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.3183 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4980.00.1'
20250313@181019.3200 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.3202 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.4980.00.1' and sa.armazem = 133 
20250313@181019.3287 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.3290 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4980.00.1'
20250313@181019.3309 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4980.00.1'
20250313@181019.3439 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.3461 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.3475 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.3491 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.3502 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.4980.00.1' and lote = 'r2401064200a'
20250313@181019.3523 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.3536 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.3552 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.3566 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d310866367d31f8b56','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.3714 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.3734 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.3750 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d310866367d31f8b56',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,70000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un ','' ,bo.marcada,1 ,28.8*4.000,28.8*4.000*200.48 ,10.001000,10.001000*200.48 ,10.001000,10.001000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*4.000,28.8*4.000*200.48,'av25031042623,594000008 ',28.8,28.8*4.000,28.8,28.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.4086 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.4092 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20250313@181019.4109 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.4112 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20250313@181019.4129 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.4132 ib0rra0bb3uckgo6gnras85cap 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.4970.00.1' and sa.armazem = 133 
20250313@181019.4204 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.4206 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20250313@181019.4225 ib0rra0bb3uckgo6gnras85cap 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'
20250313@181019.4361 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.4378 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.4391 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.4406 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.4416 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2401231200a'
20250313@181019.4432 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.4446 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.4467 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.4481 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d315165367d31f8b6c','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.4658 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.4681 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.4698 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d315165367d31f8b6c',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,80000 ,27.6,27.6*200.48,27.6,27.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,27.6*4.000,27.6*4.000*200.48 ,9.182000,9.182000*200.48 ,9.182000,9.182000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,27.6,27.6*200.48,27.6*4.000,27.6*4.000*200.48,'av25031042646,481000011 ',27.6,27.6*4.000,27.6,27.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.4983 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.4988 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20250313@181019.5004 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.5007 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.958.00.01'
20250313@181019.5024 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.5027 ib0rra0bb3uckgo6gnras85cap 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.958.00.01' and sa.armazem = 133 
20250313@181019.5390 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.5393 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.958.00.01'
20250313@181019.5413 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.958.00.01'
20250313@181019.5563 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.5580 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.5593 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.5608 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.5616 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2401240200a'
20250313@181019.5629 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.5642 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.5657 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.5669 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d314854667d31f8b89','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.5822 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.5839 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.5854 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d314854667d31f8b89',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,90000 ,19.2,19.2*200.48,19.2,19.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,19.2*8.000,19.2*8.000*200.48 ,8.089000,8.089000*200.48 ,8.089000,8.089000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,19.2,19.2*200.48,19.2*8.000,19.2*8.000*200.48,'av25031042662,194000012 ',19.2,19.2*8.000,19.2,19.2*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.6146 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.6152 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20250313@181019.6168 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.6171 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.969.00.01'
20250313@181019.6188 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.6191 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.969.00.01' and sa.armazem = 133 
20250313@181019.6261 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.6264 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.969.00.01'
20250313@181019.6283 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.969.00.01'
20250313@181019.6421 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.6441 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.6456 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.6472 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.6480 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20250313@181019.6502 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.6515 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.6530 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.6542 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d311145467d31f8b9f','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.6695 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.6711 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.6739 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d311145467d31f8b9f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 14.000, 14.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,100000 ,35.2,35.2*200.48,35.2,35.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,35.2*14.000,35.2*14.000*200.48 ,15.817000,15.817000*200.48 ,15.817000,15.817000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,35.2,35.2*200.48,35.2*14.000,35.2*14.000*200.48,'av25031042669,858000013 ',35.2,35.2*14.000,35.2,35.2*14.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.7102 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7107 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.988.00.01'
20250313@181019.7121 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7123 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.988.00.01'
20250313@181019.7140 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7142 ib0rra0bb3uckgo6gnras85cap 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.988.00.01' and sa.armazem = 133 
20250313@181019.7209 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7211 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.988.00.01'
20250313@181019.7229 ib0rra0bb3uckgo6gnras85cap 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'
20250313@181019.7243 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.7263 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.7276 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.7292 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.7302 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.988.00.01' and lote = 'r2401038200a'
20250313@181019.7316 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.7329 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.7345 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.7358 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d315914767d31f8bb2','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.7511 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.7529 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.7547 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d315914767d31f8bb2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,110000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*12.000,32*12.000*200.48 ,9.281000,9.281000*200.48 ,9.281000,9.281000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*12.000,32*12.000*200.48,'av25031042677,501000014 ',32,32*12.000,32,32*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.7825 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7829 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20250313@181019.7845 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7848 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.948.00.01'
20250313@181019.7863 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7866 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.948.00.01' and sa.armazem = 133 
20250313@181019.7960 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.7963 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.948.00.01'
20250313@181019.7982 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.948.00.01'
20250313@181019.7995 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.8010 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.8022 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.8036 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.8044 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2400703100a'
20250313@181019.8065 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.8079 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.8095 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.8106 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d318305367d31f8bc5','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.8262 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.8279 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.8294 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d318305367d31f8bc5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,120000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,30.1*12.000,30.1*12.000*200.48 ,9.154000,9.154000*200.48 ,9.154000,9.154000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,30.1,30.1*200.48,30.1*12.000,30.1*12.000*200.48,'av25031042683,347000015 ',30.1,30.1*12.000,30.1,30.1*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.8642 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.8648 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20250313@181019.8663 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.8666 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20250313@181019.8680 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.8683 ib0rra0bb3uckgo6gnras85cap 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.4988.00.1' and sa.armazem = 133 
20250313@181019.8756 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.8759 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20250313@181019.8821 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4988.00.1'
20250313@181019.8955 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.8972 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.8990 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.9005 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.9016 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20250313@181019.9029 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.9042 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.9056 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.9068 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d312618867d31f8bdc','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.9221 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.9239 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.9255 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d312618867d31f8bdc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 16.000, 16.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,130000 ,28.8,28.8*200.48,28.8,28.8*200.48 ,0,0,'un ','' ,bo.marcada,1 ,28.8*16.000,28.8*16.000*200.48 ,8.445000,8.445000*200.48 ,8.445000,8.445000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,28.8,28.8*200.48,28.8*16.000,28.8*16.000*200.48,'av25031042693,922000016 ',28.8,28.8*16.000,28.8,28.8*16.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181019.9525 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.9529 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20250313@181019.9546 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.9549 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.645.00.01'
20250313@181019.9567 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.9570 ib0rra0bb3uckgo6gnras85cap 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.645.00.01' and sa.armazem = 133 
20250313@181019.9637 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181019.9640 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.645.00.01'
20250313@181019.9664 ib0rra0bb3uckgo6gnras85cap 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.645.00.01'
20250313@181019.9807 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.9823 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181019.9836 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.9851 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.9862 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2401265200a'
20250313@181019.9876 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181019.9890 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181019.9907 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181019.9920 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d318794067d31f8bf1','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.7400 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9300 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.1100 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d318794067d31f8bf1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,140000 ,44.8,44.8*200.48,44.8,44.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,44.8*4.000,44.8*4.000*200.48 ,19.036000,19.036000*200.48 ,19.036000,19.036000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,44.8,44.8*200.48,44.8*4.000,44.8*4.000*200.48,'av25031042702,619000017 ',44.8,44.8*4.000,44.8,44.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.4230 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.4290 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.645.00.01'
20250313@181020.4440 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.4740 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.645.00.01'
20250313@181020.4950 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.4980 ib0rra0bb3uckgo6gnras85cap 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.645.00.01' and sa.armazem = 133 
20250313@181020.5200 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.5220 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.645.00.01'
20250313@181020.6080 ib0rra0bb3uckgo6gnras85cap 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.645.00.01'
20250313@181020.2624 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.2642 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.2654 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.2668 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.2677 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.645.00.01' and lote = 'r2401265200a'
20250313@181020.2689 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.2701 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.3887 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.3908 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d313591467d31f8c41','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.4070 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.4088 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.4103 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d313591467d31f8c41',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,150000 ,44.8,44.8*200.48,44.8,44.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,44.8*2.000,44.8*2.000*200.48 ,19.036000,19.036000*200.48 ,19.036000,19.036000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,44.8,44.8*200.48,44.8*2.000,44.8*2.000*200.48,'av25031042702,619000017 ',44.8,44.8*2.000,44.8,44.8*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.4392 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.4396 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20250313@181020.4412 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.4415 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.657.00.01'
20250313@181020.4430 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.4433 ib0rra0bb3uckgo6gnras85cap 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.657.00.01' and sa.armazem = 133 
20250313@181020.4500 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.4502 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.657.00.01'
20250313@181020.4522 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20250313@181020.4663 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.4679 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.4692 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.4706 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.4714 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400957400a'
20250313@181020.4728 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.4740 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.4757 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.4769 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d314529267d31f8c73','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.4938 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.4958 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.4977 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d314529267d31f8c73',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,160000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*1.000,64*1.000*200.48 ,20.815000,20.815000*200.48 ,20.815000,20.815000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*1.000,64*1.000*200.48,'av25031042709,198000018 ',64,64*1.000,64,64*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.5285 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.5290 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20250313@181020.5307 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.5310 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.657.00.01'
20250313@181020.5327 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.5330 ib0rra0bb3uckgo6gnras85cap 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.657.00.01' and sa.armazem = 133 
20250313@181020.5367 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.5370 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.657.00.01'
20250313@181020.5391 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.657.00.01'
20250313@181020.5408 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.5429 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.5444 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.5463 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.5472 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2400957400a'
20250313@181020.5487 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.5502 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.5518 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.5529 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d311688367d31f8c86','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.5703 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.5722 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.5739 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d311688367d31f8c86',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 9.000, 9.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,170000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*9.000,64*9.000*200.48 ,20.815000,20.815000*200.48 ,20.815000,20.815000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*9.000,64*9.000*200.48,'av25031042709,198000018 ',64,64*9.000,64,64*9.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.6036 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.6041 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20250313@181020.6060 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.6063 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.682.00.01'
20250313@181020.6083 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.6086 ib0rra0bb3uckgo6gnras85cap 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.682.00.01' and sa.armazem = 133 
20250313@181020.6161 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.6164 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.682.00.01'
20250313@181020.6194 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.682.00.01'
20250313@181020.6344 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.6365 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.6381 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.6398 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.6409 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2400958400a'
20250313@181020.6426 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.6442 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.6460 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.6474 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d310499467d31f8c9d','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.6631 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.6651 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.6670 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d310499467d31f8c9d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,180000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*12.000,83.2*12.000*200.48 ,22.966000,22.966000*200.48 ,22.966000,22.966000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*12.000,83.2*12.000*200.48,'av25031042727,567000019 ',83.2,83.2*12.000,83.2,83.2*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.6956 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.6961 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20250313@181020.6980 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.6983 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.646.00.01'
20250313@181020.7005 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.7009 ib0rra0bb3uckgo6gnras85cap 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.646.00.01' and sa.armazem = 133 
20250313@181020.7124 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.7127 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.646.00.01'
20250313@181020.7151 ib0rra0bb3uckgo6gnras85cap 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'
20250313@181020.7292 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.7350 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.7396 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.7485 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.7495 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2401265300a'
20250313@181020.7512 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.7525 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.7542 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.7555 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319189967d31f8cb7','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.7712 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.7730 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.7747 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319189967d31f8cb7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,190000 ,44.8,44.8*200.48,44.8,44.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,44.8*6.000,44.8*6.000*200.48 ,18.884000,18.884000*200.48 ,18.884000,18.884000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,44.8,44.8*200.48,44.8*6.000,44.8*6.000*200.48,'av25031042737,964000020 ',44.8,44.8*6.000,44.8,44.8*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.8026 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8031 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20250313@181020.8049 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8052 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250313@181020.8070 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8073 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.691.00.01' and sa.armazem = 133 
20250313@181020.8145 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8148 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250313@181020.8174 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20250313@181020.8312 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.8329 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.8343 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.8359 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.8368 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400837300a'
20250313@181020.8388 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.8401 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.8415 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.8427 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319300967d31f8ccd','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.8586 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.8606 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.8621 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319300967d31f8ccd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,200000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*5.000,96*5.000*200.48 ,30.988000,30.988000*200.48 ,30.988000,30.988000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*5.000,96*5.000*200.48,'av25031042746,787000021 ',96,96*5.000,96,96*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.8908 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8913 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.691.00.01'
20250313@181020.8927 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8929 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250313@181020.8944 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8947 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.691.00.01' and sa.armazem = 133 
20250313@181020.8969 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.8972 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.691.00.01'
20250313@181020.8990 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.691.00.01'
20250313@181020.9004 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9021 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.9032 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9047 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.9056 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.691.00.01' and lote = 'r2400837300a'
20250313@181020.9068 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.9080 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9095 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.9107 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319124067d31f8cdd','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.9269 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9290 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.9305 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319124067d31f8cdd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1.000, 1.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,210000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*1.000,96*1.000*200.48 ,30.988000,30.988000*200.48 ,30.988000,30.988000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*1.000,96*1.000*200.48,'av25031042746,787000021 ',96,96*1.000,96,96*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181020.9592 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.9597 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20250313@181020.9613 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.9616 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.692.00.01'
20250313@181020.9632 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.9635 ib0rra0bb3uckgo6gnras85cap 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.692.00.01' and sa.armazem = 133 
20250313@181020.9703 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181020.9706 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.692.00.01'
20250313@181020.9724 ib0rra0bb3uckgo6gnras85cap 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.692.00.01'
20250313@181020.9865 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9881 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181020.9894 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9908 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.9917 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2400837300a'
20250313@181020.9931 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181020.9944 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181020.9958 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181020.9971 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d316063267d31f8cf2','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.1260 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.1450 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.1610 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d316063267d31f8cf2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,220000 ,96,96*200.48,96,96*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,96*6.000,96*6.000*200.48 ,31.886000,31.886000*200.48 ,31.886000,31.886000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,96,96*200.48,96*6.000,96*6.000*200.48,'av25031042755,464000022 ',96,96*6.000,96,96*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.4390 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.4430 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250313@181021.4600 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.4630 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250313@181021.4810 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.4830 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1675.00.2' and sa.armazem = 133 
20250313@181021.5590 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.5620 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1675.00.2'
20250313@181021.5810 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1675.00.2'
20250313@181021.8330 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.8510 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.8640 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.8780 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.8870 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1675.00.2' and lote = 'r2401094200a'
20250313@181021.9140 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.9260 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.9420 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.9540 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d313166967d31f8d16','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.1114 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.1134 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.1151 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d313166967d31f8d16',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,230000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,57.6*6.000,57.6*6.000*200.48 ,26.566000,26.566000*200.48 ,26.566000,26.566000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,57.6,57.6*200.48,57.6*6.000,57.6*6.000*200.48,'av25031042764,134000023 ',57.6,57.6*6.000,57.6,57.6*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.1444 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.1450 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20250313@181021.1467 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.1470 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1847.00.1'
20250313@181021.1486 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.1489 ib0rra0bb3uckgo6gnras85cap 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.1847.00.1' and sa.armazem = 133 
20250313@181021.1559 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.1562 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1847.00.1'
20250313@181021.1583 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20250313@181021.2025 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.2044 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.2059 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.2076 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.2085 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2401187200a'
20250313@181021.2099 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.2114 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.2130 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.2142 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d317462967d31f8d33','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.2304 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.2322 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.2339 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d317462967d31f8d33',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,240000 ,56.3,56.3*200.48,56.3,56.3*200.48 ,0,0,'un ','' ,bo.marcada,1 ,56.3*3.000,56.3*3.000*200.48 ,28.070000,28.070000*200.48 ,28.070000,28.070000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,56.3,56.3*200.48,56.3*3.000,56.3*3.000*200.48,'av25031042771,723000024 ',56.3,56.3*3.000,56.3,56.3*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.2681 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.2687 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1847.00.1'
20250313@181021.2702 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.2704 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1847.00.1'
20250313@181021.2720 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.2723 ib0rra0bb3uckgo6gnras85cap 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.1847.00.1' and sa.armazem = 133 
20250313@181021.2759 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.2762 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1847.00.1'
20250313@181021.2781 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1847.00.1'
20250313@181021.2796 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.2813 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.2826 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.2842 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.2850 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1847.00.1' and lote = 'r2401187200a'
20250313@181021.2863 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.2875 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.2889 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.2901 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d310605267d31f8d46','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.3060 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.3078 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.3095 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d310605267d31f8d46',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,250000 ,56.3,56.3*200.48,56.3,56.3*200.48 ,0,0,'un ','' ,bo.marcada,1 ,56.3*2.000,56.3*2.000*200.48 ,28.070000,28.070000*200.48 ,28.070000,28.070000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,56.3,56.3*200.48,56.3*2.000,56.3*2.000*200.48,'av25031042771,723000024 ',56.3,56.3*2.000,56.3,56.3*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.3370 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.3411 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1817.00.1'
20250313@181021.3512 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.3515 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20250313@181021.3533 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.3537 ib0rra0bb3uckgo6gnras85cap 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.1817.00.1' and sa.armazem = 133 
20250313@181021.4758 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.4762 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1817.00.1'
20250313@181021.4785 ib0rra0bb3uckgo6gnras85cap 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.1817.00.1'
20250313@181021.4931 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.4950 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.4964 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.4980 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.4989 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1817.00.1' and lote = 'r2400484200a'
20250313@181021.5016 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.5029 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.5045 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.5058 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d310231467d31f8d7a','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.5217 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.5239 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.5256 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d310231467d31f8d7a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 10.000, 10.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,260000 ,52.5,52.5*200.48,52.5,52.5*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,52.5*10.000,52.5*10.000*200.48 ,25.508000,25.508000*200.48 ,25.508000,25.508000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,52.5,52.5*200.48,52.5*10.000,52.5*10.000*200.48,'av25031042816,087000026 ',52.5,52.5*10.000,52.5,52.5*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.5547 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.5555 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1406.00.1'
20250313@181021.5575 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.5579 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1406.00.1'
20250313@181021.5599 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.5603 ib0rra0bb3uckgo6gnras85cap 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.1406.00.1' and sa.armazem = 133 
20250313@181021.5681 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.5684 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1406.00.1'
20250313@181021.5710 ib0rra0bb3uckgo6gnras85cap 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.1406.00.1'
20250313@181021.5856 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.5873 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.5885 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.5905 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.5915 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1406.00.1' and lote = 'r2400744200a'
20250313@181021.5941 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.5955 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.5971 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.5983 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319653267d31f8d91','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.6142 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.6163 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.6178 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319653267d31f8d91',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 36.000, 36.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,270000 ,22.4,22.4*200.48,22.4,22.4*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,22.4*36.000,22.4*36.000*200.48 ,10.897000,10.897000*200.48 ,10.897000,10.897000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,22.4,22.4*200.48,22.4*36.000,22.4*36.000*200.48,'av25031042822,350000027 ',22.4,22.4*36.000,22.4,22.4*36.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.6454 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.6459 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.2386.00.1'
20250313@181021.6476 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.6479 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2386.00.1'
20250313@181021.6496 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.6499 ib0rra0bb3uckgo6gnras85cap 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.2386.00.1' and sa.armazem = 133 
20250313@181021.6572 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.6575 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2386.00.1'
20250313@181021.6594 ib0rra0bb3uckgo6gnras85cap 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.2386.00.1'
20250313@181021.6728 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.6744 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.6757 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.6774 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.6783 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.2386.00.1' and lote = 'r2200236200a'
20250313@181021.6815 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.6828 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.6845 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.6864 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d316174767d31f8da6','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.7020 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.7044 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.7062 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d316174767d31f8da6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,280000 ,57.6,57.6*200.48,57.6,57.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,57.6*6.000,57.6*6.000*200.48 ,23.656000,23.656000*200.48 ,23.656000,23.656000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,57.6,57.6*200.48,57.6*6.000,57.6*6.000*200.48,'av25031042847,787000028 ',57.6,57.6*6.000,57.6,57.6*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.7341 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.7372 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1892.00.1'
20250313@181021.7389 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.7391 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1892.00.1'
20250313@181021.7432 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.7435 ib0rra0bb3uckgo6gnras85cap 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.1892.00.1' and sa.armazem = 133 
20250313@181021.7509 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.7512 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1892.00.1'
20250313@181021.7532 ib0rra0bb3uckgo6gnras85cap 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.1892.00.1'
20250313@181021.7665 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.7681 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.7694 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.7709 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.7718 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1892.00.1' and lote = 'r2400760200a'
20250313@181021.7732 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.7746 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.7763 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.7776 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319456667d31f8dbd','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.7934 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.7954 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.7969 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319456667d31f8dbd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3.000, 3.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,290000 ,187.5,187.5*200.48,187.5,187.5*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,187.5*3.000,187.5*3.000*200.48 ,81.691000,81.691000*200.48 ,81.691000,81.691000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,187.5,187.5*200.48,187.5*3.000,187.5*3.000*200.48,'av25031042859,549000029 ',187.5,187.5*3.000,187.5,187.5*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.8250 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.8255 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.679.00.01'
20250313@181021.8271 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.8273 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.679.00.01'
20250313@181021.8289 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.8291 ib0rra0bb3uckgo6gnras85cap 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.679.00.01' and sa.armazem = 133 
20250313@181021.8356 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.8358 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.679.00.01'
20250313@181021.8383 ib0rra0bb3uckgo6gnras85cap 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.679.00.01'
20250313@181021.8528 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.8545 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.8557 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.8571 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.8580 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.679.00.01' and lote = 'r2400685200a'
20250313@181021.8606 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.8618 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.8632 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.8644 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319596767d31f8dd2','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.8805 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.8822 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.8838 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319596767d31f8dd2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2.000, 2.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,300000 ,128,128*200.48,128,128*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,128*2.000,128*2.000*200.48 ,57.294000,57.294000*200.48 ,57.294000,57.294000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,128,128*200.48,128*2.000,128*2.000*200.48,'av25031042868,566000030 ',128,128*2.000,128,128*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.9115 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.9119 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.2300.00.1'
20250313@181021.9134 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.9138 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2300.00.1'
20250313@181021.9154 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.9157 ib0rra0bb3uckgo6gnras85cap 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.2300.00.1' and sa.armazem = 133 
20250313@181021.9231 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181021.9233 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2300.00.1'
20250313@181021.9253 ib0rra0bb3uckgo6gnras85cap 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.2300.00.1'
20250313@181021.9389 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.9405 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.9419 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.9434 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.9443 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.2300.00.1' and lote = 'r2400497200a'
20250313@181021.9468 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181021.9480 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.9496 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181021.9508 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d316681667d31f8de7','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181021.9665 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181021.9683 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181021.9701 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d316681667d31f8de7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,310000 ,16,16*200.48,16,16*200.48 ,0,0,'un ','' ,bo.marcada,1 ,16*12.000,16*12.000*200.48 ,6.598000,6.598000*200.48 ,6.598000,6.598000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,16,16*200.48,16*12.000,16*12.000*200.48,'av25031042884,292000032 ',16,16*12.000,16,16*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.4800 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.9300 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.2301.00.3'
20250313@181022.1110 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1140 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2301.00.3'
20250313@181022.1300 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1330 ib0rra0bb3uckgo6gnras85cap 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.2301.00.3' and sa.armazem = 133 
20250313@181022.2050 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.2080 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2301.00.3'
20250313@181022.2410 ib0rra0bb3uckgo6gnras85cap 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.2301.00.3'
20250313@181022.3840 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4020 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.4160 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4310 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.4400 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.2301.00.3' and lote = 'r2400474200a'
20250313@181022.4600 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.4750 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4930 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.5060 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d312293167d31f8e0b','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.6630 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.6810 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.6980 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d312293167d31f8e0b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,320000 ,16,16*200.48,16,16*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,16*12.000,16*12.000*200.48 ,5.537000,5.537000*200.48 ,5.537000,5.537000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,16,16*200.48,16*12.000,16*12.000*200.48,'av25031042890,412000033 ',16,16*12.000,16,16*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.9840 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.9900 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.2308.00.1'
20250313@181022.1008 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1011 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2308.00.1'
20250313@181022.1027 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1029 ib0rra0bb3uckgo6gnras85cap 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.2308.00.1' and sa.armazem = 133 
20250313@181022.1102 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1104 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2308.00.1'
20250313@181022.1123 ib0rra0bb3uckgo6gnras85cap 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.2308.00.1'
20250313@181022.1262 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.1278 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.1293 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.1309 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.1319 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.2308.00.1' and lote = 'r2400475700a'
20250313@181022.1333 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.1345 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.1360 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.1372 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d310522367d31f8e20','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.1529 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.1546 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.1562 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d310522367d31f8e20',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,330000 ,17.3,17.3*200.48,17.3,17.3*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,17.3*12.000,17.3*12.000*200.48 ,5.574000,5.574000*200.48 ,5.574000,5.574000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,17.3,17.3*200.48,17.3*12.000,17.3*12.000*200.48,'av25031042897,838000034 ',17.3,17.3*12.000,17.3,17.3*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.1848 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1853 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20250313@181022.1868 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1871 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.5342.00.1'
20250313@181022.1887 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1890 ib0rra0bb3uckgo6gnras85cap 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.5342.00.1' and sa.armazem = 133 
20250313@181022.1955 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.1959 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.5342.00.1'
20250313@181022.1977 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5342.00.1'
20250313@181022.2275 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.2295 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.2310 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.2326 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.2335 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2401258200a'
20250313@181022.2379 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.2392 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.2434 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.2451 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d319015467d31f8e3a','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.2619 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.2638 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.2656 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d319015467d31f8e3a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,340000 ,18,18*200.48,18,18*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,18*12.000,18*12.000*200.48 ,7.875000,7.875000*200.48 ,7.875000,7.875000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,18,18*200.48,18*12.000,18*12.000*200.48,'av25031042912,037000035 ',18,18*12.000,18,18*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.2944 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.2948 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20250313@181022.2964 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.2967 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20250313@181022.2985 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.2988 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5501.00.1' and sa.armazem = 133 
20250313@181022.3087 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.3090 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20250313@181022.3112 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20250313@181022.3250 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.3266 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.3279 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.3294 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.3303 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20250313@181022.3324 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.3338 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.3354 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.3379 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d315961667d31f8e51','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.3548 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.3569 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.3585 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d315961667d31f8e51',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,350000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*6.000,64*6.000*200.48 ,18.463000,18.463000*200.48 ,18.463000,18.463000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*6.000,64*6.000*200.48,'av25031042936,689000036 ',64,64*6.000,64,64*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.3867 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.3872 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20250313@181022.3888 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.3891 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20250313@181022.3909 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.3911 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5501.00.1' and sa.armazem = 133 
20250313@181022.3934 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.3938 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20250313@181022.3957 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5501.00.1'
20250313@181022.3973 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.3989 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.4001 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4017 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.4026 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20250313@181022.4039 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.4052 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4067 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.4079 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d312036367d31f8e62','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.4253 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4273 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.4289 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d312036367d31f8e62',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,360000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*6.000,64*6.000*200.48 ,18.463000,18.463000*200.48 ,18.463000,18.463000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*6.000,64*6.000*200.48,'av25031042936,689000036 ',64,64*6.000,64,64*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.4579 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.4584 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.2028.00.2'
20250313@181022.4599 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.4602 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2028.00.2'
20250313@181022.4618 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.4621 ib0rra0bb3uckgo6gnras85cap 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.2028.00.2' and sa.armazem = 133 
20250313@181022.4693 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.4695 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2028.00.2'
20250313@181022.4720 ib0rra0bb3uckgo6gnras85cap 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.2028.00.2'
20250313@181022.4864 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4881 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.4895 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4909 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.4918 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.2028.00.2' and lote = 'r2100875100a'
20250313@181022.4969 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.4982 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.4998 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.5009 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d312304167d31f8e79','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.5168 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.5186 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.5202 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d312304167d31f8e79',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,370000 ,22.4,22.4*200.48,22.4,22.4*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,22.4*8.000,22.4*8.000*200.48 ,8.580000,8.580000*200.48 ,8.580000,8.580000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,22.4,22.4*200.48,22.4*8.000,22.4*8.000*200.48,'av25031042945,309000037 ',22.4,22.4*8.000,22.4,22.4*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.5484 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.5488 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20250313@181022.5503 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.5506 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2907.00.1'
20250313@181022.5524 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.5527 ib0rra0bb3uckgo6gnras85cap 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.2907.00.1' and sa.armazem = 133 
20250313@181022.5615 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.5618 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.2907.00.1'
20250313@181022.5637 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.2907.00.1'
20250313@181022.5805 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.5849 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.5864 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.5881 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.5891 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20250313@181022.5918 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.5933 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.5948 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.5961 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d310518167d31f8e90','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.6123 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.6142 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.6160 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbidata (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,obistamp ,stipo) select 'aut67d310518167d31f8e90',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,380000 ,12.8,12.8*200.48,12.8,12.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,12.8*8.000,12.8*8.000*200.48 ,3.998000,3.998000*200.48 ,3.998000,3.998000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,12.8,12.8*200.48,12.8*8.000,12.8*8.000*200.48,'av25031042953,787000038 ',12.8,12.8*8.000,12.8,12.8*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
20250313@181022.6438 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.6443 ib0rra0bb3uckgo6gnras85cap Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20250313@181022.6458 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.6461 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20250313@181022.6477 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.6480 ib0rra0bb3uckgo6gnras85cap Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1705.00.1' and sa.armazem = 133 
20250313@181022.6551 ib0rra0bb3uckgo6gnras85cap Query : use flama_phc
20250313@181022.6554 ib0rra0bb3uckgo6gnras85cap Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20250313@181022.6585 ib0rra0bb3uckgo6gnras85cap Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1705.00.1'
20250313@181022.6761 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.6781 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250313@181022.6795 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.6812 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.6824 ib0rra0bb3uckgo6gnras85cap Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400926200a'
20250313@181022.6839 ib0rra0bb3uckgo6gnras85cap Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250313@181022.6852 ib0rra0bb3uckgo6gnras85cap Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250313@181022.6871 ib0rra0bb3uckgo6gnras85cap Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250313@181022.6885 ib0rra0bb3uckgo6gnras85cap Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67d318571767d31f8ea7','aut67d315582467d31f8a46',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut67d315582467d31f8a46'
