-
Global information
- Generated on Thu Jul 16 23:00:08 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 85,231 log entries in 7s
- Log start from 2026-07-16 07:00:01 to 2026-07-16 21:59:59
-
Overview
Global Stats
- 74 Number of unique normalized queries
- 730 Number of queries
- 54m22s Total query duration
- 2026-07-16 07:01:47 First query
- 2026-07-16 21:01:54 Last query
- 4 queries/s at 2026-07-16 13:13:21 Query peak
- 54m22s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 54m22s Execute total duration
- 726 Number of events
- 18 Number of unique normalized events
- 570 Max number of times the same event was reported
- 0 Number of cancellation
- 210 Total number of automatic vacuums
- 383 Total number of automatic analyzes
- 404 Number temporary file
- 194.62 MiB Max size of temporary file
- 30.08 MiB Average size of temporary file
- 3,573 Total number of sessions
- 137 sessions at 2026-07-16 21:01:59 Session peak
- 4d11h24m4s Total duration of sessions
- 1m48s Average duration of sessions
- 0 Average queries per session
- 913ms Average queries duration per session
- 1m47s Average idle time per session
- 4,479 Total number of connections
- 6 connections/s at 2026-07-16 10:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 4 queries/s Query Peak
- 2026-07-16 13:13:21 Date
SELECT Traffic
Key values
- 4 queries/s Query Peak
- 2026-07-16 13:13:21 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 0 queries/s Query Peak
- Date
Queries duration
Key values
- 54m22s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 07 18 0ms 23s547ms 3s208ms 1s290ms 9s846ms 26s473ms 08 16 0ms 23s838ms 4s425ms 2s569ms 7s621ms 35s451ms 09 43 0ms 24s61ms 3s374ms 7s969ms 10s483ms 27s65ms 10 81 0ms 23s141ms 3s842ms 15s259ms 20s778ms 35s291ms 11 61 0ms 45s316ms 5s747ms 12s1ms 26s829ms 1m49s 12 79 0ms 23s630ms 3s108ms 9s918ms 12s932ms 40s3ms 13 66 0ms 23s958ms 2s739ms 10s239ms 13s981ms 32s723ms 14 42 0ms 49s516ms 7s74ms 5s169ms 25s662ms 3m19s 15 110 0ms 23s445ms 2s894ms 14s118ms 23s595ms 32s897ms 16 97 0ms 46s377ms 4s623ms 18s174ms 47s209ms 2m4s 17 42 0ms 23s172ms 3s106ms 6s547ms 7s810ms 39s413ms 18 53 0ms 46s915ms 8s87ms 28s784ms 32s509ms 3m2s 19 4 0ms 23s404ms 6s909ms 0ms 0ms 26s539ms 20 13 0ms 50s118ms 16s882ms 0ms 4s213ms 3m5s 21 5 0ms 24s698ms 6s41ms 0ms 0ms 28s4ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 07 18 0 3s208ms 0ms 1s290ms 11s733ms 08 16 0 4s425ms 0ms 2s569ms 10s861ms 09 43 0 3s374ms 6s381ms 7s969ms 10s953ms 10 81 0 3s842ms 11s20ms 15s259ms 26s399ms 11 61 0 5s747ms 6s401ms 12s1ms 1m20s 12 79 0 3s108ms 7s633ms 9s918ms 13s650ms 13 66 0 2s739ms 6s447ms 10s239ms 17s400ms 14 42 0 7s74ms 1s52ms 5s169ms 29s500ms 15 110 0 2s894ms 9s833ms 14s118ms 32s405ms 16 97 0 4s623ms 6s691ms 18s174ms 1m11s 17 42 0 3s106ms 3s279ms 6s547ms 12s899ms 18 53 0 8s87ms 3s441ms 28s784ms 56s935ms 19 4 0 6s909ms 0ms 0ms 1s98ms 20 13 0 16s882ms 0ms 0ms 26s452ms 21 5 0 6s41ms 0ms 0ms 2s202ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 16 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 16 07 0 18 18.00 0.00% 08 0 15 15.00 0.00% 09 0 42 42.00 0.00% 10 0 80 80.00 0.00% 11 0 60 60.00 0.00% 12 0 78 78.00 0.00% 13 0 65 65.00 0.00% 14 0 41 41.00 0.00% 15 0 109 109.00 0.00% 16 0 96 96.00 0.00% 17 0 41 41.00 0.00% 18 0 52 52.00 0.00% 19 0 3 3.00 0.00% 20 0 13 13.00 0.00% 21 0 4 4.00 0.00% Day Hour Count Average / Second Jul 16 07 307 0.09/s 08 283 0.08/s 09 296 0.08/s 10 300 0.08/s 11 308 0.09/s 12 297 0.08/s 13 287 0.08/s 14 298 0.08/s 15 323 0.09/s 16 330 0.09/s 17 301 0.08/s 18 293 0.08/s 19 280 0.08/s 20 290 0.08/s 21 286 0.08/s Day Hour Count Average Duration Average idle time Jul 16 07 240 32ms 0ms 08 222 2m47s 2m47s 09 237 4m54s 4m54s 10 239 1m32s 1m31s 11 247 1m55s 1m54s 12 237 1m16s 1m15s 13 228 58s437ms 57s644ms 14 239 2m19s 2m18s 15 253 2m2s 2m 16 274 2m39s 2m37s 17 242 1m55s 1m54s 18 238 40s84ms 38s283ms 19 220 1s717ms 1s591ms 20 231 1m20s 1m19s 21 226 2m27s 2m27s -
Connections
Established Connections
Key values
- 6 connections Connection Peak
- 2026-07-16 10:00:01 Date
Connections per database
Key values
- etendo Main Database
- 4,479 connections Total
Connections per user
Key values
- tad Main User
- 4,479 connections Total
-
Sessions
Simultaneous sessions
Key values
- 137 sessions Session Peak
- 2026-07-16 21:01:59 Date
Histogram of session times
Key values
- 3,250 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,573 sessions Total
Sessions per user
Key values
- tad Main User
- 3,573 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,573 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 10,748 buffers Checkpoint Peak
- 2026-07-16 13:10:02 Date
- 270.056 seconds Highest write time
- 0.010 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-16 20:50:46 Date
Checkpoints distance
Key values
- 131.98 Mo Distance Peak
- 2026-07-16 13:10:02 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 16 07 3,621 381.195s 0.027s 381.262s 08 8,272 830.108s 0.041s 830.199s 09 27,505 2,137.968s 0.051s 2,138.117s 10 22,676 2,216.493s 0.065s 2,216.635s 11 22,780 2,231.261s 0.051s 2,231.415s 12 16,967 1,702.549s 0.037s 1,702.657s 13 28,460 1,422.124s 0.039s 1,422.28s 14 10,571 1,013.492s 0.028s 1,013.574s 15 25,845 2,535.025s 0.06s 2,535.175s 16 26,927 2,554.213s 0.058s 2,554.341s 17 12,125 1,120.286s 0.038s 1,120.373s 18 16,553 1,174.905s 0.038s 1,175.011s 19 2,211 222.924s 0.015s 222.985s 20 5,056 368.977s 0.018s 369.045s 21 3,574 356.506s 0.017s 356.563s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 16 07 0 1 0 1,005 0.002s 0.012s 08 0 3 0 2,021 0.002s 0.012s 09 0 10 0 3,139 0.003s 0.012s 10 0 7 0 3,266 0.005s 0.012s 11 0 8 0 3,215 0.003s 0.012s 12 0 6 0 2,865 0.002s 0.011s 13 0 10 0 2,175 0.003s 0.013s 14 0 2 0 1,334 0.002s 0.012s 15 0 8 0 3,095 0.002s 0.012s 16 0 9 0 3,289 0.003s 0.012s 17 0 3 0 2,054 0.002s 0.011s 18 0 5 0 1,847 0.002s 0.013s 19 0 1 0 295 0.001s 0.012s 20 0 2 0 438 0.001s 0.012s 21 0 1 0 314 0.002s 0.012s Day Hour Count Avg time (sec) Jul 16 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s Day Hour Mean distance Mean estimate Jul 16 07 1,722.25 kB 19,121.92 kB 08 3,706.33 kB 7,486.83 kB 09 13,795.33 kB 38,142.08 kB 10 9,983.83 kB 18,844.00 kB 11 10,173.25 kB 15,720.58 kB 12 8,578.36 kB 13,706.82 kB 13 13,091.54 kB 42,559.15 kB 14 3,179.50 kB 14,833.25 kB 15 11,170.67 kB 14,466.00 kB 16 11,302.00 kB 16,861.83 kB 17 5,414.36 kB 13,632.55 kB 18 6,286.38 kB 22,170.08 kB 19 1,113.67 kB 7,025.83 kB 20 2,005.58 kB 13,165.33 kB 21 1,298.58 kB 6,811.75 kB -
Temporary Files
Size of temporary files
Key values
- 194.62 MiB Temp Files size Peak
- 2026-07-16 18:03:04 Date
Number of temporary files
Key values
- 4 per second Temp Files Peak
- 2026-07-16 16:03:10 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 16 07 0 0 0 08 10 290.77 MiB 29.08 MiB 09 41 1.08 GiB 27.07 MiB 10 53 1.48 GiB 28.56 MiB 11 40 1.11 GiB 28.30 MiB 12 48 1.36 GiB 29.09 MiB 13 28 814.45 MiB 29.09 MiB 14 7 199.88 MiB 28.55 MiB 15 60 1.65 GiB 28.17 MiB 16 64 1.74 GiB 27.91 MiB 17 26 719.56 MiB 27.68 MiB 18 24 1.38 GiB 59.06 MiB 19 0 0 0 20 3 83.54 MiB 27.85 MiB 21 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 364 10.34 GiB 15.76 MiB 42.42 MiB 29.09 MiB select ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, case when c_bpartner.em_ec_isvalorated = ? then c_bpartner.em_ec_isvalorated else m_inout.em_ec_isvalued end as em_ec_isvalued, ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, contact.name || ?| | coalesce(contact.phone, ?) as contact_info, contact.email as contact_mail, c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ?| | upper(c_country.name) || ? as locationdesc, c_location_description (c_locationdeliv.c_location_id) || ?| | upper(c_countrydel.name) || ? as locationdelivdesc, upper(c_counttrl_del.name) as countrydel, m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, concat(repre.firstname, ?, repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, c_order.documentno as docorder, c_currency.cursymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, row_number() over (order by m_inout.m_inout_id) % ? = ? as row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.delivery_location_id = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id and pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on ? > prlab_num.num where ? = ? and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in (...)) order by m_inout.documentno;-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('16F2119A3001448C8E8E09A885A0E24D')) order by m_inout.documentno;
Date: 2026-07-16 15:21:23 Duration: 2s986ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('88763AAA935A48B38B1F9FF53CF74409')) order by m_inout.documentno;
Date: 2026-07-16 16:03:10 Duration: 2s889ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('092A22232A1E443C87FD7C95936FFA2C')) order by m_inout.documentno;
Date: 2026-07-16 16:03:00 Duration: 2s884ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 10 272.15 MiB 25.12 MiB 31.43 MiB 27.21 MiB select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( select o.c_order_id, o.ad_org_id, o.isactive, o.issotrx, o.m_pricelist_id, o.documentno AS "Documento", o.docstatus AS "Estado Pedido", o.docaction AS "Accion Pedido", o.processed AS "Procesado", dt.name AS "Tipo Documento", o.description AS "Descripción", o.dateordered AS "Fecha Pedido", o.datepromised AS "Fecha Comprometida", o.c_bpartner_id, o.poreference "Referencia Pedido", o.c_currency_id, cu.iso_code "Currency ISO", o.m_warehouse_id, cl.city AS "Ciudad", cl.postal AS "Codigo Postal", cc."name" AS "Pais", cr."name" AS "Region", us.name AS "Vendedor", mw."name" AS "Delegacion" from c_order o left join c_doctype dt on dt.c_doctype_id = o.c_doctype_id inner join c_currency cu on cu.c_currency_id = o.c_currency_id left join c_bpartner_location cbl on cbl.c_bpartner_location_id = o.c_bpartner_location_id left join c_location cl on cl.c_location_id = cbl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id left join c_region cr on cr.c_region_id = cl.c_region_id left join ad_user us on us.ad_user_id = o.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id where ? = ? and o.issotrx = ?) "_" order by "_"."Fecha Pedido" desc;-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 20:03:20 Duration: 28s571ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 11:04:41 Duration: 24s639ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 16:03:10 Duration: 21s790ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
3 9 14.30 MiB 1.59 MiB 1.59 MiB 1.59 MiB select id, c_order_id, documentno, dateordered, c_bpartner_id, partner_name, product_value, product_id, product_name, description, attributeid, total_qty, qtyordered, mlocatorid, mlocatorname, orderlineid, qtypending, isactive, ? as date_format, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = ? where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, ?)), ?) as uomsymbol, conversionrate, c_aum as alternativeuom from ( select c_orderline.c_orderline_id as id, c_order.c_order_id as c_order_id, c_order.documentno || ? || to_char(c_order.dateordered, ?) || ? || to_char(c_order.datepromised, ?) as documentno, c_order.dateordered as dateordered, c_bpartner.c_bpartner_id as c_bpartner_id, c_bpartner.name || ? || c_bpartner.name2 as partner_name, c_orderline.m_product_id as product_id, ad_column_identifier (to_char(?), to_char(c_orderline.m_product_id), to_char(?)) as product_name, ( select value from m_product where m_product_id = c_orderline.m_product_id) as product_value, m_attributesetinstance.description as description, m_attributesetinstance.m_attributesetinstance_id as attributeid, coalesce(c_orderline.aumqty, c_orderline.qtyordered) as total_qty, coalesce(c_orderline.aumqty, c_orderline.qtyordered) - round((sum(coalesce(m_matchpo.qty, ?)) * round((coalesce(c_orderline.aumqty, c_orderline.qtyordered) / c_orderline.qtyordered), ?)), ?) as qtypending, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then (c_orderline.qtyordered - sum(coalesce(m_matchpo.qty, ?))) else ? end as qtyordered, ? as isactive, c_orderline.line, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorid, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorname, c_orderline.c_orderline_id as orderlineid, null as c_aum, c_orderline.c_uom_id, ? as conversionrate from c_orderline left join m_matchpo on c_orderline.c_orderline_id = m_matchpo.c_orderline_id and m_matchpo.m_inoutline_id is not null left join m_attributesetinstance on c_orderline.m_attributesetinstance_id = m_attributesetinstance.m_attributesetinstance_id, c_order, c_bpartner, c_doctype where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_orderline.qtyordered != ? and c_order.c_order_id = c_orderline.c_order_id and c_order.ad_client_id in (...) and c_order.ad_org_id in (...) and c_order.issotrx = ? and c_order.documentno like ? and c_order.docstatus = ? and c_order.c_doctype_id = c_doctype.c_doctype_id and c_doctype.isreturn = ? group by c_orderline.c_orderline_id, c_order.c_order_id, c_order.documentno, c_order.dateordered, c_bpartner.c_bpartner_id, c_bpartner.name, c_bpartner.name2, c_orderline.m_product_id, m_attributesetinstance.description, m_attributesetinstance.m_attributesetinstance_id, c_orderline.qtyordered, c_orderline.line) a where ( case when total_qty < ? then ? else ? end) = ( case when qtypending < ? then ? else ? end) and qtypending <> ? order by c_bpartner_id, documentno, line;-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:10:09 Duration: 8s902ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:04:53 Duration: 8s560ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 15:44:28 Duration: 8s332ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 6 137.67 MiB 20.47 MiB 25.48 MiB 22.95 MiB select materialmg0_.m_reservation_id as m_reserv1_597_, materialmg0_.ad_client_id as ad_clien2_597_, materialmg0_.ad_org_id as ad_org_i3_597_, materialmg0_.isactive as isactive4_597_, materialmg0_.created as created5_597_, materialmg0_.createdby as createdb6_597_, materialmg0_.updated as updated7_597_, materialmg0_.updatedby as updatedb8_597_, materialmg0_.m_product_id as m_produc9_597_, materialmg0_.quantity as quantit10_597_, materialmg0_.c_uom_id as c_uom_i11_597_, materialmg0_.c_orderline_id as c_order12_597_, materialmg0_.ad_user_id as ad_user13_597_, materialmg0_.c_bpartner_id as c_bpart14_597_, materialmg0_.m_warehouse_id as m_wareh15_597_, materialmg0_.m_attributesetinstance_id as m_attri16_597_, materialmg0_.m_locator_id as m_locat17_597_, materialmg0_.reservedqty as reserve18_597_, materialmg0_.releasedqty as release19_597_, materialmg0_.res_status as res_sta20_597_, materialmg0_.res_process as res_pro21_597_, materialmg0_.managereservation_pe as manager22_597_, materialmg0_.em_obwpl_generatedbypicking as em_obwp23_597_, materialmg0_.reservedgoodmnt_pe as reserve24_597_ from m_reservation materialmg0_ left outer join c_orderline orderline1_ on materialmg0_.c_orderline_id = orderline1_.c_orderline_id left outer join c_order order2_ on orderline1_.c_order_id = order2_.c_order_id where (materialmg0_.ad_org_id in (...)) and (materialmg0_.ad_client_id in (...)) order by order2_.documentno desc, order2_.dateordered desc, order2_.grandtotal desc, orderline1_.line desc, orderline1_.linenetamt desc, materialmg0_.m_reservation_id desc limit ?;-
select materialmg0_.M_Reservation_ID as m_reserv1_597_, materialmg0_.AD_Client_ID as ad_clien2_597_, materialmg0_.AD_Org_ID as ad_org_i3_597_, materialmg0_.Isactive as isactive4_597_, materialmg0_.Created as created5_597_, materialmg0_.Createdby as createdb6_597_, materialmg0_.Updated as updated7_597_, materialmg0_.Updatedby as updatedb8_597_, materialmg0_.M_Product_ID as m_produc9_597_, materialmg0_.Quantity as quantit10_597_, materialmg0_.C_Uom_ID as c_uom_i11_597_, materialmg0_.C_Orderline_ID as c_order12_597_, materialmg0_.AD_User_ID as ad_user13_597_, materialmg0_.C_Bpartner_ID as c_bpart14_597_, materialmg0_.M_Warehouse_ID as m_wareh15_597_, materialmg0_.M_Attributesetinstance_ID as m_attri16_597_, materialmg0_.M_Locator_ID as m_locat17_597_, materialmg0_.Reservedqty as reserve18_597_, materialmg0_.ReleasedQty as release19_597_, materialmg0_.RES_Status as res_sta20_597_, materialmg0_.RES_Process as res_pro21_597_, materialmg0_.Managereservation_Pe as manager22_597_, materialmg0_.EM_OBWPL_Generatedbypicking as em_obwp23_597_, materialmg0_.Reservedgoodmnt_Pe as reserve24_597_ from M_Reservation materialmg0_ left outer join C_OrderLine orderline1_ on materialmg0_.C_Orderline_ID = orderline1_.C_OrderLine_ID left outer join C_Order order2_ on orderline1_.C_Order_ID = order2_.C_Order_ID where (materialmg0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (materialmg0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order2_.DocumentNo desc, order2_.DateOrdered desc, order2_.GrandTotal desc, orderline1_.Line desc, orderline1_.LineNetAmt desc, materialmg0_.M_Reservation_ID desc limit '101';
Date: 2026-07-16 17:06:40 Duration: 2s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select materialmg0_.M_Reservation_ID as m_reserv1_597_, materialmg0_.AD_Client_ID as ad_clien2_597_, materialmg0_.AD_Org_ID as ad_org_i3_597_, materialmg0_.Isactive as isactive4_597_, materialmg0_.Created as created5_597_, materialmg0_.Createdby as createdb6_597_, materialmg0_.Updated as updated7_597_, materialmg0_.Updatedby as updatedb8_597_, materialmg0_.M_Product_ID as m_produc9_597_, materialmg0_.Quantity as quantit10_597_, materialmg0_.C_Uom_ID as c_uom_i11_597_, materialmg0_.C_Orderline_ID as c_order12_597_, materialmg0_.AD_User_ID as ad_user13_597_, materialmg0_.C_Bpartner_ID as c_bpart14_597_, materialmg0_.M_Warehouse_ID as m_wareh15_597_, materialmg0_.M_Attributesetinstance_ID as m_attri16_597_, materialmg0_.M_Locator_ID as m_locat17_597_, materialmg0_.Reservedqty as reserve18_597_, materialmg0_.ReleasedQty as release19_597_, materialmg0_.RES_Status as res_sta20_597_, materialmg0_.RES_Process as res_pro21_597_, materialmg0_.Managereservation_Pe as manager22_597_, materialmg0_.EM_OBWPL_Generatedbypicking as em_obwp23_597_, materialmg0_.Reservedgoodmnt_Pe as reserve24_597_ from M_Reservation materialmg0_ left outer join C_OrderLine orderline1_ on materialmg0_.C_Orderline_ID = orderline1_.C_OrderLine_ID left outer join C_Order order2_ on orderline1_.C_Order_ID = order2_.C_Order_ID where (materialmg0_.AD_Org_ID in ($1, $2, $3, $4, $5, $6)) and (materialmg0_.AD_Client_ID in ($7, $8)) order by order2_.DocumentNo desc, order2_.DateOrdered desc, order2_.GrandTotal desc, orderline1_.Line desc, orderline1_.LineNetAmt desc, materialmg0_.M_Reservation_ID desc limit $9;
Date: 2026-07-16 17:06:39 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 5 145.48 MiB 26.73 MiB 30.80 MiB 29.10 MiB select "_"."c_order_id", ;-
select "_"."c_order_id", ;
Date: 2026-07-16 11:04:41 Duration: 0ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
6 4 92.94 MiB 19.87 MiB 26.82 MiB 23.23 MiB select c_bp_group.name from c_bp_group where c_bp_group.c_bp_group_id = ?;-
SELECT C_BP_GROUP.NAME FROM C_BP_GROUP WHERE C_BP_GROUP.C_BP_GROUP_ID = $1;
Date: 2026-07-16 18:32:46 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 2 388.64 MiB 194.32 MiB 194.32 MiB 194.32 MiB select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ left outer join c_bpartner businesspa1_ on order0_.c_bpartner_id = businesspa1_.c_bpartner_id cross join c_order order_comp2_ cross join c_doctype documentty4_ where order0_.c_order_id = order_comp2_.c_order_id and order0_.c_doctypetarget_id = documentty4_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp2_.iscancelled = ? or order_comp2_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and (order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ?) and order0_.issotrx = ? and documentty4_.isreturn = ? and (documentty4_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by businesspa1_.name, businesspa1_.name2, order0_.c_order_id limit ?;-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit '101';
Date: 2026-07-16 18:03:16 Duration: 7s506ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit '101';
Date: 2026-07-16 18:03:31 Duration: 7s146ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit '101';
Date: 2026-07-16 18:03:17 Duration: 1s853ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 1 113.88 MiB 113.88 MiB 113.88 MiB 113.88 MiB select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ left outer join c_bpartner businesspa1_ on order0_.c_bpartner_id = businesspa1_.c_bpartner_id cross join c_order order_comp2_ cross join c_doctype documentty4_ where order0_.c_order_id = order_comp2_.c_order_id and order0_.c_doctypetarget_id = documentty4_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp2_.iscancelled = ? or order_comp2_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and (order0_.invoicerule = ? or order0_.invoicerule = ?) and order0_.issotrx = ? and documentty4_.isreturn = ? and (documentty4_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by businesspa1_.name, businesspa1_.name2, order0_.c_order_id limit ?;-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I') and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit '101';
Date: 2026-07-16 18:03:13 Duration: 5s834ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 1 194.62 MiB 194.62 MiB 194.62 MiB 194.62 MiB select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ left outer join c_bpartner businesspa1_ on order0_.c_bpartner_id = businesspa1_.c_bpartner_id cross join c_order order_comp2_ cross join c_doctype documentty4_ where order0_.c_order_id = order_comp2_.c_order_id and order0_.c_doctypetarget_id = documentty4_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp2_.iscancelled = ? or order_comp2_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and order0_.issotrx = ? and documentty4_.isreturn = ? and (documentty4_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by businesspa1_.name, businesspa1_.name2, order0_.c_order_id limit ?;-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit '101';
Date: 2026-07-16 18:03:11 Duration: 4s959ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 1 12.29 MiB 12.29 MiB 12.29 MiB 12.29 MiB select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and order0_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:23 Duration: 4s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:54 Duration: 4s346ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:44:57 Duration: 4s143ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
11 1 194.62 MiB 194.62 MiB 194.62 MiB 194.62 MiB select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ left outer join c_bpartner businesspa1_ on order0_.c_bpartner_id = businesspa1_.c_bpartner_id cross join c_order order_comp2_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp2_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by businesspa1_.name, businesspa1_.name2, order0_.c_order_id limit ?;-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit '101';
Date: 2026-07-16 18:03:04 Duration: 4s174ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 194.62 MiB select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > $1 and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ($2, $3, $4, $5, $6, $7)) and (order0_.AD_Client_ID in ($8, $9)) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit $10;[ Date: 2026-07-16 18:03:04 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 194.62 MiB select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > $1 and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < $2 and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ($3, $4, $5, $6, $7, $8)) and (order0_.AD_Client_ID in ($9, $10)) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit $11;[ Date: 2026-07-16 18:03:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 194.32 MiB select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > $1 and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < $2 and (order0_.InvoiceRule = $3 or order0_.InvoiceRule = $4 or order0_.InvoiceRule = $5 or order0_.InvoiceRule = $6) and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ($7, $8, $9, $10, $11, $12)) and (order0_.AD_Client_ID in ($13, $14)) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit $15;[ Date: 2026-07-16 18:03:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 194.32 MiB select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > $1 and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < $2 and (order0_.InvoiceRule = $3 or order0_.InvoiceRule = $4 or order0_.InvoiceRule = $5 or order0_.InvoiceRule = $6) and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ($7, $8, $9, $10, $11, $12)) and (order0_.AD_Client_ID in ($13, $14)) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit $15;[ Date: 2026-07-16 18:03:32 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 113.88 MiB select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join C_BPartner businesspa1_ on order0_.C_BPartner_ID = businesspa1_.C_BPartner_ID cross join C_Order order_comp2_ cross join C_DocType documentty4_ where order0_.C_Order_ID = order_comp2_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) > $1 and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp2_.iscancelled = 'Y' or order_comp2_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp2_.c_order_id and ol.c_order_discount_id is null), 0)) < $2 and (order0_.InvoiceRule = $3 or order0_.InvoiceRule = $4) and order0_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ($5, $6, $7, $8, $9, $10)) and (order0_.AD_Client_ID in ($11, $12)) order by businesspa1_.Name, businesspa1_.Name2, order0_.C_Order_ID limit $13;[ Date: 2026-07-16 18:03:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('71E073203D2245C4ABF5F3A634112DC0')) order by m_inout.documentno;[ Date: 2026-07-16 18:25:00 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('1CF9CB36CF4D4FD2B5CC19B0EB060A87')) order by m_inout.documentno;[ Date: 2026-07-16 18:25:14 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('A8E07B99FBE942E98B4A17B1F0CAECC9')) order by m_inout.documentno;[ Date: 2026-07-16 18:30:38 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('A754FA3B6066434E929FBB69D35D11BF')) order by m_inout.documentno;[ Date: 2026-07-16 18:17:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('8698A5A92331432CA416EA16391FE8EA')) order by m_inout.documentno;[ Date: 2026-07-16 18:17:37 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('2B755081E35D4714A1F75C9F9DE6BFE7')) order by m_inout.documentno;[ Date: 2026-07-16 18:17:51 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('20B4D13F5F534B84B8E3A372C5B599B4')) order by m_inout.documentno;[ Date: 2026-07-16 17:37:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('145A527C513749D0905F03D702A35340')) order by m_inout.documentno;[ Date: 2026-07-16 17:38:07 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('C4DBC3A0A1F6429C956E5CCDB3BF1CE3')) order by m_inout.documentno;[ Date: 2026-07-16 17:12:14 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('A7A354D483DF418BA8B31BBAAFFC97C9')) order by m_inout.documentno;[ Date: 2026-07-16 17:12:28 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('90D00947E1D143309BA7E0A60DB34A53')) order by m_inout.documentno;[ Date: 2026-07-16 17:12:42 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('D9598C0C1D1B41A985C6AB4D6EA4E194')) order by m_inout.documentno;[ Date: 2026-07-16 17:13:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 42.42 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('8580EBAA1E8344ABABA5807119F87348')) order by m_inout.documentno;[ Date: 2026-07-16 17:13:26 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 42.41 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('20B7A3217FF64F62A33B34B984ECD5B9')) order by m_inout.documentno;[ Date: 2026-07-16 17:00:40 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 42.41 MiB select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('8A69E23F47FC4912BBB4C667839B9C4B')) order by m_inout.documentno;[ Date: 2026-07-16 17:01:11 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.20 sec Highest CPU-cost vacuum
Table pg_catalog.pg_statistic
Database etendo - 2026-07-16 19:01:06 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 0.20 sec Highest CPU-cost vacuum
Table pg_catalog.pg_statistic
Database etendo - 2026-07-16 19:01:06 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (168) Main table analyzed (database etendo)
- 383 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 168 etendo.public.ad_session 43 etendo.public.ad_pinstance_para 16 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.public.ad_preference 9 etendo.profile.tables_list 8 etendo.profile.last_stat_io 8 etendo.public.ad_sequence 8 etendo.public.prpres_product 7 etendo.profile.stmt_list 7 etendo.profile.funcs_list 6 etendo.profile.indexes_list 5 etendo.profile.last_extension_versions 4 etendo.profile.last_stat_activity_count_srv1 4 etendo.profile.last_stat_slru 3 etendo.public.ad_process_request 3 etendo.public.prpres_conf 3 etendo.public.ad_pinstance 3 etendo.profile.sample_statements 2 etendo.pg_catalog.pg_type 2 etendo.profile.sample_stat_tables 2 etendo.profile.sample_stat_user_functions 2 etendo.profile.sample_stat_slru 1 template1.pg_catalog.pg_shdepend 1 etendo.profile.sample_stat_database 1 etendo.public.fin_financial_account 1 etendo.public.ad_process_run 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_indexes 1 etendo.profile.sample_stat_indexes_total 1 etendo.pg_catalog.pg_attribute 1 etendo.profile.sample_stat_tables_total 1 Total 383 Vacuums per table
Key values
- public.ad_ep_instance_para (101) Main table vacuumed on database etendo
- 210 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples etendo.public.ad_ep_instance_para 101 101 6,793 0 369 0 0 943 221 304,672 0 0 etendo.profile.last_stat_user_functions_srv1 18 15 3,270 0 59 0 0 2,171 455 728,092 348 5,201 etendo.profile.last_stat_tables_srv1 18 15 17,534 0 198 0 0 11,962 2,493 1,542,817 173 1,221 etendo.profile.last_stat_statements_srv1 18 15 20,856 0 332 0 0 15,055 3,093 3,869,316 1,767 18,939 etendo.profile.last_stat_indexes_srv1 18 15 22,705 0 356 0 0 14,857 3,188 2,090,430 50 443 etendo.profile.stmt_list 5 5 1,801 0 96 0 0 1,420 307 1,343,424 172 527 etendo.profile.tables_list 5 5 1,049 0 19 0 0 740 168 333,072 107 1,185 etendo.profile.funcs_list 5 5 479 0 16 0 0 181 44 81,527 25 277 etendo.public.ad_pinstance_para 4 4 1,716 0 610 0 0 1,377 402 1,167,544 69 294 etendo.profile.last_stat_io 4 4 229 0 17 0 0 36 17 18,930 4 51 etendo.profile.indexes_list 3 3 404 0 11 0 0 168 47 98,400 26 305 etendo.profile.last_stat_activity_count_srv1 2 0 45 0 10 0 0 12 5 3,803 0 0 etendo.profile.last_extension_versions 2 2 119 0 10 0 0 11 6 7,259 1 8 etendo.pg_toast.pg_toast_2619 2 2 1,445 0 577 0 0 1,138 359 741,534 77 167 etendo.pg_toast.pg_toast_313021 1 0 315 0 255 0 0 254 3 17,990 0 0 etendo.pg_toast.pg_toast_305793 1 1 335 0 211 0 0 406 114 297,199 51 149 etendo.profile.last_stat_slru 1 1 69 0 4 0 0 6 4 3,773 1 5 etendo.pg_catalog.pg_statistic 1 1 2,139 0 645 0 0 1,733 594 1,701,986 278 3,299 etendo.profile.last_stat_database_srv1 1 1 49 0 6 0 0 7 5 6,141 1 4 Total 210 195 81,352 2,055 3,801 0 0 52,477 11,525 14,357,909 3,150 32,075 Vacuum throughput per table
Key values
- profile.last_stat_indexes_srv1 (0.36) Max CPU elapsed for vacuum on database etendo
- unknown (0 ms) Max I/O read time for vacuum on database etendo
- unknown (0 ms) Max I/O write time for vacuum on database etendo
I/O timing (ms) CPU (s) Table read write elapsed etendo.public.ad_ep_instance_para 0 0 0.05 etendo.profile.last_stat_user_functions_srv1 0 0 0 etendo.profile.last_stat_tables_srv1 0 0 0.18 etendo.profile.last_stat_statements_srv1 0 0 0.3 etendo.profile.last_stat_indexes_srv1 0 0 0.36 etendo.profile.stmt_list 0 0 0.01 etendo.profile.tables_list 0 0 0 etendo.profile.funcs_list 0 0 0 etendo.public.ad_pinstance_para 0 0 0.17 etendo.profile.last_stat_io 0 0 0 etendo.profile.indexes_list 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.profile.last_extension_versions 0 0 0 etendo.pg_toast.pg_toast_2619 0 0 0.19 etendo.pg_toast.pg_toast_313021 0 0 0.07 etendo.pg_toast.pg_toast_305793 0 0 0.06 etendo.profile.last_stat_slru 0 0 0 etendo.pg_catalog.pg_statistic 0 0 0.2 etendo.profile.last_stat_database_srv1 0 0 0 Total 0 0 1.59 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (93147) Main table with removed tuples on database etendo
- 213740 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.profile.last_stat_indexes_srv1 18 15 93,147 73,977 18,663 376 6,455 etendo.profile.last_stat_tables_srv1 18 15 59,520 45,702 11,925 278 5,202 etendo.profile.last_stat_statements_srv1 18 15 41,379 61,483 10,890 482 5,280 etendo.profile.last_stat_user_functions_srv1 18 15 9,058 11,604 1,848 0 665 etendo.public.ad_ep_instance_para 101 101 4,392 75 75 150 15 etendo.public.ad_pinstance_para 4 4 1,809 16,644 0 0 684 etendo.profile.tables_list 5 5 973 6,762 0 0 200 etendo.pg_catalog.pg_statistic 1 1 931 10,691 0 0 836 etendo.pg_toast.pg_toast_2619 2 2 783 4,406 0 0 1,626 etendo.profile.stmt_list 5 5 568 5,718 0 0 506 etendo.profile.funcs_list 5 5 319 1,111 0 0 50 etendo.pg_toast.pg_toast_305793 1 1 270 1,442 0 0 378 etendo.profile.last_stat_io 4 4 193 68 0 0 8 etendo.profile.indexes_list 3 3 170 1,364 0 0 39 etendo.profile.last_extension_versions 2 2 112 16 0 0 2 etendo.profile.last_stat_slru 1 1 55 5 0 0 1 etendo.profile.last_stat_activity_count_srv1 2 0 48 0 0 2 0 etendo.pg_toast.pg_toast_313021 1 0 9 1,055 0 0 253 etendo.profile.last_stat_database_srv1 1 1 4 4 0 0 1 Total 210 195 213,740 242,127 43,401 1,288 22,201 Pages removed per table
Key values
- profile.last_stat_statements_srv1 (482) Main table with removed pages on database etendo
- 1288 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_statements_srv1 18 15 41379 482 etendo.profile.last_stat_indexes_srv1 18 15 93147 376 etendo.profile.last_stat_tables_srv1 18 15 59520 278 etendo.public.ad_ep_instance_para 101 101 4392 150 etendo.profile.last_stat_activity_count_srv1 2 0 48 2 etendo.pg_toast.pg_toast_313021 1 0 9 0 etendo.profile.last_stat_user_functions_srv1 18 15 9058 0 etendo.pg_toast.pg_toast_305793 1 1 270 0 etendo.public.ad_pinstance_para 4 4 1809 0 etendo.profile.stmt_list 5 5 568 0 etendo.profile.tables_list 5 5 973 0 etendo.profile.indexes_list 3 3 170 0 etendo.profile.last_stat_io 4 4 193 0 etendo.profile.last_stat_slru 1 1 55 0 etendo.pg_catalog.pg_statistic 1 1 931 0 etendo.profile.last_stat_database_srv1 1 1 4 0 etendo.profile.last_extension_versions 2 2 112 0 etendo.pg_toast.pg_toast_2619 2 2 783 0 etendo.profile.funcs_list 5 5 319 0 Total 210 195 213,740 1,288 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 16 07 7 11 08 14 23 09 12 30 10 27 46 11 20 43 12 18 38 13 22 21 14 10 13 15 23 51 16 17 36 17 12 26 18 8 11 19 6 13 20 8 9 21 6 12 - 0.20 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 730 Total read queries
- 0 Total write queries
Queries by database
Key values
- etendo Main database
- 730 Requests
- 54m22s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 717 Requests
User Request type Count Duration postgres Total 13 16s383ms select 13 16s383ms tad Total 717 54m6s select 717 54m6s Duration by user
Key values
- 54m6s (tad) Main time consuming user
User Request type Count Duration postgres Total 13 16s383ms select 13 16s383ms tad Total 717 54m6s select 717 54m6s Queries by host
Key values
- 127.0.0.1 Main host
- 672 Requests
- 38m42s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 672 Requests
- 38m42s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-16 12:47:02 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 677 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 50s118ms SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';[ Date: 2026-07-16 20:03:41 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
2 49s516ms SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';[ Date: 2026-07-16 14:04:55 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
3 46s915ms SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';[ Date: 2026-07-16 18:04:20 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
4 46s377ms SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';[ Date: 2026-07-16 16:04:04 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
5 45s316ms SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';[ Date: 2026-07-16 11:05:35 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
6 40s232ms SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';[ Date: 2026-07-16 14:04:31 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
7 39s957ms SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';[ Date: 2026-07-16 18:03:41 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
8 38s467ms SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';[ Date: 2026-07-16 20:03:30 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
9 36s801ms SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';[ Date: 2026-07-16 16:03:35 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
10 35s123ms SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';[ Date: 2026-07-16 11:05:27 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
11 32s509ms SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2026') AND C_INVOICE.DATEINVOICED < to_date('17-07-2026') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;[ Date: 2026-07-16 18:32:46 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 29s994ms SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2025') AND C_INVOICE.DATEINVOICED < to_date('17-07-2025') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;[ Date: 2026-07-16 18:33:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 28s690ms select m_productprice_id, pl.m_pricelist_id, pl.name as "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name as "Price List Version", plv.validfrom as "Valid From", pp.created, pp.createdby, trunc(pp.updated) as "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;[ Date: 2026-07-16 14:04:21 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
14 28s571ms select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;[ Date: 2026-07-16 20:03:20 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
15 24s698ms SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-16 21:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 24s639ms select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;[ Date: 2026-07-16 11:04:41 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
17 24s514ms SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(LINENETAMT) AS AMOUNT, SUM(QTYORDERED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYORDEREDREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, 0 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, to_char('') AS NIVEL11, C_ORDERLINE.LINENETAMT, C_ORDERLINE.QTYORDERED, C_ORDERLINE.QTYORDERED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYORDEREDREF, 0 AS WEIGHTREF, C_UOM.UOMSYMBOL, COALESCE(C_ORDERLINE.C_CURRENCY_ID, C_ORDER.C_CURRENCY_ID) AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID, ( select uomsymbol from c_uom where c_uom_id = aci.c_uom_weight_id) as WSYMBOL FROM C_ORDER left join ad_clientinfo aci on aci.ad_client_id = c_order.ad_client_id left join AD_USER on C_ORDER.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, C_ORDERLINE, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDERLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND C_ORDER.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND C_ORDERLINE.C_UOM_ID = C_UOM.C_UOM_ID AND C_ORDER.AD_ORG_ID = AD_ORG.AD_ORG_ID AND C_ORDER.ISSOTRX = 'Y' AND C_ORDER.PROCESSED = 'Y' AND C_ORDER.DOCSTATUS NOT IN ('CJ', 'UE', 'CA') AND 0 = 0 AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_ORDER.DATEORDERED >= to_date('01-01-2026') AND C_ORDER.DATEORDERED < to_date('17-07-2026')) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11 ORDER BY NIVEL1;[ Date: 2026-07-16 18:06:50 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 24s476ms SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-16 16:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 24s443ms SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-16 18:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 24s61ms SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-16 09:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 9m37s 173 2s927ms 4s724ms 3s336ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and order0_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 08 2 8s12ms 4s6ms 10 30 1m41s 3s385ms 11 20 1m2s 3s109ms 12 34 1m43s 3s52ms 13 16 54s670ms 3s416ms 14 11 34s454ms 3s132ms 15 18 1m6s 3s673ms 16 31 1m51s 3s589ms 17 10 32s128ms 3s212ms 18 1 3s8ms 3s8ms [ User: tad - Total duration: 9m37s - Times executed: 173 ]
[ Application: openbravo - Total duration: 9m37s - Times executed: 173 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:23 Duration: 4s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:54 Duration: 4s346ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:44:57 Duration: 4s143ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 7m44s 182 2s398ms 2s986ms 2s550ms select ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, case when c_bpartner.em_ec_isvalorated = ? then c_bpartner.em_ec_isvalorated else m_inout.em_ec_isvalued end as em_ec_isvalued, ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, contact.name || ?| | coalesce(contact.phone, ?) as contact_info, contact.email as contact_mail, c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ?| | upper(c_country.name) || ? as locationdesc, c_location_description (c_locationdeliv.c_location_id) || ?| | upper(c_countrydel.name) || ? as locationdelivdesc, upper(c_counttrl_del.name) as countrydel, m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, concat(repre.firstname, ?, repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, c_order.documentno as docorder, c_currency.cursymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, row_number() over (order by m_inout.m_inout_id) % ? = ? as row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.delivery_location_id = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id and pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on ? > prlab_num.num where ? = ? and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in (...)) order by m_inout.documentno;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 08 5 12s753ms 2s550ms 09 19 47s831ms 2s517ms 10 26 1m5s 2s509ms 11 18 46s523ms 2s584ms 12 24 1m 2s531ms 13 14 34s852ms 2s489ms 14 2 4s925ms 2s462ms 15 29 1m14s 2s577ms 16 29 1m16s 2s621ms 17 10 25s472ms 2s547ms 18 6 15s63ms 2s510ms [ User: tad - Total duration: 7m44s - Times executed: 182 ]
[ Application: openbravo - Total duration: 7m44s - Times executed: 182 ]
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('16F2119A3001448C8E8E09A885A0E24D')) order by m_inout.documentno;
Date: 2026-07-16 15:21:23 Duration: 2s986ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('88763AAA935A48B38B1F9FF53CF74409')) order by m_inout.documentno;
Date: 2026-07-16 16:03:10 Duration: 2s889ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('092A22232A1E443C87FD7C95936FFA2C')) order by m_inout.documentno;
Date: 2026-07-16 16:03:00 Duration: 2s884ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 5m56s 15 23s141ms 24s698ms 23s755ms select * from ( select c_invoice.c_invoice_id as referencekey_id, ad_column_identifier (?, c_invoice.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, substring(c_invoice.documentno || ? || c_invoiceline.line || ?| | ad_column_identifier_std (?, c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, ?)), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ? || ad_column_identifier_std (?, c_invoiceline.c_tax_id), ?, ?) as description, ? as isactive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = ? and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, ?), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(year from c_invoice.dateinvoiced) >= (extract(year from now())) ?) and c_invoice.ispaid <> ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 07 1 23s547ms 23s547ms 08 1 23s838ms 23s838ms 09 1 24s61ms 24s61ms 10 1 23s141ms 23s141ms 11 1 23s786ms 23s786ms 12 1 23s630ms 23s630ms 13 1 23s958ms 23s958ms 14 1 23s339ms 23s339ms 15 1 23s445ms 23s445ms 16 1 24s476ms 24s476ms 17 1 23s172ms 23s172ms 18 1 24s443ms 24s443ms 19 1 23s404ms 23s404ms 20 1 23s388ms 23s388ms 21 1 24s698ms 24s698ms [ User: tad - Total duration: 5m56s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m56s - Times executed: 15 ]
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 21:01:48 Duration: 24s698ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:01:48 Duration: 24s476ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 18:01:48 Duration: 24s443ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 3m58s 5 45s316ms 50s118ms 47s648ms select ol.c_orderline_id, ol.c_order_id, ol.ad_org_id, ol.isactive, o.issotrx, ol.c_bpartner_id, ol.c_currency_id, ol.m_product_id, ol.m_warehouse_id, p.m_product_category_id, ol.line, ol.dateordered AS "Fecha Pedido", ol.datepromised AS "Fecha Comprometida", ol.datedelivered AS "Fecha Enviada", ol.description AS "Descripción", ol.qtyordered "Cantidad Pedido", ol.qtydelivered "Cantidad Servida", ol.qtyinvoiced "Cantidad Facturada", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ol.discount AS "Descuento", ol.gross_unit_price, ol.grosspricelist, coalesce(m_get_cost (ol.m_product_id, ol.dateordered::timestamp, ?, ol.ad_org_id, ol.ad_client_id, null, ?, ?) * ol.qtyordered, ?) AS "Coste" from c_orderline ol left join c_order o on o.c_order_id = ol.c_order_id left join m_product p on p.m_product_id = ol.m_product_id where ? = ? and o.issotrx = ? and o.dateordered >= ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 11 1 45s316ms 45s316ms 14 1 49s516ms 49s516ms 16 1 46s377ms 46s377ms 18 1 46s915ms 46s915ms 20 1 50s118ms 50s118ms [ User: tad - Total duration: 3m58s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m58s - Times executed: 5 ]
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 20:03:41 Duration: 50s118ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 14:04:55 Duration: 49s516ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 18:04:20 Duration: 46s915ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
5 3m10s 5 35s123ms 40s232ms 38s116ms select ol.c_invoiceline_id, ol.c_invoice_id, ol.ad_org_id, ol.isactive, o.issotrx, o.c_bpartner_id, o.c_currency_id, ol.m_product_id, null m_warehouse_id, p.m_product_category_id, ol.line, o.dateinvoiced AS "Fecha Factura", ol.description AS "Descripción", ol.qtyinvoiced "Cantidad Factura", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ? AS "Descuento", ol.gross_unit_price, ol.grosspricelist, coalesce(m_get_cost (ol.m_product_id, o.dateinvoiced::timestamp, ?, ol.ad_org_id, ol.ad_client_id, null, ?, ?) * ol.qtyinvoiced, ?) AS "Coste", ol.created, ol.c_project_id from c_invoiceline ol left join c_invoice o on o.c_invoice_id = ol.c_invoice_id left join m_product p on p.m_product_id = ol.m_product_id where ? = ? and o.issotrx = ? and o.dateinvoiced >= ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 11 1 35s123ms 35s123ms 14 1 40s232ms 40s232ms 16 1 36s801ms 36s801ms 18 1 39s957ms 39s957ms 20 1 38s467ms 38s467ms [ User: tad - Total duration: 3m10s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m10s - Times executed: 5 ]
-
SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';
Date: 2026-07-16 14:04:31 Duration: 40s232ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';
Date: 2026-07-16 18:03:41 Duration: 39s957ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';
Date: 2026-07-16 20:03:30 Duration: 38s467ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
6 1m58s 29 3s543ms 11s733ms 4s78ms select pruti_stoc0_.pruti_stock_detail_v_id as pruti_st1_943_0_, pruti_stoc0_.ad_client_id as ad_clien2_943_0_, pruti_stoc0_.ad_org_id as ad_org_i3_943_0_, pruti_stoc0_.isactive as isactive4_943_0_, pruti_stoc0_.created as created5_943_0_, pruti_stoc0_.createdby as createdb6_943_0_, pruti_stoc0_.updated as updated7_943_0_, pruti_stoc0_.updatedby as updatedb8_943_0_, pruti_stoc0_.type as type9_943_0_, pruti_stoc0_.m_product_id as m_produ10_943_0_, pruti_stoc0_.qty as qty11_943_0_, pruti_stoc0_.m_attributesetinstance_id as m_attri12_943_0_, pruti_stoc0_.m_locator_id as m_locat13_943_0_, pruti_stoc0_.m_warehouse_id as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.pruti_stock_detail_v_id = ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 07 2 15s454ms 7s727ms 10 2 7s537ms 3s768ms 11 2 7s502ms 3s751ms 12 4 14s880ms 3s720ms 13 2 7s409ms 3s704ms 14 1 3s640ms 3s640ms 15 14 54s406ms 3s886ms 16 2 7s459ms 3s729ms [ User: tad - Total duration: 1m58s - Times executed: 29 ]
[ Application: openbravo - Total duration: 1m58s - Times executed: 29 ]
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'F9C18EEEA964498CB6FD59A7604A19230928AC21B14E24C3C9ED358EBE6E9BD5Bpendingsales';
Date: 2026-07-16 07:12:34 Duration: 11s733ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'DC569151E0E049B082D267BB83F6FAFB04050A3176DE744FCA19943E0F0F77F07availablestock';
Date: 2026-07-16 15:06:05 Duration: 4s332ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'B27FFC00032D4C6E83C0FFD8B8ACCC6309E0C45E0541349DE8657E865B675B866availablestock';
Date: 2026-07-16 15:45:01 Duration: 4s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 1m52s 5 15s429ms 28s690ms 22s591ms select m_productprice_id, pl.m_pricelist_id, pl.name AS "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name AS "Price List Version", plv.validfrom AS "Valid From", pp.created, pp.createdby, trunc(pp.updated) AS "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 11 1 22s687ms 22s687ms 14 1 28s690ms 28s690ms 16 1 22s352ms 22s352ms 18 1 23s798ms 23s798ms 20 1 15s429ms 15s429ms [ User: tad - Total duration: 1m52s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m52s - Times executed: 5 ]
-
select m_productprice_id, pl.m_pricelist_id, pl.name as "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name as "Price List Version", plv.validfrom as "Valid From", pp.created, pp.createdby, trunc(pp.updated) as "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;
Date: 2026-07-16 14:04:21 Duration: 28s690ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select m_productprice_id, pl.m_pricelist_id, pl.name as "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name as "Price List Version", plv.validfrom as "Valid From", pp.created, pp.createdby, trunc(pp.updated) as "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;
Date: 2026-07-16 18:03:26 Duration: 23s798ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select m_productprice_id, pl.m_pricelist_id, pl.name as "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name as "Price List Version", plv.validfrom as "Valid From", pp.created, pp.createdby, trunc(pp.updated) as "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;
Date: 2026-07-16 11:04:42 Duration: 22s687ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
8 1m38s 5 16s964ms 23s428ms 19s739ms select "_"."c_orderline_id" AS "c_orderline_id", "_"."c_order_id" AS "c_order_id", "_"."ad_org_id" AS "ad_org_id", "_"."isactive" AS "isactive", "_"."issotrx" AS "issotrx", "_"."c_bpartner_id" AS "c_bpartner_id", "_"."c_currency_id" AS "c_currency_id", "_"."m_product_id" AS "m_product_id", "_"."m_warehouse_id" AS "m_warehouse_id", "_"."line" AS "line", cast("_"."Fecha Pedido" as date) AS "Fecha Pedido", cast("_"."Fecha Comprometida" as date) AS "Fecha Comprometida", cast("_"."Fecha Enviada" as date) AS "Fecha Enviada", "_"."Descripción" AS "Descripción", "_"."Cantidad Pedido" AS "Cantidad Pedido", "_"."Precio Lista" AS "Precio Lista", "_"."Precio Actual" AS "Precio Actual", "_"."Precio Limite" AS "Precio Limite", "_"."Importe Linea" AS "Importe Linea", "_"."Descuento" AS "Descuento", "_"."Cantidad Recibida" AS "Cantidad Recibida", cast("_"."Fecha Recepción" as date) AS "Fecha Recepción" from ( select ol.c_orderline_id, ol.c_order_id, ol.ad_org_id, ol.isactive, o.issotrx, ol.c_bpartner_id, ol.c_currency_id, ol.m_product_id, ol.m_warehouse_id, ol.line, ol.dateordered AS "Fecha Pedido", ol.datepromised AS "Fecha Comprometida", ol.datedelivered AS "Fecha Enviada", ol.description AS "Descripción", ol.qtyordered "Cantidad Pedido", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ol.discount AS "Descuento", ( select sum(movementqty) from m_inoutline iol where iol.c_orderline_id = ol.c_orderline_id) AS "Cantidad Recibida", ( select max(movementdate) from m_inoutline iol inner join m_inout io on io.m_inout_id = iol.m_inout_id where iol.c_orderline_id = ol.c_orderline_id) AS "Fecha Recepción" from c_orderline ol left join c_order o on o.c_order_id = ol.c_order_id where o.issotrx <> ?) "_";Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 11 1 19s549ms 19s549ms 14 1 23s428ms 23s428ms 16 1 16s964ms 16s964ms 18 1 21s728ms 21s728ms 20 1 17s28ms 17s28ms [ User: tad - Total duration: 1m38s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m38s - Times executed: 5 ]
-
select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Fecha Pedido", cast("_"."Fecha Comprometida" as date) as "Fecha Comprometida", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Descripción", "_"."Cantidad Pedido" as "Cantidad Pedido", "_"."Precio Lista" as "Precio Lista", "_"."Precio Actual" as "Precio Actual", "_"."Precio Limite" as "Precio Limite", "_"."Importe Linea" as "Importe Linea", "_"."Descuento" as "Descuento", "_"."Cantidad Recibida" as "Cantidad Recibida", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", ( SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida", ( SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 14:04:17 Duration: 23s428ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Fecha Pedido", cast("_"."Fecha Comprometida" as date) as "Fecha Comprometida", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Descripción", "_"."Cantidad Pedido" as "Cantidad Pedido", "_"."Precio Lista" as "Precio Lista", "_"."Precio Actual" as "Precio Actual", "_"."Precio Limite" as "Precio Limite", "_"."Importe Linea" as "Importe Linea", "_"."Descuento" as "Descuento", "_"."Cantidad Recibida" as "Cantidad Recibida", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", ( SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida", ( SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 18:03:23 Duration: 21s728ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Fecha Pedido", cast("_"."Fecha Comprometida" as date) as "Fecha Comprometida", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Descripción", "_"."Cantidad Pedido" as "Cantidad Pedido", "_"."Precio Lista" as "Precio Lista", "_"."Precio Actual" as "Precio Actual", "_"."Precio Limite" as "Precio Limite", "_"."Importe Linea" as "Importe Linea", "_"."Descuento" as "Descuento", "_"."Cantidad Recibida" as "Cantidad Recibida", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", ( SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida", ( SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 11:04:38 Duration: 19s549ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
9 1m35s 5 7s846ms 28s571ms 19s23ms select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( select o.c_order_id, o.ad_org_id, o.isactive, o.issotrx, o.m_pricelist_id, o.documentno AS "Documento", o.docstatus AS "Estado Pedido", o.docaction AS "Accion Pedido", o.processed AS "Procesado", dt.name AS "Tipo Documento", o.description AS "Descripción", o.dateordered AS "Fecha Pedido", o.datepromised AS "Fecha Comprometida", o.c_bpartner_id, o.poreference "Referencia Pedido", o.c_currency_id, cu.iso_code "Currency ISO", o.m_warehouse_id, cl.city AS "Ciudad", cl.postal AS "Codigo Postal", cc."name" AS "Pais", cr."name" AS "Region", us.name AS "Vendedor", mw."name" AS "Delegacion" from c_order o left join c_doctype dt on dt.c_doctype_id = o.c_doctype_id inner join c_currency cu on cu.c_currency_id = o.c_currency_id left join c_bpartner_location cbl on cbl.c_bpartner_location_id = o.c_bpartner_location_id left join c_location cl on cl.c_location_id = cbl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id left join c_region cr on cr.c_region_id = cl.c_region_id left join ad_user us on us.ad_user_id = o.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id where ? = ? and o.issotrx = ?) "_" order by "_"."Fecha Pedido" desc;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 11 1 24s639ms 24s639ms 14 1 12s269ms 12s269ms 16 1 21s790ms 21s790ms 18 1 7s846ms 7s846ms 20 1 28s571ms 28s571ms [ User: tad - Total duration: 1m35s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m35s - Times executed: 5 ]
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 20:03:20 Duration: 28s571ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 11:04:41 Duration: 24s639ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 16:03:10 Duration: 21s790ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
10 1m29s 27 3s104ms 3s563ms 3s296ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_prsii_clave_tipo as em_prsi42_224_0_, documentty4_.em_etvfac_external_ref as em_etvf43_224_0_, documentty4_.em_prsii_clave_tipo_fc as em_prsi44_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf45_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf46_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf47_224_0_, documentty4_.em_etsg_isrectificative as em_etsg48_224_0_, documentty4_.em_prsii_motivo_rectif as em_prsi49_224_0_, documentty4_.em_prsii_tipo_rectif as em_prsi50_224_0_, documentty4_.em_pruti_inforeport2 as em_prut51_224_0_, documentty4_.em_pruti_inforeport as em_prut52_224_0_, documentty4_.em_prsii_forzar_clave_tipo as em_prsi53_224_0_, documentty4_.em_pruti_inforeport3 as em_prut54_224_0_, documentty4_.em_pruti_image_id as em_prut55_224_0_, documentty4_.em_pruti_image2_id as em_prut56_224_0_, documentty4_.em_pruti_email as em_prut57_224_0_, documentty4_.em_pruti_url as em_prut58_224_0_, documentty4_.em_pruti_phone as em_prut59_224_0_, documentty4_.em_pruti_phone2 as em_prut60_224_0_, documentty4_.em_pruti_fax as em_prut61_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.em_ec_isbillingcontact as em_ec_i40_129_1_, aduser5_.em_prapp_username as em_prap41_129_1_, aduser5_.lastpasswordupdate as lastpas42_129_1_, aduser5_.em_prapp_password as em_prap43_129_1_, aduser5_.isexpiredpassword as isexpir44_129_1_, aduser5_.commercialauth as commerc45_129_1_, aduser5_.em_prapp_mail1 as em_prap46_129_1_, aduser5_.em_prapp_mail2 as em_prap47_129_1_, aduser5_.viasms as viasms48_129_1_, aduser5_.em_prapp_platform as em_prap49_129_1_, aduser5_.viaemail as viaemai50_129_1_, aduser5_.em_prapp_uuid as em_prap51_129_1_, aduser5_.em_prapp_token as em_prap52_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut53_129_1_, aduser5_.em_pruti_isordercontact as em_prut54_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs55_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut56_129_1_, aduser5_.em_ec_ispurchorder as em_ec_i57_129_1_, aduser5_.isdefaultfordocs as isdefau58_129_1_, aduser5_.em_etas_bad_password_attempts as em_etas59_129_1_, aduser5_.em_etas_enable_mult_session as em_etas60_129_1_, aduser5_.em_etas_issecure_pw as em_etas61_129_1_, aduser5_.em_prpres_prestashop_id as em_prpr62_129_1_, aduser5_.em_etas_isused_pw as em_etas63_129_1_, aduser5_.em_prpres_gender as em_prpr64_129_1_, aduser5_.em_etas_isnewuser as em_etas65_129_1_, aduser5_.em_prpres_newsletter as em_prpr66_129_1_, aduser5_.em_prpres_password as em_prpr67_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut68_129_1_, aduser5_.em_prpres_not_upload as em_prpr69_129_1_, aduser5_.em_prpres_created_from_ps as em_prpr70_129_1_, aduser5_.em_primpa_iscontact as em_prim71_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.em_ec_isbillingcontact as em_ec_i40_129_2_, aduser6_.em_prapp_username as em_prap41_129_2_, aduser6_.lastpasswordupdate as lastpas42_129_2_, aduser6_.em_prapp_password as em_prap43_129_2_, aduser6_.isexpiredpassword as isexpir44_129_2_, aduser6_.commercialauth as commerc45_129_2_, aduser6_.em_prapp_mail1 as em_prap46_129_2_, aduser6_.em_prapp_mail2 as em_prap47_129_2_, aduser6_.viasms as viasms48_129_2_, aduser6_.em_prapp_platform as em_prap49_129_2_, aduser6_.viaemail as viaemai50_129_2_, aduser6_.em_prapp_uuid as em_prap51_129_2_, aduser6_.em_prapp_token as em_prap52_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut53_129_2_, aduser6_.em_pruti_isordercontact as em_prut54_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs55_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut56_129_2_, aduser6_.em_ec_ispurchorder as em_ec_i57_129_2_, aduser6_.isdefaultfordocs as isdefau58_129_2_, aduser6_.em_etas_bad_password_attempts as em_etas59_129_2_, aduser6_.em_etas_enable_mult_session as em_etas60_129_2_, aduser6_.em_etas_issecure_pw as em_etas61_129_2_, aduser6_.em_prpres_prestashop_id as em_prpr62_129_2_, aduser6_.em_etas_isused_pw as em_etas63_129_2_, aduser6_.em_prpres_gender as em_prpr64_129_2_, aduser6_.em_etas_isnewuser as em_etas65_129_2_, aduser6_.em_prpres_newsletter as em_prpr66_129_2_, aduser6_.em_prpres_password as em_prpr67_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut68_129_2_, aduser6_.em_prpres_not_upload as em_prpr69_129_2_, aduser6_.em_prpres_created_from_ps as em_prpr70_129_2_, aduser6_.em_primpa_iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 10 2 6s411ms 3s205ms 12 4 12s990ms 3s247ms 13 7 22s885ms 3s269ms 17 6 19s838ms 3s306ms 18 8 26s878ms 3s359ms [ User: tad - Total duration: 1m29s - Times executed: 27 ]
[ Application: openbravo - Total duration: 1m29s - Times executed: 27 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 18:11:24 Duration: 3s563ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 18:01:18 Duration: 3s540ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 13:01:05 Duration: 3s467ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1m24s 5 6s193ms 23s726ms 16s993ms select o.c_invoice_id, o.ad_org_id, o.isactive, o.issotrx, o.m_pricelist_id, o.documentno AS "Documento", o.docstatus AS "Estado Pedido", o.docaction AS "Accion Pedido", o.processed AS "Procesado", dt.name AS "Tipo Documento", o.description AS "Descripción", o.dateordered AS "Fecha Pedido", o.c_bpartner_id, o.poreference "Referencia Proveedor", o.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city AS "Ciudad", cl.postal AS "Codigo Postal", cc."name" AS "Pais", cr."name" AS "Region", us.name AS "Vendedor", case when o.totallines < ? then ? else ? end AS "Devolución", coalesce(ca.name, ?) AS "Temporada" from c_invoice o left join c_doctype dt on dt.c_doctype_id = o.c_doctype_id inner join c_currency cu on cu.c_currency_id = o.c_currency_id left join c_bpartner_location cbl on cbl.c_bpartner_location_id = o.c_bpartner_location_id left join c_location cl on cl.c_location_id = cbl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id left join c_region cr on cr.c_region_id = cl.c_region_id left join ad_user us on us.ad_user_id = o.salesrep_id left join c_campaign ca on ca.c_campaign_id = o.c_campaign_id where ? = ? and o.issotrx = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 11 1 19s479ms 19s479ms 14 1 23s726ms 23s726ms 16 1 6s193ms 6s193ms 18 1 13s232ms 13s232ms 20 1 22s333ms 22s333ms [ User: tad - Total duration: 1m24s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m24s - Times executed: 5 ]
-
SELECT O.c_invoice_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", case when O.totallines < 0 then 'Si' else 'No' end as "Devolución", coalesce(ca.name, 'n-a') as "Temporada" FROM c_invoice O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join c_campaign ca on ca.c_campaign_id = O.c_campaign_id WHERE 1 = 1 AND O.issotrx = 'Y';
Date: 2026-07-16 14:04:15 Duration: 23s726ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT O.c_invoice_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", case when O.totallines < 0 then 'Si' else 'No' end as "Devolución", coalesce(ca.name, 'n-a') as "Temporada" FROM c_invoice O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join c_campaign ca on ca.c_campaign_id = O.c_campaign_id WHERE 1 = 1 AND O.issotrx = 'Y';
Date: 2026-07-16 20:03:12 Duration: 22s333ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT O.c_invoice_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", case when O.totallines < 0 then 'Si' else 'No' end as "Devolución", coalesce(ca.name, 'n-a') as "Temporada" FROM c_invoice O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join c_campaign ca on ca.c_campaign_id = O.c_campaign_id WHERE 1 = 1 AND O.issotrx = 'Y';
Date: 2026-07-16 11:04:36 Duration: 19s479ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
12 1m20s 6 3s994ms 32s509ms 13s349ms select b.* from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum( cost) as cost, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, case when sum(costcalculated) = ? then sum(convcost) when sum(groupcount) <> sum(costcalculated) then sum(convcost) when sum(costedamt) = ? and sum(convcost) > ? then sum(convcost) when sum( case when groupcount = costcalculated then ? else convamount end) = ? then sum(convcost) else sum(convcost) * sum(convamount) / sum( case when groupcount = costcalculated then ? else convamount end) end as convcost, sum(convamountref) as convamountref, sum(convcostref) as convcostref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, sum(zz.costcalculated) as costcalculated from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(linenetamt) as amount, sum(qtyinvoiced) as qty, sum(weight) as weight, sum( cost) as cost, sum(linenetref) as amountref, sum(qtyinvoicedref) as qtyref, sum(weight_ref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, case when sum(costcalculated) >= ? then sum( cost) when sum(costedamt) = ? and sum( cost) > ? then sum( cost) else sum( cost) * sum(linenetamt) / sum(costedamt) end as convcost, ? as convamountref, ? as convcostref, trcurrencyid, trdate, trclientid, trorgid, sum(aa.costcalculated) as costcalculated, c_currency_convert (sum(costedamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as costedamt, count(*) as groupcount from ( select to_char(ad_column_identifier (to_char(?), to_char(c_bpartner.c_bpartner_id), to_char(?))) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end as linenetamt, case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * - ? else c_invoiceline.qtyinvoiced end as qtyinvoiced, c_invoiceline.qtyinvoiced * m_product.weight as weight, ? as linenetref, ? as qtyinvoicedref, ? as weight_ref, c_uom.uomsymbol, c_invoice.c_currency_id as trcurrencyid, to_date(coalesce(c_invoice.dateinvoiced, now())) as trdate, c_invoiceline.ad_client_id as trclientid, c_invoiceline.ad_org_id as trorgid, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else ? end as costcalculated, case when m_product.isstocked = ? and m_product.producttype = ? then case when c_invoiceline.m_inoutline_id is null then coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) when trx.movementqty = ? then ? else case when c_doctype.docbasetype = ? then ? * coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) else coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) end end else coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) end as cost, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end end as costedamt from c_invoiceline join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id join c_bpartner on c_invoice.c_bpartner_id = c_bpartner.c_bpartner_id join c_bp_group on c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id join ad_org on c_invoice.ad_org_id = ad_org.ad_org_id left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id left join ad_user on c_invoice.salesrep_id = ad_user.ad_user_id left join c_project on c_invoice.c_project_id = c_project.c_project_id left join c_doctype on c_invoice.c_doctype_id = c_doctype.c_doctype_id left join m_product on c_invoiceline.m_product_id = m_product.m_product_id left join c_uom on c_invoiceline.c_uom_id = c_uom.c_uom_id left join m_product_category on m_product.m_product_category_id = m_product_category.m_product_category_id left join m_inoutline on c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id left join m_transaction trx on trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( select m_transaction_id, sum( cost) as total_cost, max(c_currency_id) as c_currency_id from m_transaction_cost group by m_transaction_id) trxcost on trx.m_transaction_id = trxcost.m_transaction_id where c_invoice.issotrx = ? and c_invoice.processed = ? and c_invoice.ad_org_id in (...) and c_invoice.ad_client_id in (...) and ? = ? and c_invoice.dateinvoiced >= to_date(?) and c_invoice.dateinvoiced < to_date(?) group by trxcost.m_transaction_id, c_invoiceline.c_invoiceline_id, c_bpartner.c_bpartner_id, m_product_category.name, c_invoice.documentno, ad_org.name, ad_user.ad_user_id, c_project.name, ad_user.firstname, ad_user.lastname, c_bp_group.name, m_inout.c_bpartner_location_id, c_invoiceline.ad_client_id, c_invoiceline.ad_org_id, c_invoiceline.linenetamt, c_invoiceline.qtyinvoiced, c_uom.uomsymbol, c_doctype.docbasetype, ad_org.ad_org_id, c_invoice.c_currency_id, c_invoice.dateinvoiced, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, m_product.weight, m_product.m_product_id, m_product.isstocked, m_product.producttype, c_invoiceline.m_inoutline_id order by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10 order by nivel1) b limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 16 09 1 5s549ms 5s549ms 14 3 12s44ms 4s14ms 18 2 1m2s 31s251ms [ User: tad - Total duration: 1m20s - Times executed: 6 ]
[ Application: openbravo - Total duration: 1m20s - Times executed: 6 ]
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2026') AND C_INVOICE.DATEINVOICED < to_date('17-07-2026') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 18:32:46 Duration: 32s509ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2025') AND C_INVOICE.DATEINVOICED < to_date('17-07-2025') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 18:33:44 Duration: 29s994ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('15-07-2026') AND C_INVOICE.DATEINVOICED < to_date('16-07-2026') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 09:23:27 Duration: 5s549ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 1m13s 9 7s725ms 8s902ms 8s196ms select id, c_order_id, documentno, dateordered, c_bpartner_id, partner_name, product_value, product_id, product_name, description, attributeid, total_qty, qtyordered, mlocatorid, mlocatorname, orderlineid, qtypending, isactive, ? as date_format, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = ? where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, ?)), ?) as uomsymbol, conversionrate, c_aum as alternativeuom from ( select c_orderline.c_orderline_id as id, c_order.c_order_id as c_order_id, c_order.documentno || ? || to_char(c_order.dateordered, ?) || ? || to_char(c_order.datepromised, ?) as documentno, c_order.dateordered as dateordered, c_bpartner.c_bpartner_id as c_bpartner_id, c_bpartner.name || ? || c_bpartner.name2 as partner_name, c_orderline.m_product_id as product_id, ad_column_identifier (to_char(?), to_char(c_orderline.m_product_id), to_char(?)) as product_name, ( select value from m_product where m_product_id = c_orderline.m_product_id) as product_value, m_attributesetinstance.description as description, m_attributesetinstance.m_attributesetinstance_id as attributeid, coalesce(c_orderline.aumqty, c_orderline.qtyordered) as total_qty, coalesce(c_orderline.aumqty, c_orderline.qtyordered) - round((sum(coalesce(m_matchpo.qty, ?)) * round((coalesce(c_orderline.aumqty, c_orderline.qtyordered) / c_orderline.qtyordered), ?)), ?) as qtypending, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then (c_orderline.qtyordered - sum(coalesce(m_matchpo.qty, ?))) else ? end as qtyordered, ? as isactive, c_orderline.line, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorid, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorname, c_orderline.c_orderline_id as orderlineid, null as c_aum, c_orderline.c_uom_id, ? as conversionrate from c_orderline left join m_matchpo on c_orderline.c_orderline_id = m_matchpo.c_orderline_id and m_matchpo.m_inoutline_id is not null left join m_attributesetinstance on c_orderline.m_attributesetinstance_id = m_attributesetinstance.m_attributesetinstance_id, c_order, c_bpartner, c_doctype where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_orderline.qtyordered != ? and c_order.c_order_id = c_orderline.c_order_id and c_order.ad_client_id in (...) and c_order.ad_org_id in (...) and c_order.issotrx = ? and c_order.documentno like ? and c_order.docstatus = ? and c_order.c_doctype_id = c_doctype.c_doctype_id and c_doctype.isreturn = ? group by c_orderline.c_orderline_id, c_order.c_order_id, c_order.documentno, c_order.dateordered, c_bpartner.c_bpartner_id, c_bpartner.name, c_bpartner.name2, c_orderline.m_product_id, m_attributesetinstance.description, m_attributesetinstance.m_attributesetinstance_id, c_orderline.qtyordered, c_orderline.line) a where ( case when total_qty < ? then ? else ? end) = ( case when qtypending < ? then ? else ? end) and qtypending <> ? order by c_bpartner_id, documentno, line;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 16 09 3 24s139ms 8s46ms 10 1 8s141ms 8s141ms 11 1 7s969ms 7s969ms 15 2 16s57ms 8s28ms 16 2 17s462ms 8s731ms [ User: tad - Total duration: 1m13s - Times executed: 9 ]
[ Application: openbravo - Total duration: 1m13s - Times executed: 9 ]
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:10:09 Duration: 8s902ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:04:53 Duration: 8s560ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 15:44:28 Duration: 8s332ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 57s615ms 5 10s625ms 12s726ms 11s523ms select w.name AS "Almacén", l.value AS "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, ?, sd.ad_org_id, sd.ad_client_id, null, ?, ?), ?), ?), ?) AS "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 11 1 12s726ms 12s726ms 14 1 10s625ms 10s625ms 16 1 10s979ms 10s979ms 18 1 12s316ms 12s316ms 20 1 10s969ms 10s969ms [ User: tad - Total duration: 57s615ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 57s615ms - Times executed: 5 ]
-
select w.name as "Almacén", l.value as "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, 'AVA', sd.ad_org_id, sd.ad_client_id, null, '102', '102'), 0), 0), 2) as "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;
Date: 2026-07-16 11:04:44 Duration: 12s726ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select w.name as "Almacén", l.value as "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, 'AVA', sd.ad_org_id, sd.ad_client_id, null, '102', '102'), 0), 0), 2) as "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;
Date: 2026-07-16 18:03:14 Duration: 12s316ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select w.name as "Almacén", l.value as "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, 'AVA', sd.ad_org_id, sd.ad_client_id, null, '102', '102'), 0), 0), 2) as "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;
Date: 2026-07-16 16:02:58 Duration: 10s979ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
15 46s514ms 2 21s999ms 24s514ms 23s257ms select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, sum(convamountref) as convamountref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, min(wsymbol) as wsymbol from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11, sum(linenetamt) as amount, sum(qtyordered) as qty, sum(weight) as weight, sum(linenetref) as amountref, sum(qtyorderedref) as qtyref, sum(weightref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, ? as convamountref, trcurrencyid, trdate, trclientid, trorgid, min(wsymbol) as wsymbol from ( select to_char(ad_column_identifier (to_char(?), to_char(c_bpartner.c_bpartner_id), to_char(?))) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, to_char(?) as nivel11, c_orderline.linenetamt, c_orderline.qtyordered, c_orderline.qtyordered * m_product.weight as weight, ? as linenetref, ? as qtyorderedref, ? as weightref, c_uom.uomsymbol, coalesce(c_orderline.c_currency_id, c_order.c_currency_id) as trcurrencyid, to_date(coalesce(c_order.dateordered, now())) as trdate, c_orderline.ad_client_id as trclientid, c_orderline.ad_org_id as trorgid, ( select uomsymbol from c_uom where c_uom_id = aci.c_uom_weight_id) as wsymbol from c_order left join ad_clientinfo aci on aci.ad_client_id = c_order.ad_client_id left join ad_user on c_order.salesrep_id = ad_user.ad_user_id, c_bpartner left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id, c_bp_group, c_orderline, m_product, m_product_category, m_warehouse, c_uom, ad_org where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id and c_order.c_order_id = c_orderline.c_order_id and c_orderline.m_product_id = m_product.m_product_id and m_product.m_product_category_id = m_product_category.m_product_category_id and c_order.m_warehouse_id = m_warehouse.m_warehouse_id and c_orderline.c_uom_id = c_uom.c_uom_id and c_order.ad_org_id = ad_org.ad_org_id and c_order.issotrx = ? and c_order.processed = ? and c_order.docstatus not in (...) and ? = ? and c_order.ad_org_id in (...) and c_order.ad_client_id in (...) and ? = ? and c_order.dateordered >= to_date(?) and c_order.dateordered < to_date(?)) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11 order by nivel1;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 16 18 2 46s514ms 23s257ms [ User: tad - Total duration: 46s514ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 46s514ms - Times executed: 2 ]
-
SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(LINENETAMT) AS AMOUNT, SUM(QTYORDERED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYORDEREDREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, 0 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, to_char('') AS NIVEL11, C_ORDERLINE.LINENETAMT, C_ORDERLINE.QTYORDERED, C_ORDERLINE.QTYORDERED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYORDEREDREF, 0 AS WEIGHTREF, C_UOM.UOMSYMBOL, COALESCE(C_ORDERLINE.C_CURRENCY_ID, C_ORDER.C_CURRENCY_ID) AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID, ( select uomsymbol from c_uom where c_uom_id = aci.c_uom_weight_id) as WSYMBOL FROM C_ORDER left join ad_clientinfo aci on aci.ad_client_id = c_order.ad_client_id left join AD_USER on C_ORDER.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, C_ORDERLINE, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDERLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND C_ORDER.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND C_ORDERLINE.C_UOM_ID = C_UOM.C_UOM_ID AND C_ORDER.AD_ORG_ID = AD_ORG.AD_ORG_ID AND C_ORDER.ISSOTRX = 'Y' AND C_ORDER.PROCESSED = 'Y' AND C_ORDER.DOCSTATUS NOT IN ('CJ', 'UE', 'CA') AND 0 = 0 AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_ORDER.DATEORDERED >= to_date('01-01-2026') AND C_ORDER.DATEORDERED < to_date('17-07-2026')) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11 ORDER BY NIVEL1;
Date: 2026-07-16 18:06:50 Duration: 24s514ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(LINENETAMT) AS AMOUNT, SUM(QTYORDERED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYORDEREDREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, 0 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, to_char('') AS NIVEL11, C_ORDERLINE.LINENETAMT, C_ORDERLINE.QTYORDERED, C_ORDERLINE.QTYORDERED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYORDEREDREF, 0 AS WEIGHTREF, C_UOM.UOMSYMBOL, COALESCE(C_ORDERLINE.C_CURRENCY_ID, C_ORDER.C_CURRENCY_ID) AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID, ( select uomsymbol from c_uom where c_uom_id = aci.c_uom_weight_id) as WSYMBOL FROM C_ORDER left join ad_clientinfo aci on aci.ad_client_id = c_order.ad_client_id left join AD_USER on C_ORDER.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, C_ORDERLINE, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDERLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND C_ORDER.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND C_ORDERLINE.C_UOM_ID = C_UOM.C_UOM_ID AND C_ORDER.AD_ORG_ID = AD_ORG.AD_ORG_ID AND C_ORDER.ISSOTRX = 'Y' AND C_ORDER.PROCESSED = 'Y' AND C_ORDER.DOCSTATUS NOT IN ('CJ', 'UE', 'CA') AND 0 = 0 AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_ORDER.DATEORDERED >= to_date('01-01-2025') AND C_ORDER.DATEORDERED < to_date('17-07-2025')) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11 ORDER BY NIVEL1;
Date: 2026-07-16 18:07:32 Duration: 21s999ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 36s696ms 4 9s80ms 9s275ms 9s174ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.documentno desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 10 4 36s696ms 9s174ms [ User: tad - Total duration: 36s696ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 36s696ms - Times executed: 4 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DocumentNo desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 10:37:32 Duration: 9s275ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DocumentNo desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 10:43:55 Duration: 9s171ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DocumentNo desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 10:43:54 Duration: 9s168ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 32s778ms 4 7s966ms 8s570ms 8s194ms select sum(order0_.grandtotal) as col_0_0_, sum(order0_.totallines) as col_1_0_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 10 4 32s778ms 8s194ms [ User: tad - Total duration: 32s778ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 32s778ms - Times executed: 4 ]
-
select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.TotalLines) as col_1_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 10:37:31 Duration: 8s570ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.TotalLines) as col_1_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 10:37:40 Duration: 8s259ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.TotalLines) as col_1_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 10:44:03 Duration: 7s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 31s343ms 4 7s635ms 8s28ms 7s835ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 16 09 2 15s663ms 7s831ms 16 1 7s868ms 7s868ms 17 1 7s810ms 7s810ms [ User: tad - Total duration: 31s343ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 31s343ms - Times executed: 4 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 09:15:56 Duration: 8s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:22:32 Duration: 7s868ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 17:24:31 Duration: 7s810ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 29s954ms 15 1s691ms 3s863ms 1s996ms select * from ( select cin.c_invoice_id as referencekey_id, ad_column_identifier (?, cin.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ad_column_identifier (?, cin.c_invoice_id, ?) || ?| | cin.totallines || ?| | sum(cil.linenetamt) as description, ? as isactive, cin.ad_org_id, cin.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice cin left join c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id inner join c_bpartner on cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines order by cin.documentno) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 16 07 1 1s713ms 1s713ms 08 1 1s722ms 1s722ms 09 1 1s781ms 1s781ms 10 1 1s998ms 1s998ms 11 1 1s786ms 1s786ms 12 1 2s256ms 2s256ms 13 1 3s863ms 3s863ms 14 1 1s747ms 1s747ms 15 1 1s817ms 1s817ms 16 1 2s81ms 2s81ms 17 1 2s82ms 2s82ms 18 1 1s775ms 1s775ms 19 1 1s721ms 1s721ms 20 1 1s691ms 1s691ms 21 1 1s914ms 1s914ms [ User: tad - Total duration: 29s954ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 29s954ms - Times executed: 15 ]
-
SELECT * FROM ( SELECT cin.c_invoice_id as referencekey_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') || ' no ha calculado correctamente el total ' || cin.totallines || ' / ' || SUM(cil.linenetamt) AS description, 'Y' AS isActive, cin.ad_org_id, cin.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoice cin LEFT JOIN c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id INNER JOIN c_bpartner ON cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines ORDER BY cin.documentno) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '172789B2006D4F65AB38F32C1B261358' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 13:01:53 Duration: 3s863ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT cin.c_invoice_id as referencekey_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') || ' no ha calculado correctamente el total ' || cin.totallines || ' / ' || SUM(cil.linenetamt) AS description, 'Y' AS isActive, cin.ad_org_id, cin.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoice cin LEFT JOIN c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id INNER JOIN c_bpartner ON cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines ORDER BY cin.documentno) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '172789B2006D4F65AB38F32C1B261358' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 12:01:51 Duration: 2s256ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT cin.c_invoice_id as referencekey_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') || ' no ha calculado correctamente el total ' || cin.totallines || ' / ' || SUM(cil.linenetamt) AS description, 'Y' AS isActive, cin.ad_org_id, cin.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoice cin LEFT JOIN c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id INNER JOIN c_bpartner ON cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines ORDER BY cin.documentno) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '172789B2006D4F65AB38F32C1B261358' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 17:01:50 Duration: 2s82ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 29s947ms 5 4s213ms 8s312ms 5s989ms select "_"."c_order_id" AS "c_order_id", "_"."ad_org_id" AS "ad_org_id", "_"."isactive" AS "isactive", "_"."issotrx" AS "issotrx", "_"."Documento" AS "Documento", "_"."Estado Pedido" AS "Estado Pedido", "_"."Accion Pedido" AS "Accion Pedido", "_"."Procesado" AS "Procesado", "_"."Tipo Documento" AS "Tipo Documento", "_"."Descripción" AS "Descripción", "_"."Fecha Pedido" AS "Fecha Pedido", "_"."Fecha Comprometida" AS "Fecha Comprometida", "_"."c_bpartner_id" AS "c_bpartner_id", "_"."Referencia Proveedor" AS "Referencia Proveedor", "_"."c_currency_id" AS "c_currency_id", "_"."Currency ISO" AS "Currency ISO", "_"."m_warehouse_id" AS "m_warehouse_id", cast("_"."Fecha Pedido" as date) AS "t0_0", cast("_"."Fecha Comprometida" as date) AS "t1_0" from ( select o.c_order_id, o.ad_org_id, o.isactive, o.issotrx, o.documentno AS "Documento", o.docstatus AS "Estado Pedido", o.docaction AS "Accion Pedido", o.processed AS "Procesado", dt.name AS "Tipo Documento", o.description AS "Descripción", o.dateordered AS "Fecha Pedido", o.datepromised AS "Fecha Comprometida", o.c_bpartner_id, o.poreference "Referencia Proveedor", o.c_currency_id, cu.iso_code "Currency ISO", o.m_warehouse_id from c_order o left join c_doctype dt on dt.c_doctype_id = o.c_doctype_id inner join c_currency cu on cu.c_currency_id = o.c_currency_id where o.issotrx <> ?) "_";Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 16 11 1 5s998ms 5s998ms 14 1 8s312ms 8s312ms 16 1 5s45ms 5s45ms 18 1 6s377ms 6s377ms 20 1 4s213ms 4s213ms [ User: tad - Total duration: 29s947ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 29s947ms - Times executed: 5 ]
-
select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Procesado" as "Procesado", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 14:04:04 Duration: 8s312ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Procesado" as "Procesado", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 18:03:07 Duration: 6s377ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Procesado" as "Procesado", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 11:04:22 Duration: 5s998ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 182 7m44s 2s398ms 2s986ms 2s550ms select ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, case when c_bpartner.em_ec_isvalorated = ? then c_bpartner.em_ec_isvalorated else m_inout.em_ec_isvalued end as em_ec_isvalued, ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, contact.name || ?| | coalesce(contact.phone, ?) as contact_info, contact.email as contact_mail, c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ?| | upper(c_country.name) || ? as locationdesc, c_location_description (c_locationdeliv.c_location_id) || ?| | upper(c_countrydel.name) || ? as locationdelivdesc, upper(c_counttrl_del.name) as countrydel, m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, concat(repre.firstname, ?, repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, c_order.documentno as docorder, c_currency.cursymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, row_number() over (order by m_inout.m_inout_id) % ? = ? as row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.delivery_location_id = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id and pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on ? > prlab_num.num where ? = ? and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in (...)) order by m_inout.documentno;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 08 5 12s753ms 2s550ms 09 19 47s831ms 2s517ms 10 26 1m5s 2s509ms 11 18 46s523ms 2s584ms 12 24 1m 2s531ms 13 14 34s852ms 2s489ms 14 2 4s925ms 2s462ms 15 29 1m14s 2s577ms 16 29 1m16s 2s621ms 17 10 25s472ms 2s547ms 18 6 15s63ms 2s510ms [ User: tad - Total duration: 7m44s - Times executed: 182 ]
[ Application: openbravo - Total duration: 7m44s - Times executed: 182 ]
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('16F2119A3001448C8E8E09A885A0E24D')) order by m_inout.documentno;
Date: 2026-07-16 15:21:23 Duration: 2s986ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('88763AAA935A48B38B1F9FF53CF74409')) order by m_inout.documentno;
Date: 2026-07-16 16:03:10 Duration: 2s889ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('092A22232A1E443C87FD7C95936FFA2C')) order by m_inout.documentno;
Date: 2026-07-16 16:03:00 Duration: 2s884ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 173 9m37s 2s927ms 4s724ms 3s336ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and order0_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 08 2 8s12ms 4s6ms 10 30 1m41s 3s385ms 11 20 1m2s 3s109ms 12 34 1m43s 3s52ms 13 16 54s670ms 3s416ms 14 11 34s454ms 3s132ms 15 18 1m6s 3s673ms 16 31 1m51s 3s589ms 17 10 32s128ms 3s212ms 18 1 3s8ms 3s8ms [ User: tad - Total duration: 9m37s - Times executed: 173 ]
[ Application: openbravo - Total duration: 9m37s - Times executed: 173 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:23 Duration: 4s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:54 Duration: 4s346ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:44:57 Duration: 4s143ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 29 1m58s 3s543ms 11s733ms 4s78ms select pruti_stoc0_.pruti_stock_detail_v_id as pruti_st1_943_0_, pruti_stoc0_.ad_client_id as ad_clien2_943_0_, pruti_stoc0_.ad_org_id as ad_org_i3_943_0_, pruti_stoc0_.isactive as isactive4_943_0_, pruti_stoc0_.created as created5_943_0_, pruti_stoc0_.createdby as createdb6_943_0_, pruti_stoc0_.updated as updated7_943_0_, pruti_stoc0_.updatedby as updatedb8_943_0_, pruti_stoc0_.type as type9_943_0_, pruti_stoc0_.m_product_id as m_produ10_943_0_, pruti_stoc0_.qty as qty11_943_0_, pruti_stoc0_.m_attributesetinstance_id as m_attri12_943_0_, pruti_stoc0_.m_locator_id as m_locat13_943_0_, pruti_stoc0_.m_warehouse_id as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.pruti_stock_detail_v_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 07 2 15s454ms 7s727ms 10 2 7s537ms 3s768ms 11 2 7s502ms 3s751ms 12 4 14s880ms 3s720ms 13 2 7s409ms 3s704ms 14 1 3s640ms 3s640ms 15 14 54s406ms 3s886ms 16 2 7s459ms 3s729ms [ User: tad - Total duration: 1m58s - Times executed: 29 ]
[ Application: openbravo - Total duration: 1m58s - Times executed: 29 ]
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'F9C18EEEA964498CB6FD59A7604A19230928AC21B14E24C3C9ED358EBE6E9BD5Bpendingsales';
Date: 2026-07-16 07:12:34 Duration: 11s733ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'DC569151E0E049B082D267BB83F6FAFB04050A3176DE744FCA19943E0F0F77F07availablestock';
Date: 2026-07-16 15:06:05 Duration: 4s332ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'B27FFC00032D4C6E83C0FFD8B8ACCC6309E0C45E0541349DE8657E865B675B866availablestock';
Date: 2026-07-16 15:45:01 Duration: 4s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 27 1m29s 3s104ms 3s563ms 3s296ms select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_prsii_clave_tipo as em_prsi42_224_0_, documentty4_.em_etvfac_external_ref as em_etvf43_224_0_, documentty4_.em_prsii_clave_tipo_fc as em_prsi44_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf45_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf46_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf47_224_0_, documentty4_.em_etsg_isrectificative as em_etsg48_224_0_, documentty4_.em_prsii_motivo_rectif as em_prsi49_224_0_, documentty4_.em_prsii_tipo_rectif as em_prsi50_224_0_, documentty4_.em_pruti_inforeport2 as em_prut51_224_0_, documentty4_.em_pruti_inforeport as em_prut52_224_0_, documentty4_.em_prsii_forzar_clave_tipo as em_prsi53_224_0_, documentty4_.em_pruti_inforeport3 as em_prut54_224_0_, documentty4_.em_pruti_image_id as em_prut55_224_0_, documentty4_.em_pruti_image2_id as em_prut56_224_0_, documentty4_.em_pruti_email as em_prut57_224_0_, documentty4_.em_pruti_url as em_prut58_224_0_, documentty4_.em_pruti_phone as em_prut59_224_0_, documentty4_.em_pruti_phone2 as em_prut60_224_0_, documentty4_.em_pruti_fax as em_prut61_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.em_ec_isbillingcontact as em_ec_i40_129_1_, aduser5_.em_prapp_username as em_prap41_129_1_, aduser5_.lastpasswordupdate as lastpas42_129_1_, aduser5_.em_prapp_password as em_prap43_129_1_, aduser5_.isexpiredpassword as isexpir44_129_1_, aduser5_.commercialauth as commerc45_129_1_, aduser5_.em_prapp_mail1 as em_prap46_129_1_, aduser5_.em_prapp_mail2 as em_prap47_129_1_, aduser5_.viasms as viasms48_129_1_, aduser5_.em_prapp_platform as em_prap49_129_1_, aduser5_.viaemail as viaemai50_129_1_, aduser5_.em_prapp_uuid as em_prap51_129_1_, aduser5_.em_prapp_token as em_prap52_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut53_129_1_, aduser5_.em_pruti_isordercontact as em_prut54_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs55_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut56_129_1_, aduser5_.em_ec_ispurchorder as em_ec_i57_129_1_, aduser5_.isdefaultfordocs as isdefau58_129_1_, aduser5_.em_etas_bad_password_attempts as em_etas59_129_1_, aduser5_.em_etas_enable_mult_session as em_etas60_129_1_, aduser5_.em_etas_issecure_pw as em_etas61_129_1_, aduser5_.em_prpres_prestashop_id as em_prpr62_129_1_, aduser5_.em_etas_isused_pw as em_etas63_129_1_, aduser5_.em_prpres_gender as em_prpr64_129_1_, aduser5_.em_etas_isnewuser as em_etas65_129_1_, aduser5_.em_prpres_newsletter as em_prpr66_129_1_, aduser5_.em_prpres_password as em_prpr67_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut68_129_1_, aduser5_.em_prpres_not_upload as em_prpr69_129_1_, aduser5_.em_prpres_created_from_ps as em_prpr70_129_1_, aduser5_.em_primpa_iscontact as em_prim71_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.em_ec_isbillingcontact as em_ec_i40_129_2_, aduser6_.em_prapp_username as em_prap41_129_2_, aduser6_.lastpasswordupdate as lastpas42_129_2_, aduser6_.em_prapp_password as em_prap43_129_2_, aduser6_.isexpiredpassword as isexpir44_129_2_, aduser6_.commercialauth as commerc45_129_2_, aduser6_.em_prapp_mail1 as em_prap46_129_2_, aduser6_.em_prapp_mail2 as em_prap47_129_2_, aduser6_.viasms as viasms48_129_2_, aduser6_.em_prapp_platform as em_prap49_129_2_, aduser6_.viaemail as viaemai50_129_2_, aduser6_.em_prapp_uuid as em_prap51_129_2_, aduser6_.em_prapp_token as em_prap52_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut53_129_2_, aduser6_.em_pruti_isordercontact as em_prut54_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs55_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut56_129_2_, aduser6_.em_ec_ispurchorder as em_ec_i57_129_2_, aduser6_.isdefaultfordocs as isdefau58_129_2_, aduser6_.em_etas_bad_password_attempts as em_etas59_129_2_, aduser6_.em_etas_enable_mult_session as em_etas60_129_2_, aduser6_.em_etas_issecure_pw as em_etas61_129_2_, aduser6_.em_prpres_prestashop_id as em_prpr62_129_2_, aduser6_.em_etas_isused_pw as em_etas63_129_2_, aduser6_.em_prpres_gender as em_prpr64_129_2_, aduser6_.em_etas_isnewuser as em_etas65_129_2_, aduser6_.em_prpres_newsletter as em_prpr66_129_2_, aduser6_.em_prpres_password as em_prpr67_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut68_129_2_, aduser6_.em_prpres_not_upload as em_prpr69_129_2_, aduser6_.em_prpres_created_from_ps as em_prpr70_129_2_, aduser6_.em_primpa_iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 10 2 6s411ms 3s205ms 12 4 12s990ms 3s247ms 13 7 22s885ms 3s269ms 17 6 19s838ms 3s306ms 18 8 26s878ms 3s359ms [ User: tad - Total duration: 1m29s - Times executed: 27 ]
[ Application: openbravo - Total duration: 1m29s - Times executed: 27 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 18:11:24 Duration: 3s563ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 18:01:18 Duration: 3s540ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 13:01:05 Duration: 3s467ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 22 27s593ms 1s213ms 1s349ms 1s254ms select sum(invoice0_.grandtotal) as col_0_0_, sum(invoice0_.totallines) as col_1_0_ from c_invoice invoice0_ inner join c_order order1_ on invoice0_.c_order_id = order1_.c_order_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and invoice0_.issotrx = ? and invoice0_.docstatus <> ? and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 13 8 9s928ms 1s241ms 15 10 12s558ms 1s255ms 17 4 5s106ms 1s276ms [ User: tad - Total duration: 27s593ms - Times executed: 22 ]
[ Application: openbravo - Total duration: 27s593ms - Times executed: 22 ]
-
select sum(invoice0_.GrandTotal) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%224411%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 15:21:58 Duration: 1s349ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(invoice0_.GrandTotal) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%220780%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 17:00:09 Duration: 1s314ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(invoice0_.GrandTotal) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%220780%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 17:01:54 Duration: 1s299ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 21 29s329ms 1s222ms 1s632ms 1s396ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ where (upper((order0_.documentno || ?| | coalesce(to_char(order0_.dateordered), ?) || ?| | coalesce(to_char(order0_.grandtotal), ?))) like upper(?) escape ?) and (exists ( select ? from c_invoice invoice1_ inner join c_order order2_ on invoice1_.c_order_id = order2_.c_order_id where invoice1_.issotrx = ? and invoice1_.docstatus <> ? and order2_.c_order_id = order0_.c_order_id and (invoice1_.ad_org_id in (...)) and (invoice1_.ad_client_id in (...)))) order by order0_.documentno, order0_.dateordered, order0_.grandtotal limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 07 2 2s718ms 1s359ms 11 2 2s753ms 1s376ms 13 6 8s403ms 1s400ms 14 2 2s839ms 1s419ms 15 5 6s686ms 1s337ms 16 2 2s939ms 1s469ms 17 2 2s987ms 1s493ms [ User: tad - Total duration: 29s329ms - Times executed: 21 ]
[ Application: openbravo - Total duration: 29s329ms - Times executed: 21 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where (upper((order0_.DocumentNo || ' - ' || coalesce(to_char(order0_.DateOrdered), '') || ' - ' || coalesce(to_char(order0_.GrandTotal), ''))) like upper('%22441%') escape '|') and (exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where invoice1_.IsSOTrx = 'Y' and invoice1_.DocStatus <> 'TEMP' and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '76';
Date: 2026-07-16 16:47:11 Duration: 1s632ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where (upper((order0_.DocumentNo || ' - ' || coalesce(to_char(order0_.DateOrdered), '') || ' - ' || coalesce(to_char(order0_.GrandTotal), ''))) like upper('%22078%') escape '|') and (exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where invoice1_.IsSOTrx = 'Y' and invoice1_.DocStatus <> 'TEMP' and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '76';
Date: 2026-07-16 17:00:07 Duration: 1s536ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where (upper((order0_.DocumentNo || ' - ' || coalesce(to_char(order0_.DateOrdered), '') || ' - ' || coalesce(to_char(order0_.GrandTotal), ''))) like upper('%22392%') escape '|') and (exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where invoice1_.IsSOTrx = 'Y' and invoice1_.DocStatus <> 'TEMP' and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '76';
Date: 2026-07-16 11:31:46 Duration: 1s512ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 15 5m56s 23s141ms 24s698ms 23s755ms select * from ( select c_invoice.c_invoice_id as referencekey_id, ad_column_identifier (?, c_invoice.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, substring(c_invoice.documentno || ? || c_invoiceline.line || ?| | ad_column_identifier_std (?, c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, ?)), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ? || ad_column_identifier_std (?, c_invoiceline.c_tax_id), ?, ?) as description, ? as isactive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = ? and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, ?), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(year from c_invoice.dateinvoiced) >= (extract(year from now())) ?) and c_invoice.ispaid <> ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 07 1 23s547ms 23s547ms 08 1 23s838ms 23s838ms 09 1 24s61ms 24s61ms 10 1 23s141ms 23s141ms 11 1 23s786ms 23s786ms 12 1 23s630ms 23s630ms 13 1 23s958ms 23s958ms 14 1 23s339ms 23s339ms 15 1 23s445ms 23s445ms 16 1 24s476ms 24s476ms 17 1 23s172ms 23s172ms 18 1 24s443ms 24s443ms 19 1 23s404ms 23s404ms 20 1 23s388ms 23s388ms 21 1 24s698ms 24s698ms [ User: tad - Total duration: 5m56s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m56s - Times executed: 15 ]
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 21:01:48 Duration: 24s698ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:01:48 Duration: 24s476ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 18:01:48 Duration: 24s443ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 15 29s954ms 1s691ms 3s863ms 1s996ms select * from ( select cin.c_invoice_id as referencekey_id, ad_column_identifier (?, cin.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ad_column_identifier (?, cin.c_invoice_id, ?) || ?| | cin.totallines || ?| | sum(cil.linenetamt) as description, ? as isactive, cin.ad_org_id, cin.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice cin left join c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id inner join c_bpartner on cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines order by cin.documentno) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 07 1 1s713ms 1s713ms 08 1 1s722ms 1s722ms 09 1 1s781ms 1s781ms 10 1 1s998ms 1s998ms 11 1 1s786ms 1s786ms 12 1 2s256ms 2s256ms 13 1 3s863ms 3s863ms 14 1 1s747ms 1s747ms 15 1 1s817ms 1s817ms 16 1 2s81ms 2s81ms 17 1 2s82ms 2s82ms 18 1 1s775ms 1s775ms 19 1 1s721ms 1s721ms 20 1 1s691ms 1s691ms 21 1 1s914ms 1s914ms [ User: tad - Total duration: 29s954ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 29s954ms - Times executed: 15 ]
-
SELECT * FROM ( SELECT cin.c_invoice_id as referencekey_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') || ' no ha calculado correctamente el total ' || cin.totallines || ' / ' || SUM(cil.linenetamt) AS description, 'Y' AS isActive, cin.ad_org_id, cin.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoice cin LEFT JOIN c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id INNER JOIN c_bpartner ON cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines ORDER BY cin.documentno) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '172789B2006D4F65AB38F32C1B261358' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 13:01:53 Duration: 3s863ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT cin.c_invoice_id as referencekey_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') || ' no ha calculado correctamente el total ' || cin.totallines || ' / ' || SUM(cil.linenetamt) AS description, 'Y' AS isActive, cin.ad_org_id, cin.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoice cin LEFT JOIN c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id INNER JOIN c_bpartner ON cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines ORDER BY cin.documentno) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '172789B2006D4F65AB38F32C1B261358' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 12:01:51 Duration: 2s256ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT cin.c_invoice_id as referencekey_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, ad_column_identifier ('c_invoice', cin.c_invoice_id, 'en_US') || ' no ha calculado correctamente el total ' || cin.totallines || ' / ' || SUM(cil.linenetamt) AS description, 'Y' AS isActive, cin.ad_org_id, cin.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoice cin LEFT JOIN c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id INNER JOIN c_bpartner ON cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines ORDER BY cin.documentno) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '172789B2006D4F65AB38F32C1B261358' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 17:01:50 Duration: 2s82ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 15 23s308ms 1s209ms 4s672ms 1s553ms select * from ( select fact_acct.fact_acct_id as referencekey_id, ad_column_identifier (?, fact_acct_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, to_char(fact_acct.dateacct, ?) || ? || fact_acct.acctvalue || ? || greatest (fact_acct.amtacctdr, fact_acct.amtacctcr) || ? || aoacct.name || ? || aocelemtn.name as description, ? as isactive, fact_acct.ad_org_id, fact_acct.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from fact_acct left join c_elementvalue on fact_acct.account_id = c_elementvalue.c_elementvalue_id left join ad_org aoacct on ad_get_org_le_bu (fact_acct.ad_org_id, ?) = aoacct.ad_org_id left join ad_org aocelemtn on ad_get_org_le_bu (c_elementvalue.ad_org_id, ?) = aocelemtn.ad_org_id where fact_acct.updated >= current_date ? and aoacct.ad_org_id <> aocelemtn.ad_org_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 07 1 1s212ms 1s212ms 08 1 1s209ms 1s209ms 09 1 1s222ms 1s222ms 10 1 1s258ms 1s258ms 11 1 1s256ms 1s256ms 12 1 4s672ms 4s672ms 13 1 1s432ms 1s432ms 14 1 1s323ms 1s323ms 15 1 1s344ms 1s344ms 16 1 1s421ms 1s421ms 17 1 1s364ms 1s364ms 18 1 1s412ms 1s412ms 19 1 1s412ms 1s412ms 20 1 1s372ms 1s372ms 21 1 1s391ms 1s391ms [ User: tad - Total duration: 23s308ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 23s308ms - Times executed: 15 ]
-
SELECT * FROM ( SELECT fact_acct.fact_acct_id AS referencekey_id, ad_column_identifier ('fact_acct', fact_acct_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, to_char(fact_acct.dateacct, 'dd-MM-yyyy') || ' - Cuenta:' || fact_acct.acctvalue || ' importe: ' || greatest (fact_acct.amtacctdr, fact_acct.amtacctcr) || ' | Organización registro: ' || aoacct.name || ' Organización Cuenta: ' || aocelemtn.name AS description, 'Y' AS isActive, fact_acct.ad_org_id, fact_acct.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM fact_acct left join c_elementvalue on fact_acct.account_id = c_elementvalue.c_elementvalue_id left join ad_org aoacct on ad_get_org_le_bu (fact_acct.ad_org_id, 'LE') = aoacct.ad_org_id left join ad_org aocelemtn on ad_get_org_le_bu (c_elementvalue.ad_org_id, 'LE') = aocelemtn.ad_org_id WHERE fact_acct.updated >= current_date -1 and aoacct.ad_org_id <> aocelemtn.ad_org_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '02AC0974DA1C4FB780546703A41C2270' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 12:02:01 Duration: 4s672ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT fact_acct.fact_acct_id AS referencekey_id, ad_column_identifier ('fact_acct', fact_acct_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, to_char(fact_acct.dateacct, 'dd-MM-yyyy') || ' - Cuenta:' || fact_acct.acctvalue || ' importe: ' || greatest (fact_acct.amtacctdr, fact_acct.amtacctcr) || ' | Organización registro: ' || aoacct.name || ' Organización Cuenta: ' || aocelemtn.name AS description, 'Y' AS isActive, fact_acct.ad_org_id, fact_acct.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM fact_acct left join c_elementvalue on fact_acct.account_id = c_elementvalue.c_elementvalue_id left join ad_org aoacct on ad_get_org_le_bu (fact_acct.ad_org_id, 'LE') = aoacct.ad_org_id left join ad_org aocelemtn on ad_get_org_le_bu (c_elementvalue.ad_org_id, 'LE') = aocelemtn.ad_org_id WHERE fact_acct.updated >= current_date -1 and aoacct.ad_org_id <> aocelemtn.ad_org_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '02AC0974DA1C4FB780546703A41C2270' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 13:01:56 Duration: 1s432ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT fact_acct.fact_acct_id AS referencekey_id, ad_column_identifier ('fact_acct', fact_acct_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, to_char(fact_acct.dateacct, 'dd-MM-yyyy') || ' - Cuenta:' || fact_acct.acctvalue || ' importe: ' || greatest (fact_acct.amtacctdr, fact_acct.amtacctcr) || ' | Organización registro: ' || aoacct.name || ' Organización Cuenta: ' || aocelemtn.name AS description, 'Y' AS isActive, fact_acct.ad_org_id, fact_acct.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM fact_acct left join c_elementvalue on fact_acct.account_id = c_elementvalue.c_elementvalue_id left join ad_org aoacct on ad_get_org_le_bu (fact_acct.ad_org_id, 'LE') = aoacct.ad_org_id left join ad_org aocelemtn on ad_get_org_le_bu (c_elementvalue.ad_org_id, 'LE') = aocelemtn.ad_org_id WHERE fact_acct.updated >= current_date -1 and aoacct.ad_org_id <> aocelemtn.ad_org_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '02AC0974DA1C4FB780546703A41C2270' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:01:55 Duration: 1s421ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 15 20s224ms 1s218ms 1s709ms 1s348ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ where (upper((order0_.documentno || ?| | coalesce(to_char(order0_.dateordered), ?) || ?| | coalesce(to_char(order0_.grandtotal), ?))) like upper(?) escape ?) and (exists ( select ? from c_invoice invoice1_ inner join c_order order2_ on invoice1_.c_order_id = order2_.c_order_id where invoice1_.issotrx = ? and invoice1_.docstatus <> ? and order2_.c_order_id = order0_.c_order_id and (invoice1_.ad_org_id in (...)) and (invoice1_.ad_client_id in (...)))) order by order0_.documentno, order0_.dateordered, order0_.grandtotal limit ? offset ?;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 07 2 2s487ms 1s243ms 11 1 1s227ms 1s227ms 13 2 2s518ms 1s259ms 14 2 2s667ms 1s333ms 15 5 6s451ms 1s290ms 16 3 4s872ms 1s624ms [ User: tad - Total duration: 20s224ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 20s224ms - Times executed: 15 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where (upper((order0_.DocumentNo || ' - ' || coalesce(to_char(order0_.DateOrdered), '') || ' - ' || coalesce(to_char(order0_.GrandTotal), ''))) like upper('%22441%') escape '|') and (exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where invoice1_.IsSOTrx = 'Y' and invoice1_.DocStatus <> 'TEMP' and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '75' offset '75';
Date: 2026-07-16 16:47:11 Duration: 1s709ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where (upper((order0_.DocumentNo || ' - ' || coalesce(to_char(order0_.DateOrdered), '') || ' - ' || coalesce(to_char(order0_.GrandTotal), ''))) like upper('%2244%') escape '|') and (exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where invoice1_.IsSOTrx = 'Y' and invoice1_.DocStatus <> 'TEMP' and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '75' offset '38';
Date: 2026-07-16 16:47:11 Duration: 1s705ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where (upper((order0_.DocumentNo || ' - ' || coalesce(to_char(order0_.DateOrdered), '') || ' - ' || coalesce(to_char(order0_.GrandTotal), ''))) like upper('%22400%') escape '|') and (exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where invoice1_.IsSOTrx = 'Y' and invoice1_.DocStatus <> 'TEMP' and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '75' offset '75';
Date: 2026-07-16 15:31:17 Duration: 1s483ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 15 19s116ms 1s205ms 1s440ms 1s274ms select count(*) as col_0_0_, sum(invoice0_.totallines) as col_1_0_, sum(invoice0_.grandtotal) as col_2_0_, sum(invoice0_.dueamt) as col_3_0_, sum(invoice0_.outstandingamt) as col_4_0_, sum(invoice0_.totalpaid) as col_5_0_ from c_invoice invoice0_ inner join c_order order1_ on invoice0_.c_order_id = order1_.c_order_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and invoice0_.issotrx = ? and invoice0_.docstatus <> ? and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 07 2 2s512ms 1s256ms 11 2 2s527ms 1s263ms 14 5 6s188ms 1s237ms 15 2 2s495ms 1s247ms 16 4 5s392ms 1s348ms [ User: tad - Total duration: 19s116ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 19s116ms - Times executed: 15 ]
-
select count(*) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_, sum(invoice0_.GrandTotal) as col_2_0_, sum(invoice0_.DueAmt) as col_3_0_, sum(invoice0_.OutstandingAmt) as col_4_0_, sum(invoice0_.Totalpaid) as col_5_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%224419%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 16:47:30 Duration: 1s440ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_, sum(invoice0_.GrandTotal) as col_2_0_, sum(invoice0_.DueAmt) as col_3_0_, sum(invoice0_.OutstandingAmt) as col_4_0_, sum(invoice0_.Totalpaid) as col_5_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%224419%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 16:47:24 Duration: 1s390ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_, sum(invoice0_.GrandTotal) as col_2_0_, sum(invoice0_.DueAmt) as col_3_0_, sum(invoice0_.OutstandingAmt) as col_4_0_, sum(invoice0_.Totalpaid) as col_5_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%224407%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 14:55:22 Duration: 1s292ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 13 19s507ms 1s68ms 3s544ms 1s500ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ where exists ( select ? from c_invoice invoice1_ inner join c_order order2_ on invoice1_.c_order_id = order2_.c_order_id where (upper((invoice1_.documentno || ?| | coalesce(to_char(invoice1_.dateinvoiced), ?) || ?| | coalesce(to_char(invoice1_.grandtotal), ?))) like upper(?) escape ?) and order2_.c_order_id = order0_.c_order_id and (invoice1_.ad_org_id in (...)) and (invoice1_.ad_client_id in (...))) order by order0_.documentno, order0_.dateordered, order0_.grandtotal limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 16 07 2 2s203ms 1s101ms 11 1 1s110ms 1s110ms 13 2 2s231ms 1s115ms 14 1 1s105ms 1s105ms 15 5 8s129ms 1s625ms 16 2 4s726ms 2s363ms [ User: tad - Total duration: 19s507ms - Times executed: 13 ]
[ Application: openbravo - Total duration: 19s507ms - Times executed: 13 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%22441%') escape '|') and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '76';
Date: 2026-07-16 16:47:15 Duration: 3s544ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%22400%') escape '|') and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '76';
Date: 2026-07-16 15:31:20 Duration: 3s447ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_Order order2_ on invoice1_.C_Order_ID = order2_.C_Order_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%224411%') escape '|') and order2_.C_Order_ID = order0_.C_Order_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order0_.DocumentNo, order0_.DateOrdered, order0_.GrandTotal limit '76';
Date: 2026-07-16 15:21:40 Duration: 1s413ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 13 16s383ms 1s78ms 1s512ms 1s260ms select profile.take_sample ();Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 16 08 1 1s511ms 1s511ms 09 1 1s289ms 1s289ms 10 1 1s358ms 1s358ms 11 1 1s163ms 1s163ms 12 1 1s221ms 1s221ms 13 1 1s249ms 1s249ms 14 1 1s173ms 1s173ms 15 1 1s78ms 1s78ms 16 1 1s512ms 1s512ms 17 1 1s385ms 1s385ms 18 1 1s155ms 1s155ms 19 1 1s98ms 1s98ms 21 1 1s186ms 1s186ms [ User: postgres - Total duration: 16s383ms - Times executed: 13 ]
[ Application: psql - Total duration: 16s383ms - Times executed: 13 ]
-
SELECT profile.take_sample ();
Date: 2026-07-16 16:00:02 Duration: 1s512ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 08:00:03 Duration: 1s511ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-16 17:00:02 Duration: 1s385ms Database: etendo User: postgres Remote: [local] Application: psql
14 10 12s960ms 1s231ms 1s428ms 1s296ms select invoice0_.c_invoice_id as c_invoic1_244_, invoice0_.ad_client_id as ad_clien2_244_, invoice0_.ad_org_id as ad_org_i3_244_, invoice0_.isactive as isactive4_244_, invoice0_.created as created5_244_, invoice0_.createdby as createdb6_244_, invoice0_.updated as updated7_244_, invoice0_.updatedby as updatedb8_244_, invoice0_.issotrx as issotrx9_244_, invoice0_.documentno as documen10_244_, invoice0_.docstatus as docstat11_244_, invoice0_.docaction as docacti12_244_, invoice0_.processing as process13_244_, invoice0_.processed as process14_244_, invoice0_.posted as posted15_244_, invoice0_.c_doctype_id as c_docty16_244_, invoice0_.c_doctypetarget_id as c_docty17_244_, invoice0_.c_order_id as c_order18_244_, invoice0_.description as descrip19_244_, invoice0_.isprinted as isprint20_244_, invoice0_.salesrep_id as salesre21_244_, invoice0_.dateinvoiced as dateinv22_244_, invoice0_.dateprinted as datepri23_244_, invoice0_.dateacct as dateacc24_244_, invoice0_.c_bpartner_id as c_bpart25_244_, invoice0_.c_bpartner_location_id as c_bpart26_244_, invoice0_.poreference as porefer27_244_, invoice0_.isdiscountprinted as isdisco28_244_, invoice0_.dateordered as dateord29_244_, invoice0_.c_currency_id as c_curre30_244_, invoice0_.c_paymentterm_id as c_payme31_244_, invoice0_.c_charge_id as c_charg32_244_, invoice0_.chargeamt as chargea33_244_, invoice0_.totallines as totalli34_244_, invoice0_.grandtotal as grandto35_244_, invoice0_.m_pricelist_id as m_price36_244_, invoice0_.istaxincluded as istaxin37_244_, invoice0_.c_campaign_id as c_campa38_244_, invoice0_.c_project_id as c_proje39_244_, invoice0_.c_activity_id as c_activ40_244_, invoice0_.createfrom as createf41_244_, invoice0_.generateto as generat42_244_, invoice0_.ad_user_id as ad_user43_244_, invoice0_.copyfrom as copyfro44_244_, invoice0_.isselfservice as isselfs45_244_, invoice0_.ad_orgtrx_id as ad_orgt46_244_, invoice0_.user1_id as user47_244_, invoice0_.user2_id as user48_244_, invoice0_.withholdingamount as withhol49_244_, invoice0_.taxdate as taxdate50_244_, invoice0_.c_withholding_id as c_withh51_244_, invoice0_.ispaid as ispaid52_244_, invoice0_.em_einv_generated as em_einv53_244_, invoice0_.totalpaid as totalpa54_244_, invoice0_.em_einv_sent as em_einv55_244_, invoice0_.outstandingamt as outstan56_244_, invoice0_.daystilldue as daystil57_244_, invoice0_.dueamt as dueamt58_244_, invoice0_.lastcalculatedondate as lastcal59_244_, invoice0_.fin_paymentmethod_id as fin_pay60_244_, invoice0_.fin_payment_priority_id as fin_pay61_244_, invoice0_.finalsettlement as finalse62_244_, invoice0_.daysoutstanding as daysout63_244_, invoice0_.percentageoverdue as percent64_244_, invoice0_.c_costcenter_id as c_costc65_244_, invoice0_.calculate_promotions as calcula66_244_, invoice0_.a_asset_id as a_asset67_244_, invoice0_.em_aprm_addpayment as em_aprm68_244_, invoice0_.iscashvat as iscashv69_244_, invoice0_.em_aprm_processinvoice as em_aprm70_244_, invoice0_.em_obcma_c_poc_email_id as em_obcm71_244_, invoice0_.prepaymentamt as prepaym72_244_, invoice0_.createfromorders as createf73_244_, invoice0_.createfrominouts as createf74_244_, invoice0_.paidamtatinvoicing as paidamt75_244_, invoice0_.bpartner_extref as bpartne76_244_, invoice0_.em_aeatsii_send as em_aeat77_244_, invoice0_.em_etblkp_accountingstatus as em_etbl78_244_, invoice0_.em_aeatsii_issent as em_aeat79_244_, invoice0_.em_etabam_bankaccount_id as em_etab80_244_, invoice0_.em_etafdp_unvoid as em_etaf81_244_, invoice0_.em_etblkp_bulkposting as em_etbl82_244_, invoice0_.em_etpr_remove_payment as em_etpr83_244_, invoice0_.em_aeatsii_fecha_operacion as em_aeat84_244_, invoice0_.em_ec_amplied_description as em_ec_a85_244_, invoice0_.em_etblkc_bulkcompletion as em_etbl86_244_, invoice0_.em_aeatsii_clave_tipo as em_aeat87_244_, invoice0_.em_etinter_interco_orig as em_etin88_244_, invoice0_.em_aeatsii_motivo_rectif as em_aeat89_244_, invoice0_.em_prouti_recalculate_price as em_prou90_244_, invoice0_.em_aeatsii_clave_tipo_fc as em_aeat91_244_, invoice0_.em_ml_select_product as em_ml_s92_244_, invoice0_.em_prouti_pricecalculatetdate as em_prou93_244_, invoice0_.em_tbai_qrcode as em_tbai94_244_, invoice0_.em_aeatsii_tipo_rectif as em_aeat95_244_, invoice0_.em_prouti_totalizations as em_prou96_244_, invoice0_.em_tbai_url as em_tbai97_244_, invoice0_.em_aeatsii_dua as em_aeat98_244_, invoice0_.em_tbai_xmlgenerator as em_tbai99_244_, invoice0_.em_aeatsii_fecha_dua as em_aea100_244_, invoice0_.em_tbai_signaturevalue as em_tba101_244_, invoice0_.em_aeatsii_estado as em_aea102_244_, invoice0_.em_tbai_sequence as em_tba103_244_, invoice0_.em_aeatsii_error_registral as em_aea104_244_, invoice0_.em_tbai_idtbai as em_tba105_244_, invoice0_.em_aeatsii_modif as em_aea106_244_, invoice0_.em_etvfac_date_issue as em_etv107_244_, invoice0_.em_tbai_reverseinvoicecode as em_tba108_244_, invoice0_.em_aeatsii_modified as em_aea109_244_, invoice0_.em_etvfac_issue as em_etv110_244_, invoice0_.em_tbai_issent as em_tba111_244_, invoice0_.em_aeatsii_description_id as em_aea112_244_, invoice0_.em_etvfac_issue_description as em_etv113_244_, invoice0_.em_tbai_reverseinvoicetype as em_tba114_244_, invoice0_.em_aeatsii_descripcion_sii as em_aea115_244_, invoice0_.em_tbai_isreverseinvoice as em_tba116_244_, invoice0_.em_aeatsii_fecha_reg_cont as em_aea117_244_, invoice0_.em_tbai_invoiceseq as em_tba118_244_, invoice0_.em_aeatsii_dup as em_aea119_244_, invoice0_.em_tbai_invoicenum as em_tba120_244_, invoice0_.em_aeatsii_error_code as em_aea121_244_, invoice0_.em_etvfac_bp_name_copy as em_etv122_244_, invoice0_.em_etvfac_rect_create as em_etv123_244_, invoice0_.em_aeatsii_error_msg as em_aea124_244_, invoice0_.em_etcopag_cop_feedback as em_etc125_244_, invoice0_.em_etvfac_bp_taxid_copy as em_etv126_244_, invoice0_.em_etvfac_is_gen_manual as em_etv127_244_, invoice0_.em_aeatsii_unsubscribe as em_aea128_244_, invoice0_.em_etvfac_contact_name_copy as em_etv129_244_, invoice0_.em_aeatsii_pur_description_id as em_aea130_244_, invoice0_.em_etvfac_address1_copy as em_etv131_244_, invoice0_.em_etvfac_postal_copy as em_etv132_244_, invoice0_.em_aeatsii_multi_dua as em_aea133_244_, invoice0_.em_etvfac_city_copy as em_etv134_244_, invoice0_.em_aeatsii_ejercicio as em_aea135_244_, invoice0_.em_etvfac_region_copy as em_etv136_244_, invoice0_.em_aeatsii_periodo as em_aea137_244_, invoice0_.em_etvfac_country_copy as em_etv138_244_, invoice0_.em_aeatsii_autofactura as em_aea139_244_, invoice0_.em_etvfac_phone_copy as em_etv140_244_, invoice0_.em_aeatsii_invoice_id as em_aea141_244_, invoice0_.em_etvfac_fax_copy as em_etv142_244_, invoice0_.em_aeatsii_insiidate as em_aea143_244_, invoice0_.em_etvfac_org_name_copy as em_etv144_244_, invoice0_.em_aeatsii_cause_exemption_id as em_aea145_244_, invoice0_.em_etvfac_org_taxid_copy as em_etv146_244_, invoice0_.em_etvfac_org_location_copy as em_etv147_244_, invoice0_.em_aeatsii_isauthorization as em_aea148_244_, invoice0_.em_aeatsii_authorizationno as em_aea149_244_, invoice0_.em_etvfac_invoice_status as em_etv150_244_, invoice0_.em_etvfac_senttoverifac as em_etv151_244_, invoice0_.em_etvfac_inv_type as em_etv152_244_, invoice0_.em_etvfac_invnoidart61d as em_etv153_244_, invoice0_.em_etvfac_verifac_desc as em_etv154_244_, invoice0_.em_etvfac_corrected_inv as em_etv155_244_, invoice0_.em_etvfac_date_operation as em_etv156_244_, invoice0_.em_etvfac_reverseinvtype as em_etv157_244_, invoice0_.em_priuti_createpurchinv as em_pri158_244_, invoice0_.em_priuti_generated as em_pri159_244_, invoice0_.em_priuti_date_complete as em_pri160_244_, invoice0_.em_tbai_issue_date as em_tba161_244_, invoice0_.em_priuti_user_complete_id as em_pri162_244_, invoice0_.em_priuti_status_of_review as em_pri163_244_, invoice0_.em_etvfac_external_ref as em_etv164_244_, invoice0_.em_priuti_validate as em_pri165_244_, invoice0_.em_priuti_start_review as em_pri166_244_, invoice0_.em_prsii_changeperiod as em_prs167_244_, invoice0_.em_etsg_is_f3 as em_ets168_244_, invoice0_.em_etvfac_hash as em_etv169_244_, invoice0_.em_prsii_changeperiodlog as em_prs170_244_, invoice0_.em_etsg_date_operation as em_ets171_244_, invoice0_.em_tbai_date_operation as em_tba172_244_, invoice0_.em_etvfac_issubsanation as em_etv173_244_, invoice0_.em_etvfac_void as em_etv174_244_, invoice0_.em_tbai_voidxmlgenerator as em_tba175_244_, invoice0_.em_priuti_delete_payment_sch as em_pri176_244_, invoice0_.em_priuti_sch_inv_log as em_pri177_244_, invoice0_.em_priuti_addlines_btn as em_pri178_244_, invoice0_.em_pruti_notsendinvoice as em_pru179_244_, invoice0_.em_etvfac_simpinvart7273 as em_etv180_244_, invoice0_.em_aeatsii_hash as em_aea181_244_, invoice0_.em_aeatsii_date_issue as em_aea182_244_, invoice0_.em_etvfac_qr_url as em_etv183_244_, invoice0_.em_etvfac_issued_externally as em_etv184_244_ from c_invoice invoice0_ inner join c_order order1_ on invoice0_.c_order_id = order1_.c_order_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and invoice0_.issotrx = ? and invoice0_.docstatus <> ? and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) order by invoice0_.documentno, invoice0_.c_invoice_id limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 11 1 1s237ms 1s237ms 13 3 3s877ms 1s292ms 15 4 5s232ms 1s308ms 17 2 2s613ms 1s306ms [ User: tad - Total duration: 12s960ms - Times executed: 10 ]
[ Application: openbravo - Total duration: 12s960ms - Times executed: 10 ]
-
select invoice0_.C_Invoice_ID as c_invoic1_244_, invoice0_.AD_Client_ID as ad_clien2_244_, invoice0_.AD_Org_ID as ad_org_i3_244_, invoice0_.IsActive as isactive4_244_, invoice0_.Created as created5_244_, invoice0_.CreatedBy as createdb6_244_, invoice0_.Updated as updated7_244_, invoice0_.UpdatedBy as updatedb8_244_, invoice0_.IsSOTrx as issotrx9_244_, invoice0_.DocumentNo as documen10_244_, invoice0_.DocStatus as docstat11_244_, invoice0_.DocAction as docacti12_244_, invoice0_.Processing as process13_244_, invoice0_.Processed as process14_244_, invoice0_.Posted as posted15_244_, invoice0_.C_DocType_ID as c_docty16_244_, invoice0_.C_DocTypeTarget_ID as c_docty17_244_, invoice0_.C_Order_ID as c_order18_244_, invoice0_.Description as descrip19_244_, invoice0_.IsPrinted as isprint20_244_, invoice0_.SalesRep_ID as salesre21_244_, invoice0_.DateInvoiced as dateinv22_244_, invoice0_.DatePrinted as datepri23_244_, invoice0_.DateAcct as dateacc24_244_, invoice0_.C_BPartner_ID as c_bpart25_244_, invoice0_.C_BPartner_Location_ID as c_bpart26_244_, invoice0_.POReference as porefer27_244_, invoice0_.IsDiscountPrinted as isdisco28_244_, invoice0_.DateOrdered as dateord29_244_, invoice0_.C_Currency_ID as c_curre30_244_, invoice0_.C_PaymentTerm_ID as c_payme31_244_, invoice0_.C_Charge_ID as c_charg32_244_, invoice0_.ChargeAmt as chargea33_244_, invoice0_.TotalLines as totalli34_244_, invoice0_.GrandTotal as grandto35_244_, invoice0_.M_PriceList_ID as m_price36_244_, invoice0_.IsTaxIncluded as istaxin37_244_, invoice0_.C_Campaign_ID as c_campa38_244_, invoice0_.C_Project_ID as c_proje39_244_, invoice0_.C_Activity_ID as c_activ40_244_, invoice0_.CreateFrom as createf41_244_, invoice0_.GenerateTo as generat42_244_, invoice0_.AD_User_ID as ad_user43_244_, invoice0_.CopyFrom as copyfro44_244_, invoice0_.IsSelfService as isselfs45_244_, invoice0_.AD_OrgTrx_ID as ad_orgt46_244_, invoice0_.User1_ID as user47_244_, invoice0_.User2_ID as user48_244_, invoice0_.Withholdingamount as withhol49_244_, invoice0_.Taxdate as taxdate50_244_, invoice0_.C_Withholding_ID as c_withh51_244_, invoice0_.Ispaid as ispaid52_244_, invoice0_.EM_Einv_Generated as em_einv53_244_, invoice0_.Totalpaid as totalpa54_244_, invoice0_.EM_Einv_Sent as em_einv55_244_, invoice0_.OutstandingAmt as outstan56_244_, invoice0_.DaysTillDue as daystil57_244_, invoice0_.DueAmt as dueamt58_244_, invoice0_.LastCalculatedOnDate as lastcal59_244_, invoice0_.FIN_Paymentmethod_ID as fin_pay60_244_, invoice0_.FIN_Payment_Priority_ID as fin_pay61_244_, invoice0_.Finalsettlement as finalse62_244_, invoice0_.Daysoutstanding as daysout63_244_, invoice0_.Percentageoverdue as percent64_244_, invoice0_.C_Costcenter_ID as c_costc65_244_, invoice0_.Calculate_Promotions as calcula66_244_, invoice0_.A_Asset_ID as a_asset67_244_, invoice0_.EM_APRM_Addpayment as em_aprm68_244_, invoice0_.Iscashvat as iscashv69_244_, invoice0_.EM_APRM_Processinvoice as em_aprm70_244_, invoice0_.EM_Obcma_C_Poc_Email_ID as em_obcm71_244_, invoice0_.Prepaymentamt as prepaym72_244_, invoice0_.Createfromorders as createf73_244_, invoice0_.Createfrominouts as createf74_244_, invoice0_.Paidamtatinvoicing as paidamt75_244_, invoice0_.BPartner_ExtRef as bpartne76_244_, invoice0_.EM_Aeatsii_Send as em_aeat77_244_, invoice0_.EM_Etblkp_Accountingstatus as em_etbl78_244_, invoice0_.EM_Aeatsii_Issent as em_aeat79_244_, invoice0_.EM_Etabam_Bankaccount_ID as em_etab80_244_, invoice0_.EM_Etafdp_Unvoid as em_etaf81_244_, invoice0_.EM_Etblkp_Bulkposting as em_etbl82_244_, invoice0_.EM_Etpr_Remove_Payment as em_etpr83_244_, invoice0_.EM_Aeatsii_Fecha_Operacion as em_aeat84_244_, invoice0_.EM_Ec_Amplied_Description as em_ec_a85_244_, invoice0_.EM_Etblkc_Bulkcompletion as em_etbl86_244_, invoice0_.EM_Aeatsii_Clave_Tipo as em_aeat87_244_, invoice0_.EM_Etinter_Interco_Orig as em_etin88_244_, invoice0_.EM_Aeatsii_Motivo_Rectif as em_aeat89_244_, invoice0_.EM_Prouti_Recalculate_Price as em_prou90_244_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as em_aeat91_244_, invoice0_.EM_Ml_Select_Product as em_ml_s92_244_, invoice0_.EM_Prouti_Pricecalculatetdate as em_prou93_244_, invoice0_.em_tbai_qrcode as em_tbai94_244_, invoice0_.EM_Aeatsii_Tipo_Rectif as em_aeat95_244_, invoice0_.EM_Prouti_Totalizations as em_prou96_244_, invoice0_.EM_Tbai_Url as em_tbai97_244_, invoice0_.EM_Aeatsii_Dua as em_aeat98_244_, invoice0_.EM_Tbai_Xmlgenerator as em_tbai99_244_, invoice0_.EM_Aeatsii_Fecha_Dua as em_aea100_244_, invoice0_.EM_Tbai_Signaturevalue as em_tba101_244_, invoice0_.EM_Aeatsii_Estado as em_aea102_244_, invoice0_.EM_Tbai_Sequence as em_tba103_244_, invoice0_.EM_Aeatsii_Error_Registral as em_aea104_244_, invoice0_.EM_Tbai_Idtbai as em_tba105_244_, invoice0_.EM_Aeatsii_Modif as em_aea106_244_, invoice0_.EM_Etvfac_Date_Issue as em_etv107_244_, invoice0_.EM_Tbai_Reverseinvoicecode as em_tba108_244_, invoice0_.EM_Aeatsii_Modified as em_aea109_244_, invoice0_.EM_Etvfac_Issue as em_etv110_244_, invoice0_.EM_Tbai_Issent as em_tba111_244_, invoice0_.EM_Aeatsii_Description_ID as em_aea112_244_, invoice0_.EM_Etvfac_Issue_Description as em_etv113_244_, invoice0_.EM_Tbai_Reverseinvoicetype as em_tba114_244_, invoice0_.EM_Aeatsii_Descripcion_Sii as em_aea115_244_, invoice0_.EM_Tbai_Isreverseinvoice as em_tba116_244_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as em_aea117_244_, invoice0_.EM_Tbai_Invoiceseq as em_tba118_244_, invoice0_.EM_Aeatsii_Dup as em_aea119_244_, invoice0_.EM_Tbai_Invoicenum as em_tba120_244_, invoice0_.EM_Aeatsii_Error_Code as em_aea121_244_, invoice0_.EM_Etvfac_Bp_Name_Copy as em_etv122_244_, invoice0_.EM_Etvfac_Rect_Create as em_etv123_244_, invoice0_.EM_Aeatsii_Error_Msg as em_aea124_244_, invoice0_.EM_Etcopag_Cop_Feedback as em_etc125_244_, invoice0_.EM_Etvfac_Bp_Taxid_Copy as em_etv126_244_, invoice0_.EM_Etvfac_Is_Gen_Manual as em_etv127_244_, invoice0_.EM_Aeatsii_Unsubscribe as em_aea128_244_, invoice0_.EM_Etvfac_Contact_Name_Copy as em_etv129_244_, invoice0_.EM_Aeatsii_Pur_Description_ID as em_aea130_244_, invoice0_.EM_Etvfac_Address1_Copy as em_etv131_244_, invoice0_.EM_Etvfac_Postal_Copy as em_etv132_244_, invoice0_.EM_Aeatsii_Multi_Dua as em_aea133_244_, invoice0_.EM_Etvfac_City_Copy as em_etv134_244_, invoice0_.EM_Aeatsii_Ejercicio as em_aea135_244_, invoice0_.EM_Etvfac_Region_Copy as em_etv136_244_, invoice0_.EM_Aeatsii_Periodo as em_aea137_244_, invoice0_.EM_Etvfac_Country_Copy as em_etv138_244_, invoice0_.EM_Aeatsii_Autofactura as em_aea139_244_, invoice0_.EM_Etvfac_Phone_Copy as em_etv140_244_, invoice0_.EM_Aeatsii_Invoice_ID as em_aea141_244_, invoice0_.EM_Etvfac_Fax_Copy as em_etv142_244_, invoice0_.EM_Aeatsii_Insiidate as em_aea143_244_, invoice0_.EM_Etvfac_Org_Name_Copy as em_etv144_244_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as em_aea145_244_, invoice0_.EM_Etvfac_Org_Taxid_Copy as em_etv146_244_, invoice0_.EM_Etvfac_Org_Location_Copy as em_etv147_244_, invoice0_.EM_Aeatsii_Isauthorization as em_aea148_244_, invoice0_.EM_Aeatsii_Authorizationno as em_aea149_244_, invoice0_.EM_Etvfac_Invoice_Status as em_etv150_244_, invoice0_.EM_Etvfac_Senttoverifac as em_etv151_244_, invoice0_.EM_Etvfac_Inv_Type as em_etv152_244_, invoice0_.EM_Etvfac_Invnoidart61d as em_etv153_244_, invoice0_.EM_Etvfac_Verifac_Desc as em_etv154_244_, invoice0_.EM_Etvfac_Corrected_Inv as em_etv155_244_, invoice0_.EM_Etvfac_Date_Operation as em_etv156_244_, invoice0_.EM_Etvfac_Reverseinvtype as em_etv157_244_, invoice0_.EM_Priuti_Createpurchinv as em_pri158_244_, invoice0_.EM_Priuti_Generated as em_pri159_244_, invoice0_.EM_Priuti_Date_Complete as em_pri160_244_, invoice0_.EM_Tbai_Issue_Date as em_tba161_244_, invoice0_.EM_Priuti_User_Complete_ID as em_pri162_244_, invoice0_.EM_Priuti_Status_Of_Review as em_pri163_244_, invoice0_.EM_Etvfac_External_Ref as em_etv164_244_, invoice0_.EM_Priuti_Validate as em_pri165_244_, invoice0_.EM_Priuti_Start_Review as em_pri166_244_, invoice0_.EM_Prsii_Changeperiod as em_prs167_244_, invoice0_.EM_Etsg_Is_F3 as em_ets168_244_, invoice0_.EM_Etvfac_Hash as em_etv169_244_, invoice0_.EM_Prsii_Changeperiodlog as em_prs170_244_, invoice0_.EM_Etsg_Date_Operation as em_ets171_244_, invoice0_.EM_Tbai_Date_Operation as em_tba172_244_, invoice0_.EM_Etvfac_Issubsanation as em_etv173_244_, invoice0_.EM_Etvfac_Void as em_etv174_244_, invoice0_.EM_Tbai_Voidxmlgenerator as em_tba175_244_, invoice0_.EM_Priuti_Delete_Payment_Sch as em_pri176_244_, invoice0_.EM_Priuti_Sch_Inv_Log as em_pri177_244_, invoice0_.EM_Priuti_Addlines_Btn as em_pri178_244_, invoice0_.EM_Pruti_Notsendinvoice as em_pru179_244_, invoice0_.EM_Etvfac_Simpinvart7273 as em_etv180_244_, invoice0_.EM_Aeatsii_Hash as em_aea181_244_, invoice0_.EM_Aeatsii_Date_Issue as em_aea182_244_, invoice0_.EM_Etvfac_Qr_Url as em_etv183_244_, invoice0_.EM_Etvfac_Issued_Externally as em_etv184_244_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%224411%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by invoice0_.DocumentNo, invoice0_.C_Invoice_ID limit '101';
Date: 2026-07-16 15:21:40 Duration: 1s428ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as c_invoic1_244_, invoice0_.AD_Client_ID as ad_clien2_244_, invoice0_.AD_Org_ID as ad_org_i3_244_, invoice0_.IsActive as isactive4_244_, invoice0_.Created as created5_244_, invoice0_.CreatedBy as createdb6_244_, invoice0_.Updated as updated7_244_, invoice0_.UpdatedBy as updatedb8_244_, invoice0_.IsSOTrx as issotrx9_244_, invoice0_.DocumentNo as documen10_244_, invoice0_.DocStatus as docstat11_244_, invoice0_.DocAction as docacti12_244_, invoice0_.Processing as process13_244_, invoice0_.Processed as process14_244_, invoice0_.Posted as posted15_244_, invoice0_.C_DocType_ID as c_docty16_244_, invoice0_.C_DocTypeTarget_ID as c_docty17_244_, invoice0_.C_Order_ID as c_order18_244_, invoice0_.Description as descrip19_244_, invoice0_.IsPrinted as isprint20_244_, invoice0_.SalesRep_ID as salesre21_244_, invoice0_.DateInvoiced as dateinv22_244_, invoice0_.DatePrinted as datepri23_244_, invoice0_.DateAcct as dateacc24_244_, invoice0_.C_BPartner_ID as c_bpart25_244_, invoice0_.C_BPartner_Location_ID as c_bpart26_244_, invoice0_.POReference as porefer27_244_, invoice0_.IsDiscountPrinted as isdisco28_244_, invoice0_.DateOrdered as dateord29_244_, invoice0_.C_Currency_ID as c_curre30_244_, invoice0_.C_PaymentTerm_ID as c_payme31_244_, invoice0_.C_Charge_ID as c_charg32_244_, invoice0_.ChargeAmt as chargea33_244_, invoice0_.TotalLines as totalli34_244_, invoice0_.GrandTotal as grandto35_244_, invoice0_.M_PriceList_ID as m_price36_244_, invoice0_.IsTaxIncluded as istaxin37_244_, invoice0_.C_Campaign_ID as c_campa38_244_, invoice0_.C_Project_ID as c_proje39_244_, invoice0_.C_Activity_ID as c_activ40_244_, invoice0_.CreateFrom as createf41_244_, invoice0_.GenerateTo as generat42_244_, invoice0_.AD_User_ID as ad_user43_244_, invoice0_.CopyFrom as copyfro44_244_, invoice0_.IsSelfService as isselfs45_244_, invoice0_.AD_OrgTrx_ID as ad_orgt46_244_, invoice0_.User1_ID as user47_244_, invoice0_.User2_ID as user48_244_, invoice0_.Withholdingamount as withhol49_244_, invoice0_.Taxdate as taxdate50_244_, invoice0_.C_Withholding_ID as c_withh51_244_, invoice0_.Ispaid as ispaid52_244_, invoice0_.EM_Einv_Generated as em_einv53_244_, invoice0_.Totalpaid as totalpa54_244_, invoice0_.EM_Einv_Sent as em_einv55_244_, invoice0_.OutstandingAmt as outstan56_244_, invoice0_.DaysTillDue as daystil57_244_, invoice0_.DueAmt as dueamt58_244_, invoice0_.LastCalculatedOnDate as lastcal59_244_, invoice0_.FIN_Paymentmethod_ID as fin_pay60_244_, invoice0_.FIN_Payment_Priority_ID as fin_pay61_244_, invoice0_.Finalsettlement as finalse62_244_, invoice0_.Daysoutstanding as daysout63_244_, invoice0_.Percentageoverdue as percent64_244_, invoice0_.C_Costcenter_ID as c_costc65_244_, invoice0_.Calculate_Promotions as calcula66_244_, invoice0_.A_Asset_ID as a_asset67_244_, invoice0_.EM_APRM_Addpayment as em_aprm68_244_, invoice0_.Iscashvat as iscashv69_244_, invoice0_.EM_APRM_Processinvoice as em_aprm70_244_, invoice0_.EM_Obcma_C_Poc_Email_ID as em_obcm71_244_, invoice0_.Prepaymentamt as prepaym72_244_, invoice0_.Createfromorders as createf73_244_, invoice0_.Createfrominouts as createf74_244_, invoice0_.Paidamtatinvoicing as paidamt75_244_, invoice0_.BPartner_ExtRef as bpartne76_244_, invoice0_.EM_Aeatsii_Send as em_aeat77_244_, invoice0_.EM_Etblkp_Accountingstatus as em_etbl78_244_, invoice0_.EM_Aeatsii_Issent as em_aeat79_244_, invoice0_.EM_Etabam_Bankaccount_ID as em_etab80_244_, invoice0_.EM_Etafdp_Unvoid as em_etaf81_244_, invoice0_.EM_Etblkp_Bulkposting as em_etbl82_244_, invoice0_.EM_Etpr_Remove_Payment as em_etpr83_244_, invoice0_.EM_Aeatsii_Fecha_Operacion as em_aeat84_244_, invoice0_.EM_Ec_Amplied_Description as em_ec_a85_244_, invoice0_.EM_Etblkc_Bulkcompletion as em_etbl86_244_, invoice0_.EM_Aeatsii_Clave_Tipo as em_aeat87_244_, invoice0_.EM_Etinter_Interco_Orig as em_etin88_244_, invoice0_.EM_Aeatsii_Motivo_Rectif as em_aeat89_244_, invoice0_.EM_Prouti_Recalculate_Price as em_prou90_244_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as em_aeat91_244_, invoice0_.EM_Ml_Select_Product as em_ml_s92_244_, invoice0_.EM_Prouti_Pricecalculatetdate as em_prou93_244_, invoice0_.em_tbai_qrcode as em_tbai94_244_, invoice0_.EM_Aeatsii_Tipo_Rectif as em_aeat95_244_, invoice0_.EM_Prouti_Totalizations as em_prou96_244_, invoice0_.EM_Tbai_Url as em_tbai97_244_, invoice0_.EM_Aeatsii_Dua as em_aeat98_244_, invoice0_.EM_Tbai_Xmlgenerator as em_tbai99_244_, invoice0_.EM_Aeatsii_Fecha_Dua as em_aea100_244_, invoice0_.EM_Tbai_Signaturevalue as em_tba101_244_, invoice0_.EM_Aeatsii_Estado as em_aea102_244_, invoice0_.EM_Tbai_Sequence as em_tba103_244_, invoice0_.EM_Aeatsii_Error_Registral as em_aea104_244_, invoice0_.EM_Tbai_Idtbai as em_tba105_244_, invoice0_.EM_Aeatsii_Modif as em_aea106_244_, invoice0_.EM_Etvfac_Date_Issue as em_etv107_244_, invoice0_.EM_Tbai_Reverseinvoicecode as em_tba108_244_, invoice0_.EM_Aeatsii_Modified as em_aea109_244_, invoice0_.EM_Etvfac_Issue as em_etv110_244_, invoice0_.EM_Tbai_Issent as em_tba111_244_, invoice0_.EM_Aeatsii_Description_ID as em_aea112_244_, invoice0_.EM_Etvfac_Issue_Description as em_etv113_244_, invoice0_.EM_Tbai_Reverseinvoicetype as em_tba114_244_, invoice0_.EM_Aeatsii_Descripcion_Sii as em_aea115_244_, invoice0_.EM_Tbai_Isreverseinvoice as em_tba116_244_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as em_aea117_244_, invoice0_.EM_Tbai_Invoiceseq as em_tba118_244_, invoice0_.EM_Aeatsii_Dup as em_aea119_244_, invoice0_.EM_Tbai_Invoicenum as em_tba120_244_, invoice0_.EM_Aeatsii_Error_Code as em_aea121_244_, invoice0_.EM_Etvfac_Bp_Name_Copy as em_etv122_244_, invoice0_.EM_Etvfac_Rect_Create as em_etv123_244_, invoice0_.EM_Aeatsii_Error_Msg as em_aea124_244_, invoice0_.EM_Etcopag_Cop_Feedback as em_etc125_244_, invoice0_.EM_Etvfac_Bp_Taxid_Copy as em_etv126_244_, invoice0_.EM_Etvfac_Is_Gen_Manual as em_etv127_244_, invoice0_.EM_Aeatsii_Unsubscribe as em_aea128_244_, invoice0_.EM_Etvfac_Contact_Name_Copy as em_etv129_244_, invoice0_.EM_Aeatsii_Pur_Description_ID as em_aea130_244_, invoice0_.EM_Etvfac_Address1_Copy as em_etv131_244_, invoice0_.EM_Etvfac_Postal_Copy as em_etv132_244_, invoice0_.EM_Aeatsii_Multi_Dua as em_aea133_244_, invoice0_.EM_Etvfac_City_Copy as em_etv134_244_, invoice0_.EM_Aeatsii_Ejercicio as em_aea135_244_, invoice0_.EM_Etvfac_Region_Copy as em_etv136_244_, invoice0_.EM_Aeatsii_Periodo as em_aea137_244_, invoice0_.EM_Etvfac_Country_Copy as em_etv138_244_, invoice0_.EM_Aeatsii_Autofactura as em_aea139_244_, invoice0_.EM_Etvfac_Phone_Copy as em_etv140_244_, invoice0_.EM_Aeatsii_Invoice_ID as em_aea141_244_, invoice0_.EM_Etvfac_Fax_Copy as em_etv142_244_, invoice0_.EM_Aeatsii_Insiidate as em_aea143_244_, invoice0_.EM_Etvfac_Org_Name_Copy as em_etv144_244_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as em_aea145_244_, invoice0_.EM_Etvfac_Org_Taxid_Copy as em_etv146_244_, invoice0_.EM_Etvfac_Org_Location_Copy as em_etv147_244_, invoice0_.EM_Aeatsii_Isauthorization as em_aea148_244_, invoice0_.EM_Aeatsii_Authorizationno as em_aea149_244_, invoice0_.EM_Etvfac_Invoice_Status as em_etv150_244_, invoice0_.EM_Etvfac_Senttoverifac as em_etv151_244_, invoice0_.EM_Etvfac_Inv_Type as em_etv152_244_, invoice0_.EM_Etvfac_Invnoidart61d as em_etv153_244_, invoice0_.EM_Etvfac_Verifac_Desc as em_etv154_244_, invoice0_.EM_Etvfac_Corrected_Inv as em_etv155_244_, invoice0_.EM_Etvfac_Date_Operation as em_etv156_244_, invoice0_.EM_Etvfac_Reverseinvtype as em_etv157_244_, invoice0_.EM_Priuti_Createpurchinv as em_pri158_244_, invoice0_.EM_Priuti_Generated as em_pri159_244_, invoice0_.EM_Priuti_Date_Complete as em_pri160_244_, invoice0_.EM_Tbai_Issue_Date as em_tba161_244_, invoice0_.EM_Priuti_User_Complete_ID as em_pri162_244_, invoice0_.EM_Priuti_Status_Of_Review as em_pri163_244_, invoice0_.EM_Etvfac_External_Ref as em_etv164_244_, invoice0_.EM_Priuti_Validate as em_pri165_244_, invoice0_.EM_Priuti_Start_Review as em_pri166_244_, invoice0_.EM_Prsii_Changeperiod as em_prs167_244_, invoice0_.EM_Etsg_Is_F3 as em_ets168_244_, invoice0_.EM_Etvfac_Hash as em_etv169_244_, invoice0_.EM_Prsii_Changeperiodlog as em_prs170_244_, invoice0_.EM_Etsg_Date_Operation as em_ets171_244_, invoice0_.EM_Tbai_Date_Operation as em_tba172_244_, invoice0_.EM_Etvfac_Issubsanation as em_etv173_244_, invoice0_.EM_Etvfac_Void as em_etv174_244_, invoice0_.EM_Tbai_Voidxmlgenerator as em_tba175_244_, invoice0_.EM_Priuti_Delete_Payment_Sch as em_pri176_244_, invoice0_.EM_Priuti_Sch_Inv_Log as em_pri177_244_, invoice0_.EM_Priuti_Addlines_Btn as em_pri178_244_, invoice0_.EM_Pruti_Notsendinvoice as em_pru179_244_, invoice0_.EM_Etvfac_Simpinvart7273 as em_etv180_244_, invoice0_.EM_Aeatsii_Hash as em_aea181_244_, invoice0_.EM_Aeatsii_Date_Issue as em_aea182_244_, invoice0_.EM_Etvfac_Qr_Url as em_etv183_244_, invoice0_.EM_Etvfac_Issued_Externally as em_etv184_244_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%224273%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by invoice0_.DocumentNo, invoice0_.C_Invoice_ID limit '101';
Date: 2026-07-16 13:13:21 Duration: 1s406ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoice0_.C_Invoice_ID as c_invoic1_244_, invoice0_.AD_Client_ID as ad_clien2_244_, invoice0_.AD_Org_ID as ad_org_i3_244_, invoice0_.IsActive as isactive4_244_, invoice0_.Created as created5_244_, invoice0_.CreatedBy as createdb6_244_, invoice0_.Updated as updated7_244_, invoice0_.UpdatedBy as updatedb8_244_, invoice0_.IsSOTrx as issotrx9_244_, invoice0_.DocumentNo as documen10_244_, invoice0_.DocStatus as docstat11_244_, invoice0_.DocAction as docacti12_244_, invoice0_.Processing as process13_244_, invoice0_.Processed as process14_244_, invoice0_.Posted as posted15_244_, invoice0_.C_DocType_ID as c_docty16_244_, invoice0_.C_DocTypeTarget_ID as c_docty17_244_, invoice0_.C_Order_ID as c_order18_244_, invoice0_.Description as descrip19_244_, invoice0_.IsPrinted as isprint20_244_, invoice0_.SalesRep_ID as salesre21_244_, invoice0_.DateInvoiced as dateinv22_244_, invoice0_.DatePrinted as datepri23_244_, invoice0_.DateAcct as dateacc24_244_, invoice0_.C_BPartner_ID as c_bpart25_244_, invoice0_.C_BPartner_Location_ID as c_bpart26_244_, invoice0_.POReference as porefer27_244_, invoice0_.IsDiscountPrinted as isdisco28_244_, invoice0_.DateOrdered as dateord29_244_, invoice0_.C_Currency_ID as c_curre30_244_, invoice0_.C_PaymentTerm_ID as c_payme31_244_, invoice0_.C_Charge_ID as c_charg32_244_, invoice0_.ChargeAmt as chargea33_244_, invoice0_.TotalLines as totalli34_244_, invoice0_.GrandTotal as grandto35_244_, invoice0_.M_PriceList_ID as m_price36_244_, invoice0_.IsTaxIncluded as istaxin37_244_, invoice0_.C_Campaign_ID as c_campa38_244_, invoice0_.C_Project_ID as c_proje39_244_, invoice0_.C_Activity_ID as c_activ40_244_, invoice0_.CreateFrom as createf41_244_, invoice0_.GenerateTo as generat42_244_, invoice0_.AD_User_ID as ad_user43_244_, invoice0_.CopyFrom as copyfro44_244_, invoice0_.IsSelfService as isselfs45_244_, invoice0_.AD_OrgTrx_ID as ad_orgt46_244_, invoice0_.User1_ID as user47_244_, invoice0_.User2_ID as user48_244_, invoice0_.Withholdingamount as withhol49_244_, invoice0_.Taxdate as taxdate50_244_, invoice0_.C_Withholding_ID as c_withh51_244_, invoice0_.Ispaid as ispaid52_244_, invoice0_.EM_Einv_Generated as em_einv53_244_, invoice0_.Totalpaid as totalpa54_244_, invoice0_.EM_Einv_Sent as em_einv55_244_, invoice0_.OutstandingAmt as outstan56_244_, invoice0_.DaysTillDue as daystil57_244_, invoice0_.DueAmt as dueamt58_244_, invoice0_.LastCalculatedOnDate as lastcal59_244_, invoice0_.FIN_Paymentmethod_ID as fin_pay60_244_, invoice0_.FIN_Payment_Priority_ID as fin_pay61_244_, invoice0_.Finalsettlement as finalse62_244_, invoice0_.Daysoutstanding as daysout63_244_, invoice0_.Percentageoverdue as percent64_244_, invoice0_.C_Costcenter_ID as c_costc65_244_, invoice0_.Calculate_Promotions as calcula66_244_, invoice0_.A_Asset_ID as a_asset67_244_, invoice0_.EM_APRM_Addpayment as em_aprm68_244_, invoice0_.Iscashvat as iscashv69_244_, invoice0_.EM_APRM_Processinvoice as em_aprm70_244_, invoice0_.EM_Obcma_C_Poc_Email_ID as em_obcm71_244_, invoice0_.Prepaymentamt as prepaym72_244_, invoice0_.Createfromorders as createf73_244_, invoice0_.Createfrominouts as createf74_244_, invoice0_.Paidamtatinvoicing as paidamt75_244_, invoice0_.BPartner_ExtRef as bpartne76_244_, invoice0_.EM_Aeatsii_Send as em_aeat77_244_, invoice0_.EM_Etblkp_Accountingstatus as em_etbl78_244_, invoice0_.EM_Aeatsii_Issent as em_aeat79_244_, invoice0_.EM_Etabam_Bankaccount_ID as em_etab80_244_, invoice0_.EM_Etafdp_Unvoid as em_etaf81_244_, invoice0_.EM_Etblkp_Bulkposting as em_etbl82_244_, invoice0_.EM_Etpr_Remove_Payment as em_etpr83_244_, invoice0_.EM_Aeatsii_Fecha_Operacion as em_aeat84_244_, invoice0_.EM_Ec_Amplied_Description as em_ec_a85_244_, invoice0_.EM_Etblkc_Bulkcompletion as em_etbl86_244_, invoice0_.EM_Aeatsii_Clave_Tipo as em_aeat87_244_, invoice0_.EM_Etinter_Interco_Orig as em_etin88_244_, invoice0_.EM_Aeatsii_Motivo_Rectif as em_aeat89_244_, invoice0_.EM_Prouti_Recalculate_Price as em_prou90_244_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as em_aeat91_244_, invoice0_.EM_Ml_Select_Product as em_ml_s92_244_, invoice0_.EM_Prouti_Pricecalculatetdate as em_prou93_244_, invoice0_.em_tbai_qrcode as em_tbai94_244_, invoice0_.EM_Aeatsii_Tipo_Rectif as em_aeat95_244_, invoice0_.EM_Prouti_Totalizations as em_prou96_244_, invoice0_.EM_Tbai_Url as em_tbai97_244_, invoice0_.EM_Aeatsii_Dua as em_aeat98_244_, invoice0_.EM_Tbai_Xmlgenerator as em_tbai99_244_, invoice0_.EM_Aeatsii_Fecha_Dua as em_aea100_244_, invoice0_.EM_Tbai_Signaturevalue as em_tba101_244_, invoice0_.EM_Aeatsii_Estado as em_aea102_244_, invoice0_.EM_Tbai_Sequence as em_tba103_244_, invoice0_.EM_Aeatsii_Error_Registral as em_aea104_244_, invoice0_.EM_Tbai_Idtbai as em_tba105_244_, invoice0_.EM_Aeatsii_Modif as em_aea106_244_, invoice0_.EM_Etvfac_Date_Issue as em_etv107_244_, invoice0_.EM_Tbai_Reverseinvoicecode as em_tba108_244_, invoice0_.EM_Aeatsii_Modified as em_aea109_244_, invoice0_.EM_Etvfac_Issue as em_etv110_244_, invoice0_.EM_Tbai_Issent as em_tba111_244_, invoice0_.EM_Aeatsii_Description_ID as em_aea112_244_, invoice0_.EM_Etvfac_Issue_Description as em_etv113_244_, invoice0_.EM_Tbai_Reverseinvoicetype as em_tba114_244_, invoice0_.EM_Aeatsii_Descripcion_Sii as em_aea115_244_, invoice0_.EM_Tbai_Isreverseinvoice as em_tba116_244_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as em_aea117_244_, invoice0_.EM_Tbai_Invoiceseq as em_tba118_244_, invoice0_.EM_Aeatsii_Dup as em_aea119_244_, invoice0_.EM_Tbai_Invoicenum as em_tba120_244_, invoice0_.EM_Aeatsii_Error_Code as em_aea121_244_, invoice0_.EM_Etvfac_Bp_Name_Copy as em_etv122_244_, invoice0_.EM_Etvfac_Rect_Create as em_etv123_244_, invoice0_.EM_Aeatsii_Error_Msg as em_aea124_244_, invoice0_.EM_Etcopag_Cop_Feedback as em_etc125_244_, invoice0_.EM_Etvfac_Bp_Taxid_Copy as em_etv126_244_, invoice0_.EM_Etvfac_Is_Gen_Manual as em_etv127_244_, invoice0_.EM_Aeatsii_Unsubscribe as em_aea128_244_, invoice0_.EM_Etvfac_Contact_Name_Copy as em_etv129_244_, invoice0_.EM_Aeatsii_Pur_Description_ID as em_aea130_244_, invoice0_.EM_Etvfac_Address1_Copy as em_etv131_244_, invoice0_.EM_Etvfac_Postal_Copy as em_etv132_244_, invoice0_.EM_Aeatsii_Multi_Dua as em_aea133_244_, invoice0_.EM_Etvfac_City_Copy as em_etv134_244_, invoice0_.EM_Aeatsii_Ejercicio as em_aea135_244_, invoice0_.EM_Etvfac_Region_Copy as em_etv136_244_, invoice0_.EM_Aeatsii_Periodo as em_aea137_244_, invoice0_.EM_Etvfac_Country_Copy as em_etv138_244_, invoice0_.EM_Aeatsii_Autofactura as em_aea139_244_, invoice0_.EM_Etvfac_Phone_Copy as em_etv140_244_, invoice0_.EM_Aeatsii_Invoice_ID as em_aea141_244_, invoice0_.EM_Etvfac_Fax_Copy as em_etv142_244_, invoice0_.EM_Aeatsii_Insiidate as em_aea143_244_, invoice0_.EM_Etvfac_Org_Name_Copy as em_etv144_244_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as em_aea145_244_, invoice0_.EM_Etvfac_Org_Taxid_Copy as em_etv146_244_, invoice0_.EM_Etvfac_Org_Location_Copy as em_etv147_244_, invoice0_.EM_Aeatsii_Isauthorization as em_aea148_244_, invoice0_.EM_Aeatsii_Authorizationno as em_aea149_244_, invoice0_.EM_Etvfac_Invoice_Status as em_etv150_244_, invoice0_.EM_Etvfac_Senttoverifac as em_etv151_244_, invoice0_.EM_Etvfac_Inv_Type as em_etv152_244_, invoice0_.EM_Etvfac_Invnoidart61d as em_etv153_244_, invoice0_.EM_Etvfac_Verifac_Desc as em_etv154_244_, invoice0_.EM_Etvfac_Corrected_Inv as em_etv155_244_, invoice0_.EM_Etvfac_Date_Operation as em_etv156_244_, invoice0_.EM_Etvfac_Reverseinvtype as em_etv157_244_, invoice0_.EM_Priuti_Createpurchinv as em_pri158_244_, invoice0_.EM_Priuti_Generated as em_pri159_244_, invoice0_.EM_Priuti_Date_Complete as em_pri160_244_, invoice0_.EM_Tbai_Issue_Date as em_tba161_244_, invoice0_.EM_Priuti_User_Complete_ID as em_pri162_244_, invoice0_.EM_Priuti_Status_Of_Review as em_pri163_244_, invoice0_.EM_Etvfac_External_Ref as em_etv164_244_, invoice0_.EM_Priuti_Validate as em_pri165_244_, invoice0_.EM_Priuti_Start_Review as em_pri166_244_, invoice0_.EM_Prsii_Changeperiod as em_prs167_244_, invoice0_.EM_Etsg_Is_F3 as em_ets168_244_, invoice0_.EM_Etvfac_Hash as em_etv169_244_, invoice0_.EM_Prsii_Changeperiodlog as em_prs170_244_, invoice0_.EM_Etsg_Date_Operation as em_ets171_244_, invoice0_.EM_Tbai_Date_Operation as em_tba172_244_, invoice0_.EM_Etvfac_Issubsanation as em_etv173_244_, invoice0_.EM_Etvfac_Void as em_etv174_244_, invoice0_.EM_Tbai_Voidxmlgenerator as em_tba175_244_, invoice0_.EM_Priuti_Delete_Payment_Sch as em_pri176_244_, invoice0_.EM_Priuti_Sch_Inv_Log as em_pri177_244_, invoice0_.EM_Priuti_Addlines_Btn as em_pri178_244_, invoice0_.EM_Pruti_Notsendinvoice as em_pru179_244_, invoice0_.EM_Etvfac_Simpinvart7273 as em_etv180_244_, invoice0_.EM_Aeatsii_Hash as em_aea181_244_, invoice0_.EM_Aeatsii_Date_Issue as em_aea182_244_, invoice0_.EM_Etvfac_Qr_Url as em_etv183_244_, invoice0_.EM_Etvfac_Issued_Externally as em_etv184_244_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%224374%') escape '|') and invoice0_.IsSOTrx = 'Y' and invoice0_.DocStatus <> 'TEMP' and (invoice0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by invoice0_.DocumentNo, invoice0_.C_Invoice_ID limit '101';
Date: 2026-07-16 15:17:22 Duration: 1s340ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 9 1m13s 7s725ms 8s902ms 8s196ms select id, c_order_id, documentno, dateordered, c_bpartner_id, partner_name, product_value, product_id, product_name, description, attributeid, total_qty, qtyordered, mlocatorid, mlocatorname, orderlineid, qtypending, isactive, ? as date_format, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = ? where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, ?)), ?) as uomsymbol, conversionrate, c_aum as alternativeuom from ( select c_orderline.c_orderline_id as id, c_order.c_order_id as c_order_id, c_order.documentno || ? || to_char(c_order.dateordered, ?) || ? || to_char(c_order.datepromised, ?) as documentno, c_order.dateordered as dateordered, c_bpartner.c_bpartner_id as c_bpartner_id, c_bpartner.name || ? || c_bpartner.name2 as partner_name, c_orderline.m_product_id as product_id, ad_column_identifier (to_char(?), to_char(c_orderline.m_product_id), to_char(?)) as product_name, ( select value from m_product where m_product_id = c_orderline.m_product_id) as product_value, m_attributesetinstance.description as description, m_attributesetinstance.m_attributesetinstance_id as attributeid, coalesce(c_orderline.aumqty, c_orderline.qtyordered) as total_qty, coalesce(c_orderline.aumqty, c_orderline.qtyordered) - round((sum(coalesce(m_matchpo.qty, ?)) * round((coalesce(c_orderline.aumqty, c_orderline.qtyordered) / c_orderline.qtyordered), ?)), ?) as qtypending, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then (c_orderline.qtyordered - sum(coalesce(m_matchpo.qty, ?))) else ? end as qtyordered, ? as isactive, c_orderline.line, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorid, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorname, c_orderline.c_orderline_id as orderlineid, null as c_aum, c_orderline.c_uom_id, ? as conversionrate from c_orderline left join m_matchpo on c_orderline.c_orderline_id = m_matchpo.c_orderline_id and m_matchpo.m_inoutline_id is not null left join m_attributesetinstance on c_orderline.m_attributesetinstance_id = m_attributesetinstance.m_attributesetinstance_id, c_order, c_bpartner, c_doctype where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_orderline.qtyordered != ? and c_order.c_order_id = c_orderline.c_order_id and c_order.ad_client_id in (...) and c_order.ad_org_id in (...) and c_order.issotrx = ? and c_order.documentno like ? and c_order.docstatus = ? and c_order.c_doctype_id = c_doctype.c_doctype_id and c_doctype.isreturn = ? group by c_orderline.c_orderline_id, c_order.c_order_id, c_order.documentno, c_order.dateordered, c_bpartner.c_bpartner_id, c_bpartner.name, c_bpartner.name2, c_orderline.m_product_id, m_attributesetinstance.description, m_attributesetinstance.m_attributesetinstance_id, c_orderline.qtyordered, c_orderline.line) a where ( case when total_qty < ? then ? else ? end) = ( case when qtypending < ? then ? else ? end) and qtypending <> ? order by c_bpartner_id, documentno, line;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 16 09 3 24s139ms 8s46ms 10 1 8s141ms 8s141ms 11 1 7s969ms 7s969ms 15 2 16s57ms 8s28ms 16 2 17s462ms 8s731ms [ User: tad - Total duration: 1m13s - Times executed: 9 ]
[ Application: openbravo - Total duration: 1m13s - Times executed: 9 ]
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:10:09 Duration: 8s902ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:04:53 Duration: 8s560ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 15:44:28 Duration: 8s332ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 9 9s270ms 1s18ms 1s52ms 1s30ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ left outer join ad_user aduser1_ on order0_.salesrep_id = aduser1_.ad_user_id cross join c_doctype documentty2_ where order0_.c_doctypetarget_id = documentty2_.c_doctype_id and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by aduser1_.name desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 07 1 1s24ms 1s24ms 08 2 2s40ms 1s20ms 09 2 2s63ms 1s31ms 13 1 1s28ms 1s28ms 14 1 1s52ms 1s52ms 15 2 2s63ms 1s31ms [ User: tad - Total duration: 9s270ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 9s270ms - Times executed: 9 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join AD_User aduser1_ on order0_.SalesRep_ID = aduser1_.AD_User_ID cross join C_DocType documentty2_ where order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by aduser1_.Name desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 14:28:26 Duration: 1s52ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join AD_User aduser1_ on order0_.SalesRep_ID = aduser1_.AD_User_ID cross join C_DocType documentty2_ where order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by aduser1_.Name desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 15:09:58 Duration: 1s42ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ left outer join AD_User aduser1_ on order0_.SalesRep_ID = aduser1_.AD_User_ID cross join C_DocType documentty2_ where order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by aduser1_.Name desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 09:55:17 Duration: 1s33ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 7 24s219ms 3s277ms 3s943ms 3s459ms select sum(order0_.totallines) as col_0_0_, sum(order0_.grandtotal) as col_1_0_, sum(order0_.em_prouti_grandtotalinitial) as col_2_0_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp1_.iscancelled = ? or order_comp1_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and (order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ?) and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 18 7 24s219ms 3s459ms [ User: tad - Total duration: 24s219ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 24s219ms - Times executed: 7 ]
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 18:03:26 Duration: 3s943ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 18:03:27 Duration: 3s430ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 18:03:36 Duration: 3s415ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 6 1m20s 3s994ms 32s509ms 13s349ms select b.* from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum( cost) as cost, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, case when sum(costcalculated) = ? then sum(convcost) when sum(groupcount) <> sum(costcalculated) then sum(convcost) when sum(costedamt) = ? and sum(convcost) > ? then sum(convcost) when sum( case when groupcount = costcalculated then ? else convamount end) = ? then sum(convcost) else sum(convcost) * sum(convamount) / sum( case when groupcount = costcalculated then ? else convamount end) end as convcost, sum(convamountref) as convamountref, sum(convcostref) as convcostref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, sum(zz.costcalculated) as costcalculated from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(linenetamt) as amount, sum(qtyinvoiced) as qty, sum(weight) as weight, sum( cost) as cost, sum(linenetref) as amountref, sum(qtyinvoicedref) as qtyref, sum(weight_ref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, case when sum(costcalculated) >= ? then sum( cost) when sum(costedamt) = ? and sum( cost) > ? then sum( cost) else sum( cost) * sum(linenetamt) / sum(costedamt) end as convcost, ? as convamountref, ? as convcostref, trcurrencyid, trdate, trclientid, trorgid, sum(aa.costcalculated) as costcalculated, c_currency_convert (sum(costedamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as costedamt, count(*) as groupcount from ( select to_char(ad_column_identifier (to_char(?), to_char(c_bpartner.c_bpartner_id), to_char(?))) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end as linenetamt, case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * - ? else c_invoiceline.qtyinvoiced end as qtyinvoiced, c_invoiceline.qtyinvoiced * m_product.weight as weight, ? as linenetref, ? as qtyinvoicedref, ? as weight_ref, c_uom.uomsymbol, c_invoice.c_currency_id as trcurrencyid, to_date(coalesce(c_invoice.dateinvoiced, now())) as trdate, c_invoiceline.ad_client_id as trclientid, c_invoiceline.ad_org_id as trorgid, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else ? end as costcalculated, case when m_product.isstocked = ? and m_product.producttype = ? then case when c_invoiceline.m_inoutline_id is null then coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) when trx.movementqty = ? then ? else case when c_doctype.docbasetype = ? then ? * coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) else coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) end end else coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) end as cost, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end end as costedamt from c_invoiceline join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id join c_bpartner on c_invoice.c_bpartner_id = c_bpartner.c_bpartner_id join c_bp_group on c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id join ad_org on c_invoice.ad_org_id = ad_org.ad_org_id left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id left join ad_user on c_invoice.salesrep_id = ad_user.ad_user_id left join c_project on c_invoice.c_project_id = c_project.c_project_id left join c_doctype on c_invoice.c_doctype_id = c_doctype.c_doctype_id left join m_product on c_invoiceline.m_product_id = m_product.m_product_id left join c_uom on c_invoiceline.c_uom_id = c_uom.c_uom_id left join m_product_category on m_product.m_product_category_id = m_product_category.m_product_category_id left join m_inoutline on c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id left join m_transaction trx on trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( select m_transaction_id, sum( cost) as total_cost, max(c_currency_id) as c_currency_id from m_transaction_cost group by m_transaction_id) trxcost on trx.m_transaction_id = trxcost.m_transaction_id where c_invoice.issotrx = ? and c_invoice.processed = ? and c_invoice.ad_org_id in (...) and c_invoice.ad_client_id in (...) and ? = ? and c_invoice.dateinvoiced >= to_date(?) and c_invoice.dateinvoiced < to_date(?) group by trxcost.m_transaction_id, c_invoiceline.c_invoiceline_id, c_bpartner.c_bpartner_id, m_product_category.name, c_invoice.documentno, ad_org.name, ad_user.ad_user_id, c_project.name, ad_user.firstname, ad_user.lastname, c_bp_group.name, m_inout.c_bpartner_location_id, c_invoiceline.ad_client_id, c_invoiceline.ad_org_id, c_invoiceline.linenetamt, c_invoiceline.qtyinvoiced, c_uom.uomsymbol, c_doctype.docbasetype, ad_org.ad_org_id, c_invoice.c_currency_id, c_invoice.dateinvoiced, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, m_product.weight, m_product.m_product_id, m_product.isstocked, m_product.producttype, c_invoiceline.m_inoutline_id order by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10 order by nivel1) b limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 16 09 1 5s549ms 5s549ms 14 3 12s44ms 4s14ms 18 2 1m2s 31s251ms [ User: tad - Total duration: 1m20s - Times executed: 6 ]
[ Application: openbravo - Total duration: 1m20s - Times executed: 6 ]
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2026') AND C_INVOICE.DATEINVOICED < to_date('17-07-2026') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 18:32:46 Duration: 32s509ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2025') AND C_INVOICE.DATEINVOICED < to_date('17-07-2025') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 18:33:44 Duration: 29s994ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('15-07-2026') AND C_INVOICE.DATEINVOICED < to_date('16-07-2026') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 09:23:27 Duration: 5s549ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 6 9s403ms 1s277ms 1s693ms 1s567ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.birthday as birthd101_189_, businesspa0_.is_customer_consent as is_cus102_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs103_189_, businesspa0_.em_obsepad_mandate_date as em_obs104_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea105_189_, businesspa0_.em_aeatsii_menor as em_aea106_189_, businesspa0_.em_ec_isvalorated as em_ec_107_189_, businesspa0_.em_pruti_addbp as em_pru108_189_, businesspa0_.em_ec_isminoutvalued as em_ec_109_189_, businesspa0_.em_pruti_unlock_date as em_pru110_189_, businesspa0_.em_pruti_unlock_order_date as em_pru111_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru112_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru113_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea114_189_, businesspa0_.em_aeatsii_siikeylist as em_aea115_189_, businesspa0_.em_prsii_clave_tipo_proveedor as em_prs116_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba117_189_, businesspa0_.em_prsii_clave_tipo_cliente as em_prs118_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.em_pruti_notsendinvoice as em_pru121_189_, businesspa0_.em_pruti_showpriceingoods as em_pru122_189_, businesspa0_.em_obtik_tax_id_key as em_obt123_189_, businesspa0_.em_prcex_glitem_id as em_prc124_189_ from c_bpartner businesspa0_ where exists ( select ? from c_order order1_ inner join c_bpartner businesspa2_ on order1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by businesspa0_.name, businesspa0_.name2 limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 16 08 1 1s693ms 1s693ms 09 1 1s277ms 1s277ms 12 2 3s192ms 1s596ms 16 1 1s648ms 1s648ms 18 1 1s591ms 1s591ms [ User: tad - Total duration: 9s403ms - Times executed: 6 ]
[ Application: openbravo - Total duration: 9s403ms - Times executed: 6 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea105_189_, businesspa0_.EM_Aeatsii_Menor as em_aea106_189_, businesspa0_.EM_Ec_Isvalorated as em_ec_107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Ec_Isminoutvalued as em_ec_109_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru111_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru113_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea114_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea115_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs116_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba117_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs118_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru121_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru122_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt123_189_, businesspa0_.Em_Prcex_Glitem_Id as em_prc124_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%mac%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-16 08:41:15 Duration: 1s693ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea105_189_, businesspa0_.EM_Aeatsii_Menor as em_aea106_189_, businesspa0_.EM_Ec_Isvalorated as em_ec_107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Ec_Isminoutvalued as em_ec_109_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru111_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru113_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea114_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea115_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs116_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba117_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs118_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru121_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru122_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt123_189_, businesspa0_.Em_Prcex_Glitem_Id as em_prc124_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%pi%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-16 16:18:43 Duration: 1s648ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea105_189_, businesspa0_.EM_Aeatsii_Menor as em_aea106_189_, businesspa0_.EM_Ec_Isvalorated as em_ec_107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Ec_Isminoutvalued as em_ec_109_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru111_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru113_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea114_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea115_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs116_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba117_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs118_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru121_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru122_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt123_189_, businesspa0_.Em_Prcex_Glitem_Id as em_prc124_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Order order1_ inner join C_BPartner businesspa2_ on order1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%pi%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-16 12:50:27 Duration: 1s599ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 5 3m58s 45s316ms 50s118ms 47s648ms select ol.c_orderline_id, ol.c_order_id, ol.ad_org_id, ol.isactive, o.issotrx, ol.c_bpartner_id, ol.c_currency_id, ol.m_product_id, ol.m_warehouse_id, p.m_product_category_id, ol.line, ol.dateordered AS "Fecha Pedido", ol.datepromised AS "Fecha Comprometida", ol.datedelivered AS "Fecha Enviada", ol.description AS "Descripción", ol.qtyordered "Cantidad Pedido", ol.qtydelivered "Cantidad Servida", ol.qtyinvoiced "Cantidad Facturada", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ol.discount AS "Descuento", ol.gross_unit_price, ol.grosspricelist, coalesce(m_get_cost (ol.m_product_id, ol.dateordered::timestamp, ?, ol.ad_org_id, ol.ad_client_id, null, ?, ?) * ol.qtyordered, ?) AS "Coste" from c_orderline ol left join c_order o on o.c_order_id = ol.c_order_id left join m_product p on p.m_product_id = ol.m_product_id where ? = ? and o.issotrx = ? and o.dateordered >= ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 16 11 1 45s316ms 45s316ms 14 1 49s516ms 49s516ms 16 1 46s377ms 46s377ms 18 1 46s915ms 46s915ms 20 1 50s118ms 50s118ms [ User: tad - Total duration: 3m58s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m58s - Times executed: 5 ]
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 20:03:41 Duration: 50s118ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 14:04:55 Duration: 49s516ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 18:04:20 Duration: 46s915ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 45s316ms 50s118ms 47s648ms 5 3m58s select ol.c_orderline_id, ol.c_order_id, ol.ad_org_id, ol.isactive, o.issotrx, ol.c_bpartner_id, ol.c_currency_id, ol.m_product_id, ol.m_warehouse_id, p.m_product_category_id, ol.line, ol.dateordered AS "Fecha Pedido", ol.datepromised AS "Fecha Comprometida", ol.datedelivered AS "Fecha Enviada", ol.description AS "Descripción", ol.qtyordered "Cantidad Pedido", ol.qtydelivered "Cantidad Servida", ol.qtyinvoiced "Cantidad Facturada", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ol.discount AS "Descuento", ol.gross_unit_price, ol.grosspricelist, coalesce(m_get_cost (ol.m_product_id, ol.dateordered::timestamp, ?, ol.ad_org_id, ol.ad_client_id, null, ?, ?) * ol.qtyordered, ?) AS "Coste" from c_orderline ol left join c_order o on o.c_order_id = ol.c_order_id left join m_product p on p.m_product_id = ol.m_product_id where ? = ? and o.issotrx = ? and o.dateordered >= ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 16 11 1 45s316ms 45s316ms 14 1 49s516ms 49s516ms 16 1 46s377ms 46s377ms 18 1 46s915ms 46s915ms 20 1 50s118ms 50s118ms [ User: tad - Total duration: 3m58s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m58s - Times executed: 5 ]
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 20:03:41 Duration: 50s118ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 14:04:55 Duration: 49s516ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, P.m_product_category_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.qtydelivered "Cantidad Servida", OL.qtyinvoiced "Cantidad Facturada", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, OL.dateordered::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyordered, 0) as "Coste" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateordered >= '2020-01-01';
Date: 2026-07-16 18:04:20 Duration: 46s915ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
2 35s123ms 40s232ms 38s116ms 5 3m10s select ol.c_invoiceline_id, ol.c_invoice_id, ol.ad_org_id, ol.isactive, o.issotrx, o.c_bpartner_id, o.c_currency_id, ol.m_product_id, null m_warehouse_id, p.m_product_category_id, ol.line, o.dateinvoiced AS "Fecha Factura", ol.description AS "Descripción", ol.qtyinvoiced "Cantidad Factura", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ? AS "Descuento", ol.gross_unit_price, ol.grosspricelist, coalesce(m_get_cost (ol.m_product_id, o.dateinvoiced::timestamp, ?, ol.ad_org_id, ol.ad_client_id, null, ?, ?) * ol.qtyinvoiced, ?) AS "Coste", ol.created, ol.c_project_id from c_invoiceline ol left join c_invoice o on o.c_invoice_id = ol.c_invoice_id left join m_product p on p.m_product_id = ol.m_product_id where ? = ? and o.issotrx = ? and o.dateinvoiced >= ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 16 11 1 35s123ms 35s123ms 14 1 40s232ms 40s232ms 16 1 36s801ms 36s801ms 18 1 39s957ms 39s957ms 20 1 38s467ms 38s467ms [ User: tad - Total duration: 3m10s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m10s - Times executed: 5 ]
-
SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';
Date: 2026-07-16 14:04:31 Duration: 40s232ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';
Date: 2026-07-16 18:03:41 Duration: 39s957ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT OL.c_invoiceline_id, OL.c_invoice_id, OL.ad_org_id, OL.isactive, O.issotrx, O.c_bpartner_id, O.c_currency_id, OL.m_product_id, null m_warehouse_id, P.m_product_category_id, OL.line, O.dateinvoiced as "Fecha Factura", OL.description as "Descripción", OL.qtyinvoiced "Cantidad Factura", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", 0 as "Descuento", OL.gross_unit_price, OL.grosspricelist, coalesce(m_get_cost (OL.m_product_id, O.dateinvoiced::timestamp, 'AVA', OL.ad_org_id, OL.ad_client_id, null, '102', '102') * OL.qtyinvoiced, 0) as "Coste", OL.created, OL.c_project_id FROM c_invoiceline OL LEFT JOIN c_invoice O on O.c_invoice_id = OL.c_invoice_id LEFT JOIN m_product P on P.m_product_id = OL.m_product_id WHERE 1 = 1 AND O.issotrx = 'Y' and O.dateinvoiced >= '2020-01-01';
Date: 2026-07-16 20:03:30 Duration: 38s467ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
3 23s141ms 24s698ms 23s755ms 15 5m56s select * from ( select c_invoice.c_invoice_id as referencekey_id, ad_column_identifier (?, c_invoice.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, substring(c_invoice.documentno || ? || c_invoiceline.line || ?| | ad_column_identifier_std (?, c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, ?)), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ? || ad_column_identifier_std (?, c_invoiceline.c_tax_id), ?, ?) as description, ? as isactive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = ? and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, ?), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(year from c_invoice.dateinvoiced) >= (extract(year from now())) ?) and c_invoice.ispaid <> ?) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 16 07 1 23s547ms 23s547ms 08 1 23s838ms 23s838ms 09 1 24s61ms 24s61ms 10 1 23s141ms 23s141ms 11 1 23s786ms 23s786ms 12 1 23s630ms 23s630ms 13 1 23s958ms 23s958ms 14 1 23s339ms 23s339ms 15 1 23s445ms 23s445ms 16 1 24s476ms 24s476ms 17 1 23s172ms 23s172ms 18 1 24s443ms 24s443ms 19 1 23s404ms 23s404ms 20 1 23s388ms 23s388ms 21 1 24s698ms 24s698ms [ User: tad - Total duration: 5m56s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m56s - Times executed: 15 ]
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 21:01:48 Duration: 24s698ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 16:01:48 Duration: 24s476ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( SELECT c_invoice.c_invoice_id AS referencekey_id, ad_column_identifier ('c_invoice', c_invoice.c_invoice_id, 'en_US') AS record_id, 0 AS ad_role_id, NULL AS ad_user_id, substring(c_invoice.documentno || ' line: ' || c_invoiceline.line || ' deberia tener ' || ad_column_identifier_std ('c_tax', c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, (coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B')), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx)) || ' y no ' || ad_column_identifier_std ('c_tax', c_invoiceline.c_tax_id), 0, 98) AS description, 'Y' AS isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() AS created, 0 AS createdBy, now() AS updated, 0 AS updatedBy FROM c_invoiceline left join c_invoice on c_invoiceline.c_invoice_id = c_invoice.c_invoice_id left join c_orderline on c_invoiceline.c_orderline_id = c_orderline.c_orderline_id left join c_order on c_orderline.c_order_id = c_order.c_order_id where c_invoice.issotrx = 'Y' and c_invoiceline.c_tax_id <> c_gettax (c_invoiceline.m_product_id, c_invoice.dateinvoiced, c_invoice.ad_org_id, coalesce(c_order.m_warehouse_id, '928AC21B14E24C3C9ED358EBE6E9BD5B'), c_invoice.c_bpartner_location_id, coalesce(c_order.c_bpartner_location_id, c_invoice.c_bpartner_location_id), null, c_invoice.issotrx) and (extract(YEAR from c_invoice.dateinvoiced) >= (extract(YEAR from NOW())) - 1) and c_invoice.ispaid <> 'Y') AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '4A716E283A2446C7BFACA44691ACF5FE' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-16 18:01:48 Duration: 24s443ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 21s999ms 24s514ms 23s257ms 2 46s514ms select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, sum(convamountref) as convamountref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, min(wsymbol) as wsymbol from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11, sum(linenetamt) as amount, sum(qtyordered) as qty, sum(weight) as weight, sum(linenetref) as amountref, sum(qtyorderedref) as qtyref, sum(weightref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, ? as convamountref, trcurrencyid, trdate, trclientid, trorgid, min(wsymbol) as wsymbol from ( select to_char(ad_column_identifier (to_char(?), to_char(c_bpartner.c_bpartner_id), to_char(?))) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, to_char(?) as nivel11, c_orderline.linenetamt, c_orderline.qtyordered, c_orderline.qtyordered * m_product.weight as weight, ? as linenetref, ? as qtyorderedref, ? as weightref, c_uom.uomsymbol, coalesce(c_orderline.c_currency_id, c_order.c_currency_id) as trcurrencyid, to_date(coalesce(c_order.dateordered, now())) as trdate, c_orderline.ad_client_id as trclientid, c_orderline.ad_org_id as trorgid, ( select uomsymbol from c_uom where c_uom_id = aci.c_uom_weight_id) as wsymbol from c_order left join ad_clientinfo aci on aci.ad_client_id = c_order.ad_client_id left join ad_user on c_order.salesrep_id = ad_user.ad_user_id, c_bpartner left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id, c_bp_group, c_orderline, m_product, m_product_category, m_warehouse, c_uom, ad_org where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id and c_order.c_order_id = c_orderline.c_order_id and c_orderline.m_product_id = m_product.m_product_id and m_product.m_product_category_id = m_product_category.m_product_category_id and c_order.m_warehouse_id = m_warehouse.m_warehouse_id and c_orderline.c_uom_id = c_uom.c_uom_id and c_order.ad_org_id = ad_org.ad_org_id and c_order.issotrx = ? and c_order.processed = ? and c_order.docstatus not in (...) and ? = ? and c_order.ad_org_id in (...) and c_order.ad_client_id in (...) and ? = ? and c_order.dateordered >= to_date(?) and c_order.dateordered < to_date(?)) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, nivel11 order by nivel1;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 16 18 2 46s514ms 23s257ms [ User: tad - Total duration: 46s514ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 46s514ms - Times executed: 2 ]
-
SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(LINENETAMT) AS AMOUNT, SUM(QTYORDERED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYORDEREDREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, 0 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, to_char('') AS NIVEL11, C_ORDERLINE.LINENETAMT, C_ORDERLINE.QTYORDERED, C_ORDERLINE.QTYORDERED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYORDEREDREF, 0 AS WEIGHTREF, C_UOM.UOMSYMBOL, COALESCE(C_ORDERLINE.C_CURRENCY_ID, C_ORDER.C_CURRENCY_ID) AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID, ( select uomsymbol from c_uom where c_uom_id = aci.c_uom_weight_id) as WSYMBOL FROM C_ORDER left join ad_clientinfo aci on aci.ad_client_id = c_order.ad_client_id left join AD_USER on C_ORDER.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, C_ORDERLINE, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDERLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND C_ORDER.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND C_ORDERLINE.C_UOM_ID = C_UOM.C_UOM_ID AND C_ORDER.AD_ORG_ID = AD_ORG.AD_ORG_ID AND C_ORDER.ISSOTRX = 'Y' AND C_ORDER.PROCESSED = 'Y' AND C_ORDER.DOCSTATUS NOT IN ('CJ', 'UE', 'CA') AND 0 = 0 AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_ORDER.DATEORDERED >= to_date('01-01-2026') AND C_ORDER.DATEORDERED < to_date('17-07-2026')) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11 ORDER BY NIVEL1;
Date: 2026-07-16 18:06:50 Duration: 24s514ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, SUM(LINENETAMT) AS AMOUNT, SUM(QTYORDERED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYORDEREDREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, 0 AS CONVAMOUNTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, MIN(WSYMBOL) AS WSYMBOL FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, to_char('') AS NIVEL11, C_ORDERLINE.LINENETAMT, C_ORDERLINE.QTYORDERED, C_ORDERLINE.QTYORDERED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYORDEREDREF, 0 AS WEIGHTREF, C_UOM.UOMSYMBOL, COALESCE(C_ORDERLINE.C_CURRENCY_ID, C_ORDER.C_CURRENCY_ID) AS TRCURRENCYID, TO_DATE(COALESCE(C_ORDER.DATEORDERED, NOW())) AS TRDATE, C_ORDERLINE.AD_CLIENT_ID AS TRCLIENTID, C_ORDERLINE.AD_ORG_ID AS TRORGID, ( select uomsymbol from c_uom where c_uom_id = aci.c_uom_weight_id) as WSYMBOL FROM C_ORDER left join ad_clientinfo aci on aci.ad_client_id = c_order.ad_client_id left join AD_USER on C_ORDER.SALESREP_ID = AD_USER.AD_USER_ID, C_BPARTNER left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID, C_BP_GROUP, C_ORDERLINE, M_PRODUCT, M_PRODUCT_CATEGORY, M_WAREHOUSE, C_UOM, AD_ORG WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDERLINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID AND M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID AND C_ORDER.M_WAREHOUSE_ID = M_WAREHOUSE.M_WAREHOUSE_ID AND C_ORDERLINE.C_UOM_ID = C_UOM.C_UOM_ID AND C_ORDER.AD_ORG_ID = AD_ORG.AD_ORG_ID AND C_ORDER.ISSOTRX = 'Y' AND C_ORDER.PROCESSED = 'Y' AND C_ORDER.DOCSTATUS NOT IN ('CJ', 'UE', 'CA') AND 0 = 0 AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_ORDER.DATEORDERED >= to_date('01-01-2025') AND C_ORDER.DATEORDERED < to_date('17-07-2025')) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, NIVEL11 ORDER BY NIVEL1;
Date: 2026-07-16 18:07:32 Duration: 21s999ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 15s429ms 28s690ms 22s591ms 5 1m52s select m_productprice_id, pl.m_pricelist_id, pl.name AS "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name AS "Price List Version", plv.validfrom AS "Valid From", pp.created, pp.createdby, trunc(pp.updated) AS "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 16 11 1 22s687ms 22s687ms 14 1 28s690ms 28s690ms 16 1 22s352ms 22s352ms 18 1 23s798ms 23s798ms 20 1 15s429ms 15s429ms [ User: tad - Total duration: 1m52s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m52s - Times executed: 5 ]
-
select m_productprice_id, pl.m_pricelist_id, pl.name as "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name as "Price List Version", plv.validfrom as "Valid From", pp.created, pp.createdby, trunc(pp.updated) as "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;
Date: 2026-07-16 14:04:21 Duration: 28s690ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select m_productprice_id, pl.m_pricelist_id, pl.name as "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name as "Price List Version", plv.validfrom as "Valid From", pp.created, pp.createdby, trunc(pp.updated) as "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;
Date: 2026-07-16 18:03:26 Duration: 23s798ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select m_productprice_id, pl.m_pricelist_id, pl.name as "Price List", pl.issopricelist, pl.isdefault, pl.c_currency_id, cu.iso_code, plv.name as "Price List Version", plv.validfrom as "Valid From", pp.created, pp.createdby, trunc(pp.updated) as "updated", pp.m_product_id, pp.pricelist, pp.pricestd, pp.pricelimit from m_productprice pp inner join m_pricelist_version plv on plv.m_pricelist_version_id = pp.m_pricelist_version_id inner join m_pricelist pl on pl.m_pricelist_id = plv.m_pricelist_id inner join c_currency cu on cu.c_currency_id = pl.c_currency_id;
Date: 2026-07-16 11:04:42 Duration: 22s687ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
6 16s964ms 23s428ms 19s739ms 5 1m38s select "_"."c_orderline_id" AS "c_orderline_id", "_"."c_order_id" AS "c_order_id", "_"."ad_org_id" AS "ad_org_id", "_"."isactive" AS "isactive", "_"."issotrx" AS "issotrx", "_"."c_bpartner_id" AS "c_bpartner_id", "_"."c_currency_id" AS "c_currency_id", "_"."m_product_id" AS "m_product_id", "_"."m_warehouse_id" AS "m_warehouse_id", "_"."line" AS "line", cast("_"."Fecha Pedido" as date) AS "Fecha Pedido", cast("_"."Fecha Comprometida" as date) AS "Fecha Comprometida", cast("_"."Fecha Enviada" as date) AS "Fecha Enviada", "_"."Descripción" AS "Descripción", "_"."Cantidad Pedido" AS "Cantidad Pedido", "_"."Precio Lista" AS "Precio Lista", "_"."Precio Actual" AS "Precio Actual", "_"."Precio Limite" AS "Precio Limite", "_"."Importe Linea" AS "Importe Linea", "_"."Descuento" AS "Descuento", "_"."Cantidad Recibida" AS "Cantidad Recibida", cast("_"."Fecha Recepción" as date) AS "Fecha Recepción" from ( select ol.c_orderline_id, ol.c_order_id, ol.ad_org_id, ol.isactive, o.issotrx, ol.c_bpartner_id, ol.c_currency_id, ol.m_product_id, ol.m_warehouse_id, ol.line, ol.dateordered AS "Fecha Pedido", ol.datepromised AS "Fecha Comprometida", ol.datedelivered AS "Fecha Enviada", ol.description AS "Descripción", ol.qtyordered "Cantidad Pedido", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ol.discount AS "Descuento", ( select sum(movementqty) from m_inoutline iol where iol.c_orderline_id = ol.c_orderline_id) AS "Cantidad Recibida", ( select max(movementdate) from m_inoutline iol inner join m_inout io on io.m_inout_id = iol.m_inout_id where iol.c_orderline_id = ol.c_orderline_id) AS "Fecha Recepción" from c_orderline ol left join c_order o on o.c_order_id = ol.c_order_id where o.issotrx <> ?) "_";Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 16 11 1 19s549ms 19s549ms 14 1 23s428ms 23s428ms 16 1 16s964ms 16s964ms 18 1 21s728ms 21s728ms 20 1 17s28ms 17s28ms [ User: tad - Total duration: 1m38s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m38s - Times executed: 5 ]
-
select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Fecha Pedido", cast("_"."Fecha Comprometida" as date) as "Fecha Comprometida", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Descripción", "_"."Cantidad Pedido" as "Cantidad Pedido", "_"."Precio Lista" as "Precio Lista", "_"."Precio Actual" as "Precio Actual", "_"."Precio Limite" as "Precio Limite", "_"."Importe Linea" as "Importe Linea", "_"."Descuento" as "Descuento", "_"."Cantidad Recibida" as "Cantidad Recibida", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", ( SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida", ( SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 14:04:17 Duration: 23s428ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Fecha Pedido", cast("_"."Fecha Comprometida" as date) as "Fecha Comprometida", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Descripción", "_"."Cantidad Pedido" as "Cantidad Pedido", "_"."Precio Lista" as "Precio Lista", "_"."Precio Actual" as "Precio Actual", "_"."Precio Limite" as "Precio Limite", "_"."Importe Linea" as "Importe Linea", "_"."Descuento" as "Descuento", "_"."Cantidad Recibida" as "Cantidad Recibida", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", ( SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida", ( SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 18:03:23 Duration: 21s728ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_orderline_id" as "c_orderline_id", "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."c_bpartner_id" as "c_bpartner_id", "_"."c_currency_id" as "c_currency_id", "_"."m_product_id" as "m_product_id", "_"."m_warehouse_id" as "m_warehouse_id", "_"."line" as "line", cast("_"."Fecha Pedido" as date) as "Fecha Pedido", cast("_"."Fecha Comprometida" as date) as "Fecha Comprometida", cast("_"."Fecha Enviada" as date) as "Fecha Enviada", "_"."Descripción" as "Descripción", "_"."Cantidad Pedido" as "Cantidad Pedido", "_"."Precio Lista" as "Precio Lista", "_"."Precio Actual" as "Precio Actual", "_"."Precio Limite" as "Precio Limite", "_"."Importe Linea" as "Importe Linea", "_"."Descuento" as "Descuento", "_"."Cantidad Recibida" as "Cantidad Recibida", cast("_"."Fecha Recepción" as date) as "Fecha Recepción" from ( SELECT OL.c_orderline_id, OL.c_order_id, OL.ad_org_id, OL.isactive, O.issotrx, OL.c_bpartner_id, OL.c_currency_id, OL.m_product_id, OL.m_warehouse_id, OL.line, OL.dateordered as "Fecha Pedido", OL.datepromised as "Fecha Comprometida", OL.datedelivered as "Fecha Enviada", OL.description as "Descripción", OL.qtyordered "Cantidad Pedido", OL.pricelist "Precio Lista", OL.priceactual "Precio Actual", OL.pricelimit "Precio Limite", OL.linenetamt "Importe Linea", OL.discount as "Descuento", ( SELECT SUM(movementqty) FROM m_inoutline IOL WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Cantidad Recibida", ( SELECT MAX(movementdate) FROM m_inoutline IOL INNER JOIN m_inout IO on IO.m_inout_id = IOL.m_inout_id WHERE IOL.c_orderline_id = OL.c_orderline_id) as "Fecha Recepción" FROM c_orderline OL LEFT JOIN c_order O on O.c_order_id = OL.c_order_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 11:04:38 Duration: 19s549ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
7 7s846ms 28s571ms 19s23ms 5 1m35s select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( select o.c_order_id, o.ad_org_id, o.isactive, o.issotrx, o.m_pricelist_id, o.documentno AS "Documento", o.docstatus AS "Estado Pedido", o.docaction AS "Accion Pedido", o.processed AS "Procesado", dt.name AS "Tipo Documento", o.description AS "Descripción", o.dateordered AS "Fecha Pedido", o.datepromised AS "Fecha Comprometida", o.c_bpartner_id, o.poreference "Referencia Pedido", o.c_currency_id, cu.iso_code "Currency ISO", o.m_warehouse_id, cl.city AS "Ciudad", cl.postal AS "Codigo Postal", cc."name" AS "Pais", cr."name" AS "Region", us.name AS "Vendedor", mw."name" AS "Delegacion" from c_order o left join c_doctype dt on dt.c_doctype_id = o.c_doctype_id inner join c_currency cu on cu.c_currency_id = o.c_currency_id left join c_bpartner_location cbl on cbl.c_bpartner_location_id = o.c_bpartner_location_id left join c_location cl on cl.c_location_id = cbl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id left join c_region cr on cr.c_region_id = cl.c_region_id left join ad_user us on us.ad_user_id = o.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id where ? = ? and o.issotrx = ?) "_" order by "_"."Fecha Pedido" desc;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 16 11 1 24s639ms 24s639ms 14 1 12s269ms 12s269ms 16 1 21s790ms 21s790ms 18 1 7s846ms 7s846ms 20 1 28s571ms 28s571ms [ User: tad - Total duration: 1m35s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m35s - Times executed: 5 ]
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 20:03:20 Duration: 28s571ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 11:04:41 Duration: 24s639ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id", "_"."ad_org_id", "_"."isactive", "_"."issotrx", "_"."m_pricelist_id", "_"."Documento", "_"."Estado Pedido", "_"."Accion Pedido", "_"."Procesado", "_"."Tipo Documento", "_"."Descripción", "_"."Fecha Pedido", "_"."Fecha Comprometida", "_"."c_bpartner_id", "_"."Referencia Pedido", "_"."c_currency_id", "_"."Currency ISO", "_"."m_warehouse_id", "_"."Ciudad", "_"."Codigo Postal", "_"."Pais", "_"."Region", "_"."Vendedor", "_"."Delegacion" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Pedido", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", mw."name" as "Delegacion" FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join m_warehouse mw on mw.m_warehouse_id = us.default_m_warehouse_id WHERE 1 = 1 AND O.issotrx = 'Y') "_" order by "_"."Fecha Pedido" desc;
Date: 2026-07-16 16:03:10 Duration: 21s790ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
8 6s193ms 23s726ms 16s993ms 5 1m24s select o.c_invoice_id, o.ad_org_id, o.isactive, o.issotrx, o.m_pricelist_id, o.documentno AS "Documento", o.docstatus AS "Estado Pedido", o.docaction AS "Accion Pedido", o.processed AS "Procesado", dt.name AS "Tipo Documento", o.description AS "Descripción", o.dateordered AS "Fecha Pedido", o.c_bpartner_id, o.poreference "Referencia Proveedor", o.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city AS "Ciudad", cl.postal AS "Codigo Postal", cc."name" AS "Pais", cr."name" AS "Region", us.name AS "Vendedor", case when o.totallines < ? then ? else ? end AS "Devolución", coalesce(ca.name, ?) AS "Temporada" from c_invoice o left join c_doctype dt on dt.c_doctype_id = o.c_doctype_id inner join c_currency cu on cu.c_currency_id = o.c_currency_id left join c_bpartner_location cbl on cbl.c_bpartner_location_id = o.c_bpartner_location_id left join c_location cl on cl.c_location_id = cbl.c_location_id left join c_country cc on cc.c_country_id = cl.c_country_id left join c_region cr on cr.c_region_id = cl.c_region_id left join ad_user us on us.ad_user_id = o.salesrep_id left join c_campaign ca on ca.c_campaign_id = o.c_campaign_id where ? = ? and o.issotrx = ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 16 11 1 19s479ms 19s479ms 14 1 23s726ms 23s726ms 16 1 6s193ms 6s193ms 18 1 13s232ms 13s232ms 20 1 22s333ms 22s333ms [ User: tad - Total duration: 1m24s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m24s - Times executed: 5 ]
-
SELECT O.c_invoice_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", case when O.totallines < 0 then 'Si' else 'No' end as "Devolución", coalesce(ca.name, 'n-a') as "Temporada" FROM c_invoice O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join c_campaign ca on ca.c_campaign_id = O.c_campaign_id WHERE 1 = 1 AND O.issotrx = 'Y';
Date: 2026-07-16 14:04:15 Duration: 23s726ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT O.c_invoice_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", case when O.totallines < 0 then 'Si' else 'No' end as "Devolución", coalesce(ca.name, 'n-a') as "Temporada" FROM c_invoice O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join c_campaign ca on ca.c_campaign_id = O.c_campaign_id WHERE 1 = 1 AND O.issotrx = 'Y';
Date: 2026-07-16 20:03:12 Duration: 22s333ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
SELECT O.c_invoice_id, O.ad_org_id, O.isactive, O.issotrx, O.m_pricelist_id, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", null as m_warehouse_id, cl.city as "Ciudad", cl.postal as "Codigo Postal", cc."name" as "Pais", cr."name" as "Region", us.name as "Vendedor", case when O.totallines < 0 then 'Si' else 'No' end as "Devolución", coalesce(ca.name, 'n-a') as "Temporada" FROM c_invoice O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id LEFT JOIN c_bpartner_location cbl on cbl.c_bpartner_location_id = O.c_bpartner_location_id LEFT JOIN c_location cl on cl.c_location_id = cbl.c_location_id LEFT JOIN c_country cc on cc.c_country_id = cl.c_country_id LEFT JOIN c_region cr on cr.c_region_id = cl.c_region_id LEFT JOIN ad_user us on us.ad_user_id = O.salesrep_id left join c_campaign ca on ca.c_campaign_id = O.c_campaign_id WHERE 1 = 1 AND O.issotrx = 'Y';
Date: 2026-07-16 11:04:36 Duration: 19s479ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
9 3s994ms 32s509ms 13s349ms 6 1m20s select b.* from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(amount) as amount, sum(qty) as qty, sum(weight) as weight, sum( cost) as cost, sum(amountref) as amountref, sum(qtyref) as qtyref, sum(weightref) as weightref, sum(convamount) as convamount, case when sum(costcalculated) = ? then sum(convcost) when sum(groupcount) <> sum(costcalculated) then sum(convcost) when sum(costedamt) = ? and sum(convcost) > ? then sum(convcost) when sum( case when groupcount = costcalculated then ? else convamount end) = ? then sum(convcost) else sum(convcost) * sum(convamount) / sum( case when groupcount = costcalculated then ? else convamount end) end as convcost, sum(convamountref) as convamountref, sum(convcostref) as convcostref, c_currency_symbol (?, ?, ?) as convsym, c_currency_isosym (?) as convisosym, sum(zz.costcalculated) as costcalculated from ( select nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, sum(linenetamt) as amount, sum(qtyinvoiced) as qty, sum(weight) as weight, sum( cost) as cost, sum(linenetref) as amountref, sum(qtyinvoicedref) as qtyref, sum(weight_ref) as weightref, c_currency_convert (sum(linenetamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as convamount, case when sum(costcalculated) >= ? then sum( cost) when sum(costedamt) = ? and sum( cost) > ? then sum( cost) else sum( cost) * sum(linenetamt) / sum(costedamt) end as convcost, ? as convamountref, ? as convcostref, trcurrencyid, trdate, trclientid, trorgid, sum(aa.costcalculated) as costcalculated, c_currency_convert (sum(costedamt), trcurrencyid, ?, to_date(trdate), null, trclientid, trorgid) as costedamt, count(*) as groupcount from ( select to_char(ad_column_identifier (to_char(?), to_char(c_bpartner.c_bpartner_id), to_char(?))) as nivel1, to_char(?) as nivel2, to_char(?) as nivel3, to_char(?) as nivel4, to_char(?) as nivel5, to_char(?) as nivel6, to_char(?) as nivel7, to_char(?) as nivel8, to_char(?) as nivel9, to_char(?) as nivel10, case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end as linenetamt, case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * - ? else c_invoiceline.qtyinvoiced end as qtyinvoiced, c_invoiceline.qtyinvoiced * m_product.weight as weight, ? as linenetref, ? as qtyinvoicedref, ? as weight_ref, c_uom.uomsymbol, c_invoice.c_currency_id as trcurrencyid, to_date(coalesce(c_invoice.dateinvoiced, now())) as trdate, c_invoiceline.ad_client_id as trclientid, c_invoiceline.ad_org_id as trorgid, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else ? end as costcalculated, case when m_product.isstocked = ? and m_product.producttype = ? then case when c_invoiceline.m_inoutline_id is null then coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) when trx.movementqty = ? then ? else case when c_doctype.docbasetype = ? then ? * coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) else coalesce(c_currency_convert_precision (round(max(trxcost.total_cost), c_get_currency_precision (max(trxcost.c_currency_id), ?)), max(trxcost.c_currency_id), ?, trx.movementdate, null, trx.ad_client_id, trx.ad_org_id, ?), ?) end end else coalesce(m_get_no_trx_prd_cost_latest (m_product.m_product_id, c_invoice.dateinvoiced, ad_org.ad_org_id, null, c_invoice.c_currency_id, ?), ?) * ( case when c_doctype.docbasetype = ? then c_invoiceline.qtyinvoiced * ? else c_invoiceline.qtyinvoiced end) end as cost, case when sum(trxcost.total_cost) is null and m_product.isstocked = ? and m_product.producttype = ? then ? else case when c_doctype.docbasetype = ? then c_invoiceline.linenetamt * ? else c_invoiceline.linenetamt end end as costedamt from c_invoiceline join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id join c_bpartner on c_invoice.c_bpartner_id = c_bpartner.c_bpartner_id join c_bp_group on c_bpartner.c_bp_group_id = c_bp_group.c_bp_group_id join ad_org on c_invoice.ad_org_id = ad_org.ad_org_id left join c_bpartner cb on c_bpartner.salesrep_id = cb.c_bpartner_id left join ad_user on c_invoice.salesrep_id = ad_user.ad_user_id left join c_project on c_invoice.c_project_id = c_project.c_project_id left join c_doctype on c_invoice.c_doctype_id = c_doctype.c_doctype_id left join m_product on c_invoiceline.m_product_id = m_product.m_product_id left join c_uom on c_invoiceline.c_uom_id = c_uom.c_uom_id left join m_product_category on m_product.m_product_category_id = m_product_category.m_product_category_id left join m_inoutline on c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id left join m_transaction trx on trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( select m_transaction_id, sum( cost) as total_cost, max(c_currency_id) as c_currency_id from m_transaction_cost group by m_transaction_id) trxcost on trx.m_transaction_id = trxcost.m_transaction_id where c_invoice.issotrx = ? and c_invoice.processed = ? and c_invoice.ad_org_id in (...) and c_invoice.ad_client_id in (...) and ? = ? and c_invoice.dateinvoiced >= to_date(?) and c_invoice.dateinvoiced < to_date(?) group by trxcost.m_transaction_id, c_invoiceline.c_invoiceline_id, c_bpartner.c_bpartner_id, m_product_category.name, c_invoice.documentno, ad_org.name, ad_user.ad_user_id, c_project.name, ad_user.firstname, ad_user.lastname, c_bp_group.name, m_inout.c_bpartner_location_id, c_invoiceline.ad_client_id, c_invoiceline.ad_org_id, c_invoiceline.linenetamt, c_invoiceline.qtyinvoiced, c_uom.uomsymbol, c_doctype.docbasetype, ad_org.ad_org_id, c_invoice.c_currency_id, c_invoice.dateinvoiced, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, m_product.weight, m_product.m_product_id, m_product.isstocked, m_product.producttype, c_invoiceline.m_inoutline_id order by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10) aa group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10, trcurrencyid, trdate, trclientid, trorgid) zz group by nivel1, nivel2, nivel3, nivel4, nivel5, nivel6, nivel7, nivel8, nivel9, nivel10 order by nivel1) b limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 16 09 1 5s549ms 5s549ms 14 3 12s44ms 4s14ms 18 2 1m2s 31s251ms [ User: tad - Total duration: 1m20s - Times executed: 6 ]
[ Application: openbravo - Total duration: 1m20s - Times executed: 6 ]
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2026') AND C_INVOICE.DATEINVOICED < to_date('17-07-2026') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 18:32:46 Duration: 32s509ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677', '0') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('01-01-2025') AND C_INVOICE.DATEINVOICED < to_date('17-07-2025') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 18:33:44 Duration: 29s994ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT B.* FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(AMOUNT) AS AMOUNT, SUM(QTY) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(AMOUNTREF) AS AMOUNTREF, SUM(QTYREF) AS QTYREF, SUM(WEIGHTREF) AS WEIGHTREF, SUM(CONVAMOUNT) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) = 0 THEN SUM(CONVCOST) WHEN SUM(GROUPCOUNT) <> SUM(COSTCALCULATED) THEN SUM(CONVCOST) WHEN SUM(COSTEDAMT) = 0 AND SUM(CONVCOST) > 0 THEN SUM(CONVCOST) WHEN SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) = 0 THEN SUM(CONVCOST) ELSE SUM(CONVCOST) * SUM(CONVAMOUNT) / SUM( CASE WHEN GROUPCOUNT = COSTCALCULATED THEN 0 ELSE CONVAMOUNT END) END AS CONVCOST, SUM(CONVAMOUNTREF) AS CONVAMOUNTREF, SUM(CONVCOSTREF) AS CONVCOSTREF, C_CURRENCY_SYMBOL ('102', 0, 'Y') AS CONVSYM, C_CURRENCY_ISOSYM ('102') AS CONVISOSYM, SUM(ZZ.COSTCALCULATED) AS COSTCALCULATED FROM ( SELECT NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, SUM(LINENETAMT) AS AMOUNT, SUM(QTYINVOICED) AS QTY, SUM(WEIGHT) AS WEIGHT, SUM( COST) AS COST, SUM(LINENETREF) AS AMOUNTREF, SUM(QTYINVOICEDREF) AS QTYREF, SUM(WEIGHT_REF) AS WEIGHTREF, C_CURRENCY_CONVERT (SUM(LINENETAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS CONVAMOUNT, CASE WHEN SUM(COSTCALCULATED) >= 0 THEN SUM( COST) WHEN SUM(COSTEDAMT) = 0 AND SUM( COST) > 0 THEN SUM( COST) ELSE SUM( COST) * SUM(LINENETAMT) / SUM(COSTEDAMT) END AS CONVCOST, 0 AS CONVAMOUNTREF, 0 AS CONVCOSTREF, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID, SUM(AA.COSTCALCULATED) as COSTCALCULATED, C_CURRENCY_CONVERT (SUM(COSTEDAMT), TRCURRENCYID, '102', TO_DATE(TRDATE), NULL, TRCLIENTID, TRORGID) AS costedamt, COUNT(*) AS GROUPCOUNT FROM ( SELECT to_char(AD_COLUMN_IDENTIFIER (to_char('C_Bpartner'), to_char(C_BPARTNER.C_BPARTNER_ID), to_char('es_ES'))) AS NIVEL1, to_char('') AS NIVEL2, to_char('') AS NIVEL3, to_char('') AS NIVEL4, to_char('') AS NIVEL5, to_char('') AS NIVEL6, to_char('') AS NIVEL7, to_char('') AS NIVEL8, to_char('') AS NIVEL9, to_char('') AS NIVEL10, CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END AS LINENETAMT, CASE WHEN c_doctype.docbasetype = 'ARC' THEN c_invoiceline.qtyinvoiced * -1 ELSE c_invoiceline.qtyinvoiced END AS QTYINVOICED, C_INVOICELINE.QTYINVOICED * M_PRODUCT.WEIGHT AS WEIGHT, 0 AS LINENETREF, 0 AS QTYINVOICEDREF, 0 AS WEIGHT_REF, C_UOM.UOMSYMBOL, C_INVOICE.C_CURRENCY_ID AS TRCURRENCYID, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())) AS TRDATE, C_INVOICELINE.AD_CLIENT_ID AS TRCLIENTID, C_INVOICELINE.AD_ORG_ID AS TRORGID, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 1 ELSE 0 END AS COSTCALCULATED, CASE WHEN M_PRODUCT.ISSTOCKED = 'Y' AND M_PRODUCT.PRODUCTTYPE = 'I' THEN CASE WHEN C_INVOICELINE.M_INOUTLINE_ID IS NULL THEN COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) WHEN TRX.MOVEMENTQTY = 0 THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN -1 * COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) ELSE COALESCE(C_CURRENCY_CONVERT_PRECISION (ROUND(MAX(trxcost.total_cost), C_GET_CURRENCY_PRECISION (MAX(trxcost.c_currency_id), 'C')), MAX(trxcost.c_currency_id), '102', TRX.MOVEMENTDATE, NULL, TRX.AD_CLIENT_ID, TRX.AD_ORG_ID, 'C'), 0) END END ELSE COALESCE(M_GET_NO_TRX_PRD_COST_LATEST (M_PRODUCT.M_PRODUCT_ID, C_INVOICE.DATEINVOICED, AD_ORG.AD_ORG_ID, NULL, C_INVOICE.C_CURRENCY_ID, 'N'), 0) * ( CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.QTYINVOICED * -1 ELSE C_INVOICELINE.QTYINVOICED END) END AS COST, CASE WHEN sum(trxcost.total_cost) is null AND m_product.isstocked = 'Y' AND m_product.producttype = 'I' THEN 0 ELSE CASE WHEN C_DOCTYPE.DOCBASETYPE = 'ARC' THEN C_INVOICELINE.LINENETAMT * -1 ELSE C_INVOICELINE.LINENETAMT END END AS COSTEDAMT FROM C_INVOICELINE join C_INVOICE on C_INVOICE.C_INVOICE_ID = C_INVOICELINE.C_INVOICE_ID join C_BPARTNER on C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID join C_BP_GROUP on C_BPARTNER.C_BP_GROUP_ID = C_BP_GROUP.C_BP_GROUP_ID join AD_ORG on C_INVOICE.AD_ORG_ID = AD_ORG.AD_ORG_ID left join C_BPARTNER CB on C_BPARTNER.SALESREP_ID = CB.C_BPARTNER_ID left join AD_USER on C_INVOICE.SALESREP_ID = AD_USER.AD_USER_ID left join C_PROJECT on C_INVOICE.C_PROJECT_ID = C_PROJECT.C_PROJECT_ID left join C_DOCTYPE on C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID left join M_PRODUCT on C_INVOICELINE.M_PRODUCT_ID = M_PRODUCT.M_PRODUCT_ID left join C_UOM on C_INVOICELINE.C_UOM_ID = C_UOM.C_UOM_ID left join M_PRODUCT_CATEGORY on M_PRODUCT.M_PRODUCT_CATEGORY_ID = M_PRODUCT_CATEGORY.M_PRODUCT_CATEGORY_ID left join M_INOUTLINE on C_INVOICELINE.M_INOUTLINE_ID = M_INOUTLINE.M_INOUTLINE_ID left join M_INOUT ON M_INOUTLINE.M_INOUT_ID = M_INOUT.M_INOUT_ID left join m_transaction trx ON trx.m_inoutline_id = m_inoutline.m_inoutline_id left join ( SELECT m_transaction_id, SUM( cost) AS total_cost, MAX(c_currency_id) AS c_currency_id FROM m_transaction_cost GROUP BY m_transaction_id) trxcost ON trx.m_transaction_id = trxcost.m_transaction_id WHERE C_INVOICE.ISSOTRX = 'Y' AND C_INVOICE.PROCESSED = 'Y' AND C_INVOICE.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') AND C_INVOICE.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND 1 = 1 AND C_INVOICE.DATEINVOICED >= to_date('15-07-2026') AND C_INVOICE.DATEINVOICED < to_date('16-07-2026') GROUP BY trxcost.m_transaction_id, C_INVOICELINE.C_INVOICELINE_ID, C_BPARTNER.C_BPARTNER_ID, M_PRODUCT_CATEGORY.NAME, C_INVOICE.DOCUMENTNO, AD_ORG.NAME, AD_USER.AD_USER_ID, C_PROJECT.NAME, AD_USER.FIRSTNAME, AD_USER.LASTNAME, C_BP_GROUP.NAME, M_INOUT.C_BPARTNER_LOCATION_ID, C_INVOICELINE.AD_CLIENT_ID, C_INVOICELINE.AD_ORG_ID, C_INVOICELINE.LINENETAMT, C_INVOICELINE.QTYINVOICED, C_UOM.UOMSYMBOL, c_doctype.docbasetype, ad_org.ad_org_id, C_INVOICE.C_CURRENCY_ID, C_INVOICE.DATEINVOICED, trx.movementqty, trx.movementdate, trx.ad_client_id, trx.ad_org_id, M_PRODUCT.WEIGHT, M_PRODUCT.M_PRODUCT_ID, M_PRODUCT.ISSTOCKED, M_PRODUCT.PRODUCTTYPE, C_INVOICELINE.M_INOUTLINE_ID ORDER BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10) AA GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10, TRCURRENCYID, TRDATE, TRCLIENTID, TRORGID) ZZ GROUP BY NIVEL1, NIVEL2, NIVEL3, NIVEL4, NIVEL5, NIVEL6, NIVEL7, NIVEL8, NIVEL9, NIVEL10 ORDER BY NIVEL1) B LIMIT 1000001;
Date: 2026-07-16 09:23:27 Duration: 5s549ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 10s625ms 12s726ms 11s523ms 5 57s615ms select w.name AS "Almacén", l.value AS "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, ?, sd.ad_org_id, sd.ad_client_id, null, ?, ?), ?), ?), ?) AS "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 16 11 1 12s726ms 12s726ms 14 1 10s625ms 10s625ms 16 1 10s979ms 10s979ms 18 1 12s316ms 12s316ms 20 1 10s969ms 10s969ms [ User: tad - Total duration: 57s615ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 57s615ms - Times executed: 5 ]
-
select w.name as "Almacén", l.value as "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, 'AVA', sd.ad_org_id, sd.ad_client_id, null, '102', '102'), 0), 0), 2) as "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;
Date: 2026-07-16 11:04:44 Duration: 12s726ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select w.name as "Almacén", l.value as "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, 'AVA', sd.ad_org_id, sd.ad_client_id, null, '102', '102'), 0), 0), 2) as "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;
Date: 2026-07-16 18:03:14 Duration: 12s316ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select w.name as "Almacén", l.value as "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, 'AVA', sd.ad_org_id, sd.ad_client_id, null, '102', '102'), 0), 0), 2) as "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;
Date: 2026-07-16 16:02:58 Duration: 10s979ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
11 9s80ms 9s275ms 9s174ms 4 36s696ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.documentno desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 16 10 4 36s696ms 9s174ms [ User: tad - Total duration: 36s696ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 36s696ms - Times executed: 4 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DocumentNo desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 10:37:32 Duration: 9s275ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DocumentNo desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 10:43:55 Duration: 9s171ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DocumentNo desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 10:43:54 Duration: 9s168ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 7s725ms 8s902ms 8s196ms 9 1m13s select id, c_order_id, documentno, dateordered, c_bpartner_id, partner_name, product_value, product_id, product_name, description, attributeid, total_qty, qtyordered, mlocatorid, mlocatorname, orderlineid, qtypending, isactive, ? as date_format, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = ? where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, ?)), ?) as uomsymbol, conversionrate, c_aum as alternativeuom from ( select c_orderline.c_orderline_id as id, c_order.c_order_id as c_order_id, c_order.documentno || ? || to_char(c_order.dateordered, ?) || ? || to_char(c_order.datepromised, ?) as documentno, c_order.dateordered as dateordered, c_bpartner.c_bpartner_id as c_bpartner_id, c_bpartner.name || ? || c_bpartner.name2 as partner_name, c_orderline.m_product_id as product_id, ad_column_identifier (to_char(?), to_char(c_orderline.m_product_id), to_char(?)) as product_name, ( select value from m_product where m_product_id = c_orderline.m_product_id) as product_value, m_attributesetinstance.description as description, m_attributesetinstance.m_attributesetinstance_id as attributeid, coalesce(c_orderline.aumqty, c_orderline.qtyordered) as total_qty, coalesce(c_orderline.aumqty, c_orderline.qtyordered) - round((sum(coalesce(m_matchpo.qty, ?)) * round((coalesce(c_orderline.aumqty, c_orderline.qtyordered) / c_orderline.qtyordered), ?)), ?) as qtypending, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then (c_orderline.qtyordered - sum(coalesce(m_matchpo.qty, ?))) else ? end as qtyordered, ? as isactive, c_orderline.line, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorid, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorname, c_orderline.c_orderline_id as orderlineid, null as c_aum, c_orderline.c_uom_id, ? as conversionrate from c_orderline left join m_matchpo on c_orderline.c_orderline_id = m_matchpo.c_orderline_id and m_matchpo.m_inoutline_id is not null left join m_attributesetinstance on c_orderline.m_attributesetinstance_id = m_attributesetinstance.m_attributesetinstance_id, c_order, c_bpartner, c_doctype where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_orderline.qtyordered != ? and c_order.c_order_id = c_orderline.c_order_id and c_order.ad_client_id in (...) and c_order.ad_org_id in (...) and c_order.issotrx = ? and c_order.documentno like ? and c_order.docstatus = ? and c_order.c_doctype_id = c_doctype.c_doctype_id and c_doctype.isreturn = ? group by c_orderline.c_orderline_id, c_order.c_order_id, c_order.documentno, c_order.dateordered, c_bpartner.c_bpartner_id, c_bpartner.name, c_bpartner.name2, c_orderline.m_product_id, m_attributesetinstance.description, m_attributesetinstance.m_attributesetinstance_id, c_orderline.qtyordered, c_orderline.line) a where ( case when total_qty < ? then ? else ? end) = ( case when qtypending < ? then ? else ? end) and qtypending <> ? order by c_bpartner_id, documentno, line;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 16 09 3 24s139ms 8s46ms 10 1 8s141ms 8s141ms 11 1 7s969ms 7s969ms 15 2 16s57ms 8s28ms 16 2 17s462ms 8s731ms [ User: tad - Total duration: 1m13s - Times executed: 9 ]
[ Application: openbravo - Total duration: 1m13s - Times executed: 9 ]
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:10:09 Duration: 8s902ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 16:04:53 Duration: 8s560ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-16 15:44:28 Duration: 8s332ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 7s966ms 8s570ms 8s194ms 4 32s778ms select sum(order0_.grandtotal) as col_0_0_, sum(order0_.totallines) as col_1_0_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jul 16 10 4 32s778ms 8s194ms [ User: tad - Total duration: 32s778ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 32s778ms - Times executed: 4 ]
-
select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.TotalLines) as col_1_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 10:37:31 Duration: 8s570ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.TotalLines) as col_1_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 10:37:40 Duration: 8s259ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.GrandTotal) as col_0_0_, sum(order0_.TotalLines) as col_1_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 10:44:03 Duration: 7s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 7s635ms 8s28ms 7s835ms 4 31s343ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 16 09 2 15s663ms 7s831ms 16 1 7s868ms 7s868ms 17 1 7s810ms 7s810ms [ User: tad - Total duration: 31s343ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 31s343ms - Times executed: 4 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 09:15:56 Duration: 8s28ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:22:32 Duration: 7s868ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 17:24:31 Duration: 7s810ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 4s213ms 8s312ms 5s989ms 5 29s947ms select "_"."c_order_id" AS "c_order_id", "_"."ad_org_id" AS "ad_org_id", "_"."isactive" AS "isactive", "_"."issotrx" AS "issotrx", "_"."Documento" AS "Documento", "_"."Estado Pedido" AS "Estado Pedido", "_"."Accion Pedido" AS "Accion Pedido", "_"."Procesado" AS "Procesado", "_"."Tipo Documento" AS "Tipo Documento", "_"."Descripción" AS "Descripción", "_"."Fecha Pedido" AS "Fecha Pedido", "_"."Fecha Comprometida" AS "Fecha Comprometida", "_"."c_bpartner_id" AS "c_bpartner_id", "_"."Referencia Proveedor" AS "Referencia Proveedor", "_"."c_currency_id" AS "c_currency_id", "_"."Currency ISO" AS "Currency ISO", "_"."m_warehouse_id" AS "m_warehouse_id", cast("_"."Fecha Pedido" as date) AS "t0_0", cast("_"."Fecha Comprometida" as date) AS "t1_0" from ( select o.c_order_id, o.ad_org_id, o.isactive, o.issotrx, o.documentno AS "Documento", o.docstatus AS "Estado Pedido", o.docaction AS "Accion Pedido", o.processed AS "Procesado", dt.name AS "Tipo Documento", o.description AS "Descripción", o.dateordered AS "Fecha Pedido", o.datepromised AS "Fecha Comprometida", o.c_bpartner_id, o.poreference "Referencia Proveedor", o.c_currency_id, cu.iso_code "Currency ISO", o.m_warehouse_id from c_order o left join c_doctype dt on dt.c_doctype_id = o.c_doctype_id inner join c_currency cu on cu.c_currency_id = o.c_currency_id where o.issotrx <> ?) "_";Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 16 11 1 5s998ms 5s998ms 14 1 8s312ms 8s312ms 16 1 5s45ms 5s45ms 18 1 6s377ms 6s377ms 20 1 4s213ms 4s213ms [ User: tad - Total duration: 29s947ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 29s947ms - Times executed: 5 ]
-
select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Procesado" as "Procesado", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 14:04:04 Duration: 8s312ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Procesado" as "Procesado", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 18:03:07 Duration: 6s377ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
-
select "_"."c_order_id" as "c_order_id", "_"."ad_org_id" as "ad_org_id", "_"."isactive" as "isactive", "_"."issotrx" as "issotrx", "_"."Documento" as "Documento", "_"."Estado Pedido" as "Estado Pedido", "_"."Accion Pedido" as "Accion Pedido", "_"."Procesado" as "Procesado", "_"."Tipo Documento" as "Tipo Documento", "_"."Descripción" as "Descripción", "_"."Fecha Pedido" as "Fecha Pedido", "_"."Fecha Comprometida" as "Fecha Comprometida", "_"."c_bpartner_id" as "c_bpartner_id", "_"."Referencia Proveedor" as "Referencia Proveedor", "_"."c_currency_id" as "c_currency_id", "_"."Currency ISO" as "Currency ISO", "_"."m_warehouse_id" as "m_warehouse_id", cast("_"."Fecha Pedido" as date) as "t0_0", cast("_"."Fecha Comprometida" as date) as "t1_0" from ( SELECT O.c_order_id, O.ad_org_id, O.isactive, O.issotrx, O.documentno as "Documento", O.docstatus as "Estado Pedido", O.docaction as "Accion Pedido", O.processed as "Procesado", DT.name as "Tipo Documento", O.description as "Descripción", O.dateordered as "Fecha Pedido", O.datepromised as "Fecha Comprometida", O.c_bpartner_id, O.poreference "Referencia Proveedor", O.c_currency_id, cu.iso_code "Currency ISO", O.m_warehouse_id FROM c_order O LEFT JOIN c_doctype DT on DT.c_doctype_id = O.c_doctype_id INNER JOIN c_currency cu on cu.c_currency_id = o.c_currency_id WHERE O.issotrx <> 'Y') "_";
Date: 2026-07-16 11:04:22 Duration: 5s998ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
16 3s543ms 11s733ms 4s78ms 29 1m58s select pruti_stoc0_.pruti_stock_detail_v_id as pruti_st1_943_0_, pruti_stoc0_.ad_client_id as ad_clien2_943_0_, pruti_stoc0_.ad_org_id as ad_org_i3_943_0_, pruti_stoc0_.isactive as isactive4_943_0_, pruti_stoc0_.created as created5_943_0_, pruti_stoc0_.createdby as createdb6_943_0_, pruti_stoc0_.updated as updated7_943_0_, pruti_stoc0_.updatedby as updatedb8_943_0_, pruti_stoc0_.type as type9_943_0_, pruti_stoc0_.m_product_id as m_produ10_943_0_, pruti_stoc0_.qty as qty11_943_0_, pruti_stoc0_.m_attributesetinstance_id as m_attri12_943_0_, pruti_stoc0_.m_locator_id as m_locat13_943_0_, pruti_stoc0_.m_warehouse_id as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.pruti_stock_detail_v_id = ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 16 07 2 15s454ms 7s727ms 10 2 7s537ms 3s768ms 11 2 7s502ms 3s751ms 12 4 14s880ms 3s720ms 13 2 7s409ms 3s704ms 14 1 3s640ms 3s640ms 15 14 54s406ms 3s886ms 16 2 7s459ms 3s729ms [ User: tad - Total duration: 1m58s - Times executed: 29 ]
[ Application: openbravo - Total duration: 1m58s - Times executed: 29 ]
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'F9C18EEEA964498CB6FD59A7604A19230928AC21B14E24C3C9ED358EBE6E9BD5Bpendingsales';
Date: 2026-07-16 07:12:34 Duration: 11s733ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'DC569151E0E049B082D267BB83F6FAFB04050A3176DE744FCA19943E0F0F77F07availablestock';
Date: 2026-07-16 15:06:05 Duration: 4s332ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select pruti_stoc0_.Pruti_Stock_Detail_V_ID as pruti_st1_943_0_, pruti_stoc0_.AD_Client_ID as ad_clien2_943_0_, pruti_stoc0_.AD_Org_ID as ad_org_i3_943_0_, pruti_stoc0_.Isactive as isactive4_943_0_, pruti_stoc0_.Created as created5_943_0_, pruti_stoc0_.Createdby as createdb6_943_0_, pruti_stoc0_.Updated as updated7_943_0_, pruti_stoc0_.Updatedby as updatedb8_943_0_, pruti_stoc0_.Type as type9_943_0_, pruti_stoc0_.M_Product_ID as m_produ10_943_0_, pruti_stoc0_.Qty as qty11_943_0_, pruti_stoc0_.M_Attributesetinstance_ID as m_attri12_943_0_, pruti_stoc0_.M_Locator_ID as m_locat13_943_0_, pruti_stoc0_.M_Warehouse_ID as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.Pruti_Stock_Detail_V_ID = 'B27FFC00032D4C6E83C0FFD8B8ACCC6309E0C45E0541349DE8657E865B675B866availablestock';
Date: 2026-07-16 15:45:01 Duration: 4s105ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 3s277ms 3s943ms 3s459ms 7 24s219ms select sum(order0_.totallines) as col_0_0_, sum(order0_.grandtotal) as col_1_0_, sum(order0_.em_prouti_grandtotalinitial) as col_2_0_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp1_.iscancelled = ? or order_comp1_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and (order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ?) and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 16 18 7 24s219ms 3s459ms [ User: tad - Total duration: 24s219ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 24s219ms - Times executed: 7 ]
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 18:03:26 Duration: 3s943ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 18:03:27 Duration: 3s430ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-16 18:03:36 Duration: 3s415ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 2s927ms 4s724ms 3s336ms 173 9m37s select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and order0_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 16 08 2 8s12ms 4s6ms 10 30 1m41s 3s385ms 11 20 1m2s 3s109ms 12 34 1m43s 3s52ms 13 16 54s670ms 3s416ms 14 11 34s454ms 3s132ms 15 18 1m6s 3s673ms 16 31 1m51s 3s589ms 17 10 32s128ms 3s212ms 18 1 3s8ms 3s8ms [ User: tad - Total duration: 9m37s - Times executed: 173 ]
[ Application: openbravo - Total duration: 9m37s - Times executed: 173 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:23 Duration: 4s724ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:03:54 Duration: 4s346ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and order0_.DateOrdered >= '2023-01-01 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-16 16:44:57 Duration: 4s143ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 3s104ms 3s563ms 3s296ms 27 1m29s select invoicecan0_.c_order_id as col_0_0_, organizati2_.name as col_1_0_, invoicecan0_.c_doctype_id as col_2_0_, invoicecan0_.documentno as col_3_0_, businesspa3_.name as col_4_0_, invoicecan0_.dateordered as col_5_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end as col_6_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end as col_7_0_, invoicecan0_.term as col_8_0_, case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? then case when invoicecan0_.term = ? then ?.? when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end else case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end end when invoicecan0_.term = ? and invoicecan0_.qtydelivered & lt; invoicecan0_.qtyordered then ?.? else invoicecan0_.pendinglines end as col_9_0_, invoicecan0_.qtyordered as col_10_0_, invoicecan0_.qtydelivered as col_11_0_, case when ? = ? then invoicecan0_.amountlinesgross else invoicecan0_.amountlines end - ( case when ? = ? then invoicecan0_.notinvoicedlinesgross else invoicecan0_.notinvoicedlines end) as col_12_0_, invoicecan0_.amountlinesgross as col_13_0_, invoicecan0_.created as col_14_0_, invoicecan0_.createdby as col_15_0_, invoicecan0_.updated as col_16_0_, invoicecan0_.updatedby as col_17_0_, documentty4_.c_doctype_id as c_doctyp1_224_0_, aduser5_.ad_user_id as ad_user_1_129_1_, aduser6_.ad_user_id as ad_user_1_129_2_, documentty4_.ad_client_id as ad_clien2_224_0_, documentty4_.ad_org_id as ad_org_i3_224_0_, documentty4_.isactive as isactive4_224_0_, documentty4_.created as created5_224_0_, documentty4_.createdby as createdb6_224_0_, documentty4_.updated as updated7_224_0_, documentty4_.updatedby as updatedb8_224_0_, documentty4_.name as name9_224_0_, documentty4_.printname as printna10_224_0_, documentty4_.description as descrip11_224_0_, documentty4_.docbasetype as docbase12_224_0_, documentty4_.issotrx as issotrx13_224_0_, documentty4_.docsubtypeso as docsubt14_224_0_, documentty4_.c_doctypeshipment_id as c_docty15_224_0_, documentty4_.c_doctypeinvoice_id as c_docty16_224_0_, documentty4_.isdocnocontrolled as isdocno17_224_0_, documentty4_.docnosequence_id as docnose18_224_0_, documentty4_.gl_category_id as gl_cate19_224_0_, documentty4_.documentnote as documen20_224_0_, documentty4_.isdefault as isdefau21_224_0_, documentty4_.documentcopies as documen22_224_0_, documentty4_.ad_table_id as ad_tabl23_224_0_, documentty4_.orgfiltered as orgfilt24_224_0_, documentty4_.c_doctype_reversed_id as c_docty25_224_0_, documentty4_.em_intr_transaction_type as em_intr26_224_0_, documentty4_.isexpense as isexpen27_224_0_, documentty4_.em_intr_statistical_regime as em_intr28_224_0_, documentty4_.isreversal as isrever29_224_0_, documentty4_.isreturn as isretur30_224_0_, documentty4_.c_doctypeorder_id as c_docty31_224_0_, documentty4_.c_doctypesimpinvoice_id as c_docty32_224_0_, documentty4_.em_obwpl_useoutbound as em_obwp33_224_0_, documentty4_.em_prouti_c_doctypeorder_id as em_prou34_224_0_, documentty4_.c_doctypeaggrinvoice_id as c_docty35_224_0_, documentty4_.em_obwpl_isgroup as em_obwp36_224_0_, documentty4_.em_obwpl_generateshipment as em_obwp37_224_0_, documentty4_.em_tbai_ad_sequence_id as em_tbai38_224_0_, documentty4_.em_etvfac_inv_type as em_etvf39_224_0_, documentty4_.em_obwpl_shipmentdoctype_id as em_obwp40_224_0_, documentty4_.em_etvfac_verifac_desc as em_etvf41_224_0_, documentty4_.em_prsii_clave_tipo as em_prsi42_224_0_, documentty4_.em_etvfac_external_ref as em_etvf43_224_0_, documentty4_.em_prsii_clave_tipo_fc as em_prsi44_224_0_, documentty4_.em_etvfac_simpinvart7273 as em_etvf45_224_0_, documentty4_.em_etvfac_invnoidart61d as em_etvf46_224_0_, documentty4_.em_etvfac_reverseinvtype as em_etvf47_224_0_, documentty4_.em_etsg_isrectificative as em_etsg48_224_0_, documentty4_.em_prsii_motivo_rectif as em_prsi49_224_0_, documentty4_.em_prsii_tipo_rectif as em_prsi50_224_0_, documentty4_.em_pruti_inforeport2 as em_prut51_224_0_, documentty4_.em_pruti_inforeport as em_prut52_224_0_, documentty4_.em_prsii_forzar_clave_tipo as em_prsi53_224_0_, documentty4_.em_pruti_inforeport3 as em_prut54_224_0_, documentty4_.em_pruti_image_id as em_prut55_224_0_, documentty4_.em_pruti_image2_id as em_prut56_224_0_, documentty4_.em_pruti_email as em_prut57_224_0_, documentty4_.em_pruti_url as em_prut58_224_0_, documentty4_.em_pruti_phone as em_prut59_224_0_, documentty4_.em_pruti_phone2 as em_prut60_224_0_, documentty4_.em_pruti_fax as em_prut61_224_0_, aduser5_.ad_client_id as ad_clien2_129_1_, aduser5_.ad_org_id as ad_org_i3_129_1_, aduser5_.isactive as isactive4_129_1_, aduser5_.created as created5_129_1_, aduser5_.createdby as createdb6_129_1_, aduser5_.updated as updated7_129_1_, aduser5_.updatedby as updatedb8_129_1_, aduser5_.name as name9_129_1_, aduser5_.description as descrip10_129_1_, aduser5_.password as passwor11_129_1_, aduser5_.email as email12_129_1_, aduser5_.supervisor_id as supervi13_129_1_, aduser5_.c_bpartner_id as c_bpart14_129_1_, aduser5_.processing as process15_129_1_, aduser5_.emailuser as emailus16_129_1_, aduser5_.emailuserpw as emailus17_129_1_, aduser5_.c_bpartner_location_id as c_bpart18_129_1_, aduser5_.c_greeting_id as c_greet19_129_1_, aduser5_.title as title20_129_1_, aduser5_.comments as comment21_129_1_, aduser5_.phone as phone22_129_1_, aduser5_.phone2 as phone23_129_1_, aduser5_.fax as fax24_129_1_, aduser5_.lastcontact as lastcon25_129_1_, aduser5_.lastresult as lastres26_129_1_, aduser5_.birthday as birthda27_129_1_, aduser5_.ad_orgtrx_id as ad_orgt28_129_1_, aduser5_.firstname as firstna29_129_1_, aduser5_.lastname as lastnam30_129_1_, aduser5_.username as usernam31_129_1_, aduser5_.default_ad_client_id as default32_129_1_, aduser5_.default_ad_language as default33_129_1_, aduser5_.default_ad_org_id as default34_129_1_, aduser5_.default_ad_role_id as default35_129_1_, aduser5_.default_m_warehouse_id as default36_129_1_, aduser5_.islocked as islocke37_129_1_, aduser5_.ad_image_id as ad_imag38_129_1_, aduser5_.grant_portal_access as grant_p39_129_1_, aduser5_.em_ec_isbillingcontact as em_ec_i40_129_1_, aduser5_.em_prapp_username as em_prap41_129_1_, aduser5_.lastpasswordupdate as lastpas42_129_1_, aduser5_.em_prapp_password as em_prap43_129_1_, aduser5_.isexpiredpassword as isexpir44_129_1_, aduser5_.commercialauth as commerc45_129_1_, aduser5_.em_prapp_mail1 as em_prap46_129_1_, aduser5_.em_prapp_mail2 as em_prap47_129_1_, aduser5_.viasms as viasms48_129_1_, aduser5_.em_prapp_platform as em_prap49_129_1_, aduser5_.viaemail as viaemai50_129_1_, aduser5_.em_prapp_uuid as em_prap51_129_1_, aduser5_.em_prapp_token as em_prap52_129_1_, aduser5_.em_pruti_isbillingcontact as em_prut53_129_1_, aduser5_.em_pruti_isordercontact as em_prut54_129_1_, aduser5_.em_smfsws_default_ws_role_id as em_smfs55_129_1_, aduser5_.em_pruti_ispurchaseordcontact as em_prut56_129_1_, aduser5_.em_ec_ispurchorder as em_ec_i57_129_1_, aduser5_.isdefaultfordocs as isdefau58_129_1_, aduser5_.em_etas_bad_password_attempts as em_etas59_129_1_, aduser5_.em_etas_enable_mult_session as em_etas60_129_1_, aduser5_.em_etas_issecure_pw as em_etas61_129_1_, aduser5_.em_prpres_prestashop_id as em_prpr62_129_1_, aduser5_.em_etas_isused_pw as em_etas63_129_1_, aduser5_.em_prpres_gender as em_prpr64_129_1_, aduser5_.em_etas_isnewuser as em_etas65_129_1_, aduser5_.em_prpres_newsletter as em_prpr66_129_1_, aduser5_.em_prpres_password as em_prpr67_129_1_, aduser5_.em_pruti_isshipmentcontact as em_prut68_129_1_, aduser5_.em_prpres_not_upload as em_prpr69_129_1_, aduser5_.em_prpres_created_from_ps as em_prpr70_129_1_, aduser5_.em_primpa_iscontact as em_prim71_129_1_, aduser6_.ad_client_id as ad_clien2_129_2_, aduser6_.ad_org_id as ad_org_i3_129_2_, aduser6_.isactive as isactive4_129_2_, aduser6_.created as created5_129_2_, aduser6_.createdby as createdb6_129_2_, aduser6_.updated as updated7_129_2_, aduser6_.updatedby as updatedb8_129_2_, aduser6_.name as name9_129_2_, aduser6_.description as descrip10_129_2_, aduser6_.password as passwor11_129_2_, aduser6_.email as email12_129_2_, aduser6_.supervisor_id as supervi13_129_2_, aduser6_.c_bpartner_id as c_bpart14_129_2_, aduser6_.processing as process15_129_2_, aduser6_.emailuser as emailus16_129_2_, aduser6_.emailuserpw as emailus17_129_2_, aduser6_.c_bpartner_location_id as c_bpart18_129_2_, aduser6_.c_greeting_id as c_greet19_129_2_, aduser6_.title as title20_129_2_, aduser6_.comments as comment21_129_2_, aduser6_.phone as phone22_129_2_, aduser6_.phone2 as phone23_129_2_, aduser6_.fax as fax24_129_2_, aduser6_.lastcontact as lastcon25_129_2_, aduser6_.lastresult as lastres26_129_2_, aduser6_.birthday as birthda27_129_2_, aduser6_.ad_orgtrx_id as ad_orgt28_129_2_, aduser6_.firstname as firstna29_129_2_, aduser6_.lastname as lastnam30_129_2_, aduser6_.username as usernam31_129_2_, aduser6_.default_ad_client_id as default32_129_2_, aduser6_.default_ad_language as default33_129_2_, aduser6_.default_ad_org_id as default34_129_2_, aduser6_.default_ad_role_id as default35_129_2_, aduser6_.default_m_warehouse_id as default36_129_2_, aduser6_.islocked as islocke37_129_2_, aduser6_.ad_image_id as ad_imag38_129_2_, aduser6_.grant_portal_access as grant_p39_129_2_, aduser6_.em_ec_isbillingcontact as em_ec_i40_129_2_, aduser6_.em_prapp_username as em_prap41_129_2_, aduser6_.lastpasswordupdate as lastpas42_129_2_, aduser6_.em_prapp_password as em_prap43_129_2_, aduser6_.isexpiredpassword as isexpir44_129_2_, aduser6_.commercialauth as commerc45_129_2_, aduser6_.em_prapp_mail1 as em_prap46_129_2_, aduser6_.em_prapp_mail2 as em_prap47_129_2_, aduser6_.viasms as viasms48_129_2_, aduser6_.em_prapp_platform as em_prap49_129_2_, aduser6_.viaemail as viaemai50_129_2_, aduser6_.em_prapp_uuid as em_prap51_129_2_, aduser6_.em_prapp_token as em_prap52_129_2_, aduser6_.em_pruti_isbillingcontact as em_prut53_129_2_, aduser6_.em_pruti_isordercontact as em_prut54_129_2_, aduser6_.em_smfsws_default_ws_role_id as em_smfs55_129_2_, aduser6_.em_pruti_ispurchaseordcontact as em_prut56_129_2_, aduser6_.em_ec_ispurchorder as em_ec_i57_129_2_, aduser6_.isdefaultfordocs as isdefau58_129_2_, aduser6_.em_etas_bad_password_attempts as em_etas59_129_2_, aduser6_.em_etas_enable_mult_session as em_etas60_129_2_, aduser6_.em_etas_issecure_pw as em_etas61_129_2_, aduser6_.em_prpres_prestashop_id as em_prpr62_129_2_, aduser6_.em_etas_isused_pw as em_etas63_129_2_, aduser6_.em_prpres_gender as em_prpr64_129_2_, aduser6_.em_etas_isnewuser as em_etas65_129_2_, aduser6_.em_prpres_newsletter as em_prpr66_129_2_, aduser6_.em_prpres_password as em_prpr67_129_2_, aduser6_.em_pruti_isshipmentcontact as em_prut68_129_2_, aduser6_.em_prpres_not_upload as em_prpr69_129_2_, aduser6_.em_prpres_created_from_ps as em_prpr70_129_2_, aduser6_.em_primpa_iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join c_order order1_ on invoicecan0_.c_order_id = order1_.c_order_id inner join ad_org organizati2_ on invoicecan0_.ad_org_id = organizati2_.ad_org_id inner join c_bpartner businesspa3_ on invoicecan0_.c_bpartner_id = businesspa3_.c_bpartner_id inner join c_doctype documentty4_ on invoicecan0_.c_doctype_id = documentty4_.c_doctype_id inner join ad_user aduser5_ on invoicecan0_.createdby = aduser5_.ad_user_id inner join ad_user aduser6_ on invoicecan0_.updatedby = aduser6_.ad_user_id where (invoicecan0_.term = ? and invoicecan0_.qtydelivered <> ? and (? = ? and (exists ( select ? from c_orderline orderline7_ where orderline7_.c_order_id = order1_.c_order_id and orderline7_.qtydelivered - orderline7_.qtyinvoiced <> ?)) or ? = ?) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline8_ where orderline8_.c_order_id = order1_.c_order_id and orderline8_.qtyordered - orderline8_.qtyinvoiced <> ?)) or invoicecan0_.term = ? and (exists ( select ? from c_orderline orderline9_ where orderline9_.c_order_id = order1_.c_order_id and orderline9_.qtydelivered <> ? and orderline9_.qtydelivered <> orderline9_.qtyinvoiced)) or invoicecan0_.term = ? and invoicecan0_.qtyordered = invoicecan0_.qtydelivered) and (invoicecan0_.ad_client_id in (...)) and (invoicecan0_.ad_org_id in (...)) order by organizati2_.name, businesspa3_.name, invoicecan0_.dateordered limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 16 10 2 6s411ms 3s205ms 12 4 12s990ms 3s247ms 13 7 22s885ms 3s269ms 17 6 19s838ms 3s306ms 18 8 26s878ms 3s359ms [ User: tad - Total duration: 1m29s - Times executed: 27 ]
[ Application: openbravo - Total duration: 1m29s - Times executed: 27 ]
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 18:11:24 Duration: 3s563ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 18:01:18 Duration: 3s540ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select invoicecan0_.C_Order_ID as col_0_0_, organizati2_.Name as col_1_0_, invoicecan0_.C_Doctype_ID as col_2_0_, invoicecan0_.Documentno as col_3_0_, businesspa3_.Name as col_4_0_, invoicecan0_.Dateordered as col_5_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end as col_6_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end as col_7_0_, invoicecan0_.Term as col_8_0_, case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'I' then case when invoicecan0_.Term = 'N' then 0.0 when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end else case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end end when invoicecan0_.Term = 'O' and invoicecan0_.Qtydelivered & lt; invoicecan0_.Qtyordered then 0.0 else invoicecan0_.Pendinglines end as col_9_0_, invoicecan0_.Qtyordered as col_10_0_, invoicecan0_.Qtydelivered as col_11_0_, case when 'N' = 'Y' then invoicecan0_.Amountlinesgross else invoicecan0_.Amountlines end - ( case when 'N' = 'Y' then invoicecan0_.Notinvoicedlinesgross else invoicecan0_.Notinvoicedlines end) as col_12_0_, invoicecan0_.Amountlinesgross as col_13_0_, invoicecan0_.Created as col_14_0_, invoicecan0_.Createdby as col_15_0_, invoicecan0_.Updated as col_16_0_, invoicecan0_.Updatedby as col_17_0_, documentty4_.C_DocType_ID as c_doctyp1_224_0_, aduser5_.AD_User_ID as ad_user_1_129_1_, aduser6_.AD_User_ID as ad_user_1_129_2_, documentty4_.AD_Client_ID as ad_clien2_224_0_, documentty4_.AD_Org_ID as ad_org_i3_224_0_, documentty4_.IsActive as isactive4_224_0_, documentty4_.Created as created5_224_0_, documentty4_.CreatedBy as createdb6_224_0_, documentty4_.Updated as updated7_224_0_, documentty4_.UpdatedBy as updatedb8_224_0_, documentty4_.Name as name9_224_0_, documentty4_.PrintName as printna10_224_0_, documentty4_.Description as descrip11_224_0_, documentty4_.DocBaseType as docbase12_224_0_, documentty4_.IsSOTrx as issotrx13_224_0_, documentty4_.DocSubTypeSO as docsubt14_224_0_, documentty4_.C_DocTypeShipment_ID as c_docty15_224_0_, documentty4_.C_DocTypeInvoice_ID as c_docty16_224_0_, documentty4_.IsDocNoControlled as isdocno17_224_0_, documentty4_.DocNoSequence_ID as docnose18_224_0_, documentty4_.GL_Category_ID as gl_cate19_224_0_, documentty4_.DocumentNote as documen20_224_0_, documentty4_.IsDefault as isdefau21_224_0_, documentty4_.DocumentCopies as documen22_224_0_, documentty4_.AD_Table_ID as ad_tabl23_224_0_, documentty4_.Orgfiltered as orgfilt24_224_0_, documentty4_.C_Doctype_Reversed_ID as c_docty25_224_0_, documentty4_.EM_Intr_Transaction_Type as em_intr26_224_0_, documentty4_.IsExpense as isexpen27_224_0_, documentty4_.EM_Intr_Statistical_Regime as em_intr28_224_0_, documentty4_.Isreversal as isrever29_224_0_, documentty4_.IsReturn as isretur30_224_0_, documentty4_.C_Doctypeorder_ID as c_docty31_224_0_, documentty4_.C_Doctypesimpinvoice_ID as c_docty32_224_0_, documentty4_.EM_OBWPL_Useoutbound as em_obwp33_224_0_, documentty4_.EM_Prouti_C_Doctypeorder_ID as em_prou34_224_0_, documentty4_.C_Doctypeaggrinvoice_ID as c_docty35_224_0_, documentty4_.EM_OBWPL_IsGroup as em_obwp36_224_0_, documentty4_.EM_OBWPL_GenerateShipment as em_obwp37_224_0_, documentty4_.EM_Tbai_Ad_Sequence_ID as em_tbai38_224_0_, documentty4_.EM_Etvfac_Inv_Type as em_etvf39_224_0_, documentty4_.EM_OBWPL_Shipmentdoctype_ID as em_obwp40_224_0_, documentty4_.EM_Etvfac_Verifac_Desc as em_etvf41_224_0_, documentty4_.EM_Prsii_Clave_Tipo as em_prsi42_224_0_, documentty4_.EM_Etvfac_External_Ref as em_etvf43_224_0_, documentty4_.EM_Prsii_Clave_Tipo_Fc as em_prsi44_224_0_, documentty4_.EM_Etvfac_Simpinvart7273 as em_etvf45_224_0_, documentty4_.EM_Etvfac_Invnoidart61d as em_etvf46_224_0_, documentty4_.EM_Etvfac_Reverseinvtype as em_etvf47_224_0_, documentty4_.EM_Etsg_Isrectificative as em_etsg48_224_0_, documentty4_.EM_Prsii_Motivo_Rectif as em_prsi49_224_0_, documentty4_.EM_Prsii_Tipo_Rectif as em_prsi50_224_0_, documentty4_.EM_Pruti_Inforeport2 as em_prut51_224_0_, documentty4_.EM_Pruti_Inforeport as em_prut52_224_0_, documentty4_.EM_Prsii_Forzar_Clave_Tipo as em_prsi53_224_0_, documentty4_.EM_Pruti_Inforeport3 as em_prut54_224_0_, documentty4_.EM_Pruti_Image_ID as em_prut55_224_0_, documentty4_.EM_Pruti_Image2_ID as em_prut56_224_0_, documentty4_.EM_Pruti_Email as em_prut57_224_0_, documentty4_.EM_Pruti_Url as em_prut58_224_0_, documentty4_.EM_Pruti_Phone as em_prut59_224_0_, documentty4_.EM_Pruti_Phone2 as em_prut60_224_0_, documentty4_.EM_Pruti_Fax as em_prut61_224_0_, aduser5_.AD_Client_ID as ad_clien2_129_1_, aduser5_.AD_Org_ID as ad_org_i3_129_1_, aduser5_.IsActive as isactive4_129_1_, aduser5_.Created as created5_129_1_, aduser5_.CreatedBy as createdb6_129_1_, aduser5_.Updated as updated7_129_1_, aduser5_.UpdatedBy as updatedb8_129_1_, aduser5_.Name as name9_129_1_, aduser5_.Description as descrip10_129_1_, aduser5_.Password as passwor11_129_1_, aduser5_.Email as email12_129_1_, aduser5_.Supervisor_ID as supervi13_129_1_, aduser5_.C_BPartner_ID as c_bpart14_129_1_, aduser5_.Processing as process15_129_1_, aduser5_.EmailUser as emailus16_129_1_, aduser5_.EmailUserPW as emailus17_129_1_, aduser5_.C_BPartner_Location_ID as c_bpart18_129_1_, aduser5_.C_Greeting_ID as c_greet19_129_1_, aduser5_.Title as title20_129_1_, aduser5_.Comments as comment21_129_1_, aduser5_.Phone as phone22_129_1_, aduser5_.Phone2 as phone23_129_1_, aduser5_.Fax as fax24_129_1_, aduser5_.LastContact as lastcon25_129_1_, aduser5_.LastResult as lastres26_129_1_, aduser5_.Birthday as birthda27_129_1_, aduser5_.AD_OrgTrx_ID as ad_orgt28_129_1_, aduser5_.Firstname as firstna29_129_1_, aduser5_.Lastname as lastnam30_129_1_, aduser5_.UserName as usernam31_129_1_, aduser5_.Default_Ad_Client_ID as default32_129_1_, aduser5_.Default_Ad_Language as default33_129_1_, aduser5_.Default_Ad_Org_ID as default34_129_1_, aduser5_.Default_Ad_Role_ID as default35_129_1_, aduser5_.Default_M_Warehouse_ID as default36_129_1_, aduser5_.IsLocked as islocke37_129_1_, aduser5_.AD_Image_ID as ad_imag38_129_1_, aduser5_.Grant_Portal_Access as grant_p39_129_1_, aduser5_.EM_Ec_Isbillingcontact as em_ec_i40_129_1_, aduser5_.EM_Prapp_Username as em_prap41_129_1_, aduser5_.LastPasswordUpdate as lastpas42_129_1_, aduser5_.EM_Prapp_Password as em_prap43_129_1_, aduser5_.Isexpiredpassword as isexpir44_129_1_, aduser5_.Commercialauth as commerc45_129_1_, aduser5_.EM_Prapp_Mail1 as em_prap46_129_1_, aduser5_.EM_Prapp_Mail2 as em_prap47_129_1_, aduser5_.Viasms as viasms48_129_1_, aduser5_.EM_Prapp_Platform as em_prap49_129_1_, aduser5_.Viaemail as viaemai50_129_1_, aduser5_.EM_Prapp_Uuid as em_prap51_129_1_, aduser5_.EM_Prapp_Token as em_prap52_129_1_, aduser5_.EM_Pruti_Isbillingcontact as em_prut53_129_1_, aduser5_.EM_Pruti_Isordercontact as em_prut54_129_1_, aduser5_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_1_, aduser5_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_1_, aduser5_.EM_Ec_Ispurchorder as em_ec_i57_129_1_, aduser5_.Isdefaultfordocs as isdefau58_129_1_, aduser5_.EM_Etas_bad_Password_Attempts as em_etas59_129_1_, aduser5_.EM_Etas_Enable_Mult_Session as em_etas60_129_1_, aduser5_.EM_Etas_Issecure_Pw as em_etas61_129_1_, aduser5_.EM_Prpres_Prestashop_ID as em_prpr62_129_1_, aduser5_.EM_Etas_Isused_Pw as em_etas63_129_1_, aduser5_.EM_Prpres_Gender as em_prpr64_129_1_, aduser5_.EM_Etas_Isnewuser as em_etas65_129_1_, aduser5_.EM_Prpres_Newsletter as em_prpr66_129_1_, aduser5_.EM_Prpres_Password as em_prpr67_129_1_, aduser5_.EM_Pruti_Isshipmentcontact as em_prut68_129_1_, aduser5_.EM_Prpres_Not_Upload as em_prpr69_129_1_, aduser5_.EM_Prpres_Created_From_Ps as em_prpr70_129_1_, aduser5_.EM_Primpa_Iscontact as em_prim71_129_1_, aduser6_.AD_Client_ID as ad_clien2_129_2_, aduser6_.AD_Org_ID as ad_org_i3_129_2_, aduser6_.IsActive as isactive4_129_2_, aduser6_.Created as created5_129_2_, aduser6_.CreatedBy as createdb6_129_2_, aduser6_.Updated as updated7_129_2_, aduser6_.UpdatedBy as updatedb8_129_2_, aduser6_.Name as name9_129_2_, aduser6_.Description as descrip10_129_2_, aduser6_.Password as passwor11_129_2_, aduser6_.Email as email12_129_2_, aduser6_.Supervisor_ID as supervi13_129_2_, aduser6_.C_BPartner_ID as c_bpart14_129_2_, aduser6_.Processing as process15_129_2_, aduser6_.EmailUser as emailus16_129_2_, aduser6_.EmailUserPW as emailus17_129_2_, aduser6_.C_BPartner_Location_ID as c_bpart18_129_2_, aduser6_.C_Greeting_ID as c_greet19_129_2_, aduser6_.Title as title20_129_2_, aduser6_.Comments as comment21_129_2_, aduser6_.Phone as phone22_129_2_, aduser6_.Phone2 as phone23_129_2_, aduser6_.Fax as fax24_129_2_, aduser6_.LastContact as lastcon25_129_2_, aduser6_.LastResult as lastres26_129_2_, aduser6_.Birthday as birthda27_129_2_, aduser6_.AD_OrgTrx_ID as ad_orgt28_129_2_, aduser6_.Firstname as firstna29_129_2_, aduser6_.Lastname as lastnam30_129_2_, aduser6_.UserName as usernam31_129_2_, aduser6_.Default_Ad_Client_ID as default32_129_2_, aduser6_.Default_Ad_Language as default33_129_2_, aduser6_.Default_Ad_Org_ID as default34_129_2_, aduser6_.Default_Ad_Role_ID as default35_129_2_, aduser6_.Default_M_Warehouse_ID as default36_129_2_, aduser6_.IsLocked as islocke37_129_2_, aduser6_.AD_Image_ID as ad_imag38_129_2_, aduser6_.Grant_Portal_Access as grant_p39_129_2_, aduser6_.EM_Ec_Isbillingcontact as em_ec_i40_129_2_, aduser6_.EM_Prapp_Username as em_prap41_129_2_, aduser6_.LastPasswordUpdate as lastpas42_129_2_, aduser6_.EM_Prapp_Password as em_prap43_129_2_, aduser6_.Isexpiredpassword as isexpir44_129_2_, aduser6_.Commercialauth as commerc45_129_2_, aduser6_.EM_Prapp_Mail1 as em_prap46_129_2_, aduser6_.EM_Prapp_Mail2 as em_prap47_129_2_, aduser6_.Viasms as viasms48_129_2_, aduser6_.EM_Prapp_Platform as em_prap49_129_2_, aduser6_.Viaemail as viaemai50_129_2_, aduser6_.EM_Prapp_Uuid as em_prap51_129_2_, aduser6_.EM_Prapp_Token as em_prap52_129_2_, aduser6_.EM_Pruti_Isbillingcontact as em_prut53_129_2_, aduser6_.EM_Pruti_Isordercontact as em_prut54_129_2_, aduser6_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_2_, aduser6_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_2_, aduser6_.EM_Ec_Ispurchorder as em_ec_i57_129_2_, aduser6_.Isdefaultfordocs as isdefau58_129_2_, aduser6_.EM_Etas_bad_Password_Attempts as em_etas59_129_2_, aduser6_.EM_Etas_Enable_Mult_Session as em_etas60_129_2_, aduser6_.EM_Etas_Issecure_Pw as em_etas61_129_2_, aduser6_.EM_Prpres_Prestashop_ID as em_prpr62_129_2_, aduser6_.EM_Etas_Isused_Pw as em_etas63_129_2_, aduser6_.EM_Prpres_Gender as em_prpr64_129_2_, aduser6_.EM_Etas_Isnewuser as em_etas65_129_2_, aduser6_.EM_Prpres_Newsletter as em_prpr66_129_2_, aduser6_.EM_Prpres_Password as em_prpr67_129_2_, aduser6_.EM_Pruti_Isshipmentcontact as em_prut68_129_2_, aduser6_.EM_Prpres_Not_Upload as em_prpr69_129_2_, aduser6_.EM_Prpres_Created_From_Ps as em_prpr70_129_2_, aduser6_.EM_Primpa_Iscontact as em_prim71_129_2_ from c_invoice_candidate_v invoicecan0_ inner join C_Order order1_ on invoicecan0_.C_Order_ID = order1_.C_Order_ID inner join AD_Org organizati2_ on invoicecan0_.AD_Org_ID = organizati2_.AD_Org_ID inner join C_BPartner businesspa3_ on invoicecan0_.C_Bpartner_ID = businesspa3_.C_BPartner_ID inner join C_DocType documentty4_ on invoicecan0_.C_Doctype_ID = documentty4_.C_DocType_ID inner join AD_User aduser5_ on invoicecan0_.Createdby = aduser5_.AD_User_ID inner join AD_User aduser6_ on invoicecan0_.Updatedby = aduser6_.AD_User_ID where (invoicecan0_.Term = 'D' and invoicecan0_.Qtydelivered <> 0 and ('N' = 'N' and (exists ( select 1 from C_OrderLine orderline7_ where orderline7_.C_Order_ID = order1_.C_Order_ID and orderline7_.QtyDelivered - orderline7_.QtyInvoiced <> 0)) or 'N' = 'Y') or invoicecan0_.Term = 'I' and (exists ( select 1 from C_OrderLine orderline8_ where orderline8_.C_Order_ID = order1_.C_Order_ID and orderline8_.QtyOrdered - orderline8_.QtyInvoiced <> 0)) or invoicecan0_.Term = 'S' and (exists ( select 1 from C_OrderLine orderline9_ where orderline9_.C_Order_ID = order1_.C_Order_ID and orderline9_.QtyDelivered <> 0 and orderline9_.QtyDelivered <> orderline9_.QtyInvoiced)) or invoicecan0_.Term = 'O' and invoicecan0_.Qtyordered = invoicecan0_.Qtydelivered) and (invoicecan0_.AD_Client_ID in ('0', 'CFEDC17130E14D2BAE431B401DF89CF1')) and (invoicecan0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-16 13:01:05 Duration: 3s467ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 2s398ms 2s986ms 2s550ms 182 7m44s select ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, case when c_bpartner.em_ec_isvalorated = ? then c_bpartner.em_ec_isvalorated else m_inout.em_ec_isvalued end as em_ec_isvalued, ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, contact.name || ?| | coalesce(contact.phone, ?) as contact_info, contact.email as contact_mail, c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ?| | upper(c_country.name) || ? as locationdesc, c_location_description (c_locationdeliv.c_location_id) || ?| | upper(c_countrydel.name) || ? as locationdelivdesc, upper(c_counttrl_del.name) as countrydel, m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, concat(repre.firstname, ?, repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, c_order.documentno as docorder, c_currency.cursymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, row_number() over (order by m_inout.m_inout_id) % ? = ? as row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.delivery_location_id = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id and pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on ? > prlab_num.num where ? = ? and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in (...)) order by m_inout.documentno;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 16 08 5 12s753ms 2s550ms 09 19 47s831ms 2s517ms 10 26 1m5s 2s509ms 11 18 46s523ms 2s584ms 12 24 1m 2s531ms 13 14 34s852ms 2s489ms 14 2 4s925ms 2s462ms 15 29 1m14s 2s577ms 16 29 1m16s 2s621ms 17 10 25s472ms 2s547ms 18 6 15s63ms 2s510ms [ User: tad - Total duration: 7m44s - Times executed: 182 ]
[ Application: openbravo - Total duration: 7m44s - Times executed: 182 ]
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('16F2119A3001448C8E8E09A885A0E24D')) order by m_inout.documentno;
Date: 2026-07-16 15:21:23 Duration: 2s986ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('88763AAA935A48B38B1F9FF53CF74409')) order by m_inout.documentno;
Date: 2026-07-16 16:03:10 Duration: 2s889ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select --Organizacion ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, CASE WHEN c_bpartner.em_ec_isvalorated = 'Y' THEN c_bpartner.em_ec_isvalorated ELSE m_inout.em_ec_isvalued END as em_ec_isvalued, --OrganizationUtil ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, --Tercero c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, --Contact contact.name || ' ' || coalesce(contact.phone, ' ') as contact_info, contact.email as contact_mail, --AddressOrder c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ' (' || upper(c_country.name) || ') ' AS locationdesc, --AddressOrderDelivery c_location_description (c_locationdeliv.c_location_id) || ' (' || upper(c_countrydel.name) || ') ' AS locationdelivdesc, upper(c_counttrl_del.name) as countrydel, --Inout m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, --Comercial concat(repre.firstname, ' ', repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, --Order c_order.documentno as docorder, c_currency.CurSymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, --Personal ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, ROW_NUMBER() OVER (ORDER BY m_inout.m_inout_id) % 2 = 1 AS row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.Delivery_Location_ID = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id AND pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on 2 > prlab_num.num where 1 = 1 and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in ('092A22232A1E443C87FD7C95936FFA2C')) order by m_inout.documentno;
Date: 2026-07-16 16:03:00 Duration: 2s884ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 21,532 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 603 FATAL entries
- 111 ERROR entries
- 0 WARNING entries
- 12 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 570 Max number of times the same event was reported
- 726 Total events found
Rank Times reported Error 1 570 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", no encryption
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 16 07 45 08 39 09 38 10 36 11 37 12 37 13 37 14 36 15 41 16 38 17 37 18 35 19 38 20 37 21 39 - FATAL: no pg_hba.conf entry for host "159.65.148.75", user "user", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "186.236.254.56", user "test", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "159.65.148.75", user "user", database "postgres", no encryption
Date: 2026-07-16 07:01:03 Database: postgres Application: [unknown] User: user Remote: 159.65.148.75
Date: 2026-07-16 07:02:08 Database: postgres Application: [unknown] User: test Remote: 186.236.254.56
Date: 2026-07-16 07:04:19 Database: postgres Application: [unknown] User: user Remote: 159.65.148.75
2 97 ERROR: current transaction is aborted, commands ignored until end of transaction block
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 16 15 97 - ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
- ERROR: current transaction is aborted, commands ignored until end of transaction block
Statement: select adpreferen0_.AD_Preference_ID as ad_prefe1_83_, adpreferen0_.AD_Client_ID as ad_clien2_83_, adpreferen0_.AD_Org_ID as ad_org_i3_83_, adpreferen0_.IsActive as isactive4_83_, adpreferen0_.Created as created5_83_, adpreferen0_.CreatedBy as createdb6_83_, adpreferen0_.Updated as updated7_83_, adpreferen0_.UpdatedBy as updatedb8_83_, adpreferen0_.AD_Window_ID as ad_windo9_83_, adpreferen0_.AD_User_ID as ad_user10_83_, adpreferen0_.Attribute as attribu11_83_, adpreferen0_.Value as value12_83_, adpreferen0_.Property as propert13_83_, adpreferen0_.IsPropertyList as isprope14_83_, adpreferen0_.VisibleAt_Client_ID as visible15_83_, adpreferen0_.VisibleAt_Org_ID as visible16_83_, adpreferen0_.VisibleAt_Role_ID as visible17_83_, adpreferen0_.Selected as selecte18_83_, adpreferen0_.AD_Module_ID as ad_modu19_83_, adpreferen0_.Inherited_From as inherit20_83_ from AD_Preference adpreferen0_ where (adpreferen0_.VisibleAt_Client_ID=$1 or coalesce(adpreferen0_.VisibleAt_Client_ID, '0')='0') and (adpreferen0_.VisibleAt_Role_ID=$2 or adpreferen0_.VisibleAt_Role_ID is null) and (coalesce(adpreferen0_.VisibleAt_Org_ID, '0') in ($3 , $4 , $5 , $6)) and (adpreferen0_.AD_User_ID=$7 or adpreferen0_.AD_User_ID is null) and (adpreferen0_.AD_Window_ID is null) and adpreferen0_.IsPropertyList=$8 and adpreferen0_.Property=$9 and (adpreferen0_.AD_Org_ID in ($10 , $11 , $12 , $13 , $14 , $15)) and (adpreferen0_.AD_Client_ID in ($16 , $17)) and adpreferen0_.IsActive='Y' order by adpreferen0_.AD_Preference_ID
Date: 2026-07-16 15:25:10 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Statement: SELECT coalesce(t.MSGTEXT, m.MSGTEXT) AS MSGTEXT FROM AD_MESSAGE m left join AD_MESSAGE_TRL t on m.AD_MESSAGE_ID = t.AD_MESSAGE_ID and t.AD_LANGUAGE = $1 WHERE m.VALUE=$2
Date: 2026-07-16 15:25:43 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Statement: SELECT coalesce(E_TRL.NAME, E.NAME) AS NAME FROM AD_ELEMENT E left join AD_ELEMENT_TRL E_TRL on E.AD_ELEMENT_ID = E_TRL.AD_ELEMENT_ID and E_TRL.AD_LANGUAGE = $1 where E.COLUMNNAME=$2
Date: 2026-07-16 15:25:43 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
3 16 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", SSL encryption
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 16 13 9 14 5 15 1 21 1 - FATAL: no pg_hba.conf entry for host "213.209.159.66", user "postgres", database "postgres", SSL encryption
- FATAL: no pg_hba.conf entry for host "213.209.159.66", user "postgres", database "postgres", SSL encryption
- FATAL: no pg_hba.conf entry for host "213.209.159.66", user "postgres", database "postgres", SSL encryption
Date: 2026-07-16 13:47:38 Database: postgres Application: [unknown] User: postgres Remote: 213.209.159.66
Date: 2026-07-16 13:49:09 Database: postgres Application: [unknown] User: postgres Remote: 213.209.159.66
Date: 2026-07-16 13:50:40 Database: postgres Application: [unknown] User: postgres Remote: 213.209.159.66
4 11 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 16 11 1 12 1 14 2 15 2 18 2 19 2 21 1 - LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
Date: 2026-07-16 11:07:01 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
Date: 2026-07-16 12:35:00 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
Date: 2026-07-16 14:33:03 Database: [unknown] Application: [unknown] User: [unknown] Remote: 69.164.217.245
5 6 ERROR: @GivenStorageDetailDoesNotMatchReservationRequirements@ @of@ @Product@: 13618, @AttributeSetInstance@: -, @UOM@: Ud @And@ @StorageBin@: -
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 16 15 6 - ERROR: @GivenStorageDetailDoesNotMatchReservationRequirements@ @of@ @Product@: 13618, @AttributeSetInstance@: -, @UOM@: Ud @And@ @StorageBin@: -
- ERROR: @GivenStorageDetailDoesNotMatchReservationRequirements@ @of@ @Product@: 13618, @AttributeSetInstance@: -, @UOM@: Ud @And@ @StorageBin@: -
- ERROR: @GivenStorageDetailDoesNotMatchReservationRequirements@ @of@ @Product@: 13618, @AttributeSetInstance@: -, @UOM@: Ud @And@ @StorageBin@: -
Context: PL/pgSQL function m_reserve_stock_manual(character varying,character varying,character varying,numeric,character varying,character varying) line 79 at RAISE
Statement: SELECT * FROM M_RESERVE_STOCK_MANUAL($1,$2,$3,TO_NUMBER($4),$5,$6)Date: 2026-07-16 15:25:43 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function m_reserve_stock_manual(character varying,character varying,character varying,numeric,character varying,character varying) line 79 at RAISE
Statement: SELECT * FROM M_RESERVE_STOCK_MANUAL($1,$2,$3,TO_NUMBER($4),$5,$6)Date: 2026-07-16 15:26:16 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function m_reserve_stock_manual(character varying,character varying,character varying,numeric,character varying,character varying) line 79 at RAISE
Statement: SELECT * FROM M_RESERVE_STOCK_MANUAL($1,$2,$3,TO_NUMBER($4),$5,$6)Date: 2026-07-16 15:27:04 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
6 4 FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 16 10 1 13 1 18 1 19 1 - FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Date: 2026-07-16 10:50:48 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.107
Date: 2026-07-16 13:40:24 Database: [unknown] Application: [unknown] User: [unknown] Remote: 213.209.159.66
Date: 2026-07-16 18:40:39 Database: [unknown] Application: [unknown] User: [unknown] Remote: 64.62.156.94
7 4 FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 16 07 1 14 1 15 1 17 1 - FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Date: 2026-07-16 07:25:47 Database: [unknown] Application: [unknown] User: [unknown] Remote: 35.187.180.20
Date: 2026-07-16 14:33:26 Database: [unknown] Application: [unknown] User: [unknown] Remote: 69.164.217.245
Date: 2026-07-16 15:33:51 Database: [unknown] Application: [unknown] User: [unknown] Remote: 69.164.217.245
8 4 FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 16 10 1 13 1 18 1 19 1 - FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Date: 2026-07-16 10:50:48 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.107
Date: 2026-07-16 13:40:24 Database: [unknown] Application: [unknown] User: [unknown] Remote: 213.209.159.66
Date: 2026-07-16 18:40:39 Database: [unknown] Application: [unknown] User: [unknown] Remote: 64.62.156.94
9 4 FATAL: no PostgreSQL user name specified in startup packet
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 16 10 1 13 1 18 1 19 1 - FATAL: no PostgreSQL user name specified in startup packet
- FATAL: no PostgreSQL user name specified in startup packet
- FATAL: no PostgreSQL user name specified in startup packet
Date: 2026-07-16 10:50:48 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.107
Date: 2026-07-16 13:40:24 Database: [unknown] Application: [unknown] User: [unknown] Remote: 213.209.159.66
Date: 2026-07-16 18:40:39 Database: [unknown] Application: [unknown] User: [unknown] Remote: 64.62.156.94
10 2 ERROR: @DeleteRelatedReservation@
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 16 15 2 - ERROR: @DeleteRelatedReservation@
- ERROR: @DeleteRelatedReservation@
Context: PL/pgSQL function c_orderline_trg() line 93 at RAISE
Statement: delete from C_OrderLine where C_OrderLine_ID=$1Date: 2026-07-16 15:27:26 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function c_orderline_trg() line 93 at RAISE
Statement: delete from C_OrderLine where C_OrderLine_ID=$1Date: 2026-07-16 15:30:33 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
11 1 ERROR: @20532@
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 16 12 1 - ERROR: @20532@
Context: PL/pgSQL function ad_preference_mod_trg() line 99 at RAISE
Statement: update AD_Preference set Updated=$1, UpdatedBy=$2, Value=$3 where AD_Preference_ID=$4Date: 2026-07-16 12:06:31 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
12 1 ERROR: syntax error at or near "..."
Times Reported Most Frequent Error / Event #12
Day Hour Count Jul 16 15 1 - ERROR: syntax error at or near ")" at character 53
Statement: select c_order_id from c_order where c_order_id in () order by c_bpartner_id
Date: 2026-07-16 15:25:10 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
13 1 ERROR: @20501@
Times Reported Most Frequent Error / Event #13
Day Hour Count Jul 16 12 1 - ERROR: @20501@
Context: PL/pgSQL function c_orderlinetax_trg() line 132 at RAISE
Statement: delete from C_OrderLineTax where C_Orderlinetax_ID=$1Date: 2026-07-16 12:43:16 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
14 1 ERROR: new row for relation "..." violates check constraint "..."
Times Reported Most Frequent Error / Event #14
Day Hour Count Jul 16 12 1 - ERROR: new row for relation "c_invoiceline" violates check constraint "c_invoiceline_finacct_chk"
Detail: Failing row contains (ECC23830D11648A4AA1F7F621300EBF8, CFEDC17130E14D2BAE431B401DF89CF1, F7EA3492149E4357B7FCFAE16C7F027F, Y, 2026-07-16 12:26:13.524, 2C626954E7AF40B4AE7A9DA2157E9779, 2026-07-16 12:26:13.524, 2C626954E7AF40B4AE7A9DA2157E9779, EB1D68F613B34CE09F3F153B7E51ABDE, null, null, 10, null, Y, null, null, 1, 0, 0, 0, 0, null, 0, 100, null, null, null, N, null, null, null, null, null, 0, N, N, null, 0, 0, 9DB5250D989140699342B29A75FF5015, null, 0, null, null, 0, null, N, null, null, null, null, N, null, N, null, null, 0, N, N, N, N, N).
Statement: insert into C_InvoiceLine (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, C_Invoice_ID, Line, Financial_Invoice_Line, QtyInvoiced, PriceList, PriceActual, PriceLimit, LineNetAmt, C_UOM_ID, IsDescription, PriceStd, Excludeforwithholding, Iseditlinenetamt, Line_Gross_Amount, Gross_Unit_Price, C_Bpartner_ID, grosspricestd, Grosspricelist, IsDeferred, Explode, Match_Lccosts, CANCELPRICEAD, EM_Priuti_Discount, EM_Priuti_Updatepricelist, EM_Priuti_Pricelist_Updated, EM_Priuti_Changeprice, EM_Priuti_Modify_Tax, C_InvoiceLine_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35)Date: 2026-07-16 12:26:13 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
15 1 FATAL: unsupported frontend protocol 16.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #15
Day Hour Count Jul 16 19 1 - FATAL: unsupported frontend protocol 16.0: server supports 3.0 to 3.0
Date: 2026-07-16 19:53:36 Database: [unknown] Application: [unknown] User: [unknown] Remote: 20.65.195.105
16 1 ERROR: @ec_duplicity_orderref@ 11003004-005-006
Times Reported Most Frequent Error / Event #16
Day Hour Count Jul 16 15 1 - ERROR: @ec_duplicity_orderref@ 11003004-005-006
Context: PL/pgSQL function ec_c_order_ref_trg() line 46 at RAISE
Statement: update C_Order set Updated=$1, SalesRep_ID=$2, POReference=$3, Delivery_Location_ID=$4 where C_Order_ID=$5Date: 2026-07-16 15:14:56 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
17 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #17
Day Hour Count Jul 16 12 1 - ERROR: duplicate key value violates unique constraint "m_product_po_product_bpartn_un"
Detail: Key (m_product_id, c_bpartner_id)=(E7AF44653CF44CCEB048D80068D2E0AE, 2ECB751CC1ED431EB9951E32BFF65047) already exists.
Statement: insert into M_Product_PO (M_Product_ID, C_BPartner_ID, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsCurrentVendor, C_UOM_ID, C_Currency_ID, VendorProductNo, Discontinued, M_Product_PO_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15)Date: 2026-07-16 12:11:14 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
18 1 ERROR: incomplete startup packet
Times Reported Most Frequent Error / Event #18
Day Hour Count Jul 16 14 1 - ERROR: incomplete startup packet
Date: 2026-07-16 14:33:26 Database: [unknown] Application: [unknown] User: [unknown] Remote: 69.164.217.245