20250303@193625.3711 4o14p3grq08bca9flprlsdr4rn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5659';
20250303@193625.3778 4o14p3grq08bca9flprlsdr4rn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5659';
20250303@193625.3822 4o14p3grq08bca9flprlsdr4rn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5659';
20250303@193629.6477 vgfunock9ck7v120sqte0e82gq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193629.6487 vgfunock9ck7v120sqte0e82gq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193629.6557 vgfunock9ck7v120sqte0e82gq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5660';
20250303@193629.6622 vgfunock9ck7v120sqte0e82gq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5660';
20250303@193629.6691 vgfunock9ck7v120sqte0e82gq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5660';
20250303@193629.6733 vgfunock9ck7v120sqte0e82gq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5660';
20250303@193629.7622 713uemc0ddfeb5f3o8aleuk56h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193629.7633 713uemc0ddfeb5f3o8aleuk56h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193629.7706 713uemc0ddfeb5f3o8aleuk56h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5661';
20250303@193629.7773 713uemc0ddfeb5f3o8aleuk56h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5661';
20250303@193629.7854 713uemc0ddfeb5f3o8aleuk56h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5661';
20250303@193629.7896 713uemc0ddfeb5f3o8aleuk56h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5661';
20250303@193631.4460 aree0dsgev5vct4jolc8a4mi7q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193631.4560 aree0dsgev5vct4jolc8a4mi7q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193631.5280 aree0dsgev5vct4jolc8a4mi7q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5662';
20250303@193631.5930 aree0dsgev5vct4jolc8a4mi7q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5662';
20250303@193631.6630 aree0dsgev5vct4jolc8a4mi7q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5662';
20250303@193631.7020 aree0dsgev5vct4jolc8a4mi7q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5662';
20250303@193638.3721 9h84lmi3pns56s0opsut82olp6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193638.3732 9h84lmi3pns56s0opsut82olp6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193638.3807 9h84lmi3pns56s0opsut82olp6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5663';
20250303@193638.3878 9h84lmi3pns56s0opsut82olp6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5663';
20250303@193638.4007 9h84lmi3pns56s0opsut82olp6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5663';
20250303@193638.5268 9h84lmi3pns56s0opsut82olp6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5663';
20250303@193638.5333 a6sj6uce0ueivhd7215t84g54c Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193638.5345 a6sj6uce0ueivhd7215t84g54c Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193638.5433 a6sj6uce0ueivhd7215t84g54c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5664';
20250303@193638.5500 a6sj6uce0ueivhd7215t84g54c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5664';
20250303@193638.5567 a6sj6uce0ueivhd7215t84g54c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5664';
20250303@193638.5603 a6sj6uce0ueivhd7215t84g54c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5664';
20250303@193638.5783 ja4ih6me01kjq59iqll10m4h49 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193638.5794 ja4ih6me01kjq59iqll10m4h49 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193638.5864 ja4ih6me01kjq59iqll10m4h49 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5665';
20250303@193638.5935 ja4ih6me01kjq59iqll10m4h49 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5665';
20250303@193638.6180 ja4ih6me01kjq59iqll10m4h49 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5665';
20250303@193638.6308 ja4ih6me01kjq59iqll10m4h49 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5665';
20250303@193639.1040 l3kh2q2onmm46ntdv8ji50bkmk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193639.1052 l3kh2q2onmm46ntdv8ji50bkmk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193639.1169 l3kh2q2onmm46ntdv8ji50bkmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5666';
20250303@193639.1239 l3kh2q2onmm46ntdv8ji50bkmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5666';
20250303@193639.1322 l3kh2q2onmm46ntdv8ji50bkmk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5666';
20250303@193639.1361 l3kh2q2onmm46ntdv8ji50bkmk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5666';
20250303@193639.1822 7703mg6492ic9to8nto08q8rdi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193639.1833 7703mg6492ic9to8nto08q8rdi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193639.1903 7703mg6492ic9to8nto08q8rdi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5667';
20250303@193639.1974 7703mg6492ic9to8nto08q8rdi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5667';
20250303@193639.2042 7703mg6492ic9to8nto08q8rdi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5667';
20250303@193639.2082 7703mg6492ic9to8nto08q8rdi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5667';
20250303@193639.2962 8pur9qigo5bq8eq1se2vjh3429 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193639.2973 8pur9qigo5bq8eq1se2vjh3429 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193639.3046 8pur9qigo5bq8eq1se2vjh3429 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5668';
20250303@193639.3181 8pur9qigo5bq8eq1se2vjh3429 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5668';
20250303@193639.3253 8pur9qigo5bq8eq1se2vjh3429 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5668';
20250303@193639.3294 8pur9qigo5bq8eq1se2vjh3429 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5668';
20250303@193639.9567 vlsqcugd8ireite4fq0a4r3gpi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193639.9578 vlsqcugd8ireite4fq0a4r3gpi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193639.9665 vlsqcugd8ireite4fq0a4r3gpi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5669';
20250303@193639.9738 vlsqcugd8ireite4fq0a4r3gpi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5669';
20250303@193639.9815 vlsqcugd8ireite4fq0a4r3gpi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5669';
20250303@193639.9856 vlsqcugd8ireite4fq0a4r3gpi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5669';
20250303@193640.5560 ehlsrutbivsl17dhqccsug8km2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193640.5680 ehlsrutbivsl17dhqccsug8km2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193640.6420 ehlsrutbivsl17dhqccsug8km2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5670';
20250303@193640.7070 ehlsrutbivsl17dhqccsug8km2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5670';
20250303@193640.7780 ehlsrutbivsl17dhqccsug8km2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5670';
20250303@193640.8160 ehlsrutbivsl17dhqccsug8km2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5670';
20250303@193640.2936 vc86sa3qgvt9mmel64gpi65ab9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193640.2946 vc86sa3qgvt9mmel64gpi65ab9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193640.3017 vc86sa3qgvt9mmel64gpi65ab9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5671';
20250303@193640.3084 vc86sa3qgvt9mmel64gpi65ab9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5671';
20250303@193640.3150 vc86sa3qgvt9mmel64gpi65ab9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5671';
20250303@193640.3188 vc86sa3qgvt9mmel64gpi65ab9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5671';
20250303@193644.8337 6o340bm09c5bq4g8pef4tf0ips Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193644.8348 6o340bm09c5bq4g8pef4tf0ips Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193644.8427 6o340bm09c5bq4g8pef4tf0ips Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5672';
20250303@193644.8526 6o340bm09c5bq4g8pef4tf0ips Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5672';
20250303@193644.8600 6o340bm09c5bq4g8pef4tf0ips Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5672';
20250303@193644.8663 6o340bm09c5bq4g8pef4tf0ips Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5672';
20250303@193644.9206 61r7asqnkommm486h4vmsl8856 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193644.9217 61r7asqnkommm486h4vmsl8856 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193644.9289 61r7asqnkommm486h4vmsl8856 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5673';
20250303@193644.9355 61r7asqnkommm486h4vmsl8856 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5673';
20250303@193644.9423 61r7asqnkommm486h4vmsl8856 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5673';
20250303@193644.9463 61r7asqnkommm486h4vmsl8856 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5673';
20250303@193645.8782 ndk8jl6cd517eerulnun1urm58 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193645.8793 ndk8jl6cd517eerulnun1urm58 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193645.8874 ndk8jl6cd517eerulnun1urm58 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5674';
20250303@193645.8951 ndk8jl6cd517eerulnun1urm58 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5674';
20250303@193645.9037 ndk8jl6cd517eerulnun1urm58 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5674';
20250303@193645.9088 ndk8jl6cd517eerulnun1urm58 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5674';
20250303@193646.2316 ca9kv83u4n92vj5kmih28j54m5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193646.2326 ca9kv83u4n92vj5kmih28j54m5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193646.2412 ca9kv83u4n92vj5kmih28j54m5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5675';
20250303@193646.2484 ca9kv83u4n92vj5kmih28j54m5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5675';
20250303@193646.2552 ca9kv83u4n92vj5kmih28j54m5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5675';
20250303@193646.2589 ca9kv83u4n92vj5kmih28j54m5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5675';
20250303@193646.3055 m77uqncish1bha0aq932e7dfs4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193646.3068 m77uqncish1bha0aq932e7dfs4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193646.3141 m77uqncish1bha0aq932e7dfs4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5676';
20250303@193646.3204 m77uqncish1bha0aq932e7dfs4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5676';
20250303@193646.3275 m77uqncish1bha0aq932e7dfs4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5676';
20250303@193646.3316 m77uqncish1bha0aq932e7dfs4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5676';
20250303@193651.3130 b6ggju33q8i715c66k001956d1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193651.3141 b6ggju33q8i715c66k001956d1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193651.3212 b6ggju33q8i715c66k001956d1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5677';
20250303@193651.3375 b6ggju33q8i715c66k001956d1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5677';
20250303@193651.3461 b6ggju33q8i715c66k001956d1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5677';
20250303@193651.3503 b6ggju33q8i715c66k001956d1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5677';
20250303@193651.7924 vj045ub3g0940u95uh8ld824qh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193651.7935 vj045ub3g0940u95uh8ld824qh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193651.8025 vj045ub3g0940u95uh8ld824qh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5678';
20250303@193651.8111 vj045ub3g0940u95uh8ld824qh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5678';
20250303@193651.8182 vj045ub3g0940u95uh8ld824qh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5678';
20250303@193651.8226 vj045ub3g0940u95uh8ld824qh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5678';
20250303@193651.8605 3jlhu1ihv3bi4j87es9711h6tm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193651.8619 3jlhu1ihv3bi4j87es9711h6tm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193651.8691 3jlhu1ihv3bi4j87es9711h6tm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5679';
20250303@193651.8768 3jlhu1ihv3bi4j87es9711h6tm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5679';
20250303@193651.8842 3jlhu1ihv3bi4j87es9711h6tm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5679';
20250303@193651.8885 3jlhu1ihv3bi4j87es9711h6tm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5679';
20250303@193652.3140 p2n67da7ironal6v7h6fb10v9e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193652.3250 p2n67da7ironal6v7h6fb10v9e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193652.3970 p2n67da7ironal6v7h6fb10v9e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5680';
20250303@193652.4730 p2n67da7ironal6v7h6fb10v9e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5680';
20250303@193652.5750 p2n67da7ironal6v7h6fb10v9e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5680';
20250303@193652.6290 p2n67da7ironal6v7h6fb10v9e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5680';
20250303@193653.1727 c29a38temmv4uqfv4quccrmtg2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193653.1738 c29a38temmv4uqfv4quccrmtg2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193653.1818 c29a38temmv4uqfv4quccrmtg2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5681';
20250303@193653.1882 c29a38temmv4uqfv4quccrmtg2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5681';
20250303@193653.1949 c29a38temmv4uqfv4quccrmtg2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5681';
20250303@193653.1986 c29a38temmv4uqfv4quccrmtg2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5681';
20250303@193653.2413 86g489af6m80f6o4sndqgak2nq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193653.2424 86g489af6m80f6o4sndqgak2nq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193653.2497 86g489af6m80f6o4sndqgak2nq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5682';
20250303@193653.2561 86g489af6m80f6o4sndqgak2nq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5682';
20250303@193653.2629 86g489af6m80f6o4sndqgak2nq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5682';
20250303@193653.3941 86g489af6m80f6o4sndqgak2nq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5682';
20250303@193653.6350 tr69etsjuops3bg9lnprdacs2g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250303@193653.6360 tr69etsjuops3bg9lnprdacs2g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250303@193653.6430 tr69etsjuops3bg9lnprdacs2g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5683';
20250303@193653.6497 tr69etsjuops3bg9lnprdacs2g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5683';
20250303@193653.6564 tr69etsjuops3bg9lnprdacs2g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5683';
20250303@193653.6599 tr69etsjuops3bg9lnprdacs2g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5683';

20250305@080555.1502 b3jp9e30t84q5mfo3pb9b4qct4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5684';
20250305@080555.1606 b3jp9e30t84q5mfo3pb9b4qct4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5684';
20250305@080555.1659 b3jp9e30t84q5mfo3pb9b4qct4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5684';
20250305@080555.1764 b3jp9e30t84q5mfo3pb9b4qct4 Query : use flama_phc
20250305@080555.1768 b3jp9e30t84q5mfo3pb9b4qct4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080555.1894 b3jp9e30t84q5mfo3pb9b4qct4 Query : use flama_phc
20250305@080555.1899 b3jp9e30t84q5mfo3pb9b4qct4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20250305@080555.2202 b3jp9e30t84q5mfo3pb9b4qct4 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501480 
20250305@080555.2799 b3jp9e30t84q5mfo3pb9b4qct4 Query : use flama_phc
20250305@080555.2802 b3jp9e30t84q5mfo3pb9b4qct4 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080555.2909 b3jp9e30t84q5mfo3pb9b4qct4 Query : use flama_phc
20250305@080555.2912 b3jp9e30t84q5mfo3pb9b4qct4 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080555.3028 b3jp9e30t84q5mfo3pb9b4qct4 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080555.3076 b3jp9e30t84q5mfo3pb9b4qct4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5684';
20250305@080555.3174 b3jp9e30t84q5mfo3pb9b4qct4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5684';
20250305@080555.3930 km1k9dcckd9590f7gso2ghdd2t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080555.3941 km1k9dcckd9590f7gso2ghdd2t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080555.4055 km1k9dcckd9590f7gso2ghdd2t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5685';
20250305@080555.4137 km1k9dcckd9590f7gso2ghdd2t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5685';
20250305@080555.4214 km1k9dcckd9590f7gso2ghdd2t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5685';
20250305@080555.4276 km1k9dcckd9590f7gso2ghdd2t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5685';
20250305@080555.4375 km1k9dcckd9590f7gso2ghdd2t Query : use flama_phc
20250305@080555.4379 km1k9dcckd9590f7gso2ghdd2t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080555.4481 km1k9dcckd9590f7gso2ghdd2t Query : use flama_phc
20250305@080555.4486 km1k9dcckd9590f7gso2ghdd2t Query : select no, estab,szadrsdesc from szadrs where u_coddest=4245
20250305@080555.4627 km1k9dcckd9590f7gso2ghdd2t Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501482 
20250305@080555.5150 km1k9dcckd9590f7gso2ghdd2t Query : use flama_phc
20250305@080555.5153 km1k9dcckd9590f7gso2ghdd2t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080555.5199 km1k9dcckd9590f7gso2ghdd2t Query : use flama_phc
20250305@080555.5203 km1k9dcckd9590f7gso2ghdd2t Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080555.5223 km1k9dcckd9590f7gso2ghdd2t Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080555.5661 km1k9dcckd9590f7gso2ghdd2t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5685';
20250305@080555.6624 km1k9dcckd9590f7gso2ghdd2t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5685';
20250305@080555.7588 rr2ev1foe6q4qn9o89r9ro77ga Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080555.7635 rr2ev1foe6q4qn9o89r9ro77ga Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080555.7997 rr2ev1foe6q4qn9o89r9ro77ga Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5686';
20250305@080555.8095 rr2ev1foe6q4qn9o89r9ro77ga Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5686';
20250305@080555.8350 rr2ev1foe6q4qn9o89r9ro77ga Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5686';
20250305@080555.8407 rr2ev1foe6q4qn9o89r9ro77ga Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5686';
20250305@080555.8501 rr2ev1foe6q4qn9o89r9ro77ga Query : use flama_phc
20250305@080555.8505 rr2ev1foe6q4qn9o89r9ro77ga Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080555.8598 rr2ev1foe6q4qn9o89r9ro77ga Query : use flama_phc
20250305@080555.8601 rr2ev1foe6q4qn9o89r9ro77ga Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250305@080555.8744 rr2ev1foe6q4qn9o89r9ro77ga Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501489 
20250305@080555.9199 rr2ev1foe6q4qn9o89r9ro77ga Query : use flama_phc
20250305@080555.9203 rr2ev1foe6q4qn9o89r9ro77ga Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080555.9252 rr2ev1foe6q4qn9o89r9ro77ga Query : use flama_phc
20250305@080555.9256 rr2ev1foe6q4qn9o89r9ro77ga Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080555.9274 rr2ev1foe6q4qn9o89r9ro77ga Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080555.9298 rr2ev1foe6q4qn9o89r9ro77ga Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5686';
20250305@080555.9357 rr2ev1foe6q4qn9o89r9ro77ga Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5686';
20250305@080555.9916 umn35k7m4lf5d4ksiruf65h40e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080555.9955 umn35k7m4lf5d4ksiruf65h40e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080556.4700 umn35k7m4lf5d4ksiruf65h40e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5687';
20250305@080556.1440 umn35k7m4lf5d4ksiruf65h40e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5687';
20250305@080556.2750 umn35k7m4lf5d4ksiruf65h40e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5687';
20250305@080556.3330 umn35k7m4lf5d4ksiruf65h40e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5687';
20250305@080556.4160 umn35k7m4lf5d4ksiruf65h40e Query : use flama_phc
20250305@080556.4210 umn35k7m4lf5d4ksiruf65h40e Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080556.5410 umn35k7m4lf5d4ksiruf65h40e Query : use flama_phc
20250305@080556.5460 umn35k7m4lf5d4ksiruf65h40e Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250305@080556.6400 umn35k7m4lf5d4ksiruf65h40e Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501490 
20250305@080556.1203 umn35k7m4lf5d4ksiruf65h40e Query : use flama_phc
20250305@080556.1208 umn35k7m4lf5d4ksiruf65h40e Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080556.1247 umn35k7m4lf5d4ksiruf65h40e Query : use flama_phc
20250305@080556.1251 umn35k7m4lf5d4ksiruf65h40e Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080556.1272 umn35k7m4lf5d4ksiruf65h40e Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080556.1630 umn35k7m4lf5d4ksiruf65h40e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5687';
20250305@080556.2016 umn35k7m4lf5d4ksiruf65h40e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5687';
20250305@080556.3614 t424pngs01afd0363cg8mhm1ou Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080556.3635 t424pngs01afd0363cg8mhm1ou Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080556.3719 t424pngs01afd0363cg8mhm1ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5688';
20250305@080556.3856 t424pngs01afd0363cg8mhm1ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5688';
20250305@080556.3938 t424pngs01afd0363cg8mhm1ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5688';
20250305@080556.3987 t424pngs01afd0363cg8mhm1ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5688';
20250305@080556.4130 t424pngs01afd0363cg8mhm1ou Query : use flama_phc
20250305@080556.4134 t424pngs01afd0363cg8mhm1ou Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080556.4251 t424pngs01afd0363cg8mhm1ou Query : use flama_phc
20250305@080556.4255 t424pngs01afd0363cg8mhm1ou Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20250305@080556.4345 t424pngs01afd0363cg8mhm1ou Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501493 
20250305@080556.4767 t424pngs01afd0363cg8mhm1ou Query : use flama_phc
20250305@080556.4786 t424pngs01afd0363cg8mhm1ou Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080556.4820 t424pngs01afd0363cg8mhm1ou Query : use flama_phc
20250305@080556.4824 t424pngs01afd0363cg8mhm1ou Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080556.4844 t424pngs01afd0363cg8mhm1ou Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080556.4891 t424pngs01afd0363cg8mhm1ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5688';
20250305@080556.4942 t424pngs01afd0363cg8mhm1ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5688';
20250305@080556.5657 j1d81td0fvnoqettcb0hkvmk1s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080556.5667 j1d81td0fvnoqettcb0hkvmk1s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080556.5799 j1d81td0fvnoqettcb0hkvmk1s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5689';
20250305@080556.5890 j1d81td0fvnoqettcb0hkvmk1s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5689';
20250305@080556.5976 j1d81td0fvnoqettcb0hkvmk1s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5689';
20250305@080556.6034 j1d81td0fvnoqettcb0hkvmk1s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5689';
20250305@080556.6157 j1d81td0fvnoqettcb0hkvmk1s Query : use flama_phc
20250305@080556.6161 j1d81td0fvnoqettcb0hkvmk1s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080556.6276 j1d81td0fvnoqettcb0hkvmk1s Query : use flama_phc
20250305@080556.6280 j1d81td0fvnoqettcb0hkvmk1s Query : select no, estab,szadrsdesc from szadrs where u_coddest=692
20250305@080556.7160 j1d81td0fvnoqettcb0hkvmk1s Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501494 
20250305@080556.8010 j1d81td0fvnoqettcb0hkvmk1s Query : use flama_phc
20250305@080556.8015 j1d81td0fvnoqettcb0hkvmk1s Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080556.8116 j1d81td0fvnoqettcb0hkvmk1s Query : use flama_phc
20250305@080556.8120 j1d81td0fvnoqettcb0hkvmk1s Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080556.8139 j1d81td0fvnoqettcb0hkvmk1s Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080556.8167 j1d81td0fvnoqettcb0hkvmk1s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5689';
20250305@080556.8234 j1d81td0fvnoqettcb0hkvmk1s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5689';
20250305@080556.8848 mr0fga1ghhmepckeji3nmrslfu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080556.8860 mr0fga1ghhmepckeji3nmrslfu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080556.9062 mr0fga1ghhmepckeji3nmrslfu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5690';
20250305@080556.9152 mr0fga1ghhmepckeji3nmrslfu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5690';
20250305@080556.9273 mr0fga1ghhmepckeji3nmrslfu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5690';
20250305@080556.9351 mr0fga1ghhmepckeji3nmrslfu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5690';
20250305@080556.9431 mr0fga1ghhmepckeji3nmrslfu Query : use flama_phc
20250305@080556.9445 mr0fga1ghhmepckeji3nmrslfu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080556.9556 mr0fga1ghhmepckeji3nmrslfu Query : use flama_phc
20250305@080556.9561 mr0fga1ghhmepckeji3nmrslfu Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250305@080556.9632 mr0fga1ghhmepckeji3nmrslfu Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501496 
20250305@080557.9500 mr0fga1ghhmepckeji3nmrslfu Query : use flama_phc
20250305@080557.1090 mr0fga1ghhmepckeji3nmrslfu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080557.1600 mr0fga1ghhmepckeji3nmrslfu Query : use flama_phc
20250305@080557.1630 mr0fga1ghhmepckeji3nmrslfu Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080557.1810 mr0fga1ghhmepckeji3nmrslfu Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080557.2090 mr0fga1ghhmepckeji3nmrslfu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5690';
20250305@080557.2770 mr0fga1ghhmepckeji3nmrslfu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5690';
20250305@080557.1009 lne7os65tigp0nc1fu0hqiqfer Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080557.1020 lne7os65tigp0nc1fu0hqiqfer Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080557.1164 lne7os65tigp0nc1fu0hqiqfer Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5691';
20250305@080557.1277 lne7os65tigp0nc1fu0hqiqfer Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5691';
20250305@080557.1448 lne7os65tigp0nc1fu0hqiqfer Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5691';
20250305@080557.1549 lne7os65tigp0nc1fu0hqiqfer Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5691';
20250305@080557.1683 lne7os65tigp0nc1fu0hqiqfer Query : use flama_phc
20250305@080557.1691 lne7os65tigp0nc1fu0hqiqfer Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080557.1939 lne7os65tigp0nc1fu0hqiqfer Query : use flama_phc
20250305@080557.1943 lne7os65tigp0nc1fu0hqiqfer Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250305@080557.1992 lne7os65tigp0nc1fu0hqiqfer Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501498 
20250305@080557.2479 lne7os65tigp0nc1fu0hqiqfer Query : use flama_phc
20250305@080557.2484 lne7os65tigp0nc1fu0hqiqfer Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080557.2568 lne7os65tigp0nc1fu0hqiqfer Query : use flama_phc
20250305@080557.2578 lne7os65tigp0nc1fu0hqiqfer Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080557.2608 lne7os65tigp0nc1fu0hqiqfer Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080557.2630 lne7os65tigp0nc1fu0hqiqfer Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5691';
20250305@080557.2722 lne7os65tigp0nc1fu0hqiqfer Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5691';
20250305@080557.3343 sc0te3cmfhs3jqjqgmvdri7bte Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080557.3354 sc0te3cmfhs3jqjqgmvdri7bte Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080557.3459 sc0te3cmfhs3jqjqgmvdri7bte Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5692';
20250305@080557.3542 sc0te3cmfhs3jqjqgmvdri7bte Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5692';
20250305@080557.3677 sc0te3cmfhs3jqjqgmvdri7bte Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5692';
20250305@080557.3733 sc0te3cmfhs3jqjqgmvdri7bte Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5692';
20250305@080557.3817 sc0te3cmfhs3jqjqgmvdri7bte Query : use flama_phc
20250305@080557.3820 sc0te3cmfhs3jqjqgmvdri7bte Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080557.3942 sc0te3cmfhs3jqjqgmvdri7bte Query : use flama_phc
20250305@080557.3946 sc0te3cmfhs3jqjqgmvdri7bte Query : select no, estab,szadrsdesc from szadrs where u_coddest=4234
20250305@080557.4039 sc0te3cmfhs3jqjqgmvdri7bte Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501502 
20250305@080557.5871 sc0te3cmfhs3jqjqgmvdri7bte Query : use flama_phc
20250305@080557.5876 sc0te3cmfhs3jqjqgmvdri7bte Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080557.5951 sc0te3cmfhs3jqjqgmvdri7bte Query : use flama_phc
20250305@080557.5955 sc0te3cmfhs3jqjqgmvdri7bte Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080557.5980 sc0te3cmfhs3jqjqgmvdri7bte Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080557.6010 sc0te3cmfhs3jqjqgmvdri7bte Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5692';
20250305@080557.6064 sc0te3cmfhs3jqjqgmvdri7bte Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5692';
20250305@080557.6849 3tsb3ss0s7c4glhs6v621pldtp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080557.6860 3tsb3ss0s7c4glhs6v621pldtp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080557.6966 3tsb3ss0s7c4glhs6v621pldtp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5693';
20250305@080557.7172 3tsb3ss0s7c4glhs6v621pldtp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5693';
20250305@080557.7304 3tsb3ss0s7c4glhs6v621pldtp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5693';
20250305@080557.7401 3tsb3ss0s7c4glhs6v621pldtp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5693';
20250305@080557.7509 3tsb3ss0s7c4glhs6v621pldtp Query : use flama_phc
20250305@080557.7529 3tsb3ss0s7c4glhs6v621pldtp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080557.7680 3tsb3ss0s7c4glhs6v621pldtp Query : use flama_phc
20250305@080557.7684 3tsb3ss0s7c4glhs6v621pldtp Query : select no, estab,szadrsdesc from szadrs where u_coddest=4241
20250305@080557.7792 3tsb3ss0s7c4glhs6v621pldtp Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501503 
20250305@080557.8444 3tsb3ss0s7c4glhs6v621pldtp Query : use flama_phc
20250305@080557.8494 3tsb3ss0s7c4glhs6v621pldtp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080557.8725 3tsb3ss0s7c4glhs6v621pldtp Query : use flama_phc
20250305@080557.8744 3tsb3ss0s7c4glhs6v621pldtp Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080557.8762 3tsb3ss0s7c4glhs6v621pldtp Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080557.8808 3tsb3ss0s7c4glhs6v621pldtp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5693';
20250305@080557.8885 3tsb3ss0s7c4glhs6v621pldtp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5693';
20250305@080557.9650 1gss5600vb6t04gf68hg7r6455 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080557.9664 1gss5600vb6t04gf68hg7r6455 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080557.9759 1gss5600vb6t04gf68hg7r6455 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5694';
20250305@080557.9898 1gss5600vb6t04gf68hg7r6455 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5694';
20250305@080557.9977 1gss5600vb6t04gf68hg7r6455 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5694';
20250305@080558.2600 1gss5600vb6t04gf68hg7r6455 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5694';
20250305@080558.1190 1gss5600vb6t04gf68hg7r6455 Query : use flama_phc
20250305@080558.1230 1gss5600vb6t04gf68hg7r6455 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080558.1890 1gss5600vb6t04gf68hg7r6455 Query : use flama_phc
20250305@080558.1930 1gss5600vb6t04gf68hg7r6455 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4244
20250305@080558.3110 1gss5600vb6t04gf68hg7r6455 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501505 
20250305@080558.7300 1gss5600vb6t04gf68hg7r6455 Query : use flama_phc
20250305@080558.7330 1gss5600vb6t04gf68hg7r6455 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080558.7770 1gss5600vb6t04gf68hg7r6455 Query : use flama_phc
20250305@080558.7800 1gss5600vb6t04gf68hg7r6455 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080558.7970 1gss5600vb6t04gf68hg7r6455 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080558.8190 1gss5600vb6t04gf68hg7r6455 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5694';
20250305@080558.8860 1gss5600vb6t04gf68hg7r6455 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5694';
20250305@080558.1475 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080558.1485 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080558.1560 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5695';
20250305@080558.1662 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5695';
20250305@080558.1777 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5695';
20250305@080558.1823 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5695';
20250305@080558.1892 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : use flama_phc
20250305@080558.1895 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080558.1967 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : use flama_phc
20250305@080558.1970 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select no, estab,szadrsdesc from szadrs where u_coddest=227
20250305@080558.2158 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501519 
20250305@080558.2741 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : use flama_phc
20250305@080558.2744 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080558.2775 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : use flama_phc
20250305@080558.2781 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080558.2839 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080558.2873 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5695';
20250305@080558.2952 q5lg7vn4c8f9kbrr7u0tuj3g0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5695';
20250305@080558.3714 jo1qbsc7hkbmu2coaucqb9p19u Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080558.3728 jo1qbsc7hkbmu2coaucqb9p19u Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080558.3849 jo1qbsc7hkbmu2coaucqb9p19u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5696';
20250305@080558.3928 jo1qbsc7hkbmu2coaucqb9p19u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5696';
20250305@080558.4020 jo1qbsc7hkbmu2coaucqb9p19u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5696';
20250305@080558.4090 jo1qbsc7hkbmu2coaucqb9p19u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5696';
20250305@080558.4228 jo1qbsc7hkbmu2coaucqb9p19u Query : use flama_phc
20250305@080558.4233 jo1qbsc7hkbmu2coaucqb9p19u Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080558.4301 jo1qbsc7hkbmu2coaucqb9p19u Query : use flama_phc
20250305@080558.4304 jo1qbsc7hkbmu2coaucqb9p19u Query : select no, estab,szadrsdesc from szadrs where u_coddest=2119
20250305@080558.4417 jo1qbsc7hkbmu2coaucqb9p19u Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501520 
20250305@080558.4921 jo1qbsc7hkbmu2coaucqb9p19u Query : use flama_phc
20250305@080558.4924 jo1qbsc7hkbmu2coaucqb9p19u Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080558.5035 jo1qbsc7hkbmu2coaucqb9p19u Query : use flama_phc
20250305@080558.5039 jo1qbsc7hkbmu2coaucqb9p19u Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080558.5085 jo1qbsc7hkbmu2coaucqb9p19u Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080558.5113 jo1qbsc7hkbmu2coaucqb9p19u Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5696';
20250305@080558.5198 jo1qbsc7hkbmu2coaucqb9p19u Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5696';
20250305@080558.5927 7a3h43moueu9nfamqtajiq9mf6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080558.5949 7a3h43moueu9nfamqtajiq9mf6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080558.6099 7a3h43moueu9nfamqtajiq9mf6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5697';
20250305@080558.6261 7a3h43moueu9nfamqtajiq9mf6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5697';
20250305@080558.6354 7a3h43moueu9nfamqtajiq9mf6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5697';
20250305@080558.6476 7a3h43moueu9nfamqtajiq9mf6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5697';
20250305@080558.6572 7a3h43moueu9nfamqtajiq9mf6 Query : use flama_phc
20250305@080558.6589 7a3h43moueu9nfamqtajiq9mf6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080558.6680 7a3h43moueu9nfamqtajiq9mf6 Query : use flama_phc
20250305@080558.6684 7a3h43moueu9nfamqtajiq9mf6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250305@080558.6755 7a3h43moueu9nfamqtajiq9mf6 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501521 
20250305@080558.7208 7a3h43moueu9nfamqtajiq9mf6 Query : use flama_phc
20250305@080558.7215 7a3h43moueu9nfamqtajiq9mf6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080558.7247 7a3h43moueu9nfamqtajiq9mf6 Query : use flama_phc
20250305@080558.7261 7a3h43moueu9nfamqtajiq9mf6 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080558.7277 7a3h43moueu9nfamqtajiq9mf6 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080558.7314 7a3h43moueu9nfamqtajiq9mf6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5697';
20250305@080558.7433 7a3h43moueu9nfamqtajiq9mf6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5697';
20250305@080558.7978 29ui26gcgm49dojfmvg83sv9sp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080558.7988 29ui26gcgm49dojfmvg83sv9sp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080558.8150 29ui26gcgm49dojfmvg83sv9sp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5698';
20250305@080558.8229 29ui26gcgm49dojfmvg83sv9sp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5698';
20250305@080558.8332 29ui26gcgm49dojfmvg83sv9sp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5698';
20250305@080558.8403 29ui26gcgm49dojfmvg83sv9sp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5698';
20250305@080558.8481 29ui26gcgm49dojfmvg83sv9sp Query : use flama_phc
20250305@080558.8487 29ui26gcgm49dojfmvg83sv9sp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080558.8602 29ui26gcgm49dojfmvg83sv9sp Query : use flama_phc
20250305@080558.8605 29ui26gcgm49dojfmvg83sv9sp Query : select no, estab,szadrsdesc from szadrs where u_coddest=7254
20250305@080558.8740 29ui26gcgm49dojfmvg83sv9sp Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501524 
20250305@080558.9345 29ui26gcgm49dojfmvg83sv9sp Query : use flama_phc
20250305@080558.9348 29ui26gcgm49dojfmvg83sv9sp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080558.9441 29ui26gcgm49dojfmvg83sv9sp Query : use flama_phc
20250305@080558.9445 29ui26gcgm49dojfmvg83sv9sp Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080558.9473 29ui26gcgm49dojfmvg83sv9sp Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080558.9519 29ui26gcgm49dojfmvg83sv9sp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5698';
20250305@080558.9627 29ui26gcgm49dojfmvg83sv9sp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5698';
20250305@080559.1101 rhh4cvt9e97csfu26eef6eo429 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080559.1320 rhh4cvt9e97csfu26eef6eo429 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080559.1671 rhh4cvt9e97csfu26eef6eo429 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5699';
20250305@080559.1769 rhh4cvt9e97csfu26eef6eo429 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5699';
20250305@080559.1882 rhh4cvt9e97csfu26eef6eo429 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5699';
20250305@080559.1926 rhh4cvt9e97csfu26eef6eo429 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5699';
20250305@080559.2325 rhh4cvt9e97csfu26eef6eo429 Query : use flama_phc
20250305@080559.2340 rhh4cvt9e97csfu26eef6eo429 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080559.2414 rhh4cvt9e97csfu26eef6eo429 Query : use flama_phc
20250305@080559.2418 rhh4cvt9e97csfu26eef6eo429 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1452
20250305@080559.2542 rhh4cvt9e97csfu26eef6eo429 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501525 
20250305@080559.2989 rhh4cvt9e97csfu26eef6eo429 Query : use flama_phc
20250305@080559.2992 rhh4cvt9e97csfu26eef6eo429 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080559.3030 rhh4cvt9e97csfu26eef6eo429 Query : use flama_phc
20250305@080559.3039 rhh4cvt9e97csfu26eef6eo429 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080559.3078 rhh4cvt9e97csfu26eef6eo429 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080559.3099 rhh4cvt9e97csfu26eef6eo429 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5699';
20250305@080559.3182 rhh4cvt9e97csfu26eef6eo429 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5699';
20250305@080559.3804 2rr7tlr8fmb0234cjgc9d0hv3i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080559.3823 2rr7tlr8fmb0234cjgc9d0hv3i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080559.3957 2rr7tlr8fmb0234cjgc9d0hv3i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5700';
20250305@080559.4041 2rr7tlr8fmb0234cjgc9d0hv3i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5700';
20250305@080559.4115 2rr7tlr8fmb0234cjgc9d0hv3i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5700';
20250305@080559.4202 2rr7tlr8fmb0234cjgc9d0hv3i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5700';
20250305@080559.4315 2rr7tlr8fmb0234cjgc9d0hv3i Query : use flama_phc
20250305@080559.4319 2rr7tlr8fmb0234cjgc9d0hv3i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080559.4398 2rr7tlr8fmb0234cjgc9d0hv3i Query : use flama_phc
20250305@080559.4401 2rr7tlr8fmb0234cjgc9d0hv3i Query : select no, estab,szadrsdesc from szadrs where u_coddest=909
20250305@080559.4526 2rr7tlr8fmb0234cjgc9d0hv3i Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501526 
20250305@080559.4946 2rr7tlr8fmb0234cjgc9d0hv3i Query : use flama_phc
20250305@080559.4964 2rr7tlr8fmb0234cjgc9d0hv3i Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080559.5008 2rr7tlr8fmb0234cjgc9d0hv3i Query : use flama_phc
20250305@080559.5070 2rr7tlr8fmb0234cjgc9d0hv3i Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080559.5094 2rr7tlr8fmb0234cjgc9d0hv3i Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080559.5129 2rr7tlr8fmb0234cjgc9d0hv3i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5700';
20250305@080559.5191 2rr7tlr8fmb0234cjgc9d0hv3i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5700';
20250305@080559.5960 olnsshecl913vo8jr3uqg2jits Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080559.5971 olnsshecl913vo8jr3uqg2jits Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080559.6127 olnsshecl913vo8jr3uqg2jits Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5701';
20250305@080559.6222 olnsshecl913vo8jr3uqg2jits Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5701';
20250305@080559.6436 olnsshecl913vo8jr3uqg2jits Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5701';
20250305@080559.6507 olnsshecl913vo8jr3uqg2jits Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5701';
20250305@080559.6582 olnsshecl913vo8jr3uqg2jits Query : use flama_phc
20250305@080559.6592 olnsshecl913vo8jr3uqg2jits Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080559.6661 olnsshecl913vo8jr3uqg2jits Query : use flama_phc
20250305@080559.6668 olnsshecl913vo8jr3uqg2jits Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20250305@080559.6779 olnsshecl913vo8jr3uqg2jits Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501527 
20250305@080559.7325 olnsshecl913vo8jr3uqg2jits Query : use flama_phc
20250305@080559.7332 olnsshecl913vo8jr3uqg2jits Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080559.7402 olnsshecl913vo8jr3uqg2jits Query : use flama_phc
20250305@080559.7414 olnsshecl913vo8jr3uqg2jits Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080559.7488 olnsshecl913vo8jr3uqg2jits Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080559.7513 olnsshecl913vo8jr3uqg2jits Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5701';
20250305@080559.7630 olnsshecl913vo8jr3uqg2jits Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5701';
20250305@080559.8258 unhl0idojgugnjcu5ngregbdp0 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080559.8294 unhl0idojgugnjcu5ngregbdp0 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080559.8401 unhl0idojgugnjcu5ngregbdp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5702';
20250305@080559.8496 unhl0idojgugnjcu5ngregbdp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5702';
20250305@080559.8578 unhl0idojgugnjcu5ngregbdp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5702';
20250305@080559.8683 unhl0idojgugnjcu5ngregbdp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5702';
20250305@080559.8759 unhl0idojgugnjcu5ngregbdp0 Query : use flama_phc
20250305@080559.8768 unhl0idojgugnjcu5ngregbdp0 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080559.8865 unhl0idojgugnjcu5ngregbdp0 Query : use flama_phc
20250305@080559.8873 unhl0idojgugnjcu5ngregbdp0 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20250305@080559.8998 unhl0idojgugnjcu5ngregbdp0 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501528 
20250305@080559.9678 unhl0idojgugnjcu5ngregbdp0 Query : use flama_phc
20250305@080559.9681 unhl0idojgugnjcu5ngregbdp0 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080559.9730 unhl0idojgugnjcu5ngregbdp0 Query : use flama_phc
20250305@080559.9741 unhl0idojgugnjcu5ngregbdp0 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080559.9762 unhl0idojgugnjcu5ngregbdp0 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080559.9784 unhl0idojgugnjcu5ngregbdp0 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5702';
20250305@080559.9980 unhl0idojgugnjcu5ngregbdp0 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5702';
20250305@080600.6200 et7c402ndq7uc2ps1f7t75cjha Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@080600.6320 et7c402ndq7uc2ps1f7t75cjha Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@080600.7210 et7c402ndq7uc2ps1f7t75cjha Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5703';
20250305@080600.8110 et7c402ndq7uc2ps1f7t75cjha Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5703';
20250305@080600.9240 et7c402ndq7uc2ps1f7t75cjha Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5703';
20250305@080600.1001 et7c402ndq7uc2ps1f7t75cjha Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5703';
20250305@080600.1094 et7c402ndq7uc2ps1f7t75cjha Query : use flama_phc
20250305@080600.1098 et7c402ndq7uc2ps1f7t75cjha Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@080600.1175 et7c402ndq7uc2ps1f7t75cjha Query : use flama_phc
20250305@080600.1180 et7c402ndq7uc2ps1f7t75cjha Query : select no, estab,szadrsdesc from szadrs where u_coddest=812
20250305@080600.1276 et7c402ndq7uc2ps1f7t75cjha Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501529 
20250305@080600.1776 et7c402ndq7uc2ps1f7t75cjha Query : use flama_phc
20250305@080600.1781 et7c402ndq7uc2ps1f7t75cjha Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@080600.1818 et7c402ndq7uc2ps1f7t75cjha Query : use flama_phc
20250305@080600.1822 et7c402ndq7uc2ps1f7t75cjha Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@080600.1859 et7c402ndq7uc2ps1f7t75cjha Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@080600.1884 et7c402ndq7uc2ps1f7t75cjha Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5703';
20250305@080600.1935 et7c402ndq7uc2ps1f7t75cjha Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5703';

20250305@092729.2380 c2u88rqh4omdl19jrjne92p47f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5704';
20250305@092729.2506 c2u88rqh4omdl19jrjne92p47f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5704';
20250305@092729.2561 c2u88rqh4omdl19jrjne92p47f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5704';
20250305@092729.2651 c2u88rqh4omdl19jrjne92p47f Query : use flama_phc
20250305@092729.2655 c2u88rqh4omdl19jrjne92p47f Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@092729.2734 c2u88rqh4omdl19jrjne92p47f Query : use flama_phc
20250305@092729.2779 c2u88rqh4omdl19jrjne92p47f Query : select no, estab,szadrsdesc from szadrs where u_coddest=9193
20250305@092729.2968 c2u88rqh4omdl19jrjne92p47f Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2014 and bo.obrano = 2501481 
20250305@092729.3404 c2u88rqh4omdl19jrjne92p47f Query : use flama_phc
20250305@092729.3408 c2u88rqh4omdl19jrjne92p47f Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@092729.3449 c2u88rqh4omdl19jrjne92p47f Query : use flama_phc
20250305@092729.3453 c2u88rqh4omdl19jrjne92p47f Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@092729.3477 c2u88rqh4omdl19jrjne92p47f Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@092729.3506 c2u88rqh4omdl19jrjne92p47f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5704';
20250305@092729.3563 c2u88rqh4omdl19jrjne92p47f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5704';

20250305@104322.7011 0lmtt4qfn8p5lqb27ntmu2nvhp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5705';
20250305@104322.8075 0lmtt4qfn8p5lqb27ntmu2nvhp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5705';
20250305@104322.9073 0lmtt4qfn8p5lqb27ntmu2nvhp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5705';
20250305@104323.3140 0lmtt4qfn8p5lqb27ntmu2nvhp Query : use flama_phc
20250305@104323.9060 0lmtt4qfn8p5lqb27ntmu2nvhp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@104323.3251 0lmtt4qfn8p5lqb27ntmu2nvhp Query : use flama_phc
20250305@104323.3333 0lmtt4qfn8p5lqb27ntmu2nvhp Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20250305@104323.5376 0lmtt4qfn8p5lqb27ntmu2nvhp Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501531 
20250305@104323.8158 0lmtt4qfn8p5lqb27ntmu2nvhp Query : use flama_phc
20250305@104323.8278 0lmtt4qfn8p5lqb27ntmu2nvhp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@104323.9530 0lmtt4qfn8p5lqb27ntmu2nvhp Query : use flama_phc
20250305@104323.9659 0lmtt4qfn8p5lqb27ntmu2nvhp Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@104324.7150 0lmtt4qfn8p5lqb27ntmu2nvhp Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@104324.1253 0lmtt4qfn8p5lqb27ntmu2nvhp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5705';
20250305@104324.2123 0lmtt4qfn8p5lqb27ntmu2nvhp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5705';
20250305@104324.6276 p7fer6n3474h326rlqo1c5h4sc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@104324.6492 p7fer6n3474h326rlqo1c5h4sc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@104324.8708 p7fer6n3474h326rlqo1c5h4sc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5706';
20250305@104324.9576 p7fer6n3474h326rlqo1c5h4sc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5706';
20250305@104325.1628 p7fer6n3474h326rlqo1c5h4sc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5706';
20250305@104325.2930 p7fer6n3474h326rlqo1c5h4sc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5706';
20250305@104325.3478 p7fer6n3474h326rlqo1c5h4sc Query : use flama_phc
20250305@104325.3569 p7fer6n3474h326rlqo1c5h4sc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@104325.5521 p7fer6n3474h326rlqo1c5h4sc Query : use flama_phc
20250305@104325.5604 p7fer6n3474h326rlqo1c5h4sc Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20250305@104325.6767 p7fer6n3474h326rlqo1c5h4sc Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501530 
20250305@104325.9171 p7fer6n3474h326rlqo1c5h4sc Query : use flama_phc
20250305@104325.9262 p7fer6n3474h326rlqo1c5h4sc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@104326.2250 p7fer6n3474h326rlqo1c5h4sc Query : use flama_phc
20250305@104326.3170 p7fer6n3474h326rlqo1c5h4sc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@104326.1054 p7fer6n3474h326rlqo1c5h4sc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@104326.1660 p7fer6n3474h326rlqo1c5h4sc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5706';
20250305@104326.2451 p7fer6n3474h326rlqo1c5h4sc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5706';

20250305@142254.1301 9qc3f170c8cuv78jvrm1r67uir Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5707';
20250305@142254.1372 9qc3f170c8cuv78jvrm1r67uir Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5707';
20250305@142254.1420 9qc3f170c8cuv78jvrm1r67uir Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5707';
20250305@142254.1486 9qc3f170c8cuv78jvrm1r67uir Query : use flama_phc
20250305@142254.1490 9qc3f170c8cuv78jvrm1r67uir Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142254.1588 9qc3f170c8cuv78jvrm1r67uir Query : use flama_phc
20250305@142254.1592 9qc3f170c8cuv78jvrm1r67uir Query : select no, estab,szadrsdesc from szadrs where u_coddest=8923
20250305@142254.1893 9qc3f170c8cuv78jvrm1r67uir Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501540 
20250305@142254.2302 9qc3f170c8cuv78jvrm1r67uir Query : use flama_phc
20250305@142254.2305 9qc3f170c8cuv78jvrm1r67uir Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142254.2392 9qc3f170c8cuv78jvrm1r67uir Query : use flama_phc
20250305@142254.2395 9qc3f170c8cuv78jvrm1r67uir Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142254.2458 9qc3f170c8cuv78jvrm1r67uir Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142254.2497 9qc3f170c8cuv78jvrm1r67uir Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5707';
20250305@142254.2548 9qc3f170c8cuv78jvrm1r67uir Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5707';
20250305@142254.3076 mh3r7mmj5ncemk9h27h1bsvcfh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142254.3087 mh3r7mmj5ncemk9h27h1bsvcfh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142254.3173 mh3r7mmj5ncemk9h27h1bsvcfh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5708';
20250305@142254.3254 mh3r7mmj5ncemk9h27h1bsvcfh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5708';
20250305@142254.3356 mh3r7mmj5ncemk9h27h1bsvcfh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5708';
20250305@142254.3399 mh3r7mmj5ncemk9h27h1bsvcfh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5708';
20250305@142254.3489 mh3r7mmj5ncemk9h27h1bsvcfh Query : use flama_phc
20250305@142254.3492 mh3r7mmj5ncemk9h27h1bsvcfh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142254.3558 mh3r7mmj5ncemk9h27h1bsvcfh Query : use flama_phc
20250305@142254.3561 mh3r7mmj5ncemk9h27h1bsvcfh Query : select no, estab,szadrsdesc from szadrs where u_coddest=9159
20250305@142254.3654 mh3r7mmj5ncemk9h27h1bsvcfh Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501541 
20250305@142254.4042 mh3r7mmj5ncemk9h27h1bsvcfh Query : use flama_phc
20250305@142254.4045 mh3r7mmj5ncemk9h27h1bsvcfh Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142254.4076 mh3r7mmj5ncemk9h27h1bsvcfh Query : use flama_phc
20250305@142254.4079 mh3r7mmj5ncemk9h27h1bsvcfh Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142254.4095 mh3r7mmj5ncemk9h27h1bsvcfh Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142254.4122 mh3r7mmj5ncemk9h27h1bsvcfh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5708';
20250305@142254.4168 mh3r7mmj5ncemk9h27h1bsvcfh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5708';
20250305@142254.4665 svqb1rhjbehm6njaca3tcrvitn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142254.4676 svqb1rhjbehm6njaca3tcrvitn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142254.4759 svqb1rhjbehm6njaca3tcrvitn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5709';
20250305@142254.4830 svqb1rhjbehm6njaca3tcrvitn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5709';
20250305@142254.5091 svqb1rhjbehm6njaca3tcrvitn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5709';
20250305@142254.5142 svqb1rhjbehm6njaca3tcrvitn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5709';
20250305@142254.5210 svqb1rhjbehm6njaca3tcrvitn Query : use flama_phc
20250305@142254.5214 svqb1rhjbehm6njaca3tcrvitn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142254.5280 svqb1rhjbehm6njaca3tcrvitn Query : use flama_phc
20250305@142254.5283 svqb1rhjbehm6njaca3tcrvitn Query : select no, estab,szadrsdesc from szadrs where u_coddest=909
20250305@142254.5374 svqb1rhjbehm6njaca3tcrvitn Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501542 
20250305@142254.6744 svqb1rhjbehm6njaca3tcrvitn Query : use flama_phc
20250305@142254.6748 svqb1rhjbehm6njaca3tcrvitn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142254.6784 svqb1rhjbehm6njaca3tcrvitn Query : use flama_phc
20250305@142254.6787 svqb1rhjbehm6njaca3tcrvitn Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142254.6803 svqb1rhjbehm6njaca3tcrvitn Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142254.6832 svqb1rhjbehm6njaca3tcrvitn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5709';
20250305@142254.6881 svqb1rhjbehm6njaca3tcrvitn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5709';
20250305@142254.7404 oqoafhrtiajoec3c91cmd6uj2v Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142254.7415 oqoafhrtiajoec3c91cmd6uj2v Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142254.7491 oqoafhrtiajoec3c91cmd6uj2v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5710';
20250305@142254.7572 oqoafhrtiajoec3c91cmd6uj2v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5710';
20250305@142254.7645 oqoafhrtiajoec3c91cmd6uj2v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5710';
20250305@142254.7697 oqoafhrtiajoec3c91cmd6uj2v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5710';
20250305@142254.7806 oqoafhrtiajoec3c91cmd6uj2v Query : use flama_phc
20250305@142254.7811 oqoafhrtiajoec3c91cmd6uj2v Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142254.7884 oqoafhrtiajoec3c91cmd6uj2v Query : use flama_phc
20250305@142254.7887 oqoafhrtiajoec3c91cmd6uj2v Query : select no, estab,szadrsdesc from szadrs where u_coddest=908
20250305@142254.7974 oqoafhrtiajoec3c91cmd6uj2v Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501543 
20250305@142254.8346 oqoafhrtiajoec3c91cmd6uj2v Query : use flama_phc
20250305@142254.8349 oqoafhrtiajoec3c91cmd6uj2v Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142254.8382 oqoafhrtiajoec3c91cmd6uj2v Query : use flama_phc
20250305@142254.8387 oqoafhrtiajoec3c91cmd6uj2v Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142254.8404 oqoafhrtiajoec3c91cmd6uj2v Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142254.8432 oqoafhrtiajoec3c91cmd6uj2v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5710';
20250305@142254.8480 oqoafhrtiajoec3c91cmd6uj2v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5710';
20250305@142254.8973 0p4b7o85v60pgue124d6vlcalv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142254.8984 0p4b7o85v60pgue124d6vlcalv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142254.9249 0p4b7o85v60pgue124d6vlcalv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5711';
20250305@142254.9347 0p4b7o85v60pgue124d6vlcalv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5711';
20250305@142254.9420 0p4b7o85v60pgue124d6vlcalv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5711';
20250305@142254.9466 0p4b7o85v60pgue124d6vlcalv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5711';
20250305@142254.9537 0p4b7o85v60pgue124d6vlcalv Query : use flama_phc
20250305@142254.9540 0p4b7o85v60pgue124d6vlcalv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142254.9603 0p4b7o85v60pgue124d6vlcalv Query : use flama_phc
20250305@142254.9610 0p4b7o85v60pgue124d6vlcalv Query : select no, estab,szadrsdesc from szadrs where u_coddest=1452
20250305@142254.9704 0p4b7o85v60pgue124d6vlcalv Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501544 
20250305@142255.8700 0p4b7o85v60pgue124d6vlcalv Query : use flama_phc
20250305@142255.9100 0p4b7o85v60pgue124d6vlcalv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142255.1240 0p4b7o85v60pgue124d6vlcalv Query : use flama_phc
20250305@142255.1270 0p4b7o85v60pgue124d6vlcalv Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142255.1570 0p4b7o85v60pgue124d6vlcalv Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142255.1840 0p4b7o85v60pgue124d6vlcalv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5711';
20250305@142255.2400 0p4b7o85v60pgue124d6vlcalv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5711';
20250305@142255.7750 2123e2s5uedg2bchtt78vns16l Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142255.7900 2123e2s5uedg2bchtt78vns16l Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142255.8780 2123e2s5uedg2bchtt78vns16l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5712';
20250305@142255.1261 2123e2s5uedg2bchtt78vns16l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5712';
20250305@142255.1331 2123e2s5uedg2bchtt78vns16l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5712';
20250305@142255.1383 2123e2s5uedg2bchtt78vns16l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5712';
20250305@142255.1454 2123e2s5uedg2bchtt78vns16l Query : use flama_phc
20250305@142255.1457 2123e2s5uedg2bchtt78vns16l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142255.1522 2123e2s5uedg2bchtt78vns16l Query : use flama_phc
20250305@142255.1525 2123e2s5uedg2bchtt78vns16l Query : select no, estab,szadrsdesc from szadrs where u_coddest=8301
20250305@142255.1610 2123e2s5uedg2bchtt78vns16l Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501545 
20250305@142255.1995 2123e2s5uedg2bchtt78vns16l Query : use flama_phc
20250305@142255.1999 2123e2s5uedg2bchtt78vns16l Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142255.2034 2123e2s5uedg2bchtt78vns16l Query : use flama_phc
20250305@142255.2037 2123e2s5uedg2bchtt78vns16l Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142255.2053 2123e2s5uedg2bchtt78vns16l Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142255.2078 2123e2s5uedg2bchtt78vns16l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5712';
20250305@142255.2128 2123e2s5uedg2bchtt78vns16l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5712';
20250305@142255.2673 ip6a22s23fp56j0gr605uci8dr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142255.2684 ip6a22s23fp56j0gr605uci8dr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142255.2760 ip6a22s23fp56j0gr605uci8dr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5713';
20250305@142255.2835 ip6a22s23fp56j0gr605uci8dr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5713';
20250305@142255.3046 ip6a22s23fp56j0gr605uci8dr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5713';
20250305@142255.3095 ip6a22s23fp56j0gr605uci8dr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5713';
20250305@142255.3176 ip6a22s23fp56j0gr605uci8dr Query : use flama_phc
20250305@142255.3179 ip6a22s23fp56j0gr605uci8dr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142255.4558 ip6a22s23fp56j0gr605uci8dr Query : use flama_phc
20250305@142255.4562 ip6a22s23fp56j0gr605uci8dr Query : select no, estab,szadrsdesc from szadrs where u_coddest=1498
20250305@142255.4651 ip6a22s23fp56j0gr605uci8dr Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501546 
20250305@142255.5024 ip6a22s23fp56j0gr605uci8dr Query : use flama_phc
20250305@142255.5028 ip6a22s23fp56j0gr605uci8dr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142255.5060 ip6a22s23fp56j0gr605uci8dr Query : use flama_phc
20250305@142255.5064 ip6a22s23fp56j0gr605uci8dr Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142255.5081 ip6a22s23fp56j0gr605uci8dr Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142255.5103 ip6a22s23fp56j0gr605uci8dr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5713';
20250305@142255.5156 ip6a22s23fp56j0gr605uci8dr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5713';
20250305@142255.5675 ufh158kq7pvogkfjfjf5npde9l Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142255.5687 ufh158kq7pvogkfjfjf5npde9l Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142255.5780 ufh158kq7pvogkfjfjf5npde9l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5714';
20250305@142255.5857 ufh158kq7pvogkfjfjf5npde9l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5714';
20250305@142255.5932 ufh158kq7pvogkfjfjf5npde9l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5714';
20250305@142255.5979 ufh158kq7pvogkfjfjf5npde9l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5714';
20250305@142255.6051 ufh158kq7pvogkfjfjf5npde9l Query : use flama_phc
20250305@142255.6056 ufh158kq7pvogkfjfjf5npde9l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142255.6126 ufh158kq7pvogkfjfjf5npde9l Query : use flama_phc
20250305@142255.6129 ufh158kq7pvogkfjfjf5npde9l Query : select no, estab,szadrsdesc from szadrs where u_coddest=2374
20250305@142255.6216 ufh158kq7pvogkfjfjf5npde9l Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501547 
20250305@142255.6657 ufh158kq7pvogkfjfjf5npde9l Query : use flama_phc
20250305@142255.6660 ufh158kq7pvogkfjfjf5npde9l Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142255.6691 ufh158kq7pvogkfjfjf5npde9l Query : use flama_phc
20250305@142255.6695 ufh158kq7pvogkfjfjf5npde9l Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142255.6714 ufh158kq7pvogkfjfjf5npde9l Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142255.6739 ufh158kq7pvogkfjfjf5npde9l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5714';
20250305@142255.6790 ufh158kq7pvogkfjfjf5npde9l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5714';
20250305@142255.7344 9mha80ddgn3fmd0mtq6p3mq2ta Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142255.7356 9mha80ddgn3fmd0mtq6p3mq2ta Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142255.7451 9mha80ddgn3fmd0mtq6p3mq2ta Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5715';
20250305@142255.7532 9mha80ddgn3fmd0mtq6p3mq2ta Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5715';
20250305@142255.7609 9mha80ddgn3fmd0mtq6p3mq2ta Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5715';
20250305@142255.7657 9mha80ddgn3fmd0mtq6p3mq2ta Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5715';
20250305@142255.7770 9mha80ddgn3fmd0mtq6p3mq2ta Query : use flama_phc
20250305@142255.7778 9mha80ddgn3fmd0mtq6p3mq2ta Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142255.7845 9mha80ddgn3fmd0mtq6p3mq2ta Query : use flama_phc
20250305@142255.7848 9mha80ddgn3fmd0mtq6p3mq2ta Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20250305@142255.7953 9mha80ddgn3fmd0mtq6p3mq2ta Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501548 
20250305@142255.8365 9mha80ddgn3fmd0mtq6p3mq2ta Query : use flama_phc
20250305@142255.8368 9mha80ddgn3fmd0mtq6p3mq2ta Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142255.8404 9mha80ddgn3fmd0mtq6p3mq2ta Query : use flama_phc
20250305@142255.8407 9mha80ddgn3fmd0mtq6p3mq2ta Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142255.8429 9mha80ddgn3fmd0mtq6p3mq2ta Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142255.8449 9mha80ddgn3fmd0mtq6p3mq2ta Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5715';
20250305@142255.8500 9mha80ddgn3fmd0mtq6p3mq2ta Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5715';
20250305@142255.9035 ipg192cdnf8scfrus791rb5cda Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142255.9045 ipg192cdnf8scfrus791rb5cda Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142255.9121 ipg192cdnf8scfrus791rb5cda Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5716';
20250305@142255.9192 ipg192cdnf8scfrus791rb5cda Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5716';
20250305@142255.9267 ipg192cdnf8scfrus791rb5cda Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5716';
20250305@142255.9313 ipg192cdnf8scfrus791rb5cda Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5716';
20250305@142255.9381 ipg192cdnf8scfrus791rb5cda Query : use flama_phc
20250305@142255.9384 ipg192cdnf8scfrus791rb5cda Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142255.9454 ipg192cdnf8scfrus791rb5cda Query : use flama_phc
20250305@142255.9457 ipg192cdnf8scfrus791rb5cda Query : select no, estab,szadrsdesc from szadrs where u_coddest=634
20250305@142255.9552 ipg192cdnf8scfrus791rb5cda Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501549 
20250305@142255.9962 ipg192cdnf8scfrus791rb5cda Query : use flama_phc
20250305@142255.9969 ipg192cdnf8scfrus791rb5cda Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142256.1200 ipg192cdnf8scfrus791rb5cda Query : use flama_phc
20250305@142256.1500 ipg192cdnf8scfrus791rb5cda Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142256.3400 ipg192cdnf8scfrus791rb5cda Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142256.9100 ipg192cdnf8scfrus791rb5cda Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5716';
20250305@142256.1770 ipg192cdnf8scfrus791rb5cda Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5716';
20250305@142256.7280 h1rdq89s9scrq9l3tjtk9d0bcn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142256.7410 h1rdq89s9scrq9l3tjtk9d0bcn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142256.8400 h1rdq89s9scrq9l3tjtk9d0bcn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5717';
20250305@142256.9280 h1rdq89s9scrq9l3tjtk9d0bcn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5717';
20250305@142256.1005 h1rdq89s9scrq9l3tjtk9d0bcn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5717';
20250305@142256.1058 h1rdq89s9scrq9l3tjtk9d0bcn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5717';
20250305@142256.1454 h1rdq89s9scrq9l3tjtk9d0bcn Query : use flama_phc
20250305@142256.1592 h1rdq89s9scrq9l3tjtk9d0bcn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142256.2535 h1rdq89s9scrq9l3tjtk9d0bcn Query : use flama_phc
20250305@142256.2539 h1rdq89s9scrq9l3tjtk9d0bcn Query : select no, estab,szadrsdesc from szadrs where u_coddest=3080
20250305@142256.2640 h1rdq89s9scrq9l3tjtk9d0bcn Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501550 
20250305@142256.3037 h1rdq89s9scrq9l3tjtk9d0bcn Query : use flama_phc
20250305@142256.3041 h1rdq89s9scrq9l3tjtk9d0bcn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142256.3083 h1rdq89s9scrq9l3tjtk9d0bcn Query : use flama_phc
20250305@142256.3092 h1rdq89s9scrq9l3tjtk9d0bcn Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142256.3124 h1rdq89s9scrq9l3tjtk9d0bcn Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142256.3182 h1rdq89s9scrq9l3tjtk9d0bcn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5717';
20250305@142256.3267 h1rdq89s9scrq9l3tjtk9d0bcn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5717';
20250305@142256.3833 fg18vheoinu9be5k6ikp13674r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@142256.3845 fg18vheoinu9be5k6ikp13674r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@142256.3926 fg18vheoinu9be5k6ikp13674r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5718';
20250305@142256.4005 fg18vheoinu9be5k6ikp13674r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5718';
20250305@142256.4109 fg18vheoinu9be5k6ikp13674r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5718';
20250305@142256.4176 fg18vheoinu9be5k6ikp13674r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5718';
20250305@142256.4287 fg18vheoinu9be5k6ikp13674r Query : use flama_phc
20250305@142256.4294 fg18vheoinu9be5k6ikp13674r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@142256.4378 fg18vheoinu9be5k6ikp13674r Query : use flama_phc
20250305@142256.4381 fg18vheoinu9be5k6ikp13674r Query : select no, estab,szadrsdesc from szadrs where u_coddest=1761
20250305@142256.4478 fg18vheoinu9be5k6ikp13674r Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501552 
20250305@142256.4868 fg18vheoinu9be5k6ikp13674r Query : use flama_phc
20250305@142256.4871 fg18vheoinu9be5k6ikp13674r Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@142256.4904 fg18vheoinu9be5k6ikp13674r Query : use flama_phc
20250305@142256.4907 fg18vheoinu9be5k6ikp13674r Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@142256.4923 fg18vheoinu9be5k6ikp13674r Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@142256.4944 fg18vheoinu9be5k6ikp13674r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5718';
20250305@142256.5003 fg18vheoinu9be5k6ikp13674r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5718';

20250305@172334.2959 h2j32a218g3tr5barkvt4gkchc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5719';
20250305@172334.3046 h2j32a218g3tr5barkvt4gkchc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5719';
20250305@172334.3098 h2j32a218g3tr5barkvt4gkchc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5719';
20250305@172334.3185 h2j32a218g3tr5barkvt4gkchc Query : use flama_phc
20250305@172334.3190 h2j32a218g3tr5barkvt4gkchc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@172334.3317 h2j32a218g3tr5barkvt4gkchc Query : use flama_phc
20250305@172334.3321 h2j32a218g3tr5barkvt4gkchc Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250305@172334.3478 h2j32a218g3tr5barkvt4gkchc Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501553 
20250305@172334.4078 h2j32a218g3tr5barkvt4gkchc Query : use flama_phc
20250305@172334.4082 h2j32a218g3tr5barkvt4gkchc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@172334.4159 h2j32a218g3tr5barkvt4gkchc Query : use flama_phc
20250305@172334.4163 h2j32a218g3tr5barkvt4gkchc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@172334.4232 h2j32a218g3tr5barkvt4gkchc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@172334.4271 h2j32a218g3tr5barkvt4gkchc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5719';
20250305@172334.4325 h2j32a218g3tr5barkvt4gkchc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5719';
20250305@172334.6271 hhk4sveamf08r02l8b1von8n89 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@172334.6637 hhk4sveamf08r02l8b1von8n89 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@172334.6893 hhk4sveamf08r02l8b1von8n89 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5720';
20250305@172334.6974 hhk4sveamf08r02l8b1von8n89 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5720';
20250305@172334.7073 hhk4sveamf08r02l8b1von8n89 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5720';
20250305@172334.7146 hhk4sveamf08r02l8b1von8n89 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5720';
20250305@172334.7225 hhk4sveamf08r02l8b1von8n89 Query : use flama_phc
20250305@172334.7229 hhk4sveamf08r02l8b1von8n89 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@172334.7293 hhk4sveamf08r02l8b1von8n89 Query : use flama_phc
20250305@172334.7297 hhk4sveamf08r02l8b1von8n89 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250305@172334.7393 hhk4sveamf08r02l8b1von8n89 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501555 
20250305@172334.7898 hhk4sveamf08r02l8b1von8n89 Query : use flama_phc
20250305@172334.7902 hhk4sveamf08r02l8b1von8n89 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@172334.7933 hhk4sveamf08r02l8b1von8n89 Query : use flama_phc
20250305@172334.7936 hhk4sveamf08r02l8b1von8n89 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@172334.7953 hhk4sveamf08r02l8b1von8n89 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@172334.7976 hhk4sveamf08r02l8b1von8n89 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5720';
20250305@172334.8036 hhk4sveamf08r02l8b1von8n89 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5720';
20250305@172334.8563 kq8g3370m72k8volsq17rco4bc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@172334.8574 kq8g3370m72k8volsq17rco4bc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@172334.8668 kq8g3370m72k8volsq17rco4bc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5721';
20250305@172334.8756 kq8g3370m72k8volsq17rco4bc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5721';
20250305@172334.8838 kq8g3370m72k8volsq17rco4bc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5721';
20250305@172334.8893 kq8g3370m72k8volsq17rco4bc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5721';
20250305@172334.8973 kq8g3370m72k8volsq17rco4bc Query : use flama_phc
20250305@172334.8976 kq8g3370m72k8volsq17rco4bc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@172334.9038 kq8g3370m72k8volsq17rco4bc Query : use flama_phc
20250305@172334.9042 kq8g3370m72k8volsq17rco4bc Query : select no, estab,szadrsdesc from szadrs where u_coddest=4243
20250305@172334.9140 kq8g3370m72k8volsq17rco4bc Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501557 
20250305@172334.9536 kq8g3370m72k8volsq17rco4bc Query : use flama_phc
20250305@172334.9540 kq8g3370m72k8volsq17rco4bc Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@172334.9571 kq8g3370m72k8volsq17rco4bc Query : use flama_phc
20250305@172334.9575 kq8g3370m72k8volsq17rco4bc Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@172334.9592 kq8g3370m72k8volsq17rco4bc Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@172334.9615 kq8g3370m72k8volsq17rco4bc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5721';
20250305@172334.9669 kq8g3370m72k8volsq17rco4bc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5721';
20250305@172335.1057 bvt1j3e050liktc5ku6jpqi9mo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@172335.1068 bvt1j3e050liktc5ku6jpqi9mo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@172335.1154 bvt1j3e050liktc5ku6jpqi9mo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5722';
20250305@172335.1242 bvt1j3e050liktc5ku6jpqi9mo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5722';
20250305@172335.1329 bvt1j3e050liktc5ku6jpqi9mo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5722';
20250305@172335.1388 bvt1j3e050liktc5ku6jpqi9mo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5722';
20250305@172335.1466 bvt1j3e050liktc5ku6jpqi9mo Query : use flama_phc
20250305@172335.1469 bvt1j3e050liktc5ku6jpqi9mo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@172335.1540 bvt1j3e050liktc5ku6jpqi9mo Query : use flama_phc
20250305@172335.1544 bvt1j3e050liktc5ku6jpqi9mo Query : select no, estab,szadrsdesc from szadrs where u_coddest=829
20250305@172335.1637 bvt1j3e050liktc5ku6jpqi9mo Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501558 
20250305@172335.2157 bvt1j3e050liktc5ku6jpqi9mo Query : use flama_phc
20250305@172335.2161 bvt1j3e050liktc5ku6jpqi9mo Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@172335.2207 bvt1j3e050liktc5ku6jpqi9mo Query : use flama_phc
20250305@172335.2211 bvt1j3e050liktc5ku6jpqi9mo Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@172335.2236 bvt1j3e050liktc5ku6jpqi9mo Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@172335.2305 bvt1j3e050liktc5ku6jpqi9mo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5722';
20250305@172335.2382 bvt1j3e050liktc5ku6jpqi9mo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5722';
20250305@172335.3032 gvudhi11kl9m10dd2eksbpsc55 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@172335.3053 gvudhi11kl9m10dd2eksbpsc55 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@172335.3153 gvudhi11kl9m10dd2eksbpsc55 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5723';
20250305@172335.3243 gvudhi11kl9m10dd2eksbpsc55 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5723';
20250305@172335.3333 gvudhi11kl9m10dd2eksbpsc55 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5723';
20250305@172335.3435 gvudhi11kl9m10dd2eksbpsc55 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5723';
20250305@172335.3527 gvudhi11kl9m10dd2eksbpsc55 Query : use flama_phc
20250305@172335.3531 gvudhi11kl9m10dd2eksbpsc55 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@172335.3599 gvudhi11kl9m10dd2eksbpsc55 Query : use flama_phc
20250305@172335.3604 gvudhi11kl9m10dd2eksbpsc55 Query : select no, estab,szadrsdesc from szadrs where u_coddest=594
20250305@172335.3788 gvudhi11kl9m10dd2eksbpsc55 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501559 
20250305@172335.4213 gvudhi11kl9m10dd2eksbpsc55 Query : use flama_phc
20250305@172335.4217 gvudhi11kl9m10dd2eksbpsc55 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@172335.4259 gvudhi11kl9m10dd2eksbpsc55 Query : use flama_phc
20250305@172335.4265 gvudhi11kl9m10dd2eksbpsc55 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@172335.4282 gvudhi11kl9m10dd2eksbpsc55 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@172335.4307 gvudhi11kl9m10dd2eksbpsc55 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5723';
20250305@172335.4364 gvudhi11kl9m10dd2eksbpsc55 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5723';
20250305@172335.4906 3ao3ebj0s938kv4jpb4ja6ukab Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250305@172335.4918 3ao3ebj0s938kv4jpb4ja6ukab Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250305@172335.5028 3ao3ebj0s938kv4jpb4ja6ukab Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5724';
20250305@172335.5113 3ao3ebj0s938kv4jpb4ja6ukab Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5724';
20250305@172335.5230 3ao3ebj0s938kv4jpb4ja6ukab Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5724';
20250305@172335.5281 3ao3ebj0s938kv4jpb4ja6ukab Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5724';
20250305@172335.5357 3ao3ebj0s938kv4jpb4ja6ukab Query : use flama_phc
20250305@172335.5361 3ao3ebj0s938kv4jpb4ja6ukab Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250305@172335.5537 3ao3ebj0s938kv4jpb4ja6ukab Query : use flama_phc
20250305@172335.5542 3ao3ebj0s938kv4jpb4ja6ukab Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250305@172335.5612 3ao3ebj0s938kv4jpb4ja6ukab Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501560 
20250305@172335.6083 3ao3ebj0s938kv4jpb4ja6ukab Query : use flama_phc
20250305@172335.6086 3ao3ebj0s938kv4jpb4ja6ukab Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250305@172335.6121 3ao3ebj0s938kv4jpb4ja6ukab Query : use flama_phc
20250305@172335.6124 3ao3ebj0s938kv4jpb4ja6ukab Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250305@172335.6142 3ao3ebj0s938kv4jpb4ja6ukab Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250305@172335.6169 3ao3ebj0s938kv4jpb4ja6ukab Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5724';
20250305@172335.6223 3ao3ebj0s938kv4jpb4ja6ukab Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5724';

20250306@074534.2692 acqktmb3a67131146e7et0isam Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5725';
20250306@074534.2774 acqktmb3a67131146e7et0isam Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5725';
20250306@074534.2813 acqktmb3a67131146e7et0isam Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5725';
20250306@074534.3774 4ol892hu7urb7aqbo94fcktpqk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@074534.3785 4ol892hu7urb7aqbo94fcktpqk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@074534.3889 4ol892hu7urb7aqbo94fcktpqk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5726';
20250306@074534.3962 4ol892hu7urb7aqbo94fcktpqk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5726';
20250306@074534.4040 4ol892hu7urb7aqbo94fcktpqk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5726';
20250306@074534.4083 4ol892hu7urb7aqbo94fcktpqk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5726';
20250306@074534.4136 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074534.4139 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@074534.4272 4ol892hu7urb7aqbo94fcktpqk Query : select no, estab,szadrsdesc from szadrs where u_coddest=23
20250306@074534.4557 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.5342.00.1'
20250306@074534.4656 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.5342.00.1' and bi.lordem =10000
20250306@074534.5061 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542401,958000001 ' 
20250306@074534.5353 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '323.367.09.00'
20250306@074534.5478 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='323.367.09.00' and bi.lordem =20000
20250306@074534.5796 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542466,681000002 ' 
20250306@074534.6128 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1892.00.1'
20250306@074534.6218 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.1892.00.1' and bi.lordem =30000
20250306@074534.6533 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542521,473000003 ' 
20250306@074534.6859 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2032.00.1'
20250306@074534.6954 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.2032.00.1' and bi.lordem =40000
20250306@074534.7379 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542756,063000004 ' 
20250306@074534.7683 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2042.00.1'
20250306@074534.7818 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.2042.00.1' and bi.lordem =50000
20250306@074534.8143 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542805,766000005 ' 
20250306@074534.8478 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2052.00.1'
20250306@074534.8567 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.2052.00.1' and bi.lordem =60000
20250306@074534.8892 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542832,723000006 ' 
20250306@074534.9554 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2237.00.1'
20250306@074534.9907 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.2237.00.1' and bi.lordem =70000
20250306@074535.3330 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542876,263000007 ' 
20250306@074535.7820 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1644.00.1'
20250306@074535.9340 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.1644.00.1' and bi.lordem =80000
20250306@074535.1372 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542919,614000008 ' 
20250306@074535.1849 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1644.00.1'
20250306@074535.1876 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.1644.00.1' and bi.lordem =80000
20250306@074535.1900 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542919,614000008 ' 
20250306@074535.1924 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1645.00.1'
20250306@074535.2017 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.1645.00.1' and bi.lordem =90000
20250306@074535.2371 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030542994,447000009 ' 
20250306@074535.2689 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1647.00.1'
20250306@074535.2827 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.1647.00.1' and bi.lordem =100000
20250306@074535.3150 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030543007,887000010 ' 
20250306@074535.3912 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1648.00.1'
20250306@074535.4341 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.1648.00.1' and bi.lordem =110000
20250306@074535.6022 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030543021,585000011 ' 
20250306@074535.6349 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1675.00.2'
20250306@074535.6433 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.1675.00.2' and bi.lordem =120000
20250306@074535.6737 4ol892hu7urb7aqbo94fcktpqk 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 = 'pll25030543033,776000012 ' 
20250306@074535.7062 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074535.7065 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 1 valor from ts where ts.ndos = 5
20250306@074535.7135 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074535.7139 4ol892hu7urb7aqbo94fcktpqk 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')
20250306@074535.7236 4ol892hu7urb7aqbo94fcktpqk 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
20250306@074535.7422 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074535.7426 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 ~inactivo valor from fl where no = '100999' and estab = 0 order by inactivo desc
20250306@074535.7936 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074535.7939 4ol892hu7urb7aqbo94fcktpqk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@074535.8030 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074535.8033 4ol892hu7urb7aqbo94fcktpqk Query : select szadrsstamp valor from szadrs where szadrsdesc='flama-fab.louÇas e electrodomesticos,sa'
20250306@074535.8160 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074535.8163 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from ts where ndos = 5
20250306@074535.8234 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074535.8579 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20250306@074535.8718 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074535.8735 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20250306@074535.8777 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074535.8793 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20250306@074535.8803 4ol892hu7urb7aqbo94fcktpqk 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
20250306@074535.8889 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250306@074535.9049 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250306@074536.1009 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.1017 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100999' and estab=0
20250306@074536.1125 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.1146 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20250306@074536.1197 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c950402267c952a018',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@074536.1387 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.1411 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20250306@074536.1424 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut67c950402267c952a018','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20250306','08:15',?,?)
20250306@074536.2386 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.2459 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20250306@074536.2495 4ol892hu7urb7aqbo94fcktpqk 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 ('aut67c950402267c952a018','trf entre armazéns a','2025-03-06',5,87,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20250306@074536.3797 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.3800 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.5342.00.1'
20250306@074536.4078 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.4120 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.5342.00.1'
20250306@074536.4354 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.4357 4ol892hu7urb7aqbo94fcktpqk Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.5342.00.1' and sa.armazem = 133 
20250306@074536.4775 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.4818 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.5342.00.1'
20250306@074536.4845 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.5342.00.1'
20250306@074536.5125 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.5174 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074536.5192 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.5222 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074536.5233 4ol892hu7urb7aqbo94fcktpqk Query : select sestamp valor from se where ref ='324.5342.00.1' and lote = 'r2401258200a'
20250306@074536.5294 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@074536.5368 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.5384 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074536.5398 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c955071767c952a083','aut67c950402267c952a018',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 = 'aut67c950402267c952a018'
20250306@074536.6253 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.6275 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074536.6294 4ol892hu7urb7aqbo94fcktpqk 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 'aut67c955071767c952a083',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,10000 ,27.99,27.99*200.48,27.99,27.99*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,27.99*12.000,27.99*12.000*200.48 ,7.875000,7.875000*200.48 ,7.875000,7.875000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,27.99,27.99*200.48,27.99*12.000,27.99*12.000*200.48,'pll25030542401,958000001 ',27.99,27.99*12.000,27.99,27.99*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c950402267c952a018'
20250306@074536.7669 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.7674 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '323.367.09.00'
20250306@074536.7695 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.7698 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '323.367.09.00'
20250306@074536.7715 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.7718 4ol892hu7urb7aqbo94fcktpqk 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 = '323.367.09.00' and sa.armazem = 133 
20250306@074536.7820 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.7823 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '323.367.09.00'
20250306@074536.7848 4ol892hu7urb7aqbo94fcktpqk 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 = '323.367.09.00'
20250306@074536.8017 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.8037 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074536.8053 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.8097 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074536.8107 4ol892hu7urb7aqbo94fcktpqk Query : select sestamp valor from se where ref ='323.367.09.00' and lote = 'r2400053200a'
20250306@074536.8128 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@074536.8141 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.8157 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074536.8171 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c958555967c952a0c6','aut67c950402267c952a018',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 = 'aut67c950402267c952a018'
20250306@074536.8307 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.8351 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074536.8369 4ol892hu7urb7aqbo94fcktpqk 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 'aut67c958555967c952a0c6',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,20000 ,219.99,219.99*200.48,219.99,219.99*200.48 ,0,0,'un ','' ,bo.marcada,1 ,219.99*10.000,219.99*10.000*200.48 ,67.460000,67.460000*200.48 ,67.460000,67.460000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,219.99,219.99*200.48,219.99*10.000,219.99*10.000*200.48,'pll25030542466,681000002 ',219.99,219.99*10.000,219.99,219.99*10.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c950402267c952a018'
20250306@074536.8631 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.8635 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.1892.00.1'
20250306@074536.8652 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.8655 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.1892.00.1'
20250306@074536.8703 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.8707 4ol892hu7urb7aqbo94fcktpqk Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1892.00.1' and sa.armazem = 133 
20250306@074536.8789 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.8820 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.1892.00.1'
20250306@074536.8844 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1892.00.1'
20250306@074536.8962 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.8979 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074536.9023 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.9039 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074536.9052 4ol892hu7urb7aqbo94fcktpqk Query : select sestamp valor from se where ref ='324.1892.00.1' and lote = 'r2400760200a'
20250306@074536.9067 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@074536.9080 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.9123 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074536.9135 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c956693067c952a0dd','aut67c950402267c952a018',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 = 'aut67c950402267c952a018'
20250306@074536.9273 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.9292 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074536.9309 4ol892hu7urb7aqbo94fcktpqk 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 'aut67c956693067c952a0dd',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 ,249.99,249.99*200.48,249.99,249.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,249.99*4.000,249.99*4.000*200.48 ,81.691000,81.691000*200.48 ,81.691000,81.691000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,249.99,249.99*200.48,249.99*4.000,249.99*4.000*200.48,'pll25030542521,473000003 ',249.99,249.99*4.000,249.99,249.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c950402267c952a018'
20250306@074536.9575 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.9580 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.2032.00.1'
20250306@074536.9595 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.9600 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2032.00.1'
20250306@074536.9618 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.9621 4ol892hu7urb7aqbo94fcktpqk 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.2032.00.1' and sa.armazem = 133 
20250306@074536.9714 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074536.9717 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2032.00.1'
20250306@074536.9737 4ol892hu7urb7aqbo94fcktpqk 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.2032.00.1'
20250306@074536.9878 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.9897 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074536.9912 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074536.9928 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074536.9937 4ol892hu7urb7aqbo94fcktpqk Query : select sestamp valor from se where ref ='324.2032.00.1' and lote = 'r2401110100a'
20250306@074536.9981 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@074536.9993 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.9000 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074537.2100 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c958400767c952a0f3','aut67c950402267c952a018',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 = 'aut67c950402267c952a018'
20250306@074537.1580 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.2090 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074537.2280 4ol892hu7urb7aqbo94fcktpqk 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 'aut67c958400767c952a0f3',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,40000 ,26.99,26.99*200.48,26.99,26.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,26.99*8.000,26.99*8.000*200.48 ,6.917000,6.917000*200.48 ,6.917000,6.917000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,26.99,26.99*200.48,26.99*8.000,26.99*8.000*200.48,'pll25030542756,063000004 ',26.99,26.99*8.000,26.99,26.99*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c950402267c952a018'
20250306@074537.5240 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.5280 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.2042.00.1'
20250306@074537.5440 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.5470 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2042.00.1'
20250306@074537.5650 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.5680 4ol892hu7urb7aqbo94fcktpqk 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.2042.00.1' and sa.armazem = 133 
20250306@074537.6790 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.6820 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2042.00.1'
20250306@074537.7040 4ol892hu7urb7aqbo94fcktpqk 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.2042.00.1'
20250306@074537.8160 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.8710 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074537.8870 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.9030 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074537.9120 4ol892hu7urb7aqbo94fcktpqk Query : select sestamp valor from se where ref ='324.2042.00.1' and lote = 'r2401110500a'
20250306@074537.9260 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@074537.9390 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.9550 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074537.9690 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c959642567c952a116','aut67c950402267c952a018',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 = 'aut67c950402267c952a018'
20250306@074537.1168 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.1190 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074537.1209 4ol892hu7urb7aqbo94fcktpqk 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 'aut67c959642567c952a116',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 8.000, 8.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,50000 ,34.99,34.99*200.48,34.99,34.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,34.99*8.000,34.99*8.000*200.48 ,8.614000,8.614000*200.48 ,8.614000,8.614000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,34.99,34.99*200.48,34.99*8.000,34.99*8.000*200.48,'pll25030542805,766000005 ',34.99,34.99*8.000,34.99,34.99*8.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c950402267c952a018'
20250306@074537.1551 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.1556 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.2052.00.1'
20250306@074537.1574 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.1577 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2052.00.1'
20250306@074537.1596 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.1599 4ol892hu7urb7aqbo94fcktpqk 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.2052.00.1' and sa.armazem = 133 
20250306@074537.1700 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.1703 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2052.00.1'
20250306@074537.1724 4ol892hu7urb7aqbo94fcktpqk 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.2052.00.1'
20250306@074537.1898 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.1919 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074537.1933 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.1950 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074537.1959 4ol892hu7urb7aqbo94fcktpqk Query : select sestamp valor from se where ref ='324.2052.00.1' and lote = 'r2401110900a'
20250306@074537.1973 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@074537.1988 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.2004 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@074537.2017 4ol892hu7urb7aqbo94fcktpqk Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c958384267c952a130','aut67c950402267c952a018',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 = 'aut67c950402267c952a018'
20250306@074537.2164 4ol892hu7urb7aqbo94fcktpqk Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@074537.2213 4ol892hu7urb7aqbo94fcktpqk Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@074537.2233 4ol892hu7urb7aqbo94fcktpqk 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 'aut67c958384267c952a130',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 4.000, 4.000*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,60000 ,36.99,36.99*200.48,36.99,36.99*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,36.99*4.000,36.99*4.000*200.48 ,9.501000,9.501000*200.48 ,9.501000,9.501000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,36.99,36.99*200.48,36.99*4.000,36.99*4.000*200.48,'pll25030542832,723000006 ',36.99,36.99*4.000,36.99,36.99*4.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c950402267c952a018'
20250306@074537.2717 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.2726 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.2237.00.1'
20250306@074537.2954 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.2958 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2237.00.1'
20250306@074537.2978 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.2981 4ol892hu7urb7aqbo94fcktpqk 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.2237.00.1' and sa.armazem = 133 
20250306@074537.3300 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3306 4ol892hu7urb7aqbo94fcktpqk Query : select st.stns valor from st where st.ref = '324.2237.00.1'
20250306@074537.3422 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3426 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.1644.00.1'
20250306@074537.3445 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3448 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.1644.00.1'
20250306@074537.3461 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3463 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.1645.00.1'
20250306@074537.3477 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3517 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.1647.00.1'
20250306@074537.3531 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3534 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.1648.00.1'
20250306@074537.3547 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3550 4ol892hu7urb7aqbo94fcktpqk Query : select st.usalote valor from st where st.ref = '324.1675.00.2'
20250306@074537.3598 4ol892hu7urb7aqbo94fcktpqk Query : use flama_phc
20250306@074537.3601 4ol892hu7urb7aqbo94fcktpqk Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -1050
20250306@074537.3722 4ol892hu7urb7aqbo94fcktpqk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5726';
20250306@074537.3796 4ol892hu7urb7aqbo94fcktpqk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5726';
20250306@080248.7518 b1unuvansostrir407pk7p2mdn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@080248.7533 b1unuvansostrir407pk7p2mdn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@080248.7691 b1unuvansostrir407pk7p2mdn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5727';
20250306@080248.9513 b1unuvansostrir407pk7p2mdn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5727';
20250306@080248.9785 b1unuvansostrir407pk7p2mdn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5727';
20250306@080248.9937 b1unuvansostrir407pk7p2mdn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5727';
20250306@080249.1330 b1unuvansostrir407pk7p2mdn Query : use flama_phc
20250306@080249.1380 b1unuvansostrir407pk7p2mdn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@080249.3930 b1unuvansostrir407pk7p2mdn Query : use flama_phc
20250306@080249.4350 b1unuvansostrir407pk7p2mdn Query : select no, estab,szadrsdesc from szadrs where u_coddest=10170
20250306@080249.8190 b1unuvansostrir407pk7p2mdn Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501554 
20250306@080249.1495 b1unuvansostrir407pk7p2mdn Query : use flama_phc
20250306@080249.1503 b1unuvansostrir407pk7p2mdn Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@080249.1612 b1unuvansostrir407pk7p2mdn Query : use flama_phc
20250306@080249.1621 b1unuvansostrir407pk7p2mdn Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@080249.1679 b1unuvansostrir407pk7p2mdn Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@080249.1766 b1unuvansostrir407pk7p2mdn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5727';
20250306@080249.1888 b1unuvansostrir407pk7p2mdn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5727';

20250306@104046.9640 k2kh23l0cu0kap1lvn37sgbrvc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5728';
20250306@104046.9754 k2kh23l0cu0kap1lvn37sgbrvc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5728';
20250306@104046.9797 k2kh23l0cu0kap1lvn37sgbrvc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5728';
20250306@104047.7460 pteuj0b57bn2ue60hs6qijcego Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@104047.7590 pteuj0b57bn2ue60hs6qijcego Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@104047.8340 pteuj0b57bn2ue60hs6qijcego Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5729';
20250306@104047.9060 pteuj0b57bn2ue60hs6qijcego Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5729';
20250306@104047.9860 pteuj0b57bn2ue60hs6qijcego Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5729';
20250306@104047.1031 pteuj0b57bn2ue60hs6qijcego Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5729';
20250306@104047.1089 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.1093 pteuj0b57bn2ue60hs6qijcego Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@104047.1232 pteuj0b57bn2ue60hs6qijcego Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20250306@104047.1326 pteuj0b57bn2ue60hs6qijcego Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '321.162.40.00'
20250306@104047.1425 pteuj0b57bn2ue60hs6qijcego Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2025 and bo.obrano = 0000579 and bi.ref ='321.162.40.00' and bi.lordem =10000
20250306@104047.1762 pteuj0b57bn2ue60hs6qijcego 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 = 'az25030636862,463000001 ' 
20250306@104047.2078 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.2082 pteuj0b57bn2ue60hs6qijcego Query : select top 1 1 valor from ts where ts.ndos = 5
20250306@104047.2159 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.2162 pteuj0b57bn2ue60hs6qijcego 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')
20250306@104047.2237 pteuj0b57bn2ue60hs6qijcego 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
20250306@104047.2370 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.2374 pteuj0b57bn2ue60hs6qijcego Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20250306@104047.2464 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.2468 pteuj0b57bn2ue60hs6qijcego Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@104047.2537 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.2541 pteuj0b57bn2ue60hs6qijcego Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20250306@104047.2599 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.2602 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from ts where ndos = 5
20250306@104047.2671 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.2997 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20250306@104047.3077 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.3096 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20250306@104047.3108 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.3124 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20250306@104047.3135 pteuj0b57bn2ue60hs6qijcego 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
20250306@104047.3229 pteuj0b57bn2ue60hs6qijcego Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250306@104047.3365 pteuj0b57bn2ue60hs6qijcego Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2025 order by obrano desc
20250306@104047.3432 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.3439 pteuj0b57bn2ue60hs6qijcego Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20250306@104047.3513 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.3531 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20250306@104047.3568 pteuj0b57bn2ue60hs6qijcego Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c978281267c97baf53',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@104047.3649 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.3667 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20250306@104047.3681 pteuj0b57bn2ue60hs6qijcego Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut67c978281267c97baf53','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20250306','11:10',?,?)
20250306@104047.4433 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.4462 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20250306@104047.4484 pteuj0b57bn2ue60hs6qijcego 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 ('aut67c978281267c97baf53','trf entre armazéns a','2025-03-06',5,88,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',?)
20250306@104047.5116 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.5120 pteuj0b57bn2ue60hs6qijcego Query : select st.usalote valor from st where st.ref = '321.162.40.00'
20250306@104047.5229 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.5232 pteuj0b57bn2ue60hs6qijcego Query : select st.stns valor from st where st.ref = '321.162.40.00'
20250306@104047.5328 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.5332 pteuj0b57bn2ue60hs6qijcego 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 = '321.162.40.00' and sa.armazem = 133 
20250306@104047.5435 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.5438 pteuj0b57bn2ue60hs6qijcego Query : select st.stns valor from st where st.ref = '321.162.40.00'
20250306@104047.5472 pteuj0b57bn2ue60hs6qijcego 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 = '321.162.40.00'
20250306@104047.5608 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.5624 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@104047.5638 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.5654 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@104047.5664 pteuj0b57bn2ue60hs6qijcego Query : select sestamp valor from se where ref ='321.162.40.00' and lote = '1'
20250306@104047.5722 pteuj0b57bn2ue60hs6qijcego Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@104047.5759 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.6404 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20250306@104047.6420 pteuj0b57bn2ue60hs6qijcego Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c978575667c97baf8c','aut67c978281267c97baf53',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 = 'aut67c978281267c97baf53'
20250306@104047.6911 pteuj0b57bn2ue60hs6qijcego Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@104047.6931 pteuj0b57bn2ue60hs6qijcego Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20250306@104047.6949 pteuj0b57bn2ue60hs6qijcego 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 'aut67c978575667c97baf8c',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,10000 ,44.8,44.8*200.48,44.8,44.8*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,44.8*12.000,44.8*12.000*200.48 ,19.985000,19.985000*200.48 ,19.985000,19.985000*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*12.000,44.8*12.000*200.48,'az25030636862,463000001 ',44.8,44.8*12.000,44.8,44.8*12.000,?,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut67c978281267c97baf53'
20250306@104047.7475 pteuj0b57bn2ue60hs6qijcego Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut67c978281267c97baf53','','wait',5,'adm12071144683,938000003','')
20250306@104047.7573 pteuj0b57bn2ue60hs6qijcego Query : use flama_phc
20250306@104047.7576 pteuj0b57bn2ue60hs6qijcego Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250306@104047.7630 pteuj0b57bn2ue60hs6qijcego Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5729';
20250306@104047.7677 pteuj0b57bn2ue60hs6qijcego Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5729';

20250306@163112.6177 d8f11m6q2g81h397vqr39bvr0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5730';
20250306@163112.6262 d8f11m6q2g81h397vqr39bvr0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5730';
20250306@163112.6309 d8f11m6q2g81h397vqr39bvr0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5730';
20250306@163112.6384 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163112.6389 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163112.6500 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1670.00.1'
20250306@163112.6607 d8f11m6q2g81h397vqr39bvr0t 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 = 2401228 and bi.ref ='324.1670.00.1' and bi.lordem =20000
20250306@163112.6950 d8f11m6q2g81h397vqr39bvr0t 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 = 'cps24102851262,866000002 ' 
20250306@163112.7392 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163112.7396 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 1 valor from ts where ts.ndos = 61
20250306@163112.7476 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163112.7481 d8f11m6q2g81h397vqr39bvr0t 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')
20250306@163112.7734 d8f11m6q2g81h397vqr39bvr0t 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
20250306@163112.7876 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163112.7879 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 ~inactivo valor from fl where no = '202225' and estab = 00 order by inactivo desc
20250306@163112.7984 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163112.7988 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from ts where ndos = 61
20250306@163112.8063 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163112.8387 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250306@163112.8480 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163112.8496 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250306@163112.8506 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163112.8525 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250306@163112.8536 d8f11m6q2g81h397vqr39bvr0t 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
20250306@163112.8633 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250306@163112.8741 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250306@163112.8761 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163112.8767 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202225' and estab=00
20250306@163112.8841 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163112.8861 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250306@163112.8923 d8f11m6q2g81h397vqr39bvr0t Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c9c9495267c9cdd0d5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@163112.9000 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163112.9021 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250306@163112.9035 d8f11m6q2g81h397vqr39bvr0t Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c9c9495267c9cdd0d5','--','bo',7.8609625668449197860 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@163112.9191 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163112.9213 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250306@163112.9230 d8f11m6q2g81h397vqr39bvr0t 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 ('aut67c9c9495267c9cdd0d5','guia r. fornecedor','2025-03-06',61,2500886,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@163112.9836 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163112.9840 d8f11m6q2g81h397vqr39bvr0t Query : select st.usalote valor from st where st.ref = '324.1670.00.1'
20250306@163112.9947 d8f11m6q2g81h397vqr39bvr0t 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'
20250306@163113.8100 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163113.9900 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250306@163113.1210 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163113.1370 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250306@163113.1500 d8f11m6q2g81h397vqr39bvr0t Query : select sestamp valor from se where ref ='324.1670.00.1' and lote = 'r2401228200a'
20250306@163113.2100 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163113.2300 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250306@163113.2430 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163113.2620 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250306@163113.2750 d8f11m6q2g81h397vqr39bvr0t Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c9c9369367c9cdd105',?,?,'20250306',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250306@163113.8100 d8f11m6q2g81h397vqr39bvr0t Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@163113.8580 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163113.8750 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250306@163113.8880 d8f11m6q2g81h397vqr39bvr0t Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c9c3320867c9cdd114','aut67c9c9495267c9cdd0d5',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 = 'aut67c9c9495267c9cdd0d5'
20250306@163113.1060 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163113.1080 d8f11m6q2g81h397vqr39bvr0t Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250306@163113.1106 d8f11m6q2g81h397vqr39bvr0t 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 'aut67c9c3320867c9cdd114',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1600, 1600*.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 ,18.7,18.7*200.48,18.7,18.7*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,18.7*1600,18.7*1600*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,18.7,18.7*200.48,18.7*1600,18.7*1600*200.48,'cps24102851262,866000002 ',147,147*1600,147,147*1600,?,?,?,4 from bo bo where bo.bostamp = 'aut67c9c9495267c9cdd0d5'
20250306@163119.9334 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163119.9341 d8f11m6q2g81h397vqr39bvr0t Query : declare @bostamp varchar(25) = 'aut67c9c9495267c9cdd0d5' ,@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 
20250306@163130.5651 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163130.5654 d8f11m6q2g81h397vqr39bvr0t Query : select 1 valor from bo where bo.bostamp = 'aut67c9c9495267c9cdd0d5'
20250306@163130.5742 d8f11m6q2g81h397vqr39bvr0t 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) = 'aut67c9c9495267c9cdd0d5' 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 
20250306@163130.8269 d8f11m6q2g81h397vqr39bvr0t Query : use flama_phc
20250306@163130.8273 d8f11m6q2g81h397vqr39bvr0t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250306@163130.8357 d8f11m6q2g81h397vqr39bvr0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5730';
20250306@163130.8448 d8f11m6q2g81h397vqr39bvr0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5730';
20250306@163130.9102 2u41h39k8s3i9v6pgifevd5g0v Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163130.9143 2u41h39k8s3i9v6pgifevd5g0v Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163130.9277 2u41h39k8s3i9v6pgifevd5g0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5731';
20250306@163130.9389 2u41h39k8s3i9v6pgifevd5g0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5731';
20250306@163130.9467 2u41h39k8s3i9v6pgifevd5g0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5731';
20250306@163130.9521 2u41h39k8s3i9v6pgifevd5g0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5731';
20250306@163130.9587 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163130.9591 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163130.9654 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20250306@163130.9782 2u41h39k8s3i9v6pgifevd5g0v 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 = 2401229 and bi.ref ='324.692.00.01' and bi.lordem =40000
20250306@163131.2170 2u41h39k8s3i9v6pgifevd5g0v 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 = 'cps24102859540,117000004 ' 
20250306@163131.7210 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.7250 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 1 valor from ts where ts.ndos = 61
20250306@163131.7570 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.7600 2u41h39k8s3i9v6pgifevd5g0v 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')
20250306@163131.7870 2u41h39k8s3i9v6pgifevd5g0v 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
20250306@163131.9310 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.9470 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 ~inactivo valor from fl where no = '202532' and estab = 00 order by inactivo desc
20250306@163131.1157 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.1160 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from ts where ndos = 61
20250306@163131.1271 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.1291 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250306@163131.1302 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.1328 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250306@163131.1438 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.1524 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250306@163131.1544 2u41h39k8s3i9v6pgifevd5g0v 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
20250306@163131.1569 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250306@163131.1600 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250306@163131.1622 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.1654 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202532' and estab=00
20250306@163131.1747 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.1786 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250306@163131.1805 2u41h39k8s3i9v6pgifevd5g0v Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c9c0775267c9cde327',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@163131.1813 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.1838 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250306@163131.1855 2u41h39k8s3i9v6pgifevd5g0v Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c9c0775267c9cde327','--','bo',1.0701545778834720570 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@163131.1863 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.1957 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250306@163131.1970 2u41h39k8s3i9v6pgifevd5g0v 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 ('aut67c9c0775267c9cde327','guia r. fornecedor','2025-03-06',61,2500887,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250306@163131.3095 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.3099 2u41h39k8s3i9v6pgifevd5g0v Query : select st.usalote valor from st where st.ref = '324.692.00.01'
20250306@163131.3168 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.692.00.01'
20250306@163131.3436 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.3531 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250306@163131.3581 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.3597 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250306@163131.3606 2u41h39k8s3i9v6pgifevd5g0v Query : select sestamp valor from se where ref ='324.692.00.01' and lote = 'r2401229400a'
20250306@163131.3620 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.3663 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250306@163131.3675 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.3693 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250306@163131.3744 2u41h39k8s3i9v6pgifevd5g0v Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67c9c7913967c9cde359',?,?,'20250306',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250306@163131.3826 2u41h39k8s3i9v6pgifevd5g0v Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250306@163131.3862 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.3937 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250306@163131.3980 2u41h39k8s3i9v6pgifevd5g0v Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67c9c2625967c9cde35e','aut67c9c0775267c9cde327',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 = 'aut67c9c0775267c9cde327'
20250306@163131.4186 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250306@163131.4233 2u41h39k8s3i9v6pgifevd5g0v Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250306@163131.4252 2u41h39k8s3i9v6pgifevd5g0v 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 'aut67c9c2625967c9cde35e',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1044, 1044*.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 ,25.23,25.23*200.48,25.23,25.23*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,25.23*1044,25.23*1044*200.48 ,31.488000,31.488000*200.48 ,31.488000,31.488000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,25.23,25.23*200.48,25.23*1044,25.23*1044*200.48,'cps24102859540,117000004 ',27,27*1044,27,27*1044,?,?,?,4 from bo bo where bo.bostamp = 'aut67c9c0775267c9cde327'
20250306@163131.5759 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.5771 2u41h39k8s3i9v6pgifevd5g0v Query : declare @bostamp varchar(25) = 'aut67c9c0775267c9cde327' ,@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 
20250306@163131.8435 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163131.8483 2u41h39k8s3i9v6pgifevd5g0v Query : select 1 valor from bo where bo.bostamp = 'aut67c9c0775267c9cde327'
20250306@163131.8758 2u41h39k8s3i9v6pgifevd5g0v 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) = 'aut67c9c0775267c9cde327' 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 
20250306@163132.2825 2u41h39k8s3i9v6pgifevd5g0v Query : use flama_phc
20250306@163132.2829 2u41h39k8s3i9v6pgifevd5g0v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250306@163132.2884 2u41h39k8s3i9v6pgifevd5g0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5731';
20250306@163132.2964 2u41h39k8s3i9v6pgifevd5g0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5731';
20250306@163142.4647 vg8grvmapd5pe9a4k1kuq0ok04 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163142.4666 vg8grvmapd5pe9a4k1kuq0ok04 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163142.4743 vg8grvmapd5pe9a4k1kuq0ok04 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5732';
20250306@163142.4889 vg8grvmapd5pe9a4k1kuq0ok04 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5732';
20250306@163142.5049 vg8grvmapd5pe9a4k1kuq0ok04 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5732';
20250306@163142.5108 vg8grvmapd5pe9a4k1kuq0ok04 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5732';
20250306@163142.5277 vg8grvmapd5pe9a4k1kuq0ok04 Query : use flama_phc
20250306@163142.5282 vg8grvmapd5pe9a4k1kuq0ok04 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163142.5451 vg8grvmapd5pe9a4k1kuq0ok04 Query : use flama_phc
20250306@163142.5455 vg8grvmapd5pe9a4k1kuq0ok04 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250306@163142.5621 vg8grvmapd5pe9a4k1kuq0ok04 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501562 
20250306@163142.6176 vg8grvmapd5pe9a4k1kuq0ok04 Query : use flama_phc
20250306@163142.6180 vg8grvmapd5pe9a4k1kuq0ok04 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163142.6246 vg8grvmapd5pe9a4k1kuq0ok04 Query : use flama_phc
20250306@163142.6250 vg8grvmapd5pe9a4k1kuq0ok04 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163142.6390 vg8grvmapd5pe9a4k1kuq0ok04 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163142.6442 vg8grvmapd5pe9a4k1kuq0ok04 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5732';
20250306@163142.6554 vg8grvmapd5pe9a4k1kuq0ok04 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5732';
20250306@163142.7459 ftpue6jmgkfg9ju1srcdvse2lm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163142.7470 ftpue6jmgkfg9ju1srcdvse2lm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163142.7605 ftpue6jmgkfg9ju1srcdvse2lm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5733';
20250306@163142.7686 ftpue6jmgkfg9ju1srcdvse2lm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5733';
20250306@163142.7880 ftpue6jmgkfg9ju1srcdvse2lm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5733';
20250306@163142.7960 ftpue6jmgkfg9ju1srcdvse2lm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5733';
20250306@163142.8035 ftpue6jmgkfg9ju1srcdvse2lm Query : use flama_phc
20250306@163142.8040 ftpue6jmgkfg9ju1srcdvse2lm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163142.8151 ftpue6jmgkfg9ju1srcdvse2lm Query : use flama_phc
20250306@163142.8162 ftpue6jmgkfg9ju1srcdvse2lm Query : select no, estab,szadrsdesc from szadrs where u_coddest=2214
20250306@163142.8272 ftpue6jmgkfg9ju1srcdvse2lm Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501565 
20250306@163142.8776 ftpue6jmgkfg9ju1srcdvse2lm Query : use flama_phc
20250306@163142.8779 ftpue6jmgkfg9ju1srcdvse2lm Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163142.8811 ftpue6jmgkfg9ju1srcdvse2lm Query : use flama_phc
20250306@163142.8815 ftpue6jmgkfg9ju1srcdvse2lm Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163142.8833 ftpue6jmgkfg9ju1srcdvse2lm Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163142.8857 ftpue6jmgkfg9ju1srcdvse2lm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5733';
20250306@163142.8960 ftpue6jmgkfg9ju1srcdvse2lm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5733';
20250306@163142.9626 m3d3t6tfn1csea1h3jb45bclvi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163142.9639 m3d3t6tfn1csea1h3jb45bclvi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163142.9773 m3d3t6tfn1csea1h3jb45bclvi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5734';
20250306@163142.9920 m3d3t6tfn1csea1h3jb45bclvi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5734';
20250306@163143.2000 m3d3t6tfn1csea1h3jb45bclvi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5734';
20250306@163143.5000 m3d3t6tfn1csea1h3jb45bclvi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5734';
20250306@163143.2650 m3d3t6tfn1csea1h3jb45bclvi Query : use flama_phc
20250306@163143.2700 m3d3t6tfn1csea1h3jb45bclvi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163143.3400 m3d3t6tfn1csea1h3jb45bclvi Query : use flama_phc
20250306@163143.3710 m3d3t6tfn1csea1h3jb45bclvi Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20250306@163143.4740 m3d3t6tfn1csea1h3jb45bclvi Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501566 
20250306@163143.9020 m3d3t6tfn1csea1h3jb45bclvi Query : use flama_phc
20250306@163143.9060 m3d3t6tfn1csea1h3jb45bclvi Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163143.9540 m3d3t6tfn1csea1h3jb45bclvi Query : use flama_phc
20250306@163143.9700 m3d3t6tfn1csea1h3jb45bclvi Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163143.9880 m3d3t6tfn1csea1h3jb45bclvi Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163143.1019 m3d3t6tfn1csea1h3jb45bclvi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5734';
20250306@163143.1135 m3d3t6tfn1csea1h3jb45bclvi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5734';
20250306@163143.1774 4t28n29rftc3gltbno6qqfir0v Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163143.1785 4t28n29rftc3gltbno6qqfir0v Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163143.1930 4t28n29rftc3gltbno6qqfir0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5735';
20250306@163143.2083 4t28n29rftc3gltbno6qqfir0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5735';
20250306@163143.2166 4t28n29rftc3gltbno6qqfir0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5735';
20250306@163143.2222 4t28n29rftc3gltbno6qqfir0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5735';
20250306@163143.2312 4t28n29rftc3gltbno6qqfir0v Query : use flama_phc
20250306@163143.2316 4t28n29rftc3gltbno6qqfir0v Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163143.2421 4t28n29rftc3gltbno6qqfir0v Query : use flama_phc
20250306@163143.2426 4t28n29rftc3gltbno6qqfir0v Query : select no, estab,szadrsdesc from szadrs where u_coddest=2632
20250306@163143.2608 4t28n29rftc3gltbno6qqfir0v Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501567 
20250306@163143.3101 4t28n29rftc3gltbno6qqfir0v Query : use flama_phc
20250306@163143.3106 4t28n29rftc3gltbno6qqfir0v Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163143.3177 4t28n29rftc3gltbno6qqfir0v Query : use flama_phc
20250306@163143.3229 4t28n29rftc3gltbno6qqfir0v Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163143.3323 4t28n29rftc3gltbno6qqfir0v Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163143.3349 4t28n29rftc3gltbno6qqfir0v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5735';
20250306@163143.3396 4t28n29rftc3gltbno6qqfir0v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5735';
20250306@163143.4063 r6pi9r2ib74kphuaqhk3c2qa4d Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163143.4074 r6pi9r2ib74kphuaqhk3c2qa4d Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163143.4179 r6pi9r2ib74kphuaqhk3c2qa4d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5736';
20250306@163143.4285 r6pi9r2ib74kphuaqhk3c2qa4d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5736';
20250306@163143.4379 r6pi9r2ib74kphuaqhk3c2qa4d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5736';
20250306@163143.4438 r6pi9r2ib74kphuaqhk3c2qa4d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5736';
20250306@163143.4507 r6pi9r2ib74kphuaqhk3c2qa4d Query : use flama_phc
20250306@163143.4510 r6pi9r2ib74kphuaqhk3c2qa4d Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163143.4707 r6pi9r2ib74kphuaqhk3c2qa4d Query : use flama_phc
20250306@163143.4723 r6pi9r2ib74kphuaqhk3c2qa4d Query : select no, estab,szadrsdesc from szadrs where u_coddest=1498
20250306@163143.4865 r6pi9r2ib74kphuaqhk3c2qa4d Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501568 
20250306@163143.5338 r6pi9r2ib74kphuaqhk3c2qa4d Query : use flama_phc
20250306@163143.5341 r6pi9r2ib74kphuaqhk3c2qa4d Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163143.5384 r6pi9r2ib74kphuaqhk3c2qa4d Query : use flama_phc
20250306@163143.5391 r6pi9r2ib74kphuaqhk3c2qa4d Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163143.5408 r6pi9r2ib74kphuaqhk3c2qa4d Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163143.5431 r6pi9r2ib74kphuaqhk3c2qa4d Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5736';
20250306@163143.5526 r6pi9r2ib74kphuaqhk3c2qa4d Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5736';
20250306@163143.6177 btm7g87prec5f96k4r2bc3v2kb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163143.6193 btm7g87prec5f96k4r2bc3v2kb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163143.6278 btm7g87prec5f96k4r2bc3v2kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5737';
20250306@163143.6431 btm7g87prec5f96k4r2bc3v2kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5737';
20250306@163143.6577 btm7g87prec5f96k4r2bc3v2kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5737';
20250306@163143.6648 btm7g87prec5f96k4r2bc3v2kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5737';
20250306@163143.6719 btm7g87prec5f96k4r2bc3v2kb Query : use flama_phc
20250306@163143.6723 btm7g87prec5f96k4r2bc3v2kb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163143.6821 btm7g87prec5f96k4r2bc3v2kb Query : use flama_phc
20250306@163143.6824 btm7g87prec5f96k4r2bc3v2kb Query : select no, estab,szadrsdesc from szadrs where u_coddest=8923
20250306@163143.6955 btm7g87prec5f96k4r2bc3v2kb Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501569 
20250306@163143.7529 btm7g87prec5f96k4r2bc3v2kb Query : use flama_phc
20250306@163143.7541 btm7g87prec5f96k4r2bc3v2kb Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163143.7597 btm7g87prec5f96k4r2bc3v2kb Query : use flama_phc
20250306@163143.7600 btm7g87prec5f96k4r2bc3v2kb Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163143.7619 btm7g87prec5f96k4r2bc3v2kb Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163143.7683 btm7g87prec5f96k4r2bc3v2kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5737';
20250306@163143.7830 btm7g87prec5f96k4r2bc3v2kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5737';
20250306@163143.8576 877je27mpq9mi05p27ngst1pd3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163143.8621 877je27mpq9mi05p27ngst1pd3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163143.8769 877je27mpq9mi05p27ngst1pd3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5738';
20250306@163143.8900 877je27mpq9mi05p27ngst1pd3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5738';
20250306@163143.9014 877je27mpq9mi05p27ngst1pd3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5738';
20250306@163143.9115 877je27mpq9mi05p27ngst1pd3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5738';
20250306@163143.9244 877je27mpq9mi05p27ngst1pd3 Query : use flama_phc
20250306@163143.9258 877je27mpq9mi05p27ngst1pd3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163143.9353 877je27mpq9mi05p27ngst1pd3 Query : use flama_phc
20250306@163143.9358 877je27mpq9mi05p27ngst1pd3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=9388
20250306@163143.9519 877je27mpq9mi05p27ngst1pd3 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501570 
20250306@163143.9953 877je27mpq9mi05p27ngst1pd3 Query : use flama_phc
20250306@163143.9996 877je27mpq9mi05p27ngst1pd3 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163144.8600 877je27mpq9mi05p27ngst1pd3 Query : use flama_phc
20250306@163144.8900 877je27mpq9mi05p27ngst1pd3 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163144.1420 877je27mpq9mi05p27ngst1pd3 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163144.1760 877je27mpq9mi05p27ngst1pd3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5738';
20250306@163144.2300 877je27mpq9mi05p27ngst1pd3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5738';
20250306@163144.1029 vr70oi974af7pi0ra6gi97e8r8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163144.1054 vr70oi974af7pi0ra6gi97e8r8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163144.1177 vr70oi974af7pi0ra6gi97e8r8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5739';
20250306@163144.1258 vr70oi974af7pi0ra6gi97e8r8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5739';
20250306@163144.1329 vr70oi974af7pi0ra6gi97e8r8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5739';
20250306@163144.1388 vr70oi974af7pi0ra6gi97e8r8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5739';
20250306@163144.1470 vr70oi974af7pi0ra6gi97e8r8 Query : use flama_phc
20250306@163144.1506 vr70oi974af7pi0ra6gi97e8r8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163144.1600 vr70oi974af7pi0ra6gi97e8r8 Query : use flama_phc
20250306@163144.1605 vr70oi974af7pi0ra6gi97e8r8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1452
20250306@163144.1713 vr70oi974af7pi0ra6gi97e8r8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501571 
20250306@163144.2155 vr70oi974af7pi0ra6gi97e8r8 Query : use flama_phc
20250306@163144.2160 vr70oi974af7pi0ra6gi97e8r8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163144.2193 vr70oi974af7pi0ra6gi97e8r8 Query : use flama_phc
20250306@163144.2196 vr70oi974af7pi0ra6gi97e8r8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163144.2221 vr70oi974af7pi0ra6gi97e8r8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163144.2265 vr70oi974af7pi0ra6gi97e8r8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5739';
20250306@163144.2316 vr70oi974af7pi0ra6gi97e8r8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5739';
20250306@163144.2921 vhq3rm92ra7mc3jp4t57lrn48n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163144.2932 vhq3rm92ra7mc3jp4t57lrn48n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163144.3011 vhq3rm92ra7mc3jp4t57lrn48n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5740';
20250306@163144.3124 vhq3rm92ra7mc3jp4t57lrn48n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5740';
20250306@163144.3231 vhq3rm92ra7mc3jp4t57lrn48n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5740';
20250306@163144.3281 vhq3rm92ra7mc3jp4t57lrn48n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5740';
20250306@163144.3390 vhq3rm92ra7mc3jp4t57lrn48n Query : use flama_phc
20250306@163144.3394 vhq3rm92ra7mc3jp4t57lrn48n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163144.3490 vhq3rm92ra7mc3jp4t57lrn48n Query : use flama_phc
20250306@163144.3494 vhq3rm92ra7mc3jp4t57lrn48n Query : select no, estab,szadrsdesc from szadrs where u_coddest=1453
20250306@163144.3613 vhq3rm92ra7mc3jp4t57lrn48n Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501572 
20250306@163144.4059 vhq3rm92ra7mc3jp4t57lrn48n Query : use flama_phc
20250306@163144.4062 vhq3rm92ra7mc3jp4t57lrn48n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163144.4095 vhq3rm92ra7mc3jp4t57lrn48n Query : use flama_phc
20250306@163144.4127 vhq3rm92ra7mc3jp4t57lrn48n Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163144.4145 vhq3rm92ra7mc3jp4t57lrn48n Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163144.4176 vhq3rm92ra7mc3jp4t57lrn48n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5740';
20250306@163144.4221 vhq3rm92ra7mc3jp4t57lrn48n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5740';
20250306@163144.4845 u7t97ddsv4pr3m33ph1fknkssf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163144.4866 u7t97ddsv4pr3m33ph1fknkssf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163144.4989 u7t97ddsv4pr3m33ph1fknkssf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5741';
20250306@163144.5100 u7t97ddsv4pr3m33ph1fknkssf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5741';
20250306@163144.5176 u7t97ddsv4pr3m33ph1fknkssf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5741';
20250306@163144.5276 u7t97ddsv4pr3m33ph1fknkssf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5741';
20250306@163144.5379 u7t97ddsv4pr3m33ph1fknkssf Query : use flama_phc
20250306@163144.5382 u7t97ddsv4pr3m33ph1fknkssf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163144.5515 u7t97ddsv4pr3m33ph1fknkssf Query : use flama_phc
20250306@163144.5520 u7t97ddsv4pr3m33ph1fknkssf Query : select no, estab,szadrsdesc from szadrs where u_coddest=9957
20250306@163144.5669 u7t97ddsv4pr3m33ph1fknkssf Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501573 
20250306@163144.6157 u7t97ddsv4pr3m33ph1fknkssf Query : use flama_phc
20250306@163144.6162 u7t97ddsv4pr3m33ph1fknkssf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163144.6242 u7t97ddsv4pr3m33ph1fknkssf Query : use flama_phc
20250306@163144.6251 u7t97ddsv4pr3m33ph1fknkssf Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163144.6271 u7t97ddsv4pr3m33ph1fknkssf Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163144.6294 u7t97ddsv4pr3m33ph1fknkssf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5741';
20250306@163144.6371 u7t97ddsv4pr3m33ph1fknkssf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5741';
20250306@163144.6942 j5iksgmistdge700c8n0s0m5bf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163144.6955 j5iksgmistdge700c8n0s0m5bf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163144.7088 j5iksgmistdge700c8n0s0m5bf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5742';
20250306@163144.7247 j5iksgmistdge700c8n0s0m5bf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5742';
20250306@163144.7360 j5iksgmistdge700c8n0s0m5bf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5742';
20250306@163144.7406 j5iksgmistdge700c8n0s0m5bf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5742';
20250306@163144.7558 j5iksgmistdge700c8n0s0m5bf Query : use flama_phc
20250306@163144.7600 j5iksgmistdge700c8n0s0m5bf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163144.7857 j5iksgmistdge700c8n0s0m5bf Query : use flama_phc
20250306@163144.7861 j5iksgmistdge700c8n0s0m5bf Query : select no, estab,szadrsdesc from szadrs where u_coddest=832
20250306@163144.7970 j5iksgmistdge700c8n0s0m5bf Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501574 
20250306@163144.8431 j5iksgmistdge700c8n0s0m5bf Query : use flama_phc
20250306@163144.8435 j5iksgmistdge700c8n0s0m5bf Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163144.8481 j5iksgmistdge700c8n0s0m5bf Query : use flama_phc
20250306@163144.8485 j5iksgmistdge700c8n0s0m5bf Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163144.8505 j5iksgmistdge700c8n0s0m5bf Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163144.8536 j5iksgmistdge700c8n0s0m5bf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5742';
20250306@163144.8599 j5iksgmistdge700c8n0s0m5bf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5742';
20250306@163144.9147 n9mekvsvag2amil6plnf494qsp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163144.9159 n9mekvsvag2amil6plnf494qsp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163144.9269 n9mekvsvag2amil6plnf494qsp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5743';
20250306@163144.9361 n9mekvsvag2amil6plnf494qsp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5743';
20250306@163144.9438 n9mekvsvag2amil6plnf494qsp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5743';
20250306@163144.9493 n9mekvsvag2amil6plnf494qsp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5743';
20250306@163144.9567 n9mekvsvag2amil6plnf494qsp Query : use flama_phc
20250306@163144.9570 n9mekvsvag2amil6plnf494qsp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163144.9664 n9mekvsvag2amil6plnf494qsp Query : use flama_phc
20250306@163144.9668 n9mekvsvag2amil6plnf494qsp Query : select no, estab,szadrsdesc from szadrs where u_coddest=4237
20250306@163144.9765 n9mekvsvag2amil6plnf494qsp Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501576 
20250306@163145.2790 n9mekvsvag2amil6plnf494qsp Query : use flama_phc
20250306@163145.2820 n9mekvsvag2amil6plnf494qsp Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163145.3160 n9mekvsvag2amil6plnf494qsp Query : use flama_phc
20250306@163145.3200 n9mekvsvag2amil6plnf494qsp Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163145.3620 n9mekvsvag2amil6plnf494qsp Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163145.3850 n9mekvsvag2amil6plnf494qsp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5743';
20250306@163145.4400 n9mekvsvag2amil6plnf494qsp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5743';
20250306@163145.1022 mgcq6tbvmgprbqcdoue1kpq4u8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163145.1033 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163145.1139 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5744';
20250306@163145.1242 mgcq6tbvmgprbqcdoue1kpq4u8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5744';
20250306@163145.1334 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5744';
20250306@163145.1405 mgcq6tbvmgprbqcdoue1kpq4u8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5744';
20250306@163145.1480 mgcq6tbvmgprbqcdoue1kpq4u8 Query : use flama_phc
20250306@163145.1485 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163145.1589 mgcq6tbvmgprbqcdoue1kpq4u8 Query : use flama_phc
20250306@163145.1593 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3901
20250306@163145.1732 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501578 
20250306@163145.2252 mgcq6tbvmgprbqcdoue1kpq4u8 Query : use flama_phc
20250306@163145.2255 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163145.2288 mgcq6tbvmgprbqcdoue1kpq4u8 Query : use flama_phc
20250306@163145.2291 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163145.2367 mgcq6tbvmgprbqcdoue1kpq4u8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163145.2388 mgcq6tbvmgprbqcdoue1kpq4u8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5744';
20250306@163145.2434 mgcq6tbvmgprbqcdoue1kpq4u8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5744';
20250306@163145.3027 vh884hiq7hc1airb8jb3djng0t Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163145.3037 vh884hiq7hc1airb8jb3djng0t Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163145.3115 vh884hiq7hc1airb8jb3djng0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5745';
20250306@163145.3215 vh884hiq7hc1airb8jb3djng0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5745';
20250306@163145.3327 vh884hiq7hc1airb8jb3djng0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5745';
20250306@163145.3377 vh884hiq7hc1airb8jb3djng0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5745';
20250306@163145.3473 vh884hiq7hc1airb8jb3djng0t Query : use flama_phc
20250306@163145.3476 vh884hiq7hc1airb8jb3djng0t Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163145.3544 vh884hiq7hc1airb8jb3djng0t Query : use flama_phc
20250306@163145.3547 vh884hiq7hc1airb8jb3djng0t Query : select no, estab,szadrsdesc from szadrs where u_coddest=3901
20250306@163145.3626 vh884hiq7hc1airb8jb3djng0t Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501579 
20250306@163145.4126 vh884hiq7hc1airb8jb3djng0t Query : use flama_phc
20250306@163145.4130 vh884hiq7hc1airb8jb3djng0t Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163145.4162 vh884hiq7hc1airb8jb3djng0t Query : use flama_phc
20250306@163145.4165 vh884hiq7hc1airb8jb3djng0t Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163145.4180 vh884hiq7hc1airb8jb3djng0t Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163145.4202 vh884hiq7hc1airb8jb3djng0t Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5745';
20250306@163145.4305 vh884hiq7hc1airb8jb3djng0t Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5745';
20250306@163145.4876 arert7125k6uotahbanbt0h1a9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@163145.4889 arert7125k6uotahbanbt0h1a9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@163145.5012 arert7125k6uotahbanbt0h1a9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5746';
20250306@163145.5129 arert7125k6uotahbanbt0h1a9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5746';
20250306@163145.5205 arert7125k6uotahbanbt0h1a9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5746';
20250306@163145.5291 arert7125k6uotahbanbt0h1a9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5746';
20250306@163145.5363 arert7125k6uotahbanbt0h1a9 Query : use flama_phc
20250306@163145.5396 arert7125k6uotahbanbt0h1a9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@163145.5481 arert7125k6uotahbanbt0h1a9 Query : use flama_phc
20250306@163145.5485 arert7125k6uotahbanbt0h1a9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6076
20250306@163145.5604 arert7125k6uotahbanbt0h1a9 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501581 
20250306@163145.6080 arert7125k6uotahbanbt0h1a9 Query : use flama_phc
20250306@163145.6083 arert7125k6uotahbanbt0h1a9 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@163145.6142 arert7125k6uotahbanbt0h1a9 Query : use flama_phc
20250306@163145.6147 arert7125k6uotahbanbt0h1a9 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@163145.6165 arert7125k6uotahbanbt0h1a9 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@163145.6189 arert7125k6uotahbanbt0h1a9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5746';
20250306@163145.6268 arert7125k6uotahbanbt0h1a9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5746';

20250306@182005.4750 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5747';
20250306@182005.5137 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5747';
20250306@182005.5490 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5747';
20250306@182005.5970 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : use flama_phc
20250306@182005.6045 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@182005.6733 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : use flama_phc
20250306@182005.6779 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : select no, estab,szadrsdesc from szadrs where u_coddest=376
20250306@182005.7223 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501583 
20250306@182005.8310 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : use flama_phc
20250306@182005.8358 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@182005.8770 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : use flama_phc
20250306@182005.8817 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@182005.9174 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@182005.9395 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5747';
20250306@182005.9746 lgkmnhkv6ndcrrk9oc0vfm9l7p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5747';
20250306@182006.6060 qfam03rh3o7e4i7sifnma6qc3n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@182006.6880 qfam03rh3o7e4i7sifnma6qc3n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@182006.1232 qfam03rh3o7e4i7sifnma6qc3n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5748';
20250306@182006.1639 qfam03rh3o7e4i7sifnma6qc3n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5748';
20250306@182006.2091 qfam03rh3o7e4i7sifnma6qc3n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5748';
20250306@182006.2407 qfam03rh3o7e4i7sifnma6qc3n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5748';
20250306@182006.2769 qfam03rh3o7e4i7sifnma6qc3n Query : use flama_phc
20250306@182006.2811 qfam03rh3o7e4i7sifnma6qc3n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@182006.3431 qfam03rh3o7e4i7sifnma6qc3n Query : use flama_phc
20250306@182006.3471 qfam03rh3o7e4i7sifnma6qc3n Query : select no, estab,szadrsdesc from szadrs where u_coddest=3304
20250306@182006.3865 qfam03rh3o7e4i7sifnma6qc3n Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501585 
20250306@182006.8327 qfam03rh3o7e4i7sifnma6qc3n Query : use flama_phc
20250306@182006.8522 qfam03rh3o7e4i7sifnma6qc3n Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@182007.4760 qfam03rh3o7e4i7sifnma6qc3n Query : use flama_phc
20250306@182007.5590 qfam03rh3o7e4i7sifnma6qc3n Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@182007.1310 qfam03rh3o7e4i7sifnma6qc3n Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@182007.1517 qfam03rh3o7e4i7sifnma6qc3n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5748';
20250306@182007.1915 qfam03rh3o7e4i7sifnma6qc3n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5748';
20250306@182007.3305 1kh2akqu6khjf9fhk14r0m51ss Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@182007.3318 1kh2akqu6khjf9fhk14r0m51ss Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@182007.3402 1kh2akqu6khjf9fhk14r0m51ss Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5749';
20250306@182007.3482 1kh2akqu6khjf9fhk14r0m51ss Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5749';
20250306@182007.3560 1kh2akqu6khjf9fhk14r0m51ss Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5749';
20250306@182007.3623 1kh2akqu6khjf9fhk14r0m51ss Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5749';
20250306@182007.3711 1kh2akqu6khjf9fhk14r0m51ss Query : use flama_phc
20250306@182007.3715 1kh2akqu6khjf9fhk14r0m51ss Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@182007.3786 1kh2akqu6khjf9fhk14r0m51ss Query : use flama_phc
20250306@182007.3790 1kh2akqu6khjf9fhk14r0m51ss Query : select no, estab,szadrsdesc from szadrs where u_coddest=2338
20250306@182007.3889 1kh2akqu6khjf9fhk14r0m51ss Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501588 
20250306@182007.4309 1kh2akqu6khjf9fhk14r0m51ss Query : use flama_phc
20250306@182007.4312 1kh2akqu6khjf9fhk14r0m51ss Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@182007.4344 1kh2akqu6khjf9fhk14r0m51ss Query : use flama_phc
20250306@182007.4348 1kh2akqu6khjf9fhk14r0m51ss Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@182007.4367 1kh2akqu6khjf9fhk14r0m51ss Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@182007.4396 1kh2akqu6khjf9fhk14r0m51ss Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5749';
20250306@182007.4455 1kh2akqu6khjf9fhk14r0m51ss Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5749';
20250306@182007.5741 4mr9ss9t2gp7bc91m7knptdid8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@182007.5828 4mr9ss9t2gp7bc91m7knptdid8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@182007.6352 4mr9ss9t2gp7bc91m7knptdid8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5750';
20250306@182007.7148 4mr9ss9t2gp7bc91m7knptdid8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5750';
20250306@182007.8156 4mr9ss9t2gp7bc91m7knptdid8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5750';
20250306@182007.8971 4mr9ss9t2gp7bc91m7knptdid8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5750';
20250306@182007.9623 4mr9ss9t2gp7bc91m7knptdid8 Query : use flama_phc
20250306@182007.9669 4mr9ss9t2gp7bc91m7knptdid8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@182008.3580 4mr9ss9t2gp7bc91m7knptdid8 Query : use flama_phc
20250306@182008.4030 4mr9ss9t2gp7bc91m7knptdid8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=339
20250306@182008.8200 4mr9ss9t2gp7bc91m7knptdid8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501589 
20250306@182008.2007 4mr9ss9t2gp7bc91m7knptdid8 Query : use flama_phc
20250306@182008.2052 4mr9ss9t2gp7bc91m7knptdid8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@182008.2445 4mr9ss9t2gp7bc91m7knptdid8 Query : use flama_phc
20250306@182008.2489 4mr9ss9t2gp7bc91m7knptdid8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@182008.2706 4mr9ss9t2gp7bc91m7knptdid8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@182008.2923 4mr9ss9t2gp7bc91m7knptdid8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5750';
20250306@182008.3250 4mr9ss9t2gp7bc91m7knptdid8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5750';
20250306@182008.5030 srb43t9r0kuihvi91oekjgt9dk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@182008.5317 srb43t9r0kuihvi91oekjgt9dk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@182008.5465 srb43t9r0kuihvi91oekjgt9dk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5751';
20250306@182008.5775 srb43t9r0kuihvi91oekjgt9dk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5751';
20250306@182008.7563 srb43t9r0kuihvi91oekjgt9dk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5751';
20250306@182008.7964 srb43t9r0kuihvi91oekjgt9dk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5751';
20250306@182008.8517 srb43t9r0kuihvi91oekjgt9dk Query : use flama_phc
20250306@182008.8600 srb43t9r0kuihvi91oekjgt9dk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@182008.9814 srb43t9r0kuihvi91oekjgt9dk Query : use flama_phc
20250306@182008.9855 srb43t9r0kuihvi91oekjgt9dk Query : select no, estab,szadrsdesc from szadrs where u_coddest=672
20250306@182009.3200 srb43t9r0kuihvi91oekjgt9dk Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501591 
20250306@182009.2795 srb43t9r0kuihvi91oekjgt9dk Query : use flama_phc
20250306@182009.2837 srb43t9r0kuihvi91oekjgt9dk Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@182009.3209 srb43t9r0kuihvi91oekjgt9dk Query : use flama_phc
20250306@182009.3252 srb43t9r0kuihvi91oekjgt9dk Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@182009.3461 srb43t9r0kuihvi91oekjgt9dk Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@182009.3681 srb43t9r0kuihvi91oekjgt9dk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5751';
20250306@182009.3995 srb43t9r0kuihvi91oekjgt9dk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5751';
20250306@182009.5004 u3aocvivlg7dq2ere5ll3jttoe Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250306@182009.5014 u3aocvivlg7dq2ere5ll3jttoe Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250306@182009.5087 u3aocvivlg7dq2ere5ll3jttoe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5752';
20250306@182009.5156 u3aocvivlg7dq2ere5ll3jttoe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5752';
20250306@182009.5223 u3aocvivlg7dq2ere5ll3jttoe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5752';
20250306@182009.5275 u3aocvivlg7dq2ere5ll3jttoe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5752';
20250306@182009.5357 u3aocvivlg7dq2ere5ll3jttoe Query : use flama_phc
20250306@182009.5360 u3aocvivlg7dq2ere5ll3jttoe Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250306@182009.5420 u3aocvivlg7dq2ere5ll3jttoe Query : use flama_phc
20250306@182009.5423 u3aocvivlg7dq2ere5ll3jttoe Query : select no, estab,szadrsdesc from szadrs where u_coddest=2448
20250306@182009.5510 u3aocvivlg7dq2ere5ll3jttoe Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501592 
20250306@182009.5883 u3aocvivlg7dq2ere5ll3jttoe Query : use flama_phc
20250306@182009.5886 u3aocvivlg7dq2ere5ll3jttoe Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250306@182009.5915 u3aocvivlg7dq2ere5ll3jttoe Query : use flama_phc
20250306@182009.5918 u3aocvivlg7dq2ere5ll3jttoe Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250306@182009.5934 u3aocvivlg7dq2ere5ll3jttoe Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250306@182009.5961 u3aocvivlg7dq2ere5ll3jttoe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5752';
20250306@182009.6008 u3aocvivlg7dq2ere5ll3jttoe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5752';

20250307@092748.9161 v1glof44bm0ba6hu6vkhbhqjuv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5753';
20250307@092748.9254 v1glof44bm0ba6hu6vkhbhqjuv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5753';
20250307@092748.9299 v1glof44bm0ba6hu6vkhbhqjuv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5753';
20250307@092748.9367 v1glof44bm0ba6hu6vkhbhqjuv Query : use flama_phc
20250307@092748.9370 v1glof44bm0ba6hu6vkhbhqjuv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@092748.9479 v1glof44bm0ba6hu6vkhbhqjuv Query : use flama_phc
20250307@092748.9483 v1glof44bm0ba6hu6vkhbhqjuv Query : select no, estab,szadrsdesc from szadrs where u_coddest=8797
20250307@092748.9575 v1glof44bm0ba6hu6vkhbhqjuv Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501580 
20250307@092749.1720 v1glof44bm0ba6hu6vkhbhqjuv Query : use flama_phc
20250307@092749.1760 v1glof44bm0ba6hu6vkhbhqjuv Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@092749.2370 v1glof44bm0ba6hu6vkhbhqjuv Query : use flama_phc
20250307@092749.2400 v1glof44bm0ba6hu6vkhbhqjuv Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@092749.3030 v1glof44bm0ba6hu6vkhbhqjuv Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@092749.3390 v1glof44bm0ba6hu6vkhbhqjuv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5753';
20250307@092749.1554 v1glof44bm0ba6hu6vkhbhqjuv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5753';

20250307@112817.4419 0k2iersjoodl02rlcklj2ceckm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5754';
20250307@112817.4540 0k2iersjoodl02rlcklj2ceckm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5754';
20250307@112817.5965 0k2iersjoodl02rlcklj2ceckm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5754';
20250307@112817.6028 0k2iersjoodl02rlcklj2ceckm Query : use flama_phc
20250307@112817.6031 0k2iersjoodl02rlcklj2ceckm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@112817.6134 0k2iersjoodl02rlcklj2ceckm Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2237.00.1'
20250307@112817.6231 0k2iersjoodl02rlcklj2ceckm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =054 and bo.boano =2025 and bo.obrano = 0000011 and bi.ref ='324.2237.00.1' and bi.lordem =1
20250307@112817.6617 0k2iersjoodl02rlcklj2ceckm Query : use flama_phc
20250307@112817.6621 0k2iersjoodl02rlcklj2ceckm Query : select top 1 1 valor from ts where ts.ndos = 61
20250307@112817.6701 0k2iersjoodl02rlcklj2ceckm Query : use flama_phc
20250307@112817.6704 0k2iersjoodl02rlcklj2ceckm 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')
20250307@112817.6777 0k2iersjoodl02rlcklj2ceckm 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
20250307@112817.6903 0k2iersjoodl02rlcklj2ceckm Query : use flama_phc
20250307@112817.6907 0k2iersjoodl02rlcklj2ceckm Query : select top 1 ~inactivo valor from fl where no = '1626' and estab = 26 order by inactivo desc
20250307@112817.7000 0k2iersjoodl02rlcklj2ceckm Query : use flama_phc
20250307@112817.7003 0k2iersjoodl02rlcklj2ceckm Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250307@112817.7096 0k2iersjoodl02rlcklj2ceckm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5754';
20250307@112817.7153 0k2iersjoodl02rlcklj2ceckm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5754';

20250307@121359.4863 39mn3pbs0hocsjb9hsfs4lvt24 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5755';
20250307@121359.4933 39mn3pbs0hocsjb9hsfs4lvt24 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5755';
20250307@121359.4970 39mn3pbs0hocsjb9hsfs4lvt24 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5755';
20250307@121359.5026 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121359.5029 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@121359.5101 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9326.00.1'
20250307@121359.5200 39mn3pbs0hocsjb9hsfs4lvt24 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 = 2401259 and bi.ref ='328.9326.00.1' and bi.lordem =100000
20250307@121359.5555 39mn3pbs0hocsjb9hsfs4lvt24 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 = 'cps24103144590,180000010 ' 
20250307@121359.5898 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20250307@121359.5994 39mn3pbs0hocsjb9hsfs4lvt24 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 = 2401259 and bi.ref ='328.9316.00.1' and bi.lordem =90000
20250307@121359.6305 39mn3pbs0hocsjb9hsfs4lvt24 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 = 'cps24103144589,981000009 ' 
20250307@121359.6629 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9006.00.1'
20250307@121359.6722 39mn3pbs0hocsjb9hsfs4lvt24 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 = 2401259 and bi.ref ='328.9006.00.1' and bi.lordem =80000
20250307@121359.7043 39mn3pbs0hocsjb9hsfs4lvt24 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 = 'cps24103144589,786000008 ' 
20250307@121359.7557 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121359.7561 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 1 valor from ts where ts.ndos = 61
20250307@121359.7594 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121359.7597 39mn3pbs0hocsjb9hsfs4lvt24 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')
20250307@121359.7629 39mn3pbs0hocsjb9hsfs4lvt24 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
20250307@121359.7681 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121359.7685 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 ~inactivo valor from fl where no = '202356' and estab = 00 order by inactivo desc
20250307@121359.7850 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121359.7879 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from ts where ndos = 61
20250307@121359.8198 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121359.8779 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250307@121359.8892 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121359.9056 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250307@121359.9087 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121359.9104 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250307@121359.9114 39mn3pbs0hocsjb9hsfs4lvt24 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
20250307@121359.9288 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250307@121359.9482 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250307@121359.9514 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121359.9521 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202356' and estab=00
20250307@121359.9640 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121359.9659 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20250307@121359.9720 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67cae0212367cae307e8',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250307@121359.9801 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121359.9824 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20250307@121359.9841 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67cae0212367cae307e8','--','bo',7.8605200945626477541 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250307@121400.8500 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121400.1280 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20250307@121400.1450 39mn3pbs0hocsjb9hsfs4lvt24 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 ('aut67cae0212367cae307e8','guia r. fornecedor','2025-03-07',61,2500898,?,?,?,?,?,?,?,?,2025, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20250307@121403.7377 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121403.7381 39mn3pbs0hocsjb9hsfs4lvt24 Query : select st.usalote valor from st where st.ref = '328.9326.00.1'
20250307@121403.7472 39mn3pbs0hocsjb9hsfs4lvt24 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.9326.00.1'
20250307@121403.7595 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121403.7610 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250307@121403.7624 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121403.7642 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250307@121403.7651 39mn3pbs0hocsjb9hsfs4lvt24 Query : select sestamp valor from se where ref ='328.9326.00.1' and lote = 'r2401259100a'
20250307@121403.7701 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121403.7715 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250307@121403.7725 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121403.7740 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250307@121403.7751 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67cae2646067cae30bbc',?,?,'20250307',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250307@121403.8943 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250307@121403.8987 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121403.9006 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250307@121403.9019 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67cae3396667cae30bdb','aut67cae0212367cae307e8',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 = 'aut67cae0212367cae307e8'
20250307@121403.9182 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121403.9200 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250307@121403.9218 39mn3pbs0hocsjb9hsfs4lvt24 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 'aut67cae3396667cae30bdb',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 150, 150*.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 ,26.715789473684,26.715789473684*200.48,26.715789473684,26.715789473684*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,26.715789473684*150,26.715789473684*150*200.48 ,26.993000,26.993000*200.48 ,26.993000,26.993000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,26.715789473684,26.715789473684*200.48,26.715789473684*150,26.715789473684*150*200.48,'cps24103144590,180000010 ',210,210*150,210,210*150,?,?,?,4 from bo bo where bo.bostamp = 'aut67cae0212367cae307e8'
20250307@121434.3079 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121434.3215 39mn3pbs0hocsjb9hsfs4lvt24 Query : select st.usalote valor from st where st.ref = '328.9316.00.1'
20250307@121434.3858 39mn3pbs0hocsjb9hsfs4lvt24 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.9316.00.1'
20250307@121434.4415 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121434.4792 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250307@121434.5300 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121434.6677 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250307@121434.6843 39mn3pbs0hocsjb9hsfs4lvt24 Query : select sestamp valor from se where ref ='328.9316.00.1' and lote = 'r2401259900a'
20250307@121434.7160 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121434.7510 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250307@121434.7705 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121434.8058 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250307@121434.8377 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67cae7844167cae32abc',?,?,'20250307',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250307@121434.8621 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250307@121434.9139 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121434.9393 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250307@121434.9728 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67cae2440167cae32adf','aut67cae0212367cae307e8',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 = 'aut67cae0212367cae307e8'
20250307@121435.3700 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121435.2930 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250307@121435.6790 39mn3pbs0hocsjb9hsfs4lvt24 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 'aut67cae2440167cae32adf',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 150, 150*.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 ,27.944715789474,27.944715789474*200.48,27.944715789474,27.944715789474*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,27.944715789474*150,27.944715789474*150*200.48 ,34.915000,34.915000*200.48 ,34.915000,34.915000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,27.944715789474,27.944715789474*200.48,27.944715789474*150,27.944715789474*150*200.48,'cps24103144589,981000009 ',219.66,219.66*150,219.66,219.66*150,?,?,?,4 from bo bo where bo.bostamp = 'aut67cae0212367cae307e8'
20250307@121437.2111 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121437.3041 39mn3pbs0hocsjb9hsfs4lvt24 Query : select st.usalote valor from st where st.ref = '328.9006.00.1'
20250307@121437.3719 39mn3pbs0hocsjb9hsfs4lvt24 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.9006.00.1'
20250307@121437.4365 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121437.4836 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20250307@121437.5268 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121437.5688 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20250307@121437.5857 39mn3pbs0hocsjb9hsfs4lvt24 Query : select sestamp valor from se where ref ='328.9006.00.1' and lote = 'r2401259800a'
20250307@121437.6170 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121437.6484 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20250307@121437.6767 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121437.7020 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20250307@121437.7455 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut67cae2836567cae32da5',?,?,'20250307',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20250307@121437.7631 39mn3pbs0hocsjb9hsfs4lvt24 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20250307@121437.7970 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121437.8362 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20250307@121437.8711 39mn3pbs0hocsjb9hsfs4lvt24 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut67cae4694767cae32dc2','aut67cae0212367cae307e8',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 = 'aut67cae0212367cae307e8'
20250307@121437.9214 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@121437.9649 39mn3pbs0hocsjb9hsfs4lvt24 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20250307@121438.2900 39mn3pbs0hocsjb9hsfs4lvt24 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 'aut67cae4694767cae32dc2',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 250, 250*.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 ,50.76,50.76*200.48,50.76,50.76*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,50.76*250,50.76*250*200.48 ,51.247000,51.247000*200.48 ,51.247000,51.247000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,50.76,50.76*200.48,50.76*250,50.76*250*200.48,'cps24103144589,786000008 ',399,399*250,399,399*250,?,?,?,4 from bo bo where bo.bostamp = 'aut67cae0212367cae307e8'
20250307@121438.8341 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121438.8385 39mn3pbs0hocsjb9hsfs4lvt24 Query : declare @bostamp varchar(25) = 'aut67cae0212367cae307e8' ,@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 
20250307@121454.6670 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121454.7070 39mn3pbs0hocsjb9hsfs4lvt24 Query : select 1 valor from bo where bo.bostamp = 'aut67cae0212367cae307e8'
20250307@121454.1528 39mn3pbs0hocsjb9hsfs4lvt24 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) = 'aut67cae0212367cae307e8' 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 
20250307@121458.6956 39mn3pbs0hocsjb9hsfs4lvt24 Query : use flama_phc
20250307@121458.6997 39mn3pbs0hocsjb9hsfs4lvt24 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20250307@121458.7492 39mn3pbs0hocsjb9hsfs4lvt24 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5755';
20250307@121458.7899 39mn3pbs0hocsjb9hsfs4lvt24 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5755';

20250307@133122.3635 3rj2t1hi0pkflvo396pjle49mg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5756';
20250307@133122.3705 3rj2t1hi0pkflvo396pjle49mg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5756';
20250307@133122.3745 3rj2t1hi0pkflvo396pjle49mg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5756';
20250307@133122.3808 3rj2t1hi0pkflvo396pjle49mg Query : use flama_phc
20250307@133122.3812 3rj2t1hi0pkflvo396pjle49mg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133122.3888 3rj2t1hi0pkflvo396pjle49mg Query : use flama_phc
20250307@133122.3891 3rj2t1hi0pkflvo396pjle49mg Query : select no, estab,szadrsdesc from szadrs where u_coddest=4242
20250307@133122.3982 3rj2t1hi0pkflvo396pjle49mg Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501577 
20250307@133122.4450 3rj2t1hi0pkflvo396pjle49mg Query : use flama_phc
20250307@133122.4454 3rj2t1hi0pkflvo396pjle49mg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133122.4560 3rj2t1hi0pkflvo396pjle49mg Query : use flama_phc
20250307@133122.4563 3rj2t1hi0pkflvo396pjle49mg Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133122.4626 3rj2t1hi0pkflvo396pjle49mg Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133122.4660 3rj2t1hi0pkflvo396pjle49mg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5756';
20250307@133122.4709 3rj2t1hi0pkflvo396pjle49mg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5756';
20250307@133122.5346 ounmfd7gf5ju0gchqi5fbsnkhq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@133122.5357 ounmfd7gf5ju0gchqi5fbsnkhq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@133122.5435 ounmfd7gf5ju0gchqi5fbsnkhq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5757';
20250307@133122.5554 ounmfd7gf5ju0gchqi5fbsnkhq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5757';
20250307@133122.5637 ounmfd7gf5ju0gchqi5fbsnkhq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5757';
20250307@133122.5692 ounmfd7gf5ju0gchqi5fbsnkhq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5757';
20250307@133122.5818 ounmfd7gf5ju0gchqi5fbsnkhq Query : use flama_phc
20250307@133122.5822 ounmfd7gf5ju0gchqi5fbsnkhq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133122.5884 ounmfd7gf5ju0gchqi5fbsnkhq Query : use flama_phc
20250307@133122.5887 ounmfd7gf5ju0gchqi5fbsnkhq Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20250307@133122.6029 ounmfd7gf5ju0gchqi5fbsnkhq Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501582 
20250307@133122.6414 ounmfd7gf5ju0gchqi5fbsnkhq Query : use flama_phc
20250307@133122.6417 ounmfd7gf5ju0gchqi5fbsnkhq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133122.6449 ounmfd7gf5ju0gchqi5fbsnkhq Query : use flama_phc
20250307@133122.6452 ounmfd7gf5ju0gchqi5fbsnkhq Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133122.6468 ounmfd7gf5ju0gchqi5fbsnkhq Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133122.6495 ounmfd7gf5ju0gchqi5fbsnkhq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5757';
20250307@133122.6542 ounmfd7gf5ju0gchqi5fbsnkhq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5757';
20250307@133122.7718 6f3vnsehj235sijfbseggbh6ss Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@133122.7728 6f3vnsehj235sijfbseggbh6ss Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@133122.7804 6f3vnsehj235sijfbseggbh6ss Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5758';
20250307@133122.7874 6f3vnsehj235sijfbseggbh6ss Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5758';
20250307@133122.7943 6f3vnsehj235sijfbseggbh6ss Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5758';
20250307@133122.7984 6f3vnsehj235sijfbseggbh6ss Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5758';
20250307@133122.8053 6f3vnsehj235sijfbseggbh6ss Query : use flama_phc
20250307@133122.8056 6f3vnsehj235sijfbseggbh6ss Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133122.8124 6f3vnsehj235sijfbseggbh6ss Query : use flama_phc
20250307@133122.8127 6f3vnsehj235sijfbseggbh6ss Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20250307@133122.8216 6f3vnsehj235sijfbseggbh6ss Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501587 
20250307@133122.8595 6f3vnsehj235sijfbseggbh6ss Query : use flama_phc
20250307@133122.8598 6f3vnsehj235sijfbseggbh6ss Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133122.8628 6f3vnsehj235sijfbseggbh6ss Query : use flama_phc
20250307@133122.8632 6f3vnsehj235sijfbseggbh6ss Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133122.8650 6f3vnsehj235sijfbseggbh6ss Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133122.8671 6f3vnsehj235sijfbseggbh6ss Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5758';
20250307@133122.8765 6f3vnsehj235sijfbseggbh6ss Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5758';
20250307@133122.9378 gbs5c5j311jd34e0fac2ln5lg6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@133122.9389 gbs5c5j311jd34e0fac2ln5lg6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@133122.9469 gbs5c5j311jd34e0fac2ln5lg6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5759';
20250307@133122.9544 gbs5c5j311jd34e0fac2ln5lg6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5759';
20250307@133122.9665 gbs5c5j311jd34e0fac2ln5lg6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5759';
20250307@133122.9710 gbs5c5j311jd34e0fac2ln5lg6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5759';
20250307@133122.9791 gbs5c5j311jd34e0fac2ln5lg6 Query : use flama_phc
20250307@133122.9795 gbs5c5j311jd34e0fac2ln5lg6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133122.9860 gbs5c5j311jd34e0fac2ln5lg6 Query : use flama_phc
20250307@133122.9863 gbs5c5j311jd34e0fac2ln5lg6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20250307@133122.9999 gbs5c5j311jd34e0fac2ln5lg6 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501594 
20250307@133123.3810 gbs5c5j311jd34e0fac2ln5lg6 Query : use flama_phc
20250307@133123.3840 gbs5c5j311jd34e0fac2ln5lg6 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133123.4140 gbs5c5j311jd34e0fac2ln5lg6 Query : use flama_phc
20250307@133123.4170 gbs5c5j311jd34e0fac2ln5lg6 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133123.4330 gbs5c5j311jd34e0fac2ln5lg6 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133123.4600 gbs5c5j311jd34e0fac2ln5lg6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5759';
20250307@133123.5520 gbs5c5j311jd34e0fac2ln5lg6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5759';
20250307@133123.1048 p4osfk0urpbf4uun4u619d0ugr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@133123.1060 p4osfk0urpbf4uun4u619d0ugr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@133123.2199 p4osfk0urpbf4uun4u619d0ugr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5760';
20250307@133123.2335 p4osfk0urpbf4uun4u619d0ugr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5760';
20250307@133123.2468 p4osfk0urpbf4uun4u619d0ugr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5760';
20250307@133123.2808 p4osfk0urpbf4uun4u619d0ugr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5760';
20250307@133123.2978 p4osfk0urpbf4uun4u619d0ugr Query : use flama_phc
20250307@133123.2982 p4osfk0urpbf4uun4u619d0ugr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133123.3105 p4osfk0urpbf4uun4u619d0ugr Query : use flama_phc
20250307@133123.3108 p4osfk0urpbf4uun4u619d0ugr Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20250307@133123.3161 p4osfk0urpbf4uun4u619d0ugr Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501597 
20250307@133123.3814 p4osfk0urpbf4uun4u619d0ugr Query : use flama_phc
20250307@133123.3824 p4osfk0urpbf4uun4u619d0ugr Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133123.3880 p4osfk0urpbf4uun4u619d0ugr Query : use flama_phc
20250307@133123.3907 p4osfk0urpbf4uun4u619d0ugr Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133123.3927 p4osfk0urpbf4uun4u619d0ugr Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133123.3965 p4osfk0urpbf4uun4u619d0ugr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5760';
20250307@133123.4013 p4osfk0urpbf4uun4u619d0ugr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5760';
20250307@133123.4547 sm3l55999d7nqkc3odbtq6db2i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@133123.4560 sm3l55999d7nqkc3odbtq6db2i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@133123.4638 sm3l55999d7nqkc3odbtq6db2i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5761';
20250307@133123.4707 sm3l55999d7nqkc3odbtq6db2i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5761';
20250307@133123.4784 sm3l55999d7nqkc3odbtq6db2i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5761';
20250307@133123.4874 sm3l55999d7nqkc3odbtq6db2i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5761';
20250307@133123.4958 sm3l55999d7nqkc3odbtq6db2i Query : use flama_phc
20250307@133123.4961 sm3l55999d7nqkc3odbtq6db2i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133123.5025 sm3l55999d7nqkc3odbtq6db2i Query : use flama_phc
20250307@133123.5073 sm3l55999d7nqkc3odbtq6db2i Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20250307@133123.5164 sm3l55999d7nqkc3odbtq6db2i Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2015 and bo.obrano = 2501599 
20250307@133123.6136 sm3l55999d7nqkc3odbtq6db2i Query : use flama_phc
20250307@133123.6139 sm3l55999d7nqkc3odbtq6db2i Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133123.6177 sm3l55999d7nqkc3odbtq6db2i Query : use flama_phc
20250307@133123.6182 sm3l55999d7nqkc3odbtq6db2i Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133123.6202 sm3l55999d7nqkc3odbtq6db2i Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133123.6228 sm3l55999d7nqkc3odbtq6db2i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5761';
20250307@133123.6284 sm3l55999d7nqkc3odbtq6db2i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5761';
20250307@133123.6844 g30m8diq3fo5itc2l9vhbr0gk8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@133123.6856 g30m8diq3fo5itc2l9vhbr0gk8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@133123.6936 g30m8diq3fo5itc2l9vhbr0gk8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5762';
20250307@133123.7172 g30m8diq3fo5itc2l9vhbr0gk8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5762';
20250307@133123.7269 g30m8diq3fo5itc2l9vhbr0gk8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5762';
20250307@133123.7314 g30m8diq3fo5itc2l9vhbr0gk8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5762';
20250307@133123.7402 g30m8diq3fo5itc2l9vhbr0gk8 Query : use flama_phc
20250307@133123.7405 g30m8diq3fo5itc2l9vhbr0gk8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133123.7545 g30m8diq3fo5itc2l9vhbr0gk8 Query : use flama_phc
20250307@133123.7549 g30m8diq3fo5itc2l9vhbr0gk8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2158
20250307@133123.7668 g30m8diq3fo5itc2l9vhbr0gk8 Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2016 and bo.obrano = 2501601 
20250307@133123.8093 g30m8diq3fo5itc2l9vhbr0gk8 Query : use flama_phc
20250307@133123.8096 g30m8diq3fo5itc2l9vhbr0gk8 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133123.8127 g30m8diq3fo5itc2l9vhbr0gk8 Query : use flama_phc
20250307@133123.8130 g30m8diq3fo5itc2l9vhbr0gk8 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133123.8147 g30m8diq3fo5itc2l9vhbr0gk8 Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133123.8168 g30m8diq3fo5itc2l9vhbr0gk8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5762';
20250307@133123.8216 g30m8diq3fo5itc2l9vhbr0gk8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5762';
20250307@133123.8732 hda7u22ibj3l8o4urqs7d0r0kg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@133123.8743 hda7u22ibj3l8o4urqs7d0r0kg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@133123.8820 hda7u22ibj3l8o4urqs7d0r0kg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5763';
20250307@133123.8956 hda7u22ibj3l8o4urqs7d0r0kg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5763';
20250307@133123.9439 hda7u22ibj3l8o4urqs7d0r0kg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5763';
20250307@133123.9490 hda7u22ibj3l8o4urqs7d0r0kg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5763';
20250307@133123.9603 hda7u22ibj3l8o4urqs7d0r0kg Query : use flama_phc
20250307@133123.9610 hda7u22ibj3l8o4urqs7d0r0kg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@133123.9798 hda7u22ibj3l8o4urqs7d0r0kg Query : use flama_phc
20250307@133123.9802 hda7u22ibj3l8o4urqs7d0r0kg Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20250307@133123.9962 hda7u22ibj3l8o4urqs7d0r0kg Query : select bi.bistamp ,bi.ref code ,bi.qtt quantity ,bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.bostamp ,st.u_uncxcl from bi inner join bo on bo.bostamp=bi.bostamp inner join st on st.ref = bi.ref where bo.ndos = 250 and bo.boano = 2016 and bo.obrano = 2501602 
20250307@133124.8080 hda7u22ibj3l8o4urqs7d0r0kg Query : use flama_phc
20250307@133124.8120 hda7u22ibj3l8o4urqs7d0r0kg Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20250307@133124.8450 hda7u22ibj3l8o4urqs7d0r0kg Query : use flama_phc
20250307@133124.8480 hda7u22ibj3l8o4urqs7d0r0kg Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -9010
20250307@133124.8650 hda7u22ibj3l8o4urqs7d0r0kg Query : insert into wserrorlog (errornumber, errormsg,requesttable,initialdata,finaldata) values (-9010,?,'ft',?,?)
20250307@133124.8890 hda7u22ibj3l8o4urqs7d0r0kg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5763';
20250307@133124.9450 hda7u22ibj3l8o4urqs7d0r0kg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5763';

20250307@142048.1746 mbknlumom867fpdjbbe57ec07f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5764';
20250307@142048.1819 mbknlumom867fpdjbbe57ec07f Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5764';
20250307@142048.1871 mbknlumom867fpdjbbe57ec07f Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5764';
20250307@142048.2820 e4a1s79ic341ah0kl33spve5ur Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@142048.2832 e4a1s79ic341ah0kl33spve5ur Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@142048.2913 e4a1s79ic341ah0kl33spve5ur Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5765';
20250307@142048.2994 e4a1s79ic341ah0kl33spve5ur Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5765';
20250307@142048.3071 e4a1s79ic341ah0kl33spve5ur Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5765';
20250307@142048.3126 e4a1s79ic341ah0kl33spve5ur Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5765';
20250307@142048.3193 e4a1s79ic341ah0kl33spve5ur Query : use flama_phc
20250307@142048.3197 e4a1s79ic341ah0kl33spve5ur Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@142048.3304 e4a1s79ic341ah0kl33spve5ur Query : select no, estab,szadrsdesc from szadrs where u_coddest=00000001
20250307@142048.3407 e4a1s79ic341ah0kl33spve5ur Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2187.00.1'
20250307@142048.3582 e4a1s79ic341ah0kl33spve5ur Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2187.00.1'
20250307@142048.3616 e4a1s79ic341ah0kl33spve5ur Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.2187.00.1'
20250307@142048.3656 e4a1s79ic341ah0kl33spve5ur Query : use flama_phc
20250307@142048.3660 e4a1s79ic341ah0kl33spve5ur Query : select top 1 1 valor from ts where ts.ndos = 5
20250307@142048.3746 e4a1s79ic341ah0kl33spve5ur Query : use flama_phc
20250307@142048.3749 e4a1s79ic341ah0kl33spve5ur 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')
20250307@142048.3837 e4a1s79ic341ah0kl33spve5ur 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
20250307@142048.3974 e4a1s79ic341ah0kl33spve5ur Query : use flama_phc
20250307@142048.3978 e4a1s79ic341ah0kl33spve5ur Query : select top 1 ~inactivo valor from fl where no = '102245' and estab = 0 order by inactivo desc
20250307@142048.4090 e4a1s79ic341ah0kl33spve5ur Query : use flama_phc
20250307@142048.4093 e4a1s79ic341ah0kl33spve5ur Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250307@142048.4190 e4a1s79ic341ah0kl33spve5ur Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5765';
20250307@142048.4318 e4a1s79ic341ah0kl33spve5ur Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5765';

20250307@143709.8890 gdabcdu765o6l1cvk6ag9645in Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5766';
20250307@143709.9600 gdabcdu765o6l1cvk6ag9645in Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5766';
20250307@143709.1003 gdabcdu765o6l1cvk6ag9645in Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5766';
20250307@143709.3817 4ifgc28kcn9c4bgbnv038qrg7q Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20250307@143709.3827 4ifgc28kcn9c4bgbnv038qrg7q Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20250307@143709.3915 4ifgc28kcn9c4bgbnv038qrg7q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5767';
20250307@143709.3984 4ifgc28kcn9c4bgbnv038qrg7q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5767';
20250307@143709.4053 4ifgc28kcn9c4bgbnv038qrg7q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5767';
20250307@143709.4093 4ifgc28kcn9c4bgbnv038qrg7q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5767';
20250307@143709.4156 4ifgc28kcn9c4bgbnv038qrg7q Query : use flama_phc
20250307@143709.4159 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@143709.4219 4ifgc28kcn9c4bgbnv038qrg7q Query : select no, estab,szadrsdesc from szadrs where u_coddest=00000001
20250307@143709.4267 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9006.00.1'
20250307@143709.4371 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20250307@143709.4459 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20250307@143709.4476 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20250307@143709.4498 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9316.00.1'
20250307@143709.4516 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9326.00.1'
20250307@143709.4616 4ifgc28kcn9c4bgbnv038qrg7q Query : use flama_phc
20250307@143709.4619 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 1 valor from ts where ts.ndos = 5
20250307@143709.4648 4ifgc28kcn9c4bgbnv038qrg7q Query : use flama_phc
20250307@143709.4651 4ifgc28kcn9c4bgbnv038qrg7q 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')
20250307@143709.4679 4ifgc28kcn9c4bgbnv038qrg7q 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
20250307@143709.4746 4ifgc28kcn9c4bgbnv038qrg7q Query : use flama_phc
20250307@143709.4749 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 ~inactivo valor from fl where no = '102245' and estab = 0 order by inactivo desc
20250307@143709.4820 4ifgc28kcn9c4bgbnv038qrg7q Query : use flama_phc
20250307@143709.4823 4ifgc28kcn9c4bgbnv038qrg7q Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20250307@143709.4867 4ifgc28kcn9c4bgbnv038qrg7q Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5767';
20250307@143709.4916 4ifgc28kcn9c4bgbnv038qrg7q Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5767';

20250307@155233.2255 ihr7vdireiematgpv531uhrpfe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5768';
20250307@155233.2326 ihr7vdireiematgpv531uhrpfe Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='5768';
20250307@155233.2386 ihr7vdireiematgpv531uhrpfe Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='5768';
20250307@155233.2441 ihr7vdireiematgpv531uhrpfe Query : use flama_phc
20250307@155233.2444 ihr7vdireiematgpv531uhrpfe Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20250307@155233.2514 ihr7vdireiematgpv531uhrpfe Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.966.00.01'
20250307@155233.2611 ihr7vdireiematgpv531uhrpfe 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 = 2401239 and bi.ref ='324.966.00.01' and bi.lordem =20000
20250307@155233.2949 ihr7vdireiematgpv531uhrpfe 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 = 'cps24102961573,192000002 ' 
20250307@155233.3257 ihr7vdireiematgpv531uhrpfe Query : use flama_phc
20250307@155233.3260 ihr7vdireiematgpv531uhrpfe Query : select top 1 1 valor from ts where ts.ndos = 61
20250307@155233.3334 ihr7vdireiematgpv531uhrpfe Query : use flama_phc
20250307@155233.3337 ihr7vdireiematgpv531uhrpfe 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')
20250307@155233.3376 ihr7vdireiematgpv531uhrpfe 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
20250307@155233.3505 ihr7vdireiematgpv531uhrpfe Query : use flama_phc
20250307@155233.3508 ihr7vdireiematgpv531uhrpfe Query : select top 1 ~inactivo valor from fl where no = '202576' and estab = 00 order by inactivo desc
20250307@155233.3611 ihr7vdireiematgpv531uhrpfe Query : use flama_phc
20250307@155233.3614 ihr7vdireiematgpv531uhrpfe Query : select 1 valor from ts where ndos = 61
20250307@155233.3672 ihr7vdireiematgpv531uhrpfe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@155233.3985 ihr7vdireiematgpv531uhrpfe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20250307@155233.4052 ihr7vdireiematgpv531uhrpfe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@155233.4069 ihr7vdireiematgpv531uhrpfe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20250307@155233.4079 ihr7vdireiematgpv531uhrpfe Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20250307@155233.4094 ihr7vdireiematgpv531uhrpfe Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20250307@155233.4104 ihr7vdireiematgpv531uhrpfe 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
20250307@155233.4198 ihr7vdireiematgpv531uhrpfe Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
20250307@155233.4566 ihr7vdireiematgpv531uhrpfe Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2025 order by obrano desc
