20240723@185910.6946 4f5qtq5i139ccufnd9nugp3vfp INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240723@185910.6943 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.600.94.01'
20240723@185910.7069 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404905 and bi.ref ='324.600.94.01' and bi.lordem =1
20240723@185910.7388 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.600.94.01'
20240723@185910.7401 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404905 and bi.ref ='324.600.94.01' and bi.lordem =1
20240723@185910.7410 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2000.94.1'
20240723@185910.7534 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404905 and bi.ref ='324.2000.94.1' and bi.lordem =2
20240723@185910.7973 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.900.94.01'
20240723@185910.8270 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404905 and bi.ref ='324.900.94.01' and bi.lordem =3
20240723@185910.9280 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.900.94.01'
20240723@185910.9292 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404905 and bi.ref ='324.900.94.01' and bi.lordem =3
20240723@185910.9300 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20240723@185910.9904 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404905 and bi.ref ='324.700.94.01' and bi.lordem =4
20240723@185911.2100 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240723@185911.3210 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404905 and bi.ref ='324.2200.94.1' and bi.lordem =5
20240723@185911.6180 4f5qtq5i139ccufnd9nugp3vfp Query : use flama_phc
20240723@185911.6210 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185911.6380 4f5qtq5i139ccufnd9nugp3vfp Query : use flama_phc
20240723@185911.6410 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185911.6510 4f5qtq5i139ccufnd9nugp3vfp Query : use flama_phc
20240723@185911.6540 4f5qtq5i139ccufnd9nugp3vfp 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')
20240723@185911.6760 4f5qtq5i139ccufnd9nugp3vfp Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185911.6960 4f5qtq5i139ccufnd9nugp3vfp Query : use flama_phc
20240723@185911.7000 4f5qtq5i139ccufnd9nugp3vfp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185911.7120 4f5qtq5i139ccufnd9nugp3vfp Query : use flama_phc
20240723@185911.7150 4f5qtq5i139ccufnd9nugp3vfp Query : select szadrsstamp valor from szadrs where szadrsdesc='740 ent vnr bligeiro'
20240723@185911.7290 4f5qtq5i139ccufnd9nugp3vfp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1131';
20240723@185911.7490 4f5qtq5i139ccufnd9nugp3vfp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1131';
20240723@185911.1932 4b4k1uso9bgop42hjsdenqbjb4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@185911.1946 4b4k1uso9bgop42hjsdenqbjb4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@185911.1969 4b4k1uso9bgop42hjsdenqbjb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1132';
20240723@185911.2023 4b4k1uso9bgop42hjsdenqbjb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1132';
20240723@185911.2047 4b4k1uso9bgop42hjsdenqbjb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1132';
20240723@185911.2062 4b4k1uso9bgop42hjsdenqbjb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1132';
20240723@185911.2077 4b4k1uso9bgop42hjsdenqbjb4 Query : use flama_phc
20240723@185911.2080 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@185911.2099 4b4k1uso9bgop42hjsdenqbjb4 Query : use flama_phc
20240723@185911.2102 4b4k1uso9bgop42hjsdenqbjb4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=376
20240723@185911.2179 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240723@185911.2302 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404906 and bi.ref ='324.1824.00.1' and bi.lordem =1
20240723@185911.2740 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1536.00.1'
20240723@185911.2865 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404906 and bi.ref ='324.1536.00.1' and bi.lordem =2
20240723@185911.3153 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240723@185911.3264 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404906 and bi.ref ='324.1705.00.1' and bi.lordem =3
20240723@185911.3575 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240723@185911.3685 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404906 and bi.ref ='324.2031.00.1' and bi.lordem =4
20240723@185911.4104 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.658.00.01'
20240723@185911.4229 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404906 and bi.ref ='324.658.00.01' and bi.lordem =5
20240723@185911.5508 4b4k1uso9bgop42hjsdenqbjb4 Query : use flama_phc
20240723@185911.5590 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185911.6450 4b4k1uso9bgop42hjsdenqbjb4 Query : use flama_phc
20240723@185911.6455 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185911.6467 4b4k1uso9bgop42hjsdenqbjb4 Query : use flama_phc
20240723@185911.6470 4b4k1uso9bgop42hjsdenqbjb4 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')
20240723@185911.6492 4b4k1uso9bgop42hjsdenqbjb4 Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185911.6509 4b4k1uso9bgop42hjsdenqbjb4 Query : use flama_phc
20240723@185911.6512 4b4k1uso9bgop42hjsdenqbjb4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185911.6525 4b4k1uso9bgop42hjsdenqbjb4 Query : use flama_phc
20240723@185911.6528 4b4k1uso9bgop42hjsdenqbjb4 Query : select szadrsstamp valor from szadrs where szadrsdesc='mario ventura'
20240723@185911.6541 4b4k1uso9bgop42hjsdenqbjb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1132';
20240723@185911.6559 4b4k1uso9bgop42hjsdenqbjb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1132';
20240723@185911.7056 ftdkvkl68p41mm5du1hq3ps75u Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@185911.7070 ftdkvkl68p41mm5du1hq3ps75u Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@185911.7091 ftdkvkl68p41mm5du1hq3ps75u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1133';
20240723@185911.7138 ftdkvkl68p41mm5du1hq3ps75u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1133';
20240723@185911.7156 ftdkvkl68p41mm5du1hq3ps75u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1133';
20240723@185911.7170 ftdkvkl68p41mm5du1hq3ps75u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1133';
20240723@185911.7184 ftdkvkl68p41mm5du1hq3ps75u Query : use flama_phc
20240723@185911.7187 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@185911.7204 ftdkvkl68p41mm5du1hq3ps75u Query : use flama_phc
20240723@185911.7207 ftdkvkl68p41mm5du1hq3ps75u Query : select no, estab,szadrsdesc from szadrs where u_coddest=2759
20240723@185911.7277 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240723@185911.7383 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404907 and bi.ref ='324.1834.00.1' and bi.lordem =1
20240723@185911.7659 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240723@185911.7768 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404907 and bi.ref ='324.4521.00.1' and bi.lordem =2
20240723@185911.8046 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240723@185911.8060 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404907 and bi.ref ='324.2031.00.1' and bi.lordem =3
20240723@185911.9501 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240723@185911.9514 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404907 and bi.ref ='324.1824.00.1' and bi.lordem =4
20240723@185911.9809 ftdkvkl68p41mm5du1hq3ps75u Query : use flama_phc
20240723@185911.9813 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185911.9827 ftdkvkl68p41mm5du1hq3ps75u Query : use flama_phc
20240723@185911.9830 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185911.9841 ftdkvkl68p41mm5du1hq3ps75u Query : use flama_phc
20240723@185911.9843 ftdkvkl68p41mm5du1hq3ps75u 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')
20240723@185911.9863 ftdkvkl68p41mm5du1hq3ps75u Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185911.9879 ftdkvkl68p41mm5du1hq3ps75u Query : use flama_phc
20240723@185911.9882 ftdkvkl68p41mm5du1hq3ps75u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185911.9893 ftdkvkl68p41mm5du1hq3ps75u Query : use flama_phc
20240723@185911.9896 ftdkvkl68p41mm5du1hq3ps75u Query : select szadrsstamp valor from szadrs where szadrsdesc='paulo jorge almeida gomes unip.,lda.-entrega'
20240723@185911.9908 ftdkvkl68p41mm5du1hq3ps75u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1133';
20240723@185911.9924 ftdkvkl68p41mm5du1hq3ps75u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1133';
20240723@185912.4550 giievl6t0pqalo23ns5kcq552n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@185912.5120 giievl6t0pqalo23ns5kcq552n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@185912.5390 giievl6t0pqalo23ns5kcq552n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1134';
20240723@185912.5890 giievl6t0pqalo23ns5kcq552n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1134';
20240723@185912.6080 giievl6t0pqalo23ns5kcq552n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1134';
20240723@185912.6220 giievl6t0pqalo23ns5kcq552n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1134';
20240723@185912.6390 giievl6t0pqalo23ns5kcq552n Query : use flama_phc
20240723@185912.6430 giievl6t0pqalo23ns5kcq552n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@185912.6620 giievl6t0pqalo23ns5kcq552n Query : use flama_phc
20240723@185912.6660 giievl6t0pqalo23ns5kcq552n Query : select no, estab,szadrsdesc from szadrs where u_coddest=2064
20240723@185912.7440 giievl6t0pqalo23ns5kcq552n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240723@185912.7570 giievl6t0pqalo23ns5kcq552n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404908 and bi.ref ='324.958.00.01' and bi.lordem =1
20240723@185912.1051 giievl6t0pqalo23ns5kcq552n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240723@185912.1063 giievl6t0pqalo23ns5kcq552n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404908 and bi.ref ='324.958.00.01' and bi.lordem =1
20240723@185912.1071 giievl6t0pqalo23ns5kcq552n Query : use flama_phc
20240723@185912.1075 giievl6t0pqalo23ns5kcq552n Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185912.1090 giievl6t0pqalo23ns5kcq552n Query : use flama_phc
20240723@185912.1095 giievl6t0pqalo23ns5kcq552n Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185912.1108 giievl6t0pqalo23ns5kcq552n Query : use flama_phc
20240723@185912.1110 giievl6t0pqalo23ns5kcq552n 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')
20240723@185912.1130 giievl6t0pqalo23ns5kcq552n Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185912.1147 giievl6t0pqalo23ns5kcq552n Query : use flama_phc
20240723@185912.1150 giievl6t0pqalo23ns5kcq552n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185912.1161 giievl6t0pqalo23ns5kcq552n Query : use flama_phc
20240723@185912.1164 giievl6t0pqalo23ns5kcq552n Query : select szadrsstamp valor from szadrs where szadrsdesc='macorlux - electrodomÉsticos, s.a.'
20240723@185912.1178 giievl6t0pqalo23ns5kcq552n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1134';
20240723@185912.1195 giievl6t0pqalo23ns5kcq552n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1134';
20240723@185912.1713 kdlosh8sp78v84e0k0k1c44cqs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@185912.1735 kdlosh8sp78v84e0k0k1c44cqs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@185912.1764 kdlosh8sp78v84e0k0k1c44cqs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1135';
20240723@185912.1832 kdlosh8sp78v84e0k0k1c44cqs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1135';
20240723@185912.1853 kdlosh8sp78v84e0k0k1c44cqs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1135';
20240723@185912.1881 kdlosh8sp78v84e0k0k1c44cqs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1135';
20240723@185912.1905 kdlosh8sp78v84e0k0k1c44cqs Query : use flama_phc
20240723@185912.1909 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@185912.1927 kdlosh8sp78v84e0k0k1c44cqs Query : use flama_phc
20240723@185912.1932 kdlosh8sp78v84e0k0k1c44cqs Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20240723@185912.3159 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240723@185912.3173 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404909 and bi.ref ='324.958.00.01' and bi.lordem =1
20240723@185912.3464 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4902.00.1'
20240723@185912.3569 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404909 and bi.ref ='324.4902.00.1' and bi.lordem =2
20240723@185912.3869 kdlosh8sp78v84e0k0k1c44cqs Query : use flama_phc
20240723@185912.3873 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185912.3888 kdlosh8sp78v84e0k0k1c44cqs Query : use flama_phc
20240723@185912.3892 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185912.3904 kdlosh8sp78v84e0k0k1c44cqs Query : use flama_phc
20240723@185912.3907 kdlosh8sp78v84e0k0k1c44cqs 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')
20240723@185912.3926 kdlosh8sp78v84e0k0k1c44cqs Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185912.3944 kdlosh8sp78v84e0k0k1c44cqs Query : use flama_phc
20240723@185912.3946 kdlosh8sp78v84e0k0k1c44cqs Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185912.3958 kdlosh8sp78v84e0k0k1c44cqs Query : use flama_phc
20240723@185912.3961 kdlosh8sp78v84e0k0k1c44cqs Query : select szadrsstamp valor from szadrs where szadrsdesc='sorefoz - electrod. e equipamentos, s.a.'
20240723@185912.3974 kdlosh8sp78v84e0k0k1c44cqs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1135';
20240723@185912.3993 kdlosh8sp78v84e0k0k1c44cqs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1135';
20240723@185912.4522 t7o41lol54une58lm56ndq386j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@185912.4537 t7o41lol54une58lm56ndq386j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@185912.4560 t7o41lol54une58lm56ndq386j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1136';
20240723@185912.4608 t7o41lol54une58lm56ndq386j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1136';
20240723@185912.4629 t7o41lol54une58lm56ndq386j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1136';
20240723@185912.4642 t7o41lol54une58lm56ndq386j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1136';
20240723@185912.4659 t7o41lol54une58lm56ndq386j Query : use flama_phc
20240723@185912.4661 t7o41lol54une58lm56ndq386j Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@185912.4677 t7o41lol54une58lm56ndq386j Query : use flama_phc
20240723@185912.4680 t7o41lol54une58lm56ndq386j Query : select no, estab,szadrsdesc from szadrs where u_coddest=2199
20240723@185912.4787 t7o41lol54une58lm56ndq386j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '321.162.40.00'
20240723@185912.4906 t7o41lol54une58lm56ndq386j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404910 and bi.ref ='321.162.40.00' and bi.lordem =1
20240723@185912.5791 t7o41lol54une58lm56ndq386j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '321.181.45.00'
20240723@185912.6636 t7o41lol54une58lm56ndq386j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404910 and bi.ref ='321.181.45.00' and bi.lordem =2
20240723@185912.6924 t7o41lol54une58lm56ndq386j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240723@185912.7027 t7o41lol54une58lm56ndq386j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404910 and bi.ref ='324.1643.00.1' and bi.lordem =3
20240723@185912.7312 t7o41lol54une58lm56ndq386j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20240723@185912.7418 t7o41lol54une58lm56ndq386j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404910 and bi.ref ='324.938.00.01' and bi.lordem =4
20240723@185912.7702 t7o41lol54une58lm56ndq386j Query : use flama_phc
20240723@185912.7705 t7o41lol54une58lm56ndq386j Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185912.7719 t7o41lol54une58lm56ndq386j Query : use flama_phc
20240723@185912.7722 t7o41lol54une58lm56ndq386j Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185912.7734 t7o41lol54une58lm56ndq386j Query : use flama_phc
20240723@185912.7737 t7o41lol54une58lm56ndq386j 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')
20240723@185912.7765 t7o41lol54une58lm56ndq386j Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185912.7790 t7o41lol54une58lm56ndq386j Query : use flama_phc
20240723@185912.7793 t7o41lol54une58lm56ndq386j Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185912.7805 t7o41lol54une58lm56ndq386j Query : use flama_phc
20240723@185912.7807 t7o41lol54une58lm56ndq386j Query : select szadrsstamp valor from szadrs where szadrsdesc='custÓdia duarte rodrigues lopes'
20240723@185912.7819 t7o41lol54une58lm56ndq386j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1136';
20240723@185912.7836 t7o41lol54une58lm56ndq386j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1136';
20240723@185912.8368 diikha9ol2vhbc9qesls9902ve Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@185912.8385 diikha9ol2vhbc9qesls9902ve Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@185912.8407 diikha9ol2vhbc9qesls9902ve Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1137';
20240723@185912.8454 diikha9ol2vhbc9qesls9902ve Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1137';
20240723@185912.8474 diikha9ol2vhbc9qesls9902ve Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1137';
20240723@185912.8488 diikha9ol2vhbc9qesls9902ve Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1137';
20240723@185912.8505 diikha9ol2vhbc9qesls9902ve Query : use flama_phc
20240723@185912.8508 diikha9ol2vhbc9qesls9902ve Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@185912.8530 diikha9ol2vhbc9qesls9902ve Query : use flama_phc
20240723@185912.8534 diikha9ol2vhbc9qesls9902ve Query : select no, estab,szadrsdesc from szadrs where u_coddest=2183
20240723@185912.8629 diikha9ol2vhbc9qesls9902ve Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2066.00.1'
20240723@185912.8740 diikha9ol2vhbc9qesls9902ve Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404912 and bi.ref ='324.2066.00.1' and bi.lordem =1
20240723@185913.5450 diikha9ol2vhbc9qesls9902ve Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.1'
20240723@185913.1135 diikha9ol2vhbc9qesls9902ve Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404912 and bi.ref ='324.2231.00.1' and bi.lordem =2
20240723@185913.1436 diikha9ol2vhbc9qesls9902ve Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240723@185913.1448 diikha9ol2vhbc9qesls9902ve Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404912 and bi.ref ='304.421.00.04' and bi.lordem =3
20240723@185913.1748 diikha9ol2vhbc9qesls9902ve Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240723@185913.1761 diikha9ol2vhbc9qesls9902ve Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404912 and bi.ref ='324.1824.00.1' and bi.lordem =4
20240723@185913.2071 diikha9ol2vhbc9qesls9902ve Query : use flama_phc
20240723@185913.2075 diikha9ol2vhbc9qesls9902ve Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185913.2091 diikha9ol2vhbc9qesls9902ve Query : use flama_phc
20240723@185913.2094 diikha9ol2vhbc9qesls9902ve Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185913.2107 diikha9ol2vhbc9qesls9902ve Query : use flama_phc
20240723@185913.2110 diikha9ol2vhbc9qesls9902ve 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')
20240723@185913.2131 diikha9ol2vhbc9qesls9902ve Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185913.2151 diikha9ol2vhbc9qesls9902ve Query : use flama_phc
20240723@185913.2154 diikha9ol2vhbc9qesls9902ve Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185913.2165 diikha9ol2vhbc9qesls9902ve Query : use flama_phc
20240723@185913.2168 diikha9ol2vhbc9qesls9902ve Query : select szadrsstamp valor from szadrs where szadrsdesc='jose martins'
20240723@185913.2182 diikha9ol2vhbc9qesls9902ve Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1137';
20240723@185913.2214 diikha9ol2vhbc9qesls9902ve Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1137';
20240723@185913.3949 v4id6iidps8jlut5cdr7oopq5i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@185913.3965 v4id6iidps8jlut5cdr7oopq5i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@185913.3991 v4id6iidps8jlut5cdr7oopq5i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1138';
20240723@185913.4036 v4id6iidps8jlut5cdr7oopq5i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1138';
20240723@185913.4055 v4id6iidps8jlut5cdr7oopq5i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1138';
20240723@185913.4068 v4id6iidps8jlut5cdr7oopq5i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1138';
20240723@185913.4086 v4id6iidps8jlut5cdr7oopq5i Query : use flama_phc
20240723@185913.4089 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@185913.4105 v4id6iidps8jlut5cdr7oopq5i Query : use flama_phc
20240723@185913.4109 v4id6iidps8jlut5cdr7oopq5i Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240723@185913.4179 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240723@185913.4284 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.5500.00.1' and bi.lordem =1
20240723@185913.4557 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240723@185913.4569 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.5500.00.1' and bi.lordem =2
20240723@185913.4847 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240723@185913.4859 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.1834.00.1' and bi.lordem =3
20240723@185913.5128 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240723@185913.5140 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.1834.00.1' and bi.lordem =4
20240723@185913.5453 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240723@185913.5567 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.646.00.01' and bi.lordem =5
20240723@185913.5847 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240723@185913.5860 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.646.00.01' and bi.lordem =5
20240723@185913.5868 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240723@185913.5878 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.646.00.01' and bi.lordem =6
20240723@185913.6168 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240723@185913.6274 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2049 and bo.obrano = 2404920 and bi.ref ='324.945.00.01' and bi.lordem =7
20240723@185913.6546 v4id6iidps8jlut5cdr7oopq5i Query : use flama_phc
20240723@185913.6549 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@185913.6563 v4id6iidps8jlut5cdr7oopq5i Query : use flama_phc
20240723@185913.6566 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 1 valor from td where td.ndoc = 39
20240723@185913.6579 v4id6iidps8jlut5cdr7oopq5i Query : use flama_phc
20240723@185913.6582 v4id6iidps8jlut5cdr7oopq5i 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')
20240723@185913.6602 v4id6iidps8jlut5cdr7oopq5i Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@185913.6619 v4id6iidps8jlut5cdr7oopq5i Query : use flama_phc
20240723@185913.6622 v4id6iidps8jlut5cdr7oopq5i Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@185913.6634 v4id6iidps8jlut5cdr7oopq5i Query : use flama_phc
20240723@185913.6637 v4id6iidps8jlut5cdr7oopq5i Query : select szadrsstamp valor from szadrs where szadrsdesc='bragajav, lda.'
20240723@185913.6649 v4id6iidps8jlut5cdr7oopq5i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1138';
20240723@185913.6666 v4id6iidps8jlut5cdr7oopq5i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1138';
20240723@191918.8319 a6fpusfafv2j4jenacee5c5i8p Query : use flama_phc
20240723@191918.8324 a6fpusfafv2j4jenacee5c5i8p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@191918.8345 a6fpusfafv2j4jenacee5c5i8p Query : use flama_phc
20240723@191918.8348 a6fpusfafv2j4jenacee5c5i8p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@193618.5855 4cqtkag8fhalackftgsfjj8cr4 Query : use flama_phc
20240723@193618.5862 4cqtkag8fhalackftgsfjj8cr4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@193618.5881 4cqtkag8fhalackftgsfjj8cr4 Query : use flama_phc
20240723@193618.5884 4cqtkag8fhalackftgsfjj8cr4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@201945.2710 gu1uhukjrne84m3ac602hhggna Query : use flama_phc
20240723@201945.2716 gu1uhukjrne84m3ac602hhggna Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@201945.2736 gu1uhukjrne84m3ac602hhggna Query : use flama_phc
20240723@201945.2740 gu1uhukjrne84m3ac602hhggna Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@203644.6916 fe51un02nfdidqhdtiba6bedpa Query : use flama_phc
20240723@203644.6921 fe51un02nfdidqhdtiba6bedpa Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@203644.6939 fe51un02nfdidqhdtiba6bedpa Query : use flama_phc
20240723@203644.6941 fe51un02nfdidqhdtiba6bedpa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@211909.2785 ok6irjav2rfcqpmsmq9hrn1gto Query : use flama_phc
20240723@211909.2793 ok6irjav2rfcqpmsmq9hrn1gto Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@211909.3069 ok6irjav2rfcqpmsmq9hrn1gto Query : use flama_phc
20240723@211909.3075 ok6irjav2rfcqpmsmq9hrn1gto Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@213609.5195 2a934ni51248er0jhu3kcgsmj9 Query : use flama_phc
20240723@213609.5201 2a934ni51248er0jhu3kcgsmj9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@213609.5220 2a934ni51248er0jhu3kcgsmj9 Query : use flama_phc
20240723@213609.5223 2a934ni51248er0jhu3kcgsmj9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@214626.8140 l6ti62no3bv4brdjca4gvus9ea Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@214626.8158 l6ti62no3bv4brdjca4gvus9ea Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@214626.8183 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1139';
20240723@214626.8235 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1139';
20240723@214626.8255 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1139';
20240723@214626.8271 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1139';
20240723@214626.8287 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@214626.8291 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@214626.8309 l6ti62no3bv4brdjca4gvus9ea Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20240723@214626.8391 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.719.00.01'
20240723@214626.8475 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.719.00.01' and bi.lordem =10000
20240723@214626.8799 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235269,428000001 ' 
20240723@214626.9079 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.938.00.01'
20240723@214626.9158 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.938.00.01' and bi.lordem =20000
20240723@214626.9452 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235706,562000002 ' 
20240723@214626.9735 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1706.00.1'
20240723@214626.9818 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1706.00.1' and bi.lordem =30000
20240723@214627.3230 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235775,555000003 ' 
20240723@214627.6480 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1461.00.1'
20240723@214627.7360 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1461.00.1' and bi.lordem =40000
20240723@214627.1012 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235812,210000004 ' 
20240723@214627.1271 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1670.00.1'
20240723@214627.1381 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1670.00.1' and bi.lordem =50000
20240723@214627.1678 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235838,664000005 ' 
20240723@214627.1936 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1643.00.1'
20240723@214627.2022 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1643.00.1' and bi.lordem =55000
20240723@214627.2306 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235901,776000008 ' 
20240723@214627.2580 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1643.00.1'
20240723@214627.2591 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1643.00.1' and bi.lordem =55000
20240723@214627.2604 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235901,776000008 ' 
20240723@214627.2616 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.497.00.01'
20240723@214627.2702 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.497.00.01' and bi.lordem =60000
20240723@214627.4160 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235855,454000006 ' 
20240723@214627.4447 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20240723@214627.4531 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.4970.00.1' and bi.lordem =70000
20240723@214627.4826 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235877,001000007 ' 
20240723@214627.5117 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4211.00.1'
20240723@214627.5195 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.4211.00.1' and bi.lordem =80000
20240723@214627.5490 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235925,064000009 ' 
20240723@214627.5761 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4020.00.1'
20240723@214627.5842 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.4020.00.1' and bi.lordem =90000
20240723@214627.6135 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235972,162000010 ' 
20240723@214627.6408 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9902.00.1'
20240723@214627.6490 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='328.9902.00.1' and bi.lordem =100000
20240723@214627.6846 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071236028,940000011 ' 
20240723@214627.7161 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2186.00.1'
20240723@214627.7294 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.2186.00.1' and bi.lordem =110000
20240723@214627.7594 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071236362,818000012 ' 
20240723@214627.7867 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@214627.7871 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 1 valor from ts where ts.ndos = 5
20240723@214627.7997 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@214627.8000 l6ti62no3bv4brdjca4gvus9ea 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')
20240723@214627.8021 l6ti62no3bv4brdjca4gvus9ea 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
20240723@214627.8154 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@214627.8157 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20240723@214627.8228 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1139';
20240723@214627.8246 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1139';
20240723@215251.6920 l6ti62no3bv4brdjca4gvus9ea Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@215251.6935 l6ti62no3bv4brdjca4gvus9ea Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@215251.6956 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1142';
20240723@215251.7000 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1142';
20240723@215251.7021 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1142';
20240723@215251.7035 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1142';
20240723@215251.7054 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215251.7057 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@215251.7075 l6ti62no3bv4brdjca4gvus9ea Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20240723@215251.7108 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.719.00.01'
20240723@215251.7119 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.719.00.01' and bi.lordem =10000
20240723@215251.7133 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235269,428000001 ' 
20240723@215251.7144 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.938.00.01'
20240723@215251.7155 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.938.00.01' and bi.lordem =20000
20240723@215251.7167 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235706,562000002 ' 
20240723@215251.7179 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1706.00.1'
20240723@215251.7191 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1706.00.1' and bi.lordem =30000
20240723@215251.7203 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235775,555000003 ' 
20240723@215251.7216 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1461.00.1'
20240723@215251.7227 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1461.00.1' and bi.lordem =40000
20240723@215251.7240 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235812,210000004 ' 
20240723@215251.7253 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1670.00.1'
20240723@215251.7265 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1670.00.1' and bi.lordem =50000
20240723@215251.7278 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235838,664000005 ' 
20240723@215251.7291 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1643.00.1'
20240723@215251.7302 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1643.00.1' and bi.lordem =55000
20240723@215251.7314 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235901,776000008 ' 
20240723@215251.7327 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1643.00.1'
20240723@215251.7337 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1643.00.1' and bi.lordem =55000
20240723@215251.7350 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235901,776000008 ' 
20240723@215251.7361 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.497.00.01'
20240723@215251.7371 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.497.00.01' and bi.lordem =60000
20240723@215251.7384 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235855,454000006 ' 
20240723@215251.7397 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20240723@215251.7407 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.4970.00.1' and bi.lordem =70000
20240723@215251.7420 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235877,001000007 ' 
20240723@215251.7433 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4211.00.1'
20240723@215251.7443 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.4211.00.1' and bi.lordem =80000
20240723@215251.7459 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235925,064000009 ' 
20240723@215251.7474 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4020.00.1'
20240723@215251.7484 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.4020.00.1' and bi.lordem =90000
20240723@215251.7497 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235972,162000010 ' 
20240723@215251.7509 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9902.00.1'
20240723@215251.7520 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='328.9902.00.1' and bi.lordem =100000
20240723@215251.7532 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071236028,940000011 ' 
20240723@215251.7543 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2186.00.1'
20240723@215251.7553 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.2186.00.1' and bi.lordem =110000
20240723@215251.7565 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071236362,818000012 ' 
20240723@215251.7578 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215251.7582 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 1 valor from ts where ts.ndos = 5
20240723@215251.7592 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215251.7594 l6ti62no3bv4brdjca4gvus9ea 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')
20240723@215251.7615 l6ti62no3bv4brdjca4gvus9ea 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
20240723@215251.7636 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215251.7639 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20240723@215251.7654 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1142';
20240723@215251.7671 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1142';
20240723@215525.3449 l6ti62no3bv4brdjca4gvus9ea Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@215525.3461 l6ti62no3bv4brdjca4gvus9ea Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@215525.3516 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1143';
20240723@215525.3618 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1143';
20240723@215525.3825 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1143';
20240723@215525.3867 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1143';
20240723@215525.3920 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.3925 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@215525.4005 l6ti62no3bv4brdjca4gvus9ea Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20240723@215525.4058 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.719.00.01'
20240723@215525.4083 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.719.00.01' and bi.lordem =10000
20240723@215525.4109 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235269,428000001 ' 
20240723@215525.4143 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.938.00.01'
20240723@215525.4167 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.938.00.01' and bi.lordem =20000
20240723@215525.4199 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235706,562000002 ' 
20240723@215525.4224 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1706.00.1'
20240723@215525.4255 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1706.00.1' and bi.lordem =30000
20240723@215525.4335 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235775,555000003 ' 
20240723@215525.4366 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1461.00.1'
20240723@215525.4390 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1461.00.1' and bi.lordem =40000
20240723@215525.4419 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235812,210000004 ' 
20240723@215525.4446 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1670.00.1'
20240723@215525.4468 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1670.00.1' and bi.lordem =50000
20240723@215525.4493 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235838,664000005 ' 
20240723@215525.4515 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1643.00.1'
20240723@215525.4535 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1643.00.1' and bi.lordem =55000
20240723@215525.4560 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235901,776000008 ' 
20240723@215525.4582 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1643.00.1'
20240723@215525.4601 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.1643.00.1' and bi.lordem =55000
20240723@215525.4625 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235901,776000008 ' 
20240723@215525.4647 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.497.00.01'
20240723@215525.4668 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.497.00.01' and bi.lordem =60000
20240723@215525.4690 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235855,454000006 ' 
20240723@215525.4713 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20240723@215525.4740 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='324.4970.00.1' and bi.lordem =70000
20240723@215525.4768 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235877,001000007 ' 
20240723@215525.4790 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4211.00.1'
20240723@215525.4812 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.4211.00.1' and bi.lordem =80000
20240723@215525.4843 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235925,064000009 ' 
20240723@215525.4867 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4020.00.1'
20240723@215525.4887 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.4020.00.1' and bi.lordem =90000
20240723@215525.4912 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071235972,162000010 ' 
20240723@215525.4944 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9902.00.1'
20240723@215525.4966 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='328.9902.00.1' and bi.lordem =100000
20240723@215525.4990 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071236028,940000011 ' 
20240723@215525.5012 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2186.00.1'
20240723@215525.5037 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2024 and bo.obrano = 0000030 and bi.ref ='304.2186.00.1' and bi.lordem =110000
20240723@215525.5059 l6ti62no3bv4brdjca4gvus9ea 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 = 'pll24071236362,818000012 ' 
20240723@215525.5091 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.5095 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 1 valor from ts where ts.ndos = 5
20240723@215525.5128 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.5131 l6ti62no3bv4brdjca4gvus9ea 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')
20240723@215525.5168 l6ti62no3bv4brdjca4gvus9ea 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
20240723@215525.5204 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.5208 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20240723@215525.5248 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.5251 l6ti62no3bv4brdjca4gvus9ea Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@215525.5297 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.5305 l6ti62no3bv4brdjca4gvus9ea Query : select szadrsstamp valor from szadrs where szadrsdesc='flama-fab.louÇas e electrodomesticos,sa'
20240723@215525.6552 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.6556 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from ts where ndos = 5
20240723@215525.6571 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.6592 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240723@215525.6607 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.6624 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240723@215525.6634 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.6653 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240723@215525.6662 l6ti62no3bv4brdjca4gvus9ea 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
20240723@215525.6680 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240723@215525.6711 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240723@215525.6729 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.6736 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100999' and estab=0
20240723@215525.6756 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.6774 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240723@215525.6787 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a011551366a018bda4',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240723@215525.6792 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.6808 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240723@215525.6822 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut66a011551366a018bda4','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240723','10:22',?,?)
20240723@215525.7016 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.7039 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240723@215525.7058 l6ti62no3bv4brdjca4gvus9ea 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 ('aut66a011551366a018bda4','trf entre armazéns a','2024-07-23',5,397,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20240723@215525.7480 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.7483 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.719.00.01'
20240723@215525.7499 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.7502 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.719.00.01'
20240723@215525.7522 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.7525 l6ti62no3bv4brdjca4gvus9ea 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.719.00.01' and sa.armazem = 133 
20240723@215525.7551 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.7554 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.719.00.01'
20240723@215525.7577 l6ti62no3bv4brdjca4gvus9ea 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.719.00.01'
20240723@215525.7592 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.7610 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.7623 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.7639 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.7649 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.719.00.01' and lote = 'r2300383300a'
20240723@215525.7662 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215525.7675 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.7691 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.7704 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a018469766a018bdbb','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215525.7832 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.7853 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.7873 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a018469766a018bdbb',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,10000 ,24.99,24.99*200.48,24.99,24.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,24.99*8.000,24.99*8.000*200.48 ,5.932000,5.932000*200.48 ,5.932000,5.932000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,24.99,24.99*200.48,24.99*8.000,24.99*8.000*200.48,'pll24071235269,428000001 ',24.99,24.99*8.000,24.99,24.99*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215525.8170 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8175 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20240723@215525.8191 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8194 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.938.00.01'
20240723@215525.8211 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8214 l6ti62no3bv4brdjca4gvus9ea 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.938.00.01' and sa.armazem = 133 
20240723@215525.8238 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8241 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.938.00.01'
20240723@215525.8260 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.938.00.01'
20240723@215525.8276 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.8294 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.8307 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.8322 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.8332 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20240723@215525.8345 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215525.8359 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.8374 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.8385 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a016113066a018bdcc','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215525.8527 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.8547 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.8573 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a016113066a018bdcc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*1.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 ,29.99,29.99*200.48,29.99,29.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,29.99*12.000,29.99*12.000*200.48 ,8.255000,8.255000*200.48 ,8.255000,8.255000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.99,29.99*200.48,29.99*12.000,29.99*12.000*200.48,'pll24071235706,562000002 ',29.99,29.99*12.000,29.99,29.99*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215525.8846 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8851 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1706.00.1'
20240723@215525.8865 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8868 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20240723@215525.8883 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8886 l6ti62no3bv4brdjca4gvus9ea Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1706.00.1' and sa.armazem = 133 
20240723@215525.8908 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.8911 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1706.00.1'
20240723@215525.8930 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1706.00.1'
20240723@215525.8944 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.8962 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.8974 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.8993 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.9002 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1706.00.1' and lote = 'r2100123100b'
20240723@215525.9016 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215525.9029 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.9045 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.9057 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a015859366a018bddc','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215525.9195 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.9220 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.9239 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a015859366a018bddc',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,30000 ,59.99,59.99*200.48,59.99,59.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,59.99*10.000,59.99*10.000*200.48 ,15.735000,15.735000*200.48 ,15.735000,15.735000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,59.99,59.99*200.48,59.99*10.000,59.99*10.000*200.48,'pll24071235775,555000003 ',59.99,59.99*10.000,59.99,59.99*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215525.9524 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.9528 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1461.00.1'
20240723@215525.9544 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.9547 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1461.00.1'
20240723@215525.9563 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.9566 l6ti62no3bv4brdjca4gvus9ea 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.1461.00.1' and sa.armazem = 133 
20240723@215525.9591 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215525.9594 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1461.00.1'
20240723@215525.9614 l6ti62no3bv4brdjca4gvus9ea 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.1461.00.1'
20240723@215525.9629 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.9648 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.9661 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.9676 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.9684 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1461.00.1' and lote = 'r2100463200a'
20240723@215525.9698 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215525.9712 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.9728 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215525.9741 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a014431166a018bded','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215525.9871 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215525.9891 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215525.9908 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a014431166a018bded',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 ,99.99,99.99*200.48,99.99,99.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,99.99*4.000,99.99*4.000*200.48 ,29.860000,29.860000*200.48 ,29.860000,29.860000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,99.99,99.99*200.48,99.99*4.000,99.99*4.000*200.48,'pll24071235812,210000004 ',99.99,99.99*4.000,99.99,99.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.2020 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2070 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20240723@215526.2210 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2240 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1670.00.1'
20240723@215526.2410 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2440 l6ti62no3bv4brdjca4gvus9ea 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.1670.00.1' and sa.armazem = 133 
20240723@215526.2660 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2690 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1670.00.1'
20240723@215526.3630 l6ti62no3bv4brdjca4gvus9ea 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.1670.00.1'
20240723@215526.3790 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.3990 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.4120 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.4340 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.4430 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2301213200a'
20240723@215526.4570 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.4710 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.4870 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.5000 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a014283166a018be0b','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.6350 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.6620 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.6790 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a014283166a018be0b',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 ,84.99,84.99*200.48,84.99,84.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,84.99*6.000,84.99*6.000*200.48 ,22.811000,22.811000*200.48 ,22.811000,22.811000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,84.99,84.99*200.48,84.99*6.000,84.99*6.000*200.48,'pll24071235838,664000005 ',84.99,84.99*6.000,84.99,84.99*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.9540 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.9590 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20240723@215526.9750 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.9780 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1643.00.1'
20240723@215526.9960 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.9990 l6ti62no3bv4brdjca4gvus9ea 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.1643.00.1' and sa.armazem = 133 
20240723@215526.1025 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.1028 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1643.00.1'
20240723@215526.1048 l6ti62no3bv4brdjca4gvus9ea 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.1643.00.1'
20240723@215526.1065 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.1082 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.1097 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.1113 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.1122 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20240723@215526.1140 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.1160 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.1180 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.1197 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a010951166a018be1c','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.1339 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.1363 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.1385 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a010951166a018be1c',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,60000 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,149.99*9.000,149.99*9.000*200.48 ,40.138000,40.138000*200.48 ,40.138000,40.138000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*9.000,149.99*9.000*200.48,'pll24071235901,776000008 ',149.99,149.99*9.000,149.99,149.99*9.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.1684 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.1690 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1643.00.1'
20240723@215526.1716 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.1719 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1643.00.1'
20240723@215526.1740 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.1743 l6ti62no3bv4brdjca4gvus9ea 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.1643.00.1' and sa.armazem = 133 
20240723@215526.1771 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.1775 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1643.00.1'
20240723@215526.1800 l6ti62no3bv4brdjca4gvus9ea 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.1643.00.1'
20240723@215526.1818 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.1853 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.1869 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.1888 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.1900 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1643.00.1' and lote = 'r2101218200a'
20240723@215526.1918 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.1942 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.1961 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.1977 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a012319166a018be2f','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.2124 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.2152 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.2171 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a012319166a018be2f',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,70000 ,149.99,149.99*200.48,149.99,149.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,149.99*3.000,149.99*3.000*200.48 ,40.138000,40.138000*200.48 ,40.138000,40.138000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,149.99,149.99*200.48,149.99*3.000,149.99*3.000*200.48,'pll24071235901,776000008 ',149.99,149.99*3.000,149.99,149.99*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.2461 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2468 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.497.00.01'
20240723@215526.2483 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2487 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.497.00.01'
20240723@215526.2504 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2507 l6ti62no3bv4brdjca4gvus9ea Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.497.00.01' and sa.armazem = 133 
20240723@215526.2531 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.2541 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.497.00.01'
20240723@215526.2561 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.497.00.01'
20240723@215526.2576 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.2593 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.2605 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.2620 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.2629 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.497.00.01' and lote = 'r2300022100a'
20240723@215526.2644 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.2664 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.2681 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.2696 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a011527266a018be41','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.2833 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.2860 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.2878 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a011527266a018be41',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,80000 ,29.99,29.99*200.48,29.99,29.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,29.99*12.000,29.99*12.000*200.48 ,8.279000,8.279000*200.48 ,8.279000,8.279000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.99,29.99*200.48,29.99*12.000,29.99*12.000*200.48,'pll24071235855,454000006 ',29.99,29.99*12.000,29.99,29.99*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.3194 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.3199 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240723@215526.3214 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.3218 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20240723@215526.3236 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.3239 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@215526.3298 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.3301 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20240723@215526.3324 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@215526.3339 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.3365 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.3378 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.3399 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.3408 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240723@215526.3422 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.3437 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.3453 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.3466 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a015991666a018be53','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.3603 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.3631 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.3651 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a015991666a018be53',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,90000 ,42.99,42.99*200.48,42.99,42.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,42.99*12.000,42.99*12.000*200.48 ,8.845000,8.845000*200.48 ,8.845000,8.845000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,42.99,42.99*200.48,42.99*12.000,42.99*12.000*200.48,'pll24071235877,001000007 ',42.99,42.99*12.000,42.99,42.99*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.3936 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.3945 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '304.4211.00.1'
20240723@215526.3961 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.3964 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.4211.00.1'
20240723@215526.3981 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.3984 l6ti62no3bv4brdjca4gvus9ea 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.4211.00.1' and sa.armazem = 133 
20240723@215526.4010 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.4013 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.4211.00.1'
20240723@215526.4033 l6ti62no3bv4brdjca4gvus9ea 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.4211.00.1'
20240723@215526.4048 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.4073 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.4087 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.4108 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.5543 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='304.4211.00.1' and lote = '220664'
20240723@215526.5572 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.5589 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.5610 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.5625 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a019681366a018be88','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.5753 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.5777 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.5797 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a019681366a018be88',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,100000 ,89.99,89.99*200.48,89.99,89.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,89.99*2.000,89.99*2.000*200.48 ,32.068000,32.068000*200.48 ,32.068000,32.068000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,89.99,89.99*200.48,89.99*2.000,89.99*2.000*200.48,'pll24071235925,064000009 ',89.99,89.99*2.000,89.99,89.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.6069 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6073 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '304.4020.00.1'
20240723@215526.6094 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6098 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.4020.00.1'
20240723@215526.6114 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6117 l6ti62no3bv4brdjca4gvus9ea 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.4020.00.1' and sa.armazem = 133 
20240723@215526.6141 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6143 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.4020.00.1'
20240723@215526.6163 l6ti62no3bv4brdjca4gvus9ea 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.4020.00.1'
20240723@215526.6178 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.6203 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.6219 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.6235 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.6245 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='304.4020.00.1' and lote = '240409'
20240723@215526.6259 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.6272 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.6288 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.6300 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a011694766a018be99','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.6441 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.6461 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.6478 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a011694766a018be99',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 ,29.99,29.99*200.48,29.99,29.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,29.99*12.000,29.99*12.000*200.48 ,9.712000,9.712000*200.48 ,9.712000,9.712000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,29.99,29.99*200.48,29.99*12.000,29.99*12.000*200.48,'pll24071235972,162000010 ',29.99,29.99*12.000,29.99,29.99*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.6756 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6761 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '328.9902.00.1'
20240723@215526.6778 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6781 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '328.9902.00.1'
20240723@215526.6799 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6802 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@215526.6829 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.6833 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '328.9902.00.1'
20240723@215526.6857 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@215526.6873 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.6892 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.6907 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.6924 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.6935 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='328.9902.00.1' and lote = 'r2301241100a'
20240723@215526.6950 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.6991 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.7010 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.7024 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a015787866a018beaa','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.7160 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.7182 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.7201 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a015787866a018beaa',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,120000 ,549.99,549.99*200.48,549.99,549.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,549.99*2.000,549.99*2.000*200.48 ,164.541000,164.541000*200.48 ,164.541000,164.541000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,549.99,549.99*200.48,549.99*2.000,549.99*2.000*200.48,'pll24071236028,940000011 ',549.99,549.99*2.000,549.99,549.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.7479 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.7483 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '304.2186.00.1'
20240723@215526.7501 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.7504 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.2186.00.1'
20240723@215526.7527 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.7531 l6ti62no3bv4brdjca4gvus9ea 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.2186.00.1' and sa.armazem = 133 
20240723@215526.7557 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.7560 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.2186.00.1'
20240723@215526.7581 l6ti62no3bv4brdjca4gvus9ea 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.2186.00.1'
20240723@215526.7597 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.7618 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.7634 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.7652 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.7663 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='304.2186.00.1' and lote = '240919'
20240723@215526.7681 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@215526.7697 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.7714 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@215526.7728 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a016252766a018bebb','aut66a011551366a018bda4',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 = 'aut66a011551366a018bda4'
20240723@215526.7869 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@215526.7897 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@215526.7917 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a016252766a018bebb',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,130000 ,449.99,449.99*200.48,449.99,449.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,449.99*2.000,449.99*2.000*200.48 ,144.696000,144.696000*200.48 ,144.696000,144.696000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,449.99,449.99*200.48,449.99*2.000,449.99*2.000*200.48,'pll24071236362,818000012 ',449.99,449.99*2.000,449.99,449.99*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a011551366a018bda4'
20240723@215526.8193 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut66a011551366a018bda4','','wait',5,'adm12071144683,938000003','')
20240723@215526.8278 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@215526.8282 l6ti62no3bv4brdjca4gvus9ea Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@215526.8340 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1143';
20240723@215526.8370 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1143';
20240723@220656.3077 l6ti62no3bv4brdjca4gvus9ea Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@220656.3088 l6ti62no3bv4brdjca4gvus9ea Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@220656.3145 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1144';
20240723@220656.3212 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1144';
20240723@220656.3265 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1144';
20240723@220656.3297 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1144';
20240723@220656.3338 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220656.3342 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@220656.3411 l6ti62no3bv4brdjca4gvus9ea Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240723@220656.3506 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20240723@220656.3610 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.948.00.01' and bi.lordem =10000
20240723@220656.3923 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238338,967000001 ' 
20240723@220656.4222 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20240723@220656.4244 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.948.00.01' and bi.lordem =10000
20240723@220656.4270 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238338,967000001 ' 
20240723@220656.4295 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.421.00.04'
20240723@220656.6225 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='304.421.00.04' and bi.lordem =20000
20240723@220656.6603 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238592,682000002 ' 
20240723@220656.6944 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.421.00.04'
20240723@220656.6967 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='304.421.00.04' and bi.lordem =20000
20240723@220656.6992 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238592,682000002 ' 
20240723@220656.7016 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1705.00.1'
20240723@220656.7129 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.1705.00.1' and bi.lordem =30000
20240723@220656.7472 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238628,791000003 ' 
20240723@220656.7797 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4421.00.1'
20240723@220656.7910 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4421.00.1' and bi.lordem =40000
20240723@220656.8240 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238640,027000004 ' 
20240723@220656.8551 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.969.00.01'
20240723@220656.8679 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.969.00.01' and bi.lordem =50000
20240723@220656.9050 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238651,583000005 ' 
20240723@220656.9348 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4521.00.1'
20240723@220656.9470 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4521.00.1' and bi.lordem =60000
20240723@220656.9818 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238662,346000006 ' 
20240723@220657.1180 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4906.00.1'
20240723@220657.4910 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4906.00.1' and bi.lordem =70000
20240723@220657.9500 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238674,546000007 ' 
20240723@220657.1247 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20240723@220657.1345 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.5501.00.1' and bi.lordem =90000
20240723@220657.1672 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238698,187000009 ' 
20240723@220657.1976 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5501.00.1'
20240723@220657.2000 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.5501.00.1' and bi.lordem =90000
20240723@220657.2027 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238698,187000009 ' 
20240723@220657.2054 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4970.00.1'
20240723@220657.2084 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4970.00.1' and bi.lordem =100000
20240723@220657.2397 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238710,685000010 ' 
20240723@220657.2716 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5343.00.1'
20240723@220657.2809 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.5343.00.1' and bi.lordem =110000
20240723@220657.3136 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238732,609000011 ' 
20240723@220657.3417 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5347.00.1'
20240723@220657.3516 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.5347.00.1' and bi.lordem =120000
20240723@220657.3850 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238751,934000012 ' 
20240723@220657.4148 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '325.551.00.15'
20240723@220657.4253 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='325.551.00.15' and bi.lordem =130000
20240723@220657.4590 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238764,420000013 ' 
20240723@220657.4914 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4902.00.1'
20240723@220657.5037 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4902.00.1' and bi.lordem =140000
20240723@220657.6417 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238783,098000014 ' 
20240723@220657.6715 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4901.00.1'
20240723@220657.6816 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4901.00.1' and bi.lordem =150000
20240723@220657.7145 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238794,615000015 ' 
20240723@220657.7435 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1416.00.1'
20240723@220657.7543 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.1416.00.1' and bi.lordem =160000
20240723@220657.7854 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238814,277000016 ' 
20240723@220657.8157 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1690.00.1'
20240723@220657.8273 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.1690.00.1' and bi.lordem =170000
20240723@220657.8616 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238829,419000017 ' 
20240723@220657.8930 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5500.00.1'
20240723@220657.9039 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.5500.00.1' and bi.lordem =180000
20240723@220657.9375 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238850,248000018 ' 
20240723@220657.9669 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1871.00.1'
20240723@220657.9770 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.1871.00.1' and bi.lordem =190000
20240723@220658.9700 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238862,481000019 ' 
20240723@220658.4160 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.646.00.01'
20240723@220658.5190 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.646.00.01' and bi.lordem =200000
20240723@220658.8360 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238874,049000020 ' 
20240723@220658.1123 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.657.00.01'
20240723@220658.1225 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.657.00.01' and bi.lordem =210000
20240723@220658.1837 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238886,647000021 ' 
20240723@220658.2248 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.657.00.01'
20240723@220658.2270 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.657.00.01' and bi.lordem =210000
20240723@220658.2294 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238886,647000021 ' 
20240723@220658.2317 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.681.00.01'
20240723@220658.2458 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.681.00.01' and bi.lordem =220000
20240723@220658.2793 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238900,664000022 ' 
20240723@220658.3075 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.682.00.01'
20240723@220658.3166 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.682.00.01' and bi.lordem =230000
20240723@220658.3480 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238928,767000023 ' 
20240723@220658.3759 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4840.00.1'
20240723@220658.3860 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4840.00.1' and bi.lordem =240000
20240723@220658.4162 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238947,330000024 ' 
20240723@220658.4455 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4840.00.1'
20240723@220658.4479 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4840.00.1' and bi.lordem =240000
20240723@220658.4502 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238947,330000024 ' 
20240723@220658.4525 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4585.00.1'
20240723@220658.4627 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4585.00.1' and bi.lordem =250000
20240723@220658.6255 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238959,563000025 ' 
20240723@220658.6537 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4988.00.1'
20240723@220658.6723 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.4988.00.1' and bi.lordem =260000
20240723@220658.7040 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072238979,477000026 ' 
20240723@220658.7325 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.727.00.01'
20240723@220658.7423 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.727.00.01' and bi.lordem =270000
20240723@220658.7739 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072239211,660000027 ' 
20240723@220658.8033 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2224.00.1'
20240723@220658.8129 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.2224.00.1' and bi.lordem =280000
20240723@220658.8531 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072239232,872000028 ' 
20240723@220658.8919 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2232.00.1'
20240723@220658.9022 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001564 and bi.ref ='324.2232.00.1' and bi.lordem =290000
20240723@220658.9408 l6ti62no3bv4brdjca4gvus9ea 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 = 'az24072239244,208000029 ' 
20240723@220658.9722 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220658.9726 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 1 valor from ts where ts.ndos = 5
20240723@220658.9764 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220658.9768 l6ti62no3bv4brdjca4gvus9ea 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')
20240723@220658.9804 l6ti62no3bv4brdjca4gvus9ea 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
20240723@220658.9843 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220658.9847 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240723@220658.9952 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220658.9955 l6ti62no3bv4brdjca4gvus9ea Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@220658.9996 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.1000 l6ti62no3bv4brdjca4gvus9ea Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20240723@220659.5100 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.5500 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from ts where ndos = 5
20240723@220659.6800 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.8800 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240723@220659.1020 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.1190 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240723@220659.1280 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.1430 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240723@220659.1520 l6ti62no3bv4brdjca4gvus9ea 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
20240723@220659.1680 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240723@220659.1980 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240723@220659.2130 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2210 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20240723@220659.3050 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3240 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240723@220659.3360 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a010149066a01b7305',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240723@220659.3410 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3580 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240723@220659.3700 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut66a010149066a01b7305','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240723','10:22',?,?)
20240723@220659.5390 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.5600 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240723@220659.5780 l6ti62no3bv4brdjca4gvus9ea 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 ('aut66a010149066a01b7305','trf entre armazéns a','2024-07-23',5,398,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20240723@220659.9580 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.9620 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20240723@220659.9780 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.9810 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.948.00.01'
20240723@220659.9990 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.1002 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220659.1268 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.1271 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.948.00.01'
20240723@220659.1298 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220659.1424 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.1444 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.1458 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.1475 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.1486 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20240723@220659.1509 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.1524 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.1542 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.1555 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a010087366a01b7325','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.1683 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.1706 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.1726 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a010087366a01b7325',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 18.000, 18.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,30.1*18.000,30.1*18.000*200.48 ,10.808000,10.808000*200.48 ,10.808000,10.808000*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*18.000,30.1*18.000*200.48,'az24072238338,967000001 ',30.1,30.1*18.000,30.1,30.1*18.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.1995 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2000 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.948.00.01'
20240723@220659.2016 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2021 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.948.00.01'
20240723@220659.2041 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2044 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220659.2068 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2071 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.948.00.01'
20240723@220659.2090 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220659.2105 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.2123 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.2137 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.2152 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.2163 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.948.00.01' and lote = 'r2301091200a'
20240723@220659.2182 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.2196 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.2214 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.2228 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a014020166a01b7335','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.2362 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.2384 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.2402 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a014020166a01b7335',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,20000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,30.1*2.000,30.1*2.000*200.48 ,10.808000,10.808000*200.48 ,10.808000,10.808000*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*2.000,30.1*2.000*200.48,'az24072238338,967000001 ',30.1,30.1*2.000,30.1,30.1*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.2673 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2679 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240723@220659.2698 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2702 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.421.00.04'
20240723@220659.2721 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2724 l6ti62no3bv4brdjca4gvus9ea 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.421.00.04' and sa.armazem = 133 
20240723@220659.2815 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.2818 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.421.00.04'
20240723@220659.2842 l6ti62no3bv4brdjca4gvus9ea 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.421.00.04'
20240723@220659.2972 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.2994 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.3014 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3038 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.3048 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240723@220659.3081 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.3095 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3112 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.3125 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a012100066a01b734b','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.3253 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3273 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.3290 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a012100066a01b734b',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 ,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 ,10.323000,10.323000*200.48 ,10.323000,10.323000*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,'az24072238592,682000002 ',25.6,25.6*4.000,25.6,25.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.3561 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.3566 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '304.421.00.04'
20240723@220659.3580 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.3583 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.421.00.04'
20240723@220659.3600 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.3603 l6ti62no3bv4brdjca4gvus9ea 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.421.00.04' and sa.armazem = 133 
20240723@220659.3631 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.3634 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '304.421.00.04'
20240723@220659.3655 l6ti62no3bv4brdjca4gvus9ea 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.421.00.04'
20240723@220659.3672 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3690 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.3704 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3721 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.3730 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='304.421.00.04' and lote = '240896'
20240723@220659.3743 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.3757 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3775 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.3788 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a019779866a01b735b','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.3925 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.3946 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.3966 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a019779866a01b735b',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 ,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 ,10.323000,10.323000*200.48 ,10.323000,10.323000*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,'az24072238592,682000002 ',25.6,25.6*4.000,25.6,25.6*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.4240 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.4245 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240723@220659.4263 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.4270 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20240723@220659.4287 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.4291 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220659.4363 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.4366 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1705.00.1'
20240723@220659.4387 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220659.4518 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.4541 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.4561 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.4581 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.4592 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20240723@220659.4622 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.4639 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.4661 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.4677 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a013932866a01b7371','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.4863 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.4889 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.4913 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a013932866a01b7371',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 24.000, 24.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 ,32,32*200.48,32,32*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,32*24.000,32*24.000*200.48 ,11.739000,11.739000*200.48 ,11.739000,11.739000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*24.000,32*24.000*200.48,'az24072238628,791000003 ',32,32*24.000,32,32*24.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.5238 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.5245 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4421.00.1'
20240723@220659.5265 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.5269 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4421.00.1'
20240723@220659.5289 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.5293 l6ti62no3bv4brdjca4gvus9ea 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.4421.00.1' and sa.armazem = 133 
20240723@220659.5370 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.5374 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4421.00.1'
20240723@220659.5402 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.4421.00.1'
20240723@220659.5575 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.5594 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.5610 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.5628 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.5639 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4421.00.1' and lote = 'r2100324100a'
20240723@220659.5675 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.5690 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.5709 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.5723 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a019126066a01b738a','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.5858 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.5879 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.5896 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a019126066a01b738a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 6.000, 6.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,30.1,30.1*200.48,30.1,30.1*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,30.1*6.000,30.1*6.000*200.48 ,12.479000,12.479000*200.48 ,12.479000,12.479000*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*6.000,30.1*6.000*200.48,'az24072238640,027000004 ',30.1,30.1*6.000,30.1,30.1*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.6181 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.6186 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.969.00.01'
20240723@220659.6205 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.6208 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.969.00.01'
20240723@220659.6226 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.6229 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220659.6301 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.6305 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.969.00.01'
20240723@220659.6327 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220659.6470 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.6488 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.6502 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.6517 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.6527 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.969.00.01' and lote = 'r2100601100a'
20240723@220659.6561 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.6576 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.6594 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.6607 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a011318466a01b73a0','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.6742 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.6764 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.6786 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a011318466a01b73a0',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,70000 ,35.2,35.2*200.48,35.2,35.2*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,35.2*12.000,35.2*12.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*12.000,35.2*12.000*200.48,'az24072238651,583000005 ',35.2,35.2*12.000,35.2,35.2*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.7064 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.7070 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4521.00.1'
20240723@220659.7090 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.7093 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20240723@220659.7113 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.7116 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220659.7193 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.7196 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4521.00.1'
20240723@220659.7223 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220659.7355 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.7376 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.7392 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.7410 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.7421 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4521.00.1' and lote = 'r2400052200a'
20240723@220659.7438 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.7454 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.7473 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.7488 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a019654266a01b73b5','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.7624 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.7648 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.7669 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a019654266a01b73b5',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,80000 ,41.6,41.6*200.48,41.6,41.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,41.6*16.000,41.6*16.000*200.48 ,15.785000,15.785000*200.48 ,15.785000,15.785000*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*16.000,41.6*16.000*200.48,'az24072238662,346000006 ',41.6,41.6*16.000,41.6,41.6*16.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.7956 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.7962 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4906.00.1'
20240723@220659.7978 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.7981 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4906.00.1'
20240723@220659.8000 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.8004 l6ti62no3bv4brdjca4gvus9ea 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.4906.00.1' and sa.armazem = 133 
20240723@220659.8095 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.8099 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4906.00.1'
20240723@220659.8119 l6ti62no3bv4brdjca4gvus9ea 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.4906.00.1'
20240723@220659.8253 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.8273 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.8288 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.8305 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.8315 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4906.00.1' and lote = 'r2300207200a'
20240723@220659.8345 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.8360 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.8377 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.8391 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a016309766a01b73cc','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.8530 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.8551 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.8569 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a016309766a01b73cc',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 12.000, 12.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,90000 ,41.6,41.6*200.48,41.6,41.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,41.6*12.000,41.6*12.000*200.48 ,19.270000,19.270000*200.48 ,19.270000,19.270000*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*12.000,41.6*12.000*200.48,'az24072238674,546000007 ',41.6,41.6*12.000,41.6,41.6*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.8858 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.8863 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240723@220659.8882 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.8884 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240723@220659.8913 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.8920 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220659.9004 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.9007 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240723@220659.9029 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220659.9170 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.9192 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.9208 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.9226 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.9235 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240723@220659.9261 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220659.9278 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.9296 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220659.9309 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a013700266a01b73e2','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220659.9458 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220659.9481 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220659.9499 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a013700266a01b73e2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,100000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*4.000,64*4.000*200.48 ,18.137000,18.137000*200.48 ,18.137000,18.137000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*4.000,64*4.000*200.48,'az24072238698,187000009 ',64,64*4.000,64,64*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220659.9854 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.9860 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.5501.00.1'
20240723@220659.9891 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.9895 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240723@220659.9923 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.9927 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220659.9959 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220659.9963 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5501.00.1'
20240723@220659.9990 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220700.9000 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.2900 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.4300 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.6100 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.7100 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.5501.00.1' and lote = 'r2300908100a'
20240723@220700.8400 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.9800 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.1180 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.1300 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a011177766a01b7402','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.2630 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.2830 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.3000 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a011177766a01b7402',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,110000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*10.000,64*10.000*200.48 ,18.137000,18.137000*200.48 ,18.137000,18.137000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*10.000,64*10.000*200.48,'az24072238698,187000009 ',64,64*10.000,64,64*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.5770 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.5820 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4970.00.1'
20240723@220700.5970 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.6000 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20240723@220700.6160 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.6190 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220700.6430 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.6450 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4970.00.1'
20240723@220700.6640 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220700.6790 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.6960 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.7160 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.7330 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.7430 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4970.00.1' and lote = 'r2400205200a'
20240723@220700.7570 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.7720 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.7900 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.8040 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a015304766a01b7412','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.9370 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.9610 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.9810 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a015304766a01b7412',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,120000 ,27.6,27.6*200.48,27.6,27.6*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,27.6*16.000,27.6*16.000*200.48 ,8.845000,8.845000*200.48 ,8.845000,8.845000*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*16.000,27.6*16.000*200.48,'az24072238710,685000010 ',27.6,27.6*16.000,27.6,27.6*16.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.1239 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.1244 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.5343.00.1'
20240723@220700.1260 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.1263 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5343.00.1'
20240723@220700.1320 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.1323 l6ti62no3bv4brdjca4gvus9ea 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.5343.00.1' and sa.armazem = 133 
20240723@220700.1405 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.1408 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5343.00.1'
20240723@220700.1430 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5343.00.1'
20240723@220700.1580 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.1599 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.1614 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.1630 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.1639 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.5343.00.1' and lote = 'r2300915100a'
20240723@220700.1655 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.1669 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.1685 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.1699 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a013098366a01b7428','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.1833 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.1855 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.1873 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a013098366a01b7428',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,130000 ,18,18*200.48,18,18*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,18*12.000,18*12.000*200.48 ,7.570000,7.570000*200.48 ,7.570000,7.570000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,18,18*200.48,18*12.000,18*12.000*200.48,'az24072238732,609000011 ',18,18*12.000,18,18*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.2236 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.2240 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.5347.00.1'
20240723@220700.2257 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.2260 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5347.00.1'
20240723@220700.2277 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.2280 l6ti62no3bv4brdjca4gvus9ea 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.5347.00.1' and sa.armazem = 133 
20240723@220700.2354 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.2357 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5347.00.1'
20240723@220700.2395 l6ti62no3bv4brdjca4gvus9ea 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.5347.00.1'
20240723@220700.2530 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.2548 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.2565 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.2584 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.2594 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.5347.00.1' and lote = 'r2300915100a'
20240723@220700.2611 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.3766 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.3785 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.3798 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a017311366a01b745b','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.4016 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.4246 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.4263 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a017311366a01b745b',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,140000 ,20.5,20.5*200.48,20.5,20.5*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,20.5*12.000,20.5*12.000*200.48 ,7.306000,7.306000*200.48 ,7.306000,7.306000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,20.5,20.5*200.48,20.5*12.000,20.5*12.000*200.48,'az24072238751,934000012 ',20.5,20.5*12.000,20.5,20.5*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.4528 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.4533 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '325.551.00.15'
20240723@220700.4549 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.4551 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '325.551.00.15'
20240723@220700.4574 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.4577 l6ti62no3bv4brdjca4gvus9ea 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 = '325.551.00.15' and sa.armazem = 133 
20240723@220700.4653 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.4656 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '325.551.00.15'
20240723@220700.4675 l6ti62no3bv4brdjca4gvus9ea 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 = '325.551.00.15'
20240723@220700.4809 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.4828 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.4843 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.4863 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.4873 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='325.551.00.15' and lote = 'r210109070'
20240723@220700.4907 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.4925 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.4947 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.4963 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a015141666a01b7478','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.5133 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.5158 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.5178 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a015141666a01b7478',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 204.000, 204.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 ,4.5,4.5*200.48,4.5,4.5*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,4.5*204.000,4.5*204.000*200.48 ,2.520000,2.520000*200.48 ,2.520000,2.520000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,4.5,4.5*200.48,4.5*204.000,4.5*204.000*200.48,'az24072238764,420000013 ',4.5,4.5*204.000,4.5,4.5*204.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.5511 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.5518 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4902.00.1'
20240723@220700.5537 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.5541 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4902.00.1'
20240723@220700.5561 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.5565 l6ti62no3bv4brdjca4gvus9ea 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.4902.00.1' and sa.armazem = 133 
20240723@220700.5643 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.5646 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4902.00.1'
20240723@220700.5669 l6ti62no3bv4brdjca4gvus9ea 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.4902.00.1'
20240723@220700.5795 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.5815 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.5828 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.5844 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.5855 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4902.00.1' and lote = 'r2400145200a'
20240723@220700.5884 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.5897 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.5913 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.5925 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a016382566a01b748f','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.6057 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.6093 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.6114 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a016382566a01b748f',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,160000 ,32,32*200.48,32,32*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,32*8.000,32*8.000*200.48 ,13.536000,13.536000*200.48 ,13.536000,13.536000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,32,32*200.48,32*8.000,32*8.000*200.48,'az24072238783,098000014 ',32,32*8.000,32,32*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.6387 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.6392 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4901.00.1'
20240723@220700.6410 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.6413 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4901.00.1'
20240723@220700.6433 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.6436 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220700.6512 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.6515 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4901.00.1'
20240723@220700.6535 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220700.6665 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.6683 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.6698 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.6715 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.6724 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4901.00.1' and lote = 'r2200240200a'
20240723@220700.6759 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.6776 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.6794 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.6814 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a016613766a01b74a5','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.6943 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.6965 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.6983 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a016613766a01b74a5',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,170000 ,25.6,25.6*200.48,25.6,25.6*200.48 ,0,0,'un ','' ,bo.marcada,1 ,25.6*8.000,25.6*8.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*8.000,25.6*8.000*200.48,'az24072238794,615000015 ',25.6,25.6*8.000,25.6,25.6*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.7258 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.7264 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240723@220700.7282 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.7285 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1416.00.1'
20240723@220700.7305 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.7308 l6ti62no3bv4brdjca4gvus9ea 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.1416.00.1' and sa.armazem = 133 
20240723@220700.7388 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.7391 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1416.00.1'
20240723@220700.7413 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1416.00.1'
20240723@220700.7538 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.7555 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.7568 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.7583 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.7592 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240723@220700.7627 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.7640 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.7660 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.7673 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a016825866a01b74ba','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.7801 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.7823 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.7841 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a016825866a01b74ba',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,180000 ,38.4,38.4*200.48,38.4,38.4*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,38.4*16.000,38.4*16.000*200.48 ,13.295000,13.295000*200.48 ,13.295000,13.295000*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*16.000,38.4*16.000*200.48,'az24072238814,277000016 ',38.4,38.4*16.000,38.4,38.4*16.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.8255 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.8284 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1690.00.1'
20240723@220700.8430 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.8433 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1690.00.1'
20240723@220700.8453 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.8456 l6ti62no3bv4brdjca4gvus9ea 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.1690.00.1' and sa.armazem = 133 
20240723@220700.8526 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.8529 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1690.00.1'
20240723@220700.8549 l6ti62no3bv4brdjca4gvus9ea 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.1690.00.1'
20240723@220700.8673 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.8689 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.8703 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.8719 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.8728 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1690.00.1' and lote = 'r2100755200a'
20240723@220700.8760 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220700.8773 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.8790 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220700.8804 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a019599166a01b74d6','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220700.8939 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220700.8960 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220700.8976 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a019599166a01b74d6',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,190000 ,140.8,140.8*200.48,140.8,140.8*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,140.8*4.000,140.8*4.000*200.48 ,59.340000,59.340000*200.48 ,59.340000,59.340000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,140.8,140.8*200.48,140.8*4.000,140.8*4.000*200.48,'az24072238829,419000017 ',140.8,140.8*4.000,140.8,140.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220700.9369 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.9890 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.5500.00.1'
20240723@220700.9910 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.9914 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20240723@220700.9932 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220700.9935 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220701.2000 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.2300 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.5500.00.1'
20240723@220701.4400 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220701.1690 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.1860 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.2010 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.2150 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.2250 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.5500.00.1' and lote = 'r2301223200a'
20240723@220701.2480 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.2620 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.2790 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.2900 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a010127266a01b7506','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.4230 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.4440 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.4610 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a010127266a01b7506',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,200000 ,64,64*200.48,64,64*200.48 ,0,0,'un ','' ,bo.marcada,1 ,64*6.000,64*6.000*200.48 ,24.876000,24.876000*200.48 ,24.876000,24.876000*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,'az24072238850,248000018 ',64,64*6.000,64,64*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.7280 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.7330 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1871.00.1'
20240723@220701.7530 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.7570 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1871.00.1'
20240723@220701.7750 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.7810 l6ti62no3bv4brdjca4gvus9ea 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.1871.00.1' and sa.armazem = 133 
20240723@220701.8510 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.8550 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.1871.00.1'
20240723@220701.8760 l6ti62no3bv4brdjca4gvus9ea 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.1871.00.1'
20240723@220701.9990 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.1017 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.1031 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.1046 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.1055 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1871.00.1' and lote = 'r2400125200a'
20240723@220701.1074 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.1087 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.1109 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.1121 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a013690966a01b751a','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.1253 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.1272 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.1289 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a013690966a01b751a',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,210000 ,112.5,112.5*200.48,112.5,112.5*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,112.5*3.000,112.5*3.000*200.48 ,45.770000,45.770000*200.48 ,45.770000,45.770000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,112.5,112.5*200.48,112.5*3.000,112.5*3.000*200.48,'az24072238862,481000019 ',112.5,112.5*3.000,112.5,112.5*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.1561 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.1565 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.646.00.01'
20240723@220701.1619 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.1622 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.646.00.01'
20240723@220701.1641 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.1644 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220701.1732 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.1736 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.646.00.01'
20240723@220701.1756 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220701.1898 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.1918 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.1932 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.1946 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.1955 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.646.00.01' and lote = 'r2400055100a'
20240723@220701.1969 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.1985 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.2006 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.2020 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a019833166a01b7530','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.2149 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.2171 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.2190 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a019833166a01b7530',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 ,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 ,17.898000,17.898000*200.48 ,17.898000,17.898000*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,'az24072238874,049000020 ',44.8,44.8*6.000,44.8,44.8*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.2699 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.2705 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240723@220701.2720 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.2723 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.657.00.01'
20240723@220701.2740 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.2743 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220701.2818 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.2821 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.657.00.01'
20240723@220701.2842 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220701.2975 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.2995 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.3009 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.3027 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.3037 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301178100a'
20240723@220701.3063 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.3079 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.3100 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.3115 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a018882666a01b754b','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.3251 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.3272 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.3289 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a018882666a01b754b',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,230000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*5.000,64*5.000*200.48 ,20.450000,20.450000*200.48 ,20.450000,20.450000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,64,64*200.48,64*5.000,64*5.000*200.48,'az24072238886,647000021 ',64,64*5.000,64,64*5.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.3559 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.3563 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240723@220701.3579 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.3582 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.657.00.01'
20240723@220701.3600 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.3604 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220701.3630 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.3634 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.657.00.01'
20240723@220701.3653 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220701.3668 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.3689 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.3705 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.3723 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.3733 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301178100a'
20240723@220701.3749 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.3764 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.3783 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.3798 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a014769266a01b755b','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.3945 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.3968 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.3986 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a014769266a01b755b',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,240000 ,64,64*200.48,64,64*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,64*1.000,64*1.000*200.48 ,20.450000,20.450000*200.48 ,20.450000,20.450000*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,'az24072238886,647000021 ',64,64*1.000,64,64*1.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.4263 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.4271 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.681.00.01'
20240723@220701.4289 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.4293 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.681.00.01'
20240723@220701.4312 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.4316 l6ti62no3bv4brdjca4gvus9ea 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.681.00.01' and sa.armazem = 133 
20240723@220701.4402 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.4406 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.681.00.01'
20240723@220701.4429 l6ti62no3bv4brdjca4gvus9ea 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.681.00.01'
20240723@220701.4556 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.4574 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.4588 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.4603 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.4612 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.681.00.01' and lote = 'r2400058200a'
20240723@220701.4630 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.4646 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.4665 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.4679 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a018672166a01b7571','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.4818 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.4841 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.4864 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a018672166a01b7571',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,250000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,83.2*6.000,83.2*6.000*200.48 ,23.750000,23.750000*200.48 ,23.750000,23.750000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,83.2,83.2*200.48,83.2*6.000,83.2*6.000*200.48,'az24072238900,664000022 ',83.2,83.2*6.000,83.2,83.2*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.5147 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.5165 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.682.00.01'
20240723@220701.5187 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.5191 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.682.00.01'
20240723@220701.5211 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.5215 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220701.5295 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.5299 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.682.00.01'
20240723@220701.5327 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220701.5523 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.5548 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.5566 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.5588 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.5599 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.682.00.01' and lote = 'r2301244100a'
20240723@220701.5618 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.5635 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.5654 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.5668 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a011347866a01b7589','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.5808 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.5829 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.5846 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a011347866a01b7589',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,260000 ,83.2,83.2*200.48,83.2,83.2*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,83.2*8.000,83.2*8.000*200.48 ,24.707000,24.707000*200.48 ,24.707000,24.707000*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*8.000,83.2*8.000*200.48,'az24072238928,767000023 ',83.2,83.2*8.000,83.2,83.2*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.6228 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.6245 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4840.00.1'
20240723@220701.6265 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.6269 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4840.00.1'
20240723@220701.6288 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.6291 l6ti62no3bv4brdjca4gvus9ea 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.4840.00.1' and sa.armazem = 133 
20240723@220701.6395 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.6399 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4840.00.1'
20240723@220701.6423 l6ti62no3bv4brdjca4gvus9ea 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.4840.00.1'
20240723@220701.7648 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.7666 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.7679 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.7695 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.7704 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4840.00.1' and lote = 'r2400064200a'
20240723@220701.7720 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.7733 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.7750 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.7763 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a017721166a01b75bc','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.7888 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.7911 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.7929 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a017721166a01b75bc',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,270000 ,51.2,51.2*200.48,51.2,51.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,51.2*2.000,51.2*2.000*200.48 ,19.959000,19.959000*200.48 ,19.959000,19.959000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,51.2,51.2*200.48,51.2*2.000,51.2*2.000*200.48,'az24072238947,330000024 ',51.2,51.2*2.000,51.2,51.2*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.8200 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.8206 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4840.00.1'
20240723@220701.8224 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.8227 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4840.00.1'
20240723@220701.8245 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.8248 l6ti62no3bv4brdjca4gvus9ea 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.4840.00.1' and sa.armazem = 133 
20240723@220701.8275 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.8278 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4840.00.1'
20240723@220701.8300 l6ti62no3bv4brdjca4gvus9ea 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.4840.00.1'
20240723@220701.8316 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.8334 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.8349 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.8366 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.8377 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4840.00.1' and lote = 'r2400064200a'
20240723@220701.8392 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.8407 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.8426 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.8441 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a010567566a01b75cd','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.8581 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.8603 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.8623 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a010567566a01b75cd',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,280000 ,51.2,51.2*200.48,51.2,51.2*200.48 ,0,0,'un ','' ,bo.marcada,1 ,51.2*2.000,51.2*2.000*200.48 ,19.959000,19.959000*200.48 ,19.959000,19.959000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,51.2,51.2*200.48,51.2*2.000,51.2*2.000*200.48,'az24072238947,330000024 ',51.2,51.2*2.000,51.2,51.2*2.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220701.8957 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.8964 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4585.00.1'
20240723@220701.8981 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.8984 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4585.00.1'
20240723@220701.9002 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.9005 l6ti62no3bv4brdjca4gvus9ea 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.4585.00.1' and sa.armazem = 133 
20240723@220701.9084 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220701.9087 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4585.00.1'
20240723@220701.9107 l6ti62no3bv4brdjca4gvus9ea 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.4585.00.1'
20240723@220701.9247 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.9292 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.9307 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.9325 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.9335 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4585.00.1' and lote = 'r2300381200a'
20240723@220701.9350 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220701.9364 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.9382 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220701.9395 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a012834866a01b75e4','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220701.9564 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220701.9585 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220701.9607 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a012834866a01b75e4',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 ,96,96*200.48,96,96*200.48 ,0,0,'un ','' ,bo.marcada,1 ,96*3.000,96*3.000*200.48 ,42.430000,42.430000*200.48 ,42.430000,42.430000*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,'az24072238959,563000025 ',96,96*3.000,96,96*3.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220702.3740 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.1305 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.4988.00.1'
20240723@220702.1764 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.1770 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20240723@220702.1979 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.1984 l6ti62no3bv4brdjca4gvus9ea 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 
20240723@220702.2080 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.2099 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.4988.00.1'
20240723@220702.2124 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@220702.2275 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.2299 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.2317 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.2353 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.2365 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.4988.00.1' and lote = 'r2100754100a'
20240723@220702.2383 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220702.2401 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.2424 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.2446 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a019662666a01b763a','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220702.2588 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.2611 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.2631 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a019662666a01b763a',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,300000 ,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 ,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*4.000,28.8*4.000*200.48,'az24072238979,477000026 ',28.8,28.8*4.000,28.8,28.8*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220702.2908 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.2913 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.727.00.01'
20240723@220702.2929 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.2932 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.727.00.01'
20240723@220702.2949 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.2952 l6ti62no3bv4brdjca4gvus9ea 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.727.00.01' and sa.armazem = 133 
20240723@220702.3026 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.3030 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.727.00.01'
20240723@220702.3050 l6ti62no3bv4brdjca4gvus9ea 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.727.00.01'
20240723@220702.3193 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.3211 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.3225 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.3241 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.3251 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.727.00.01' and lote = 'r2300534200a'
20240723@220702.3279 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220702.3293 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.3312 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.3326 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a016935366a01b7650','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220702.3459 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.3480 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.3496 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a016935366a01b7650',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,310000 ,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 ,6.660000,6.660000*200.48 ,6.660000,6.660000*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,'az24072239211,660000027 ',19.2,19.2*8.000,19.2,19.2*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220702.3765 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.3770 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.2224.00.1'
20240723@220702.3790 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.3795 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.2224.00.1'
20240723@220702.3813 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.3816 l6ti62no3bv4brdjca4gvus9ea 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.2224.00.1' and sa.armazem = 133 
20240723@220702.3893 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.3897 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.2224.00.1'
20240723@220702.3920 l6ti62no3bv4brdjca4gvus9ea 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.2224.00.1'
20240723@220702.4070 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.4088 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.4103 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.4119 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.4129 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.2224.00.1' and lote = 'r2301281600a'
20240723@220702.4152 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220702.4167 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.4185 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.4199 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a018194566a01b7665','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220702.4353 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.4374 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.4392 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a018194566a01b7665',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,320000 ,25.6,25.6*200.48,25.6,25.6*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,25.6*8.000,25.6*8.000*200.48 ,9.896000,9.896000*200.48 ,9.896000,9.896000*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*8.000,25.6*8.000*200.48,'az24072239232,872000028 ',25.6,25.6*8.000,25.6,25.6*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220702.4697 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.4703 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.2232.00.1'
20240723@220702.4721 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.4724 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.2232.00.1'
20240723@220702.4744 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.4747 l6ti62no3bv4brdjca4gvus9ea 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.2232.00.1' and sa.armazem = 133 
20240723@220702.4827 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.4830 l6ti62no3bv4brdjca4gvus9ea Query : select st.stns valor from st where st.ref = '324.2232.00.1'
20240723@220702.4860 l6ti62no3bv4brdjca4gvus9ea 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.2232.00.1'
20240723@220702.4992 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.5012 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.5028 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.5046 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.5057 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.2232.00.1' and lote = 'r2400241100a'
20240723@220702.5087 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@220702.5102 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.5123 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240723@220702.5138 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a013004666a01b767c','aut66a010149066a01b7305',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 = 'aut66a010149066a01b7305'
20240723@220702.5306 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@220702.5329 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240723@220702.5349 l6ti62no3bv4brdjca4gvus9ea 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 'aut66a013004666a01b767c',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,330000 ,38.4,38.4*200.48,38.4,38.4*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,38.4*6.000,38.4*6.000*200.48 ,10.196000,10.196000*200.48 ,10.196000,10.196000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,38.4,38.4*200.48,38.4*6.000,38.4*6.000*200.48,'az24072239244,208000029 ',38.4,38.4*6.000,38.4,38.4*6.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut66a010149066a01b7305'
20240723@220702.5791 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut66a010149066a01b7305','','wait',5,'adm12071144683,938000003','')
20240723@220702.5887 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@220702.5891 l6ti62no3bv4brdjca4gvus9ea Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@220702.5946 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1144';
20240723@220702.5975 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1144';
20240723@221632.6614 l6ti62no3bv4brdjca4gvus9ea Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240723@221632.6626 l6ti62no3bv4brdjca4gvus9ea Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240723@221632.6681 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1145';
20240723@221632.6804 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1145';
20240723@221632.6939 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1145';
20240723@221632.6970 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1145';
20240723@221632.7027 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7031 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240723@221632.7101 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7105 l6ti62no3bv4brdjca4gvus9ea Query : select no, estab,szadrsdesc from szadrs where u_coddest=4799
20240723@221632.7236 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.958.00.01'
20240723@221632.7259 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240723@221632.7286 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2907.00.1'
20240723@221632.7415 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240723@221632.7440 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7443 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240723@221632.7478 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7482 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 1 valor from td where td.ndoc = 39
20240723@221632.7516 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7519 l6ti62no3bv4brdjca4gvus9ea 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')
20240723@221632.7551 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 manternumero ,assinadoc issigned ,tiposaft ,assinaimp ,nmdos ,td.assinadoc ,'cl' origin ,lancasl stocks ,case when cmsl<50 and td.lancasl=1 then 1 else 0 end entrada ,case when cmsl>50 and td.lancasl=1 then 1 else 0 end saida ,temserie assets ,~semgre usegridfields from td inner join td2 on td.tdstamp=td2.td2stamp where td.ndoc = 1
20240723@221632.7588 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7591 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 ~inactivo valor from cl where no = '200500' and estab = 0 order by inactivo desc
20240723@221632.7719 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7722 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 tipodoc,regrd from td where ndoc = 39
20240723@221632.7806 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7809 l6ti62no3bv4brdjca4gvus9ea Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240723@221632.7854 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7858 l6ti62no3bv4brdjca4gvus9ea Query : select szadrsstamp valor from szadrs where szadrsdesc='comercial prieto cerdan, s.l.-entrega'
20240723@221632.7911 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221632.7915 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from td where ndoc = 39
20240723@221632.7976 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 manternumero, tiposaft, nmdos,td.assinadoc from td where td.ndoc = 39
20240723@221632.8045 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221632.8066 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft' and documentnumber = 39
20240723@221632.8087 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221632.8103 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft2' and documentnumber = 39
20240723@221632.8137 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221632.8152 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'ft3' and documentnumber = 39
20240723@221632.8167 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 ft.fno valor from ft ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240723@221632.8493 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 ft.fno valor from wsftdata ft where ft.ndoc = 39 and ftano=2024 order by fno desc
20240723@221632.8613 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221632.8631 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft3' and documentnumber = 39
20240723@221632.8649 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsft3data (ft3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,taxpointdt ) values ('aut66a013848866a01db0c7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?)
20240723@221632.8941 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221632.8962 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft2' and documentnumber = 39
20240723@221632.9000 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.u_nomeenv valor from bo where bo.bostamp=''
20240723@221632.9138 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.u_moradaen valor from bo where bo.bostamp=''
20240723@221632.9245 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.u_codposen valor from bo where bo.bostamp=''
20240723@221632.9317 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.u_localenv valor from bo where bo.bostamp=''
20240723@221632.9388 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.trab5 valor from bo where bo.bostamp=''
20240723@221632.9456 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 bo.serie valor from bo where bo.bostamp=''
20240723@221632.9526 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsft2data (ft2stamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,u_nomeenv ,u_moradaen ,u_codposen ,u_localenv ,u_coddest ,u_codby ) values ('aut66a013848866a01db0c7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',?,?,?,?,?,?)
20240723@221632.9976 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 fno valor from wsftdata order by fno desc
20240723@221633.3700 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.5600 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'ft' and documentnumber = 39
20240723@221633.8600 l6ti62no3bv4brdjca4gvus9ea Query : select 'normal' from dummy
20240723@221633.1400 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsftdata (ftstamp, ousrdata,ousrhora, usrdata,usrhora,ousrinis,usrinis,fno,no,estab,fdata,ndoc,moeda,cambio,cambiofixo,ftano,site ,classe ) values ('aut66a013848866a01db0c7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',5,200500,0,'2024-07-23',39,'euro',0,0,2024 ,?,?)
20240723@221633.7240 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221633.7280 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.958.00.01'
20240723@221633.7570 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@221633.8900 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.9070 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.9390 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.9560 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.9660 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@221633.1005 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.958.00.01' and lote = 'r2400240200a'
20240723@221633.1020 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.1037 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.1050 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a014324766a01db118','aut66a013848866a01db0c7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240723@221633.1100 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.1118 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.1150 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a014324766a01db118',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',52.000 ,'aut66a013848866a01db0c7' ,0,0 ,2,23.00,10000,?,?,?,?)
20240723@221633.1539 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221633.1561 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240723@221633.1586 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@221633.1603 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.1622 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.1651 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.1668 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.1679 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@221633.1693 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20240723@221633.1708 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.1726 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.1739 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a013207966a01db129','aut66a013848866a01db0c7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240723@221633.1744 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.1760 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.1792 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a013207966a01db129',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a013848866a01db0c7' ,0,0 ,2,23.00,20000,?,?,?,?)
20240723@221633.2168 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221633.3093 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.2907.00.1'
20240723@221633.3479 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@221633.3605 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.3622 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.3650 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.3666 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.3675 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@221633.3689 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.2907.00.1' and lote = 'r2400091200a'
20240723@221633.3717 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.3734 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.3747 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a018322466a01db15a','aut66a013848866a01db0c7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240723@221633.3752 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.3768 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.3801 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a018322466a01db15a',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a013848866a01db0c7' ,0,0 ,2,23.00,30000,?,?,?,?)
20240723@221633.4106 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221633.4110 l6ti62no3bv4brdjca4gvus9ea Query : select st.usalote valor from st where st.ref = '324.1705.00.1'
20240723@221633.4135 l6ti62no3bv4brdjca4gvus9ea 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'
20240723@221633.4152 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.4181 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.4211 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.4227 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.4237 l6ti62no3bv4brdjca4gvus9ea Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240723@221633.4250 l6ti62no3bv4brdjca4gvus9ea Query : select sestamp valor from se where ref ='324.1705.00.1' and lote = 'r2400050500a'
20240723@221633.4274 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.4290 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi2' and documentnumber = 39
20240723@221633.4304 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfi2data (fi2stamp,ftstamp ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a013334366a01db168','aut66a013848866a01db0c7' ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv')
20240723@221633.4309 l6ti62no3bv4brdjca4gvus9ea Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240723@221633.4325 l6ti62no3bv4brdjca4gvus9ea Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'fi' and documentnumber = 39
20240723@221633.4357 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsfidata (fistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,qtt ,ftstamp ,epv,pvmoeda ,tabiva,iva,lordem ,ref, design ,lote,armazem) values ('aut66a013334366a01db168',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'wsv','wsv',4.000 ,'aut66a013848866a01db0c7' ,0,0 ,2,23.00,40000,?,?,?,?)
20240723@221633.4592 l6ti62no3bv4brdjca4gvus9ea Query : insert into wsftcreationlog (initialftstamp,externalid,creationstatus,documenttypeid,idustamp) values ('aut66a013848866a01db0c7','2404890','wait',39,'adm09112754980.682000002')
20240723@221633.4680 l6ti62no3bv4brdjca4gvus9ea Query : use flama_phc
20240723@221633.4684 l6ti62no3bv4brdjca4gvus9ea Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@221633.4716 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1145';
20240723@221633.4745 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1145';
20240723@221633.4783 l6ti62no3bv4brdjca4gvus9ea Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1145';
20240723@221633.4808 l6ti62no3bv4brdjca4gvus9ea Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1145';
20240723@221909.3100 vavpglr2d742kube9c3ejq3f4t Query : use flama_phc
20240723@221909.3500 vavpglr2d742kube9c3ejq3f4t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@221909.1220 vavpglr2d742kube9c3ejq3f4t Query : use flama_phc
20240723@221909.1260 vavpglr2d742kube9c3ejq3f4t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@223609.2493 5in1vrt0pa0ao96af780hsdc16 Query : use flama_phc
20240723@223609.2499 5in1vrt0pa0ao96af780hsdc16 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@223609.2643 5in1vrt0pa0ao96af780hsdc16 Query : use flama_phc
20240723@223609.2649 5in1vrt0pa0ao96af780hsdc16 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@231910.8780 0r9ab6htuo030grv46t132ds06 Query : use flama_phc
20240723@231910.8785 0r9ab6htuo030grv46t132ds06 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@231910.9056 0r9ab6htuo030grv46t132ds06 Query : use flama_phc
20240723@231910.9099 0r9ab6htuo030grv46t132ds06 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240723@233610.8548 72gsh97stglfajkigve7lgum5t Query : use flama_phc
20240723@233610.8552 72gsh97stglfajkigve7lgum5t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240723@233610.8834 72gsh97stglfajkigve7lgum5t Query : use flama_phc
20240723@233610.8838 72gsh97stglfajkigve7lgum5t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@071909.9261 1n0u333s63gmmpm3mj0isu5bjf Query : use flama_phc
20240724@071909.9267 1n0u333s63gmmpm3mj0isu5bjf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@071909.9513 1n0u333s63gmmpm3mj0isu5bjf Query : use flama_phc
20240724@071909.9517 1n0u333s63gmmpm3mj0isu5bjf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@073656.6280 d0e9bt745dafdb9dem5aqbubei Query : use flama_phc
20240724@073656.6330 d0e9bt745dafdb9dem5aqbubei Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@073656.7540 d0e9bt745dafdb9dem5aqbubei Query : use flama_phc
20240724@073656.7580 d0e9bt745dafdb9dem5aqbubei Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@081910.3032 efn74uga5d0adlrks7obpg0799 Query : use flama_phc
20240724@081910.3037 efn74uga5d0adlrks7obpg0799 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@081910.3159 efn74uga5d0adlrks7obpg0799 Query : use flama_phc
20240724@081910.3163 efn74uga5d0adlrks7obpg0799 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@083609.5517 joj8ue0ovnprive2mph7hgemq7 Query : use flama_phc
20240724@083609.5563 joj8ue0ovnprive2mph7hgemq7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@083609.5930 joj8ue0ovnprive2mph7hgemq7 Query : use flama_phc
20240724@083609.5936 joj8ue0ovnprive2mph7hgemq7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@091916.5433 ignjpvq3r866urr1nb493bbur3 Query : use flama_phc
20240724@091916.5439 ignjpvq3r866urr1nb493bbur3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@091916.5879 ignjpvq3r866urr1nb493bbur3 Query : use flama_phc
20240724@091916.5886 ignjpvq3r866urr1nb493bbur3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@093616.2489 mc4p7cp7v3egreu2fn3i5us0nm Query : use flama_phc
20240724@093616.2495 mc4p7cp7v3egreu2fn3i5us0nm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@093616.2584 mc4p7cp7v3egreu2fn3i5us0nm Query : use flama_phc
20240724@093616.2587 mc4p7cp7v3egreu2fn3i5us0nm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@101911.7060 219ne6r8nbbm1ro2et7lmpr0ta Query : use flama_phc
20240724@101911.7810 219ne6r8nbbm1ro2et7lmpr0ta Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@101911.8900 219ne6r8nbbm1ro2et7lmpr0ta Query : use flama_phc
20240724@101911.8980 219ne6r8nbbm1ro2et7lmpr0ta Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@103611.8860 p6rllqn42tq9meco8jjc4kj6h8 Query : use flama_phc
20240724@103611.8910 p6rllqn42tq9meco8jjc4kj6h8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@103611.9920 p6rllqn42tq9meco8jjc4kj6h8 Query : use flama_phc
20240724@103611.9960 p6rllqn42tq9meco8jjc4kj6h8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@111915.3995 h8gfb305ui88talkqh3ps1q0t1 Query : use flama_phc
20240724@111915.4000 h8gfb305ui88talkqh3ps1q0t1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@111915.4111 h8gfb305ui88talkqh3ps1q0t1 Query : use flama_phc
20240724@111915.4116 h8gfb305ui88talkqh3ps1q0t1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@113615.7440 0p5g5ajj2r4jeq0r8uag2p4110 Query : use flama_phc
20240724@113615.7445 0p5g5ajj2r4jeq0r8uag2p4110 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@113615.7570 0p5g5ajj2r4jeq0r8uag2p4110 Query : use flama_phc
20240724@113615.7574 0p5g5ajj2r4jeq0r8uag2p4110 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@121911.9059 lrgtlnpbo98isd8am7v2ct0ta2 Query : use flama_phc
20240724@121911.9063 lrgtlnpbo98isd8am7v2ct0ta2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@121911.9145 lrgtlnpbo98isd8am7v2ct0ta2 Query : use flama_phc
20240724@121911.9148 lrgtlnpbo98isd8am7v2ct0ta2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@123611.6519 pp9qjlb9i4dhn3cog7bk3t5ktk Query : use flama_phc
20240724@123611.6524 pp9qjlb9i4dhn3cog7bk3t5ktk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@123611.6614 pp9qjlb9i4dhn3cog7bk3t5ktk Query : use flama_phc
20240724@123611.6619 pp9qjlb9i4dhn3cog7bk3t5ktk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@131909.8714 eh41nff57dse3cl2ur61ld4m4s Query : use flama_phc
20240724@131909.8719 eh41nff57dse3cl2ur61ld4m4s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@131909.8799 eh41nff57dse3cl2ur61ld4m4s Query : use flama_phc
20240724@131909.8802 eh41nff57dse3cl2ur61ld4m4s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@133610.5550 duot10rin3qu8coqqu5n877ghg Query : use flama_phc
20240724@133610.5590 duot10rin3qu8coqqu5n877ghg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@133610.6510 duot10rin3qu8coqqu5n877ghg Query : use flama_phc
20240724@133610.6620 duot10rin3qu8coqqu5n877ghg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@141916.9756 qthkkqmh6524nc125ejisi167p Query : use flama_phc
20240724@141916.9800 qthkkqmh6524nc125ejisi167p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@141916.9938 qthkkqmh6524nc125ejisi167p Query : use flama_phc
20240724@141916.9942 qthkkqmh6524nc125ejisi167p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@143617.5980 4lqtp1hiih5kni3eem4q9b7ium Query : use flama_phc
20240724@143617.6040 4lqtp1hiih5kni3eem4q9b7ium Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@143617.6900 4lqtp1hiih5kni3eem4q9b7ium Query : use flama_phc
20240724@143617.6940 4lqtp1hiih5kni3eem4q9b7ium Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@151911.3000 tk0nd7tfihm8od1eh037phbvkj Query : use flama_phc
20240724@151911.8000 tk0nd7tfihm8od1eh037phbvkj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@151911.1690 tk0nd7tfihm8od1eh037phbvkj Query : use flama_phc
20240724@151911.1740 tk0nd7tfihm8od1eh037phbvkj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@153610.9254 8bumgenuttm1bdd2e5272rtrso Query : use flama_phc
20240724@153610.9259 8bumgenuttm1bdd2e5272rtrso Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@153610.9401 8bumgenuttm1bdd2e5272rtrso Query : use flama_phc
20240724@153610.9406 8bumgenuttm1bdd2e5272rtrso Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@154041.7414 c4dpktjobb2h41h2fm2q051nb4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240724@154041.7447 c4dpktjobb2h41h2fm2q051nb4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240724@154041.7746 c4dpktjobb2h41h2fm2q051nb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1146';
20240724@154041.7812 c4dpktjobb2h41h2fm2q051nb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1146';
20240724@154041.7871 c4dpktjobb2h41h2fm2q051nb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1146';
20240724@154041.7897 c4dpktjobb2h41h2fm2q051nb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1146';
20240724@154041.7935 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154041.7939 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240724@154041.8049 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.658.00.01'
20240724@154041.8175 c4dpktjobb2h41h2fm2q051nb4 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 = 2400222 and bi.ref ='324.658.00.01' and bi.lordem =10000
20240724@154041.8603 c4dpktjobb2h41h2fm2q051nb4 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 = 'cps24022844538,477000003 ' 
20240724@154041.8882 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.657.00.01'
20240724@154041.8970 c4dpktjobb2h41h2fm2q051nb4 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 = 2400222 and bi.ref ='324.657.00.01' and bi.lordem =20000
20240724@154041.9254 c4dpktjobb2h41h2fm2q051nb4 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 = 'cps24022844538,242000002 ' 
20240724@154041.9548 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154041.9551 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 1 valor from ts where ts.ndos = 61
20240724@154041.9640 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154041.9643 c4dpktjobb2h41h2fm2q051nb4 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')
20240724@154041.9710 c4dpktjobb2h41h2fm2q051nb4 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
20240724@154042.2170 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154042.2220 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 ~inactivo valor from fl where no = '202090' and estab = 00 order by inactivo desc
20240724@154042.3400 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154042.3450 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from ts where ndos = 61
20240724@154042.4190 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.7200 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240724@154042.9110 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.9340 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240724@154042.9470 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.9660 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240724@154042.9770 c4dpktjobb2h41h2fm2q051nb4 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
20240724@154042.1247 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240724@154042.1336 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240724@154042.1360 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154042.1367 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202090' and estab=00
20240724@154042.1443 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.1462 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240724@154042.1503 c4dpktjobb2h41h2fm2q051nb4 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a119352166a1126a21',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240724@154042.1551 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.1569 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240724@154042.1584 c4dpktjobb2h41h2fm2q051nb4 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a119352166a1126a21','--','bo',7.7996277915632754342 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240724@154042.1765 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.1787 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240724@154042.1806 c4dpktjobb2h41h2fm2q051nb4 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 ('aut66a119352166a1126a21','guia r. fornecedor','2024-07-24',61,2402189,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240724@154042.2342 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154042.2346 c4dpktjobb2h41h2fm2q051nb4 Query : select st.usalote valor from st where st.ref = '324.658.00.01'
20240724@154042.2513 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.658.00.01'
20240724@154042.2659 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.2678 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240724@154042.2697 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.2715 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240724@154042.2727 c4dpktjobb2h41h2fm2q051nb4 Query : select sestamp valor from se where ref ='324.658.00.01' and lote = 'r2400222100a'
20240724@154042.2789 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.2808 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240724@154042.2821 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.2837 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240724@154042.2851 c4dpktjobb2h41h2fm2q051nb4 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a117279966a1126a44',?,?,'20240724',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240724@154042.4534 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240724@154042.4586 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.4606 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240724@154042.4621 c4dpktjobb2h41h2fm2q051nb4 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a117893066a1126a6f','aut66a119352166a1126a21',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 = 'aut66a119352166a1126a21'
20240724@154042.4760 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154042.4795 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240724@154042.4816 c4dpktjobb2h41h2fm2q051nb4 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 'aut66a117893066a1126a6f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 714, 714*.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 ,16.12,16.12*200.48,16.12,16.12*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,16.12*714,16.12*714*200.48 ,18.765000,18.765000*200.48 ,18.765000,18.765000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,16.12,16.12*200.48,16.12*714,16.12*714*200.48,'cps24022844538,477000003 ',125.73,125.73*714,125.73,125.73*714,?,?,?,4 from bo bo where bo.bostamp = 'aut66a119352166a1126a21'
20240724@154049.1438 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154049.1442 c4dpktjobb2h41h2fm2q051nb4 Query : select st.usalote valor from st where st.ref = '324.657.00.01'
20240724@154049.1464 c4dpktjobb2h41h2fm2q051nb4 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'
20240724@154049.1580 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154049.1596 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240724@154049.1609 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154049.1623 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240724@154049.1632 c4dpktjobb2h41h2fm2q051nb4 Query : select sestamp valor from se where ref ='324.657.00.01' and lote = 'r2301178100a'
20240724@154049.1647 c4dpktjobb2h41h2fm2q051nb4 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240724@154049.1659 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154049.1673 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240724@154049.1686 c4dpktjobb2h41h2fm2q051nb4 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a117068366a1127128','aut66a119352166a1126a21',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 = 'aut66a119352166a1126a21'
20240724@154049.1845 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154049.1863 c4dpktjobb2h41h2fm2q051nb4 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240724@154049.1878 c4dpktjobb2h41h2fm2q051nb4 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 'aut66a117068366a1127128',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 714, 714*.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 ,16.12,16.12*200.48,16.12,16.12*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,16.12*714,16.12*714*200.48 ,20.450000,20.450000*200.48 ,20.450000,20.450000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,16.12,16.12*200.48,16.12*714,16.12*714*200.48,'cps24022844538,242000002 ',125.73,125.73*714,125.73,125.73*714,?,?,?,4 from bo bo where bo.bostamp = 'aut66a119352166a1126a21'
20240724@154049.2496 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154049.2499 c4dpktjobb2h41h2fm2q051nb4 Query : declare @bostamp varchar(25) = 'aut66a119352166a1126a21' ,@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 
20240724@154055.1925 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154055.1930 c4dpktjobb2h41h2fm2q051nb4 Query : select 1 valor from bo where bo.bostamp = 'aut66a119352166a1126a21'
20240724@154055.2018 c4dpktjobb2h41h2fm2q051nb4 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) = 'aut66a119352166a1126a21' 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 
20240724@154057.2212 c4dpktjobb2h41h2fm2q051nb4 Query : use flama_phc
20240724@154057.2216 c4dpktjobb2h41h2fm2q051nb4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@154057.2271 c4dpktjobb2h41h2fm2q051nb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1146';
20240724@154057.2299 c4dpktjobb2h41h2fm2q051nb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1146';
20240724@154057.2953 f3lkb4bd2e9jpea75r4e5g265q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240724@154057.2964 f3lkb4bd2e9jpea75r4e5g265q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240724@154057.3017 f3lkb4bd2e9jpea75r4e5g265q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1147';
20240724@154057.3088 f3lkb4bd2e9jpea75r4e5g265q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1147';
20240724@154057.3144 f3lkb4bd2e9jpea75r4e5g265q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1147';
20240724@154057.3174 f3lkb4bd2e9jpea75r4e5g265q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1147';
20240724@154057.3214 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.3217 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240724@154057.3283 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.649.00.01'
20240724@154057.3406 f3lkb4bd2e9jpea75r4e5g265q 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 = 2400277 and bi.ref ='324.649.00.01' and bi.lordem =20000
20240724@154057.5021 f3lkb4bd2e9jpea75r4e5g265q 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 = 'cps24031342577,307000002 ' 
20240724@154057.5334 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.5338 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 1 valor from ts where ts.ndos = 61
20240724@154057.5372 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.5375 f3lkb4bd2e9jpea75r4e5g265q 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')
20240724@154057.5409 f3lkb4bd2e9jpea75r4e5g265q 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
20240724@154057.5447 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.5452 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 ~inactivo valor from fl where no = '202549' and estab = 00 order by inactivo desc
20240724@154057.5564 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.5568 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from ts where ndos = 61
20240724@154057.5581 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.5602 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240724@154057.5613 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.5630 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240724@154057.5640 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.5657 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240724@154057.5667 f3lkb4bd2e9jpea75r4e5g265q 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
20240724@154057.5684 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240724@154057.5703 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240724@154057.5721 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.5728 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202549' and estab=00
20240724@154057.5803 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.5820 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240724@154057.5831 f3lkb4bd2e9jpea75r4e5g265q Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a114620766a112798b',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240724@154057.5836 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.5851 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240724@154057.5862 f3lkb4bd2e9jpea75r4e5g265q Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a114620766a112798b','--','bo',7.8626144879267277268 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240724@154057.5867 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.5882 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240724@154057.5895 f3lkb4bd2e9jpea75r4e5g265q 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 ('aut66a114620766a112798b','guia r. fornecedor','2024-07-24',61,2402190,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240724@154057.6329 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.6333 f3lkb4bd2e9jpea75r4e5g265q Query : select st.usalote valor from st where st.ref = '324.649.00.01'
20240724@154057.6362 f3lkb4bd2e9jpea75r4e5g265q 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.649.00.01'
20240724@154057.6476 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.6493 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240724@154057.6506 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.6520 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240724@154057.6529 f3lkb4bd2e9jpea75r4e5g265q Query : select sestamp valor from se where ref ='324.649.00.01' and lote = 'r2400277200a'
20240724@154057.6543 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.6558 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240724@154057.6567 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.6581 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240724@154057.6593 f3lkb4bd2e9jpea75r4e5g265q Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut66a115420466a11279a0',?,?,'20240724',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240724@154057.6642 f3lkb4bd2e9jpea75r4e5g265q Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240724@154057.6656 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.6671 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240724@154057.6683 f3lkb4bd2e9jpea75r4e5g265q Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut66a112319466a11279a2','aut66a114620766a112798b',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 = 'aut66a114620766a112798b'
20240724@154057.6805 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240724@154057.6823 f3lkb4bd2e9jpea75r4e5g265q Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240724@154057.6839 f3lkb4bd2e9jpea75r4e5g265q 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 'aut66a112319466a11279a2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1120, 1120*.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 ,24.02,24.02*200.48,24.02,24.02*200.48 ,0,0,'un ','' ,bo.marcada,1 ,24.02*1120,24.02*1120*200.48 ,28.386000,28.386000*200.48 ,28.386000,28.386000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,24.02,24.02*200.48,24.02*1120,24.02*1120*200.48,'cps24031342577,307000002 ',188.86,188.86*1120,188.86,188.86*1120,?,?,?,4 from bo bo where bo.bostamp = 'aut66a114620766a112798b'
20240724@154057.7531 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154057.7535 f3lkb4bd2e9jpea75r4e5g265q Query : declare @bostamp varchar(25) = 'aut66a114620766a112798b' ,@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 
20240724@154102.4157 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154102.4161 f3lkb4bd2e9jpea75r4e5g265q Query : select 1 valor from bo where bo.bostamp = 'aut66a114620766a112798b'
20240724@154102.4180 f3lkb4bd2e9jpea75r4e5g265q 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) = 'aut66a114620766a112798b' 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 
20240724@154102.5978 f3lkb4bd2e9jpea75r4e5g265q Query : use flama_phc
20240724@154102.5982 f3lkb4bd2e9jpea75r4e5g265q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@154102.6031 f3lkb4bd2e9jpea75r4e5g265q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='1147';
20240724@154102.6058 f3lkb4bd2e9jpea75r4e5g265q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='1147';
20240724@161910.7185 hiu3nnvo23qss0dpo4maq7grh2 Query : use flama_phc
20240724@161910.7190 hiu3nnvo23qss0dpo4maq7grh2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@161910.7281 hiu3nnvo23qss0dpo4maq7grh2 Query : use flama_phc
20240724@161910.7285 hiu3nnvo23qss0dpo4maq7grh2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@163610.5453 aj4dhmt79a77aknti0kn3t1ad4 Query : use flama_phc
20240724@163610.5457 aj4dhmt79a77aknti0kn3t1ad4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@163610.5725 aj4dhmt79a77aknti0kn3t1ad4 Query : use flama_phc
20240724@163610.5729 aj4dhmt79a77aknti0kn3t1ad4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@171910.9133 j4tc2p4rkjku85kd5invi9mql0 Query : use flama_phc
20240724@171910.9138 j4tc2p4rkjku85kd5invi9mql0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@171910.9243 j4tc2p4rkjku85kd5invi9mql0 Query : use flama_phc
20240724@171910.9247 j4tc2p4rkjku85kd5invi9mql0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@173611.3500 psiv6bsau2ek6a74sv9pk9dqud Query : use flama_phc
20240724@173611.3540 psiv6bsau2ek6a74sv9pk9dqud Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@173611.4390 psiv6bsau2ek6a74sv9pk9dqud Query : use flama_phc
20240724@173611.4420 psiv6bsau2ek6a74sv9pk9dqud Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@181910.1052 d6aantpobm3s7g5ovq8d996p7c Query : use flama_phc
20240724@181910.1058 d6aantpobm3s7g5ovq8d996p7c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@181910.1165 d6aantpobm3s7g5ovq8d996p7c Query : use flama_phc
20240724@181910.1170 d6aantpobm3s7g5ovq8d996p7c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240724@183610.4160 ntbetsq9kfd0iomcsp09o9330v Query : use flama_phc
20240724@183610.4164 ntbetsq9kfd0iomcsp09o9330v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240724@183610.4286 ntbetsq9kfd0iomcsp09o9330v Query : use flama_phc
