-
Global information
- Generated on Tue Jul 14 23:00:07 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 79,688 log entries in 5s
- Log start from 2026-07-14 07:00:01 to 2026-07-14 21:59:59
-
Overview
Global Stats
- 78 Number of unique normalized queries
- 634 Number of queries
- 49m59s Total query duration
- 2026-07-14 07:01:46 First query
- 2026-07-14 21:01:54 Last query
- 3 queries/s at 2026-07-14 15:14:42 Query peak
- 49m59s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 49m59s Execute total duration
- 89 Number of events
- 14 Number of unique normalized events
- 26 Max number of times the same event was reported
- 0 Number of cancellation
- 209 Total number of automatic vacuums
- 389 Total number of automatic analyzes
- 407 Number temporary file
- 194.02 MiB Max size of temporary file
- 30.88 MiB Average size of temporary file
- 3,622 Total number of sessions
- 139 sessions at 2026-07-14 21:05:01 Session peak
- 4d11h15m57s Total duration of sessions
- 1m46s Average duration of sessions
- 0 Average queries per session
- 828ms Average queries duration per session
- 1m45s Average idle time per session
- 4,527 Total number of connections
- 6 connections/s at 2026-07-14 19:00:01 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 3 queries/s Query Peak
- 2026-07-14 15:14:42 Date
SELECT Traffic
Key values
- 3 queries/s Query Peak
- 2026-07-14 15:14:42 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 0 queries/s Query Peak
- Date
Queries duration
Key values
- 49m59s 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 14 07 6 0ms 22s504ms 8s392ms 0ms 1s139ms 25s443ms 08 20 0ms 23s447ms 3s618ms 3s766ms 7s775ms 26s549ms 09 24 0ms 22s635ms 4s129ms 6s197ms 7s415ms 25s631ms 10 60 0ms 22s973ms 4s658ms 12s838ms 34s873ms 57s870ms 11 65 0ms 45s200ms 5s139ms 12s605ms 31s275ms 1m29s 12 112 0ms 23s11ms 3s426ms 18s103ms 24s594ms 33s165ms 13 38 0ms 23s513ms 3s603ms 6s428ms 11s14ms 27s188ms 14 38 0ms 44s444ms 6s448ms 5s583ms 26s132ms 1m42s 15 106 0ms 24s545ms 3s292ms 16s757ms 27s132ms 32s320ms 16 64 0ms 44s785ms 6s31ms 11s593ms 24s327ms 2m15s 17 41 0ms 23s2ms 3s112ms 6s517ms 11s306ms 28s866ms 18 38 0ms 44s712ms 7s47ms 6s447ms 50s483ms 1m20s 19 5 0ms 24s287ms 10s384ms 0ms 1s202ms 26s432ms 20 14 0ms 42s960ms 13s455ms 0ms 3s76ms 2m39s 21 3 0ms 24s543ms 9s274ms 0ms 0ms 27s823ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 14 07 6 0 8s392ms 0ms 0ms 23s770ms 08 20 0 3s618ms 1s18ms 3s766ms 9s548ms 09 24 0 4s129ms 2s518ms 6s197ms 16s643ms 10 60 0 4s658ms 6s646ms 12s838ms 39s860ms 11 65 0 5s139ms 7s497ms 12s605ms 1m 12 112 0 3s426ms 14s863ms 18s103ms 25s307ms 13 38 0 3s603ms 3s734ms 6s428ms 11s541ms 14 38 0 6s448ms 3s772ms 5s583ms 49s269ms 15 106 0 3s292ms 13s216ms 16s757ms 32s161ms 16 64 0 6s31ms 8s187ms 11s593ms 27s111ms 17 41 0 3s112ms 3s281ms 6s517ms 27s636ms 18 38 0 7s47ms 2s493ms 6s447ms 1m8s 19 5 0 10s384ms 0ms 0ms 24s287ms 20 14 0 13s455ms 0ms 0ms 26s187ms 21 3 0 9s274ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 14 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 14 07 0 6 6.00 0.00% 08 0 19 19.00 0.00% 09 0 23 23.00 0.00% 10 0 59 59.00 0.00% 11 0 64 64.00 0.00% 12 0 111 111.00 0.00% 13 0 37 37.00 0.00% 14 0 37 37.00 0.00% 15 0 105 105.00 0.00% 16 0 63 63.00 0.00% 17 0 40 40.00 0.00% 18 0 37 37.00 0.00% 19 0 4 4.00 0.00% 20 0 13 13.00 0.00% 21 0 3 3.00 0.00% Day Hour Count Average / Second Jul 14 07 307 0.09/s 08 285 0.08/s 09 288 0.08/s 10 312 0.09/s 11 337 0.09/s 12 313 0.09/s 13 287 0.08/s 14 299 0.08/s 15 319 0.09/s 16 328 0.09/s 17 298 0.08/s 18 295 0.08/s 19 281 0.08/s 20 291 0.08/s 21 287 0.08/s Day Hour Count Average Duration Average idle time Jul 14 07 241 11s575ms 11s366ms 08 224 1m47s 1m47s 09 229 3m36s 3m36s 10 249 2m51s 2m50s 11 279 2m52s 2m50s 12 249 1m47s 1m46s 13 232 1m18s 1m17s 14 239 1m46s 1m45s 15 258 2m44s 2m42s 16 262 1m59s 1m58s 17 245 1m24s 1m23s 18 235 1m12s 1m11s 19 221 3s213ms 2s978ms 20 232 46s754ms 45s942ms 21 227 1m52s 1m52s -
Connections
Established Connections
Key values
- 6 connections Connection Peak
- 2026-07-14 19:00:01 Date
Connections per database
Key values
- etendo Main Database
- 4,527 connections Total
Connections per user
Key values
- tad Main User
- 4,527 connections Total
-
Sessions
Simultaneous sessions
Key values
- 139 sessions Session Peak
- 2026-07-14 21:05:01 Date
Histogram of session times
Key values
- 3,248 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,622 sessions Total
Sessions per user
Key values
- tad Main User
- 3,622 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,622 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 9,979 buffers Checkpoint Peak
- 2026-07-14 13:10:04 Date
- 270.057 seconds Highest write time
- 0.016 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-14 08:31:32 Date
Checkpoints distance
Key values
- 123.37 Mo Distance Peak
- 2026-07-14 13:10:04 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 14 07 5,284 537.557s 0.032s 537.629s 08 9,622 958.674s 0.042s 958.765s 09 17,849 1,544.607s 0.039s 1,544.73s 10 19,893 1,842.386s 0.056s 1,842.528s 11 24,966 2,427.697s 0.059s 2,427.845s 12 27,190 2,307.66s 0.053s 2,307.803s 13 27,979 1,667.453s 0.057s 1,667.616s 14 14,985 1,405.531s 0.046s 1,405.647s 15 23,161 2,346.149s 0.051s 2,346.288s 16 22,365 2,185.902s 0.043s 2,186.042s 17 13,797 1,290.633s 0.036s 1,290.733s 18 11,719 687.289s 0.032s 687.394s 19 2,429 247.902s 0.017s 247.964s 20 4,816 344.025s 0.015s 344.088s 21 3,658 365.018s 0.018s 365.077s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 14 07 0 2 0 1,196 0.002s 0.012s 08 0 3 0 2,037 0.002s 0.012s 09 0 7 0 2,391 0.002s 0.012s 10 0 7 0 2,834 0.002s 0.012s 11 0 8 0 3,237 0.003s 0.012s 12 0 9 0 3,021 0.002s 0.011s 13 0 9 0 2,811 0.002s 0.013s 14 0 4 0 2,046 0.002s 0.012s 15 0 7 0 3,199 0.002s 0.012s 16 0 8 0 3,261 0.002s 0.012s 17 0 4 0 2,558 0.003s 0.012s 18 0 4 0 1,480 0.003s 0.012s 19 0 1 0 443 0.002s 0.012s 20 0 1 0 340 0.002s 0.012s 21 0 1 0 331 0.002s 0.012s Day Hour Count Avg time (sec) Jul 14 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 14 07 2,443.00 kB 19,344.17 kB 08 4,356.17 kB 8,411.08 kB 09 10,182.08 kB 31,014.58 kB 10 9,157.92 kB 17,560.00 kB 11 10,678.75 kB 14,725.08 kB 12 13,781.27 kB 17,595.00 kB 13 11,741.23 kB 40,319.08 kB 14 5,149.33 kB 15,129.33 kB 15 10,042.25 kB 13,129.17 kB 16 9,791.58 kB 15,229.83 kB 17 5,662.67 kB 14,017.83 kB 18 5,755.17 kB 28,058.58 kB 19 1,219.92 kB 8,982.83 kB 20 2,043.08 kB 13,294.92 kB 21 1,326.83 kB 6,694.92 kB -
Temporary Files
Size of temporary files
Key values
- 388.03 MiB Temp Files size Peak
- 2026-07-14 18:01:48 Date
Number of temporary files
Key values
- 4 per second Temp Files Peak
- 2026-07-14 11:00:54 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 14 07 0 0 0 08 15 408.09 MiB 27.21 MiB 09 26 755.01 MiB 29.04 MiB 10 50 1.13 GiB 23.15 MiB 11 74 1.79 GiB 24.82 MiB 12 48 1.31 GiB 27.90 MiB 13 20 580.97 MiB 29.05 MiB 14 37 1.05 GiB 28.95 MiB 15 56 1.54 GiB 28.07 MiB 16 45 1.27 GiB 28.97 MiB 17 22 1.45 GiB 67.45 MiB 18 11 975.72 MiB 88.70 MiB 19 0 0 0 20 3 83.41 MiB 27.80 MiB 21 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 340 9.64 GiB 15.74 MiB 42.36 MiB 29.05 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 ('2ECEE9B6A7894EDCB3924B098E28C358')) order by m_inout.documentno;
Date: 2026-07-14 11:47:38 Duration: 3s107ms 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 ('AC9BC2FB6DC446BE951B8A89F5431861')) order by m_inout.documentno;
Date: 2026-07-14 16:38:23 Duration: 3s12ms 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 ('CB85114E7BBF474FA8FBBC19B44D594F')) order by m_inout.documentno;
Date: 2026-07-14 16:59:09 Duration: 2s989ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 13 149.30 MiB 11.48 MiB 11.48 MiB 11.48 MiB 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 (upper((businesspa0_.name || ?| | coalesce(to_char(businesspa0_.name2), ?))) like upper(?) escape ?) and (exists ( select ? from ec_product_cost_v ec_product1_ left outer join m_product product2_ on ec_product1_.m_product_id = product2_.m_product_id inner join c_bpartner businesspa3_ on ec_product1_.c_bpartner_id = businesspa3_.c_bpartner_id where (upper((coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product2_.m_product_id and producttrl4_.ad_language = ?)), to_char(product2_.name), ?) || ?| | coalesce(to_char(product2_.description), ?))) like upper(?) escape ?) and businesspa3_.c_bpartner_id = businesspa0_.c_bpartner_id and (ec_product1_.ad_org_id in (...)) and (ec_product1_.ad_client_id in (...)))) order by businesspa0_.name, businesspa0_.name2 limit ?;-
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 (upper((businesspa0_.Name || ' - ' || coalesce(to_char(businesspa0_.Name2), ''))) like upper('%planet%') escape '|') and (exists (select 1 from ec_product_cost_v ec_product1_ left outer join M_Product product2_ on ec_product1_.M_Product_ID=product2_.M_Product_ID inner join C_BPartner businesspa3_ on ec_product1_.C_Bpartner_ID=businesspa3_.C_BPartner_ID where (upper((coalesce(to_char((select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID=product2_.M_Product_ID and producttrl4_.AD_Language='es_ES')), to_char(product2_.Name), '') || ' - ' || coalesce(to_char(product2_.Description), ''))) like upper('%fermator%') escape '|') and businesspa3_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (ec_product1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-14 11:00:55 Duration: 2s584ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
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 (upper((businesspa0_.Name || ' - ' || coalesce(to_char(businesspa0_.Name2), ''))) like upper('%planet%') escape '|') and (exists (select 1 from ec_product_cost_v ec_product1_ left outer join M_Product product2_ on ec_product1_.M_Product_ID=product2_.M_Product_ID inner join C_BPartner businesspa3_ on ec_product1_.C_Bpartner_ID=businesspa3_.C_BPartner_ID where (upper((coalesce(to_char((select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID=product2_.M_Product_ID and producttrl4_.AD_Language='es_ES')), to_char(product2_.Name), '') || ' - ' || coalesce(to_char(product2_.Description), ''))) like upper('%fermator%') escape '|') and businesspa3_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (ec_product1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-14 10:57:49 Duration: 2s566ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
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 (upper((businesspa0_.Name || ' - ' || coalesce(to_char(businesspa0_.Name2), ''))) like upper('%pla%') escape '|') and (exists (select 1 from ec_product_cost_v ec_product1_ left outer join M_Product product2_ on ec_product1_.M_Product_ID=product2_.M_Product_ID inner join C_BPartner businesspa3_ on ec_product1_.C_Bpartner_ID=businesspa3_.C_BPartner_ID where (upper((coalesce(to_char((select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID=product2_.M_Product_ID and producttrl4_.AD_Language='es_ES')), to_char(product2_.Name), '') || ' - ' || coalesce(to_char(product2_.Description), ''))) like upper('%fermator%') escape '|') and businesspa3_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (ec_product1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-14 11:00:54 Duration: 1s508ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 10 273.62 MiB 24.34 MiB 32.01 MiB 27.36 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-14 14:02:42 Duration: 17s403ms 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-14 20:03:19 Duration: 17s194ms 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-14 16:03:03 Duration: 15s142ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
4 10 83.97 MiB 1.57 MiB 69.82 MiB 8.40 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', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') 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-14 10:43:34 Duration: 9s783ms 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-14 15:06:52 Duration: 8s517ms 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-14 10:23:26 Duration: 8s388ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 5 143.37 MiB 21.00 MiB 33.15 MiB 28.67 MiB select "_"."c_order_id", ;-
select "_"."c_order_id", ;
Date: 2026-07-14 11:03:47 Duration: 0ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
6 5 103.36 MiB 11.48 MiB 34.45 MiB 20.67 MiB select product0_.m_product_id as m_produc1_559_, product0_.ad_client_id as ad_clien2_559_, product0_.ad_org_id as ad_org_i3_559_, product0_.isactive as isactive4_559_, product0_.created as created5_559_, product0_.createdby as createdb6_559_, product0_.updated as updated7_559_, product0_.updatedby as updatedb8_559_, product0_.value as value9_559_, product0_.name as name10_559_, product0_.description as descrip11_559_, product0_.documentnote as documen12_559_, product0_.help as help13_559_, product0_.upc as upc14_559_, product0_.sku as sku15_559_, product0_.c_uom_id as c_uom_i16_559_, product0_.salesrep_id as salesre17_559_, product0_.issummary as issumma18_559_, product0_.isstocked as isstock19_559_, product0_.ispurchased as ispurch20_559_, product0_.issold as issold21_559_, product0_.isbom as isbom22_559_, product0_.isinvoiceprintdetails as isinvoi23_559_, product0_.ispicklistprintdetails as ispickl24_559_, product0_.isverified as isverif25_559_, product0_.m_product_category_id as m_produ26_559_, product0_.classification as classif27_559_, product0_.volume as volume28_559_, product0_.weight as weight29_559_, product0_.shelfwidth as shelfwi30_559_, product0_.shelfheight as shelfhe31_559_, product0_.shelfdepth as shelfde32_559_, product0_.unitsperpallet as unitspe33_559_, product0_.c_taxcategory_id as c_taxca34_559_, product0_.s_resource_id as s_resou35_559_, product0_.discontinued as discont36_559_, product0_.discontinuedby as discont37_559_, product0_.processing as process38_559_, product0_.s_expensetype_id as s_expen39_559_, product0_.producttype as product40_559_, product0_.imageurl as imageur41_559_, product0_.descriptionurl as descrip42_559_, product0_.guaranteedays as guarant43_559_, product0_.versionno as version44_559_, product0_.m_attributeset_id as m_attri45_559_, product0_.m_attributesetinstance_id as m_attri46_559_, product0_.downloadurl as downloa47_559_, product0_.m_freightcategory_id as m_freig48_559_, product0_.m_locator_id as m_locat49_559_, product0_.ad_image_id as ad_imag50_559_, product0_.c_bpartner_id as c_bpart51_559_, product0_.ispriceprinted as isprice52_559_, product0_.name2 as name53_559_, product0_.stock_min as stock_m54_559_, product0_.enforce_attribute as enforce55_559_, product0_.calculated as calcula56_559_, product0_.ma_processplan_id as ma_proc57_559_, product0_.production as product58_559_, product0_.capacity as capacit59_559_, product0_.delaymin as delaymi60_559_, product0_.mrp_planner_id as mrp_pla61_559_, product0_.mrp_planningmethod_id as mrp_pla62_559_, product0_.qtymax as qtymax63_559_, product0_.qtymin as qtymin64_559_, product0_.qtystd as qtystd65_559_, product0_.qtytype as qtytype66_559_, product0_.stockmin as stockmi67_559_, product0_.em_aeat347_isleasebusiness as em_aeat68_559_, product0_.attrsetvaluetype as attrset69_559_, product0_.em_aeat347_situation as em_aeat70_559_, product0_.isquantityvariable as isquant71_559_, product0_.isdeferredrevenue as isdefer72_559_, product0_.em_aeat347_referenceid as em_aeat73_559_, product0_.em_aeat347_locationtype as em_aeat74_559_, product0_.revplantype as revplan75_559_, product0_.em_aeat347_streetname as em_aeat76_559_, product0_.periodnumber as periodn77_559_, product0_.em_aeat347_streetnumbertype as em_aeat78_559_, product0_.isdeferredexpense as isdefer79_559_, product0_.em_aeat347_streetnumber as em_aeat80_559_, product0_.expplantype as expplan81_559_, product0_.em_aeat347_streetnumberqua as em_aeat82_559_, product0_.periodnumber_exp as periodn83_559_, product0_.defaultperiod as default84_559_, product0_.em_aeat347_building as em_aeat85_559_, product0_.defaultperiod_exp as default86_559_, product0_.em_aeat347_hall as em_aeat87_559_, product0_.bookusingpoprice as bookusi88_559_, product0_.em_aeat347_hallway as em_aeat89_559_, product0_.em_aeat347_floor as em_aeat90_559_, product0_.c_uom_weight_id as c_uom_w91_559_, product0_.m_brand_id as m_brand92_559_, product0_.em_aeat347_apartment as em_aeat93_559_, product0_.em_aeat347_complement as em_aeat94_559_, product0_.isgeneric as isgener95_559_, product0_.em_aeat347_location as em_aeat96_559_, product0_.generic_product_id as generic97_559_, product0_.createvariants as createv98_559_, product0_.em_aeat347_county as em_aeat99_559_, product0_.characteristic_desc as charac100_559_, product0_.em_aeat347_countycode as em_aea101_559_, product0_.em_aeat347_regioncode as em_aea102_559_, product0_.updateinvariants as update103_559_, product0_.em_aeat347_zipcode as em_aea104_559_, product0_.managevariants as manage105_559_, product0_.prod_cat_selection as prod_c106_559_, product0_.product_selection as produc107_559_, product0_.print_description as print_108_559_, product0_.returnable as return109_559_, product0_.overdue_return_days as overdu110_559_, product0_.ispricerulebased as ispric111_559_, product0_.unique_per_document as unique112_559_, product0_.relateprodcattoservice as relate113_559_, product0_.relateprodtoservice as relate114_559_, product0_.islinkedtoproduct as islink115_559_, product0_.quantity_rule as quanti116_559_, product0_.allow_deferred_sell as allow_117_559_, product0_.deferred_sell_max_days as deferr118_559_, product0_.em_etpp_print_label as em_etp119_559_, product0_.m_product_status_id as m_prod120_559_, product0_.em_prpres_short_description as em_prp121_559_, product0_.em_prpres_description as em_prp122_559_, product0_.em_prpres_meta_title as em_prp123_559_, product0_.em_prpres_meta_description as em_prp124_559_, product0_.em_prpres_friendly_url as em_prp125_559_, product0_.em_prpres_tags as em_prp126_559_, product0_.ismodifytax as ismodi127_559_, product0_.em_prpres_upload as em_prp128_559_, product0_.relateprodcattaxtoservice as relate129_559_, product0_.copyservicemodifytaxconfig as copyse130_559_, product0_.em_ec_observations as em_ec_131_559_, product0_.em_prpres_managecat as em_prp132_559_, product0_.em_prpres_deactivate_on_ps as em_prp133_559_, product0_.em_prpres_out_of_stock as em_prp134_559_, product0_.em_pruti_addmodifycharact as em_pru135_559_ from m_product product0_ where (upper((coalesce(to_char(( select producttrl1_.name from m_product_trl producttrl1_ where producttrl1_.m_product_id = product0_.m_product_id and producttrl1_.ad_language = ?)), to_char(product0_.name), ?) || ?| | coalesce(to_char(product0_.description), ?))) like upper(?) escape ?) and (exists ( select ? from ec_product_cost_v ec_product2_ inner join m_product product3_ on ec_product2_.m_product_id = product3_.m_product_id where product3_.m_product_id = product0_.m_product_id and (ec_product2_.ad_org_id in (...)) and (ec_product2_.ad_client_id in (...)))) order by product0_.name, product0_.description limit ?;-
select product0_.M_Product_ID as m_produc1_559_, product0_.AD_Client_ID as ad_clien2_559_, product0_.AD_Org_ID as ad_org_i3_559_, product0_.IsActive as isactive4_559_, product0_.Created as created5_559_, product0_.CreatedBy as createdb6_559_, product0_.Updated as updated7_559_, product0_.UpdatedBy as updatedb8_559_, product0_.Value as value9_559_, product0_.Name as name10_559_, product0_.Description as descrip11_559_, product0_.DocumentNote as documen12_559_, product0_.Help as help13_559_, product0_.UPC as upc14_559_, product0_.SKU as sku15_559_, product0_.C_UOM_ID as c_uom_i16_559_, product0_.SalesRep_ID as salesre17_559_, product0_.IsSummary as issumma18_559_, product0_.IsStocked as isstock19_559_, product0_.IsPurchased as ispurch20_559_, product0_.IsSold as issold21_559_, product0_.IsBOM as isbom22_559_, product0_.IsInvoicePrintDetails as isinvoi23_559_, product0_.IsPickListPrintDetails as ispickl24_559_, product0_.IsVerified as isverif25_559_, product0_.M_Product_Category_ID as m_produ26_559_, product0_.Classification as classif27_559_, product0_.Volume as volume28_559_, product0_.Weight as weight29_559_, product0_.ShelfWidth as shelfwi30_559_, product0_.ShelfHeight as shelfhe31_559_, product0_.ShelfDepth as shelfde32_559_, product0_.UnitsPerPallet as unitspe33_559_, product0_.C_TaxCategory_ID as c_taxca34_559_, product0_.S_Resource_ID as s_resou35_559_, product0_.Discontinued as discont36_559_, product0_.DiscontinuedBy as discont37_559_, product0_.Processing as process38_559_, product0_.S_ExpenseType_ID as s_expen39_559_, product0_.ProductType as product40_559_, product0_.ImageURL as imageur41_559_, product0_.DescriptionURL as descrip42_559_, product0_.GuaranteeDays as guarant43_559_, product0_.VersionNo as version44_559_, product0_.M_AttributeSet_ID as m_attri45_559_, product0_.M_AttributeSetInstance_ID as m_attri46_559_, product0_.DownloadURL as downloa47_559_, product0_.M_FreightCategory_ID as m_freig48_559_, product0_.M_Locator_ID as m_locat49_559_, product0_.AD_Image_ID as ad_imag50_559_, product0_.C_BPartner_ID as c_bpart51_559_, product0_.Ispriceprinted as isprice52_559_, product0_.Name2 as name53_559_, product0_.Stock_Min as stock_m54_559_, product0_.Enforce_Attribute as enforce55_559_, product0_.Calculated as calcula56_559_, product0_.MA_Processplan_ID as ma_proc57_559_, product0_.Production as product58_559_, product0_.Capacity as capacit59_559_, product0_.Delaymin as delaymi60_559_, product0_.MRP_Planner_ID as mrp_pla61_559_, product0_.MRP_Planningmethod_ID as mrp_pla62_559_, product0_.Qtymax as qtymax63_559_, product0_.Qtymin as qtymin64_559_, product0_.Qtystd as qtystd65_559_, product0_.Qtytype as qtytype66_559_, product0_.Stockmin as stockmi67_559_, product0_.EM_Aeat347_Isleasebusiness as em_aeat68_559_, product0_.Attrsetvaluetype as attrset69_559_, product0_.EM_Aeat347_Situation as em_aeat70_559_, product0_.Isquantityvariable as isquant71_559_, product0_.Isdeferredrevenue as isdefer72_559_, product0_.EM_Aeat347_Referenceid as em_aeat73_559_, product0_.EM_Aeat347_Locationtype as em_aeat74_559_, product0_.Revplantype as revplan75_559_, product0_.EM_Aeat347_Streetname as em_aeat76_559_, product0_.Periodnumber as periodn77_559_, product0_.EM_Aeat347_Streetnumbertype as em_aeat78_559_, product0_.Isdeferredexpense as isdefer79_559_, product0_.EM_Aeat347_Streetnumber as em_aeat80_559_, product0_.Expplantype as expplan81_559_, product0_.EM_Aeat347_Streetnumberqua as em_aeat82_559_, product0_.Periodnumber_Exp as periodn83_559_, product0_.DefaultPeriod as default84_559_, product0_.EM_Aeat347_Building as em_aeat85_559_, product0_.DefaultPeriod_Exp as default86_559_, product0_.EM_Aeat347_Hall as em_aeat87_559_, product0_.Bookusingpoprice as bookusi88_559_, product0_.EM_Aeat347_Hallway as em_aeat89_559_, product0_.EM_Aeat347_Floor as em_aeat90_559_, product0_.C_Uom_Weight_ID as c_uom_w91_559_, product0_.M_Brand_ID as m_brand92_559_, product0_.EM_Aeat347_Apartment as em_aeat93_559_, product0_.EM_Aeat347_Complement as em_aeat94_559_, product0_.IsGeneric as isgener95_559_, product0_.EM_Aeat347_Location as em_aeat96_559_, product0_.Generic_Product_ID as generic97_559_, product0_.CreateVariants as createv98_559_, product0_.EM_Aeat347_County as em_aeat99_559_, product0_.Characteristic_Desc as charac100_559_, product0_.EM_Aeat347_Countycode as em_aea101_559_, product0_.EM_Aeat347_Regioncode as em_aea102_559_, product0_.Updateinvariants as update103_559_, product0_.EM_Aeat347_Zipcode as em_aea104_559_, product0_.ManageVariants as manage105_559_, product0_.Prod_Cat_Selection as prod_c106_559_, product0_.Product_Selection as produc107_559_, product0_.Print_Description as print_108_559_, product0_.Returnable as return109_559_, product0_.Overdue_Return_Days as overdu110_559_, product0_.Ispricerulebased as ispric111_559_, product0_.Unique_Per_Document as unique112_559_, product0_.Relateprodcattoservice as relate113_559_, product0_.Relateprodtoservice as relate114_559_, product0_.Islinkedtoproduct as islink115_559_, product0_.Quantity_Rule as quanti116_559_, product0_.Allow_Deferred_Sell as allow_117_559_, product0_.Deferred_Sell_Max_Days as deferr118_559_, product0_.EM_Etpp_Print_Label as em_etp119_559_, product0_.M_Product_Status_ID as m_prod120_559_, product0_.EM_Prpres_Short_Description as em_prp121_559_, product0_.EM_Prpres_Description as em_prp122_559_, product0_.EM_Prpres_Meta_Title as em_prp123_559_, product0_.EM_Prpres_Meta_Description as em_prp124_559_, product0_.EM_Prpres_Friendly_Url as em_prp125_559_, product0_.EM_Prpres_Tags as em_prp126_559_, product0_.Ismodifytax as ismodi127_559_, product0_.EM_Prpres_Upload as em_prp128_559_, product0_.Relateprodcattaxtoservice as relate129_559_, product0_.Copyservicemodifytaxconfig as copyse130_559_, product0_.EM_Ec_Observations as em_ec_131_559_, product0_.EM_Prpres_Managecat as em_prp132_559_, product0_.EM_Prpres_Deactivate_On_Ps as em_prp133_559_, product0_.EM_Prpres_Out_Of_Stock as em_prp134_559_, product0_.EM_Pruti_Addmodifycharact as em_pru135_559_ from M_Product product0_ where (upper((coalesce(to_char(( select producttrl1_.Name from M_Product_Trl producttrl1_ where producttrl1_.M_Product_ID = product0_.M_Product_ID and producttrl1_.AD_Language = 'es_ES')), to_char(product0_.Name), '') || ' - ' || coalesce(to_char(product0_.Description), ''))) like upper('%ferm%') escape '|') and (exists ( select 1 from ec_product_cost_v ec_product2_ inner join M_Product product3_ on ec_product2_.M_Product_ID = product3_.M_Product_ID where product3_.M_Product_ID = product0_.M_Product_ID and (ec_product2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by product0_.Name, product0_.Description limit '76';
Date: 2026-07-14 11:00:40 Duration: 1s610ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select product0_.M_Product_ID as m_produc1_559_, product0_.AD_Client_ID as ad_clien2_559_, product0_.AD_Org_ID as ad_org_i3_559_, product0_.IsActive as isactive4_559_, product0_.Created as created5_559_, product0_.CreatedBy as createdb6_559_, product0_.Updated as updated7_559_, product0_.UpdatedBy as updatedb8_559_, product0_.Value as value9_559_, product0_.Name as name10_559_, product0_.Description as descrip11_559_, product0_.DocumentNote as documen12_559_, product0_.Help as help13_559_, product0_.UPC as upc14_559_, product0_.SKU as sku15_559_, product0_.C_UOM_ID as c_uom_i16_559_, product0_.SalesRep_ID as salesre17_559_, product0_.IsSummary as issumma18_559_, product0_.IsStocked as isstock19_559_, product0_.IsPurchased as ispurch20_559_, product0_.IsSold as issold21_559_, product0_.IsBOM as isbom22_559_, product0_.IsInvoicePrintDetails as isinvoi23_559_, product0_.IsPickListPrintDetails as ispickl24_559_, product0_.IsVerified as isverif25_559_, product0_.M_Product_Category_ID as m_produ26_559_, product0_.Classification as classif27_559_, product0_.Volume as volume28_559_, product0_.Weight as weight29_559_, product0_.ShelfWidth as shelfwi30_559_, product0_.ShelfHeight as shelfhe31_559_, product0_.ShelfDepth as shelfde32_559_, product0_.UnitsPerPallet as unitspe33_559_, product0_.C_TaxCategory_ID as c_taxca34_559_, product0_.S_Resource_ID as s_resou35_559_, product0_.Discontinued as discont36_559_, product0_.DiscontinuedBy as discont37_559_, product0_.Processing as process38_559_, product0_.S_ExpenseType_ID as s_expen39_559_, product0_.ProductType as product40_559_, product0_.ImageURL as imageur41_559_, product0_.DescriptionURL as descrip42_559_, product0_.GuaranteeDays as guarant43_559_, product0_.VersionNo as version44_559_, product0_.M_AttributeSet_ID as m_attri45_559_, product0_.M_AttributeSetInstance_ID as m_attri46_559_, product0_.DownloadURL as downloa47_559_, product0_.M_FreightCategory_ID as m_freig48_559_, product0_.M_Locator_ID as m_locat49_559_, product0_.AD_Image_ID as ad_imag50_559_, product0_.C_BPartner_ID as c_bpart51_559_, product0_.Ispriceprinted as isprice52_559_, product0_.Name2 as name53_559_, product0_.Stock_Min as stock_m54_559_, product0_.Enforce_Attribute as enforce55_559_, product0_.Calculated as calcula56_559_, product0_.MA_Processplan_ID as ma_proc57_559_, product0_.Production as product58_559_, product0_.Capacity as capacit59_559_, product0_.Delaymin as delaymi60_559_, product0_.MRP_Planner_ID as mrp_pla61_559_, product0_.MRP_Planningmethod_ID as mrp_pla62_559_, product0_.Qtymax as qtymax63_559_, product0_.Qtymin as qtymin64_559_, product0_.Qtystd as qtystd65_559_, product0_.Qtytype as qtytype66_559_, product0_.Stockmin as stockmi67_559_, product0_.EM_Aeat347_Isleasebusiness as em_aeat68_559_, product0_.Attrsetvaluetype as attrset69_559_, product0_.EM_Aeat347_Situation as em_aeat70_559_, product0_.Isquantityvariable as isquant71_559_, product0_.Isdeferredrevenue as isdefer72_559_, product0_.EM_Aeat347_Referenceid as em_aeat73_559_, product0_.EM_Aeat347_Locationtype as em_aeat74_559_, product0_.Revplantype as revplan75_559_, product0_.EM_Aeat347_Streetname as em_aeat76_559_, product0_.Periodnumber as periodn77_559_, product0_.EM_Aeat347_Streetnumbertype as em_aeat78_559_, product0_.Isdeferredexpense as isdefer79_559_, product0_.EM_Aeat347_Streetnumber as em_aeat80_559_, product0_.Expplantype as expplan81_559_, product0_.EM_Aeat347_Streetnumberqua as em_aeat82_559_, product0_.Periodnumber_Exp as periodn83_559_, product0_.DefaultPeriod as default84_559_, product0_.EM_Aeat347_Building as em_aeat85_559_, product0_.DefaultPeriod_Exp as default86_559_, product0_.EM_Aeat347_Hall as em_aeat87_559_, product0_.Bookusingpoprice as bookusi88_559_, product0_.EM_Aeat347_Hallway as em_aeat89_559_, product0_.EM_Aeat347_Floor as em_aeat90_559_, product0_.C_Uom_Weight_ID as c_uom_w91_559_, product0_.M_Brand_ID as m_brand92_559_, product0_.EM_Aeat347_Apartment as em_aeat93_559_, product0_.EM_Aeat347_Complement as em_aeat94_559_, product0_.IsGeneric as isgener95_559_, product0_.EM_Aeat347_Location as em_aeat96_559_, product0_.Generic_Product_ID as generic97_559_, product0_.CreateVariants as createv98_559_, product0_.EM_Aeat347_County as em_aeat99_559_, product0_.Characteristic_Desc as charac100_559_, product0_.EM_Aeat347_Countycode as em_aea101_559_, product0_.EM_Aeat347_Regioncode as em_aea102_559_, product0_.Updateinvariants as update103_559_, product0_.EM_Aeat347_Zipcode as em_aea104_559_, product0_.ManageVariants as manage105_559_, product0_.Prod_Cat_Selection as prod_c106_559_, product0_.Product_Selection as produc107_559_, product0_.Print_Description as print_108_559_, product0_.Returnable as return109_559_, product0_.Overdue_Return_Days as overdu110_559_, product0_.Ispricerulebased as ispric111_559_, product0_.Unique_Per_Document as unique112_559_, product0_.Relateprodcattoservice as relate113_559_, product0_.Relateprodtoservice as relate114_559_, product0_.Islinkedtoproduct as islink115_559_, product0_.Quantity_Rule as quanti116_559_, product0_.Allow_Deferred_Sell as allow_117_559_, product0_.Deferred_Sell_Max_Days as deferr118_559_, product0_.EM_Etpp_Print_Label as em_etp119_559_, product0_.M_Product_Status_ID as m_prod120_559_, product0_.EM_Prpres_Short_Description as em_prp121_559_, product0_.EM_Prpres_Description as em_prp122_559_, product0_.EM_Prpres_Meta_Title as em_prp123_559_, product0_.EM_Prpres_Meta_Description as em_prp124_559_, product0_.EM_Prpres_Friendly_Url as em_prp125_559_, product0_.EM_Prpres_Tags as em_prp126_559_, product0_.Ismodifytax as ismodi127_559_, product0_.EM_Prpres_Upload as em_prp128_559_, product0_.Relateprodcattaxtoservice as relate129_559_, product0_.Copyservicemodifytaxconfig as copyse130_559_, product0_.EM_Ec_Observations as em_ec_131_559_, product0_.EM_Prpres_Managecat as em_prp132_559_, product0_.EM_Prpres_Deactivate_On_Ps as em_prp133_559_, product0_.EM_Prpres_Out_Of_Stock as em_prp134_559_, product0_.EM_Pruti_Addmodifycharact as em_pru135_559_ from M_Product product0_ where (upper((coalesce(to_char(( select producttrl1_.Name from M_Product_Trl producttrl1_ where producttrl1_.M_Product_ID = product0_.M_Product_ID and producttrl1_.AD_Language = 'es_ES')), to_char(product0_.Name), '') || ' - ' || coalesce(to_char(product0_.Description), ''))) like upper('%fermator%') escape '|') and (exists ( select 1 from ec_product_cost_v ec_product2_ inner join M_Product product3_ on ec_product2_.M_Product_ID = product3_.M_Product_ID where product3_.M_Product_ID = product0_.M_Product_ID and (ec_product2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by product0_.Name, product0_.Description limit '76';
Date: 2026-07-14 10:57:33 Duration: 1s545ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select product0_.M_Product_ID as m_produc1_559_, product0_.AD_Client_ID as ad_clien2_559_, product0_.AD_Org_ID as ad_org_i3_559_, product0_.IsActive as isactive4_559_, product0_.Created as created5_559_, product0_.CreatedBy as createdb6_559_, product0_.Updated as updated7_559_, product0_.UpdatedBy as updatedb8_559_, product0_.Value as value9_559_, product0_.Name as name10_559_, product0_.Description as descrip11_559_, product0_.DocumentNote as documen12_559_, product0_.Help as help13_559_, product0_.UPC as upc14_559_, product0_.SKU as sku15_559_, product0_.C_UOM_ID as c_uom_i16_559_, product0_.SalesRep_ID as salesre17_559_, product0_.IsSummary as issumma18_559_, product0_.IsStocked as isstock19_559_, product0_.IsPurchased as ispurch20_559_, product0_.IsSold as issold21_559_, product0_.IsBOM as isbom22_559_, product0_.IsInvoicePrintDetails as isinvoi23_559_, product0_.IsPickListPrintDetails as ispickl24_559_, product0_.IsVerified as isverif25_559_, product0_.M_Product_Category_ID as m_produ26_559_, product0_.Classification as classif27_559_, product0_.Volume as volume28_559_, product0_.Weight as weight29_559_, product0_.ShelfWidth as shelfwi30_559_, product0_.ShelfHeight as shelfhe31_559_, product0_.ShelfDepth as shelfde32_559_, product0_.UnitsPerPallet as unitspe33_559_, product0_.C_TaxCategory_ID as c_taxca34_559_, product0_.S_Resource_ID as s_resou35_559_, product0_.Discontinued as discont36_559_, product0_.DiscontinuedBy as discont37_559_, product0_.Processing as process38_559_, product0_.S_ExpenseType_ID as s_expen39_559_, product0_.ProductType as product40_559_, product0_.ImageURL as imageur41_559_, product0_.DescriptionURL as descrip42_559_, product0_.GuaranteeDays as guarant43_559_, product0_.VersionNo as version44_559_, product0_.M_AttributeSet_ID as m_attri45_559_, product0_.M_AttributeSetInstance_ID as m_attri46_559_, product0_.DownloadURL as downloa47_559_, product0_.M_FreightCategory_ID as m_freig48_559_, product0_.M_Locator_ID as m_locat49_559_, product0_.AD_Image_ID as ad_imag50_559_, product0_.C_BPartner_ID as c_bpart51_559_, product0_.Ispriceprinted as isprice52_559_, product0_.Name2 as name53_559_, product0_.Stock_Min as stock_m54_559_, product0_.Enforce_Attribute as enforce55_559_, product0_.Calculated as calcula56_559_, product0_.MA_Processplan_ID as ma_proc57_559_, product0_.Production as product58_559_, product0_.Capacity as capacit59_559_, product0_.Delaymin as delaymi60_559_, product0_.MRP_Planner_ID as mrp_pla61_559_, product0_.MRP_Planningmethod_ID as mrp_pla62_559_, product0_.Qtymax as qtymax63_559_, product0_.Qtymin as qtymin64_559_, product0_.Qtystd as qtystd65_559_, product0_.Qtytype as qtytype66_559_, product0_.Stockmin as stockmi67_559_, product0_.EM_Aeat347_Isleasebusiness as em_aeat68_559_, product0_.Attrsetvaluetype as attrset69_559_, product0_.EM_Aeat347_Situation as em_aeat70_559_, product0_.Isquantityvariable as isquant71_559_, product0_.Isdeferredrevenue as isdefer72_559_, product0_.EM_Aeat347_Referenceid as em_aeat73_559_, product0_.EM_Aeat347_Locationtype as em_aeat74_559_, product0_.Revplantype as revplan75_559_, product0_.EM_Aeat347_Streetname as em_aeat76_559_, product0_.Periodnumber as periodn77_559_, product0_.EM_Aeat347_Streetnumbertype as em_aeat78_559_, product0_.Isdeferredexpense as isdefer79_559_, product0_.EM_Aeat347_Streetnumber as em_aeat80_559_, product0_.Expplantype as expplan81_559_, product0_.EM_Aeat347_Streetnumberqua as em_aeat82_559_, product0_.Periodnumber_Exp as periodn83_559_, product0_.DefaultPeriod as default84_559_, product0_.EM_Aeat347_Building as em_aeat85_559_, product0_.DefaultPeriod_Exp as default86_559_, product0_.EM_Aeat347_Hall as em_aeat87_559_, product0_.Bookusingpoprice as bookusi88_559_, product0_.EM_Aeat347_Hallway as em_aeat89_559_, product0_.EM_Aeat347_Floor as em_aeat90_559_, product0_.C_Uom_Weight_ID as c_uom_w91_559_, product0_.M_Brand_ID as m_brand92_559_, product0_.EM_Aeat347_Apartment as em_aeat93_559_, product0_.EM_Aeat347_Complement as em_aeat94_559_, product0_.IsGeneric as isgener95_559_, product0_.EM_Aeat347_Location as em_aeat96_559_, product0_.Generic_Product_ID as generic97_559_, product0_.CreateVariants as createv98_559_, product0_.EM_Aeat347_County as em_aeat99_559_, product0_.Characteristic_Desc as charac100_559_, product0_.EM_Aeat347_Countycode as em_aea101_559_, product0_.EM_Aeat347_Regioncode as em_aea102_559_, product0_.Updateinvariants as update103_559_, product0_.EM_Aeat347_Zipcode as em_aea104_559_, product0_.ManageVariants as manage105_559_, product0_.Prod_Cat_Selection as prod_c106_559_, product0_.Product_Selection as produc107_559_, product0_.Print_Description as print_108_559_, product0_.Returnable as return109_559_, product0_.Overdue_Return_Days as overdu110_559_, product0_.Ispricerulebased as ispric111_559_, product0_.Unique_Per_Document as unique112_559_, product0_.Relateprodcattoservice as relate113_559_, product0_.Relateprodtoservice as relate114_559_, product0_.Islinkedtoproduct as islink115_559_, product0_.Quantity_Rule as quanti116_559_, product0_.Allow_Deferred_Sell as allow_117_559_, product0_.Deferred_Sell_Max_Days as deferr118_559_, product0_.EM_Etpp_Print_Label as em_etp119_559_, product0_.M_Product_Status_ID as m_prod120_559_, product0_.EM_Prpres_Short_Description as em_prp121_559_, product0_.EM_Prpres_Description as em_prp122_559_, product0_.EM_Prpres_Meta_Title as em_prp123_559_, product0_.EM_Prpres_Meta_Description as em_prp124_559_, product0_.EM_Prpres_Friendly_Url as em_prp125_559_, product0_.EM_Prpres_Tags as em_prp126_559_, product0_.Ismodifytax as ismodi127_559_, product0_.EM_Prpres_Upload as em_prp128_559_, product0_.Relateprodcattaxtoservice as relate129_559_, product0_.Copyservicemodifytaxconfig as copyse130_559_, product0_.EM_Ec_Observations as em_ec_131_559_, product0_.EM_Prpres_Managecat as em_prp132_559_, product0_.EM_Prpres_Deactivate_On_Ps as em_prp133_559_, product0_.EM_Prpres_Out_Of_Stock as em_prp134_559_, product0_.EM_Pruti_Addmodifycharact as em_pru135_559_ from M_Product product0_ where (upper((coalesce(to_char(( select producttrl1_.Name from M_Product_Trl producttrl1_ where producttrl1_.M_Product_ID = product0_.M_Product_ID and producttrl1_.AD_Language = 'es_ES')), to_char(product0_.Name), '') || ' - ' || coalesce(to_char(product0_.Description), ''))) like upper('%fer%') escape '|') and (exists ( select 1 from ec_product_cost_v ec_product2_ inner join M_Product product3_ on ec_product2_.M_Product_ID = product3_.M_Product_ID where product3_.M_Product_ID = product0_.M_Product_ID and (ec_product2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by product0_.Name, product0_.Description limit '76';
Date: 2026-07-14 10:57:32 Duration: 1s462ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 3 34.45 MiB 11.48 MiB 11.48 MiB 11.48 MiB select ec_product0_.ec_product_cost_v_id as ec_produ1_329_, ec_product0_.m_product_id as m_produc2_329_, ec_product0_.ad_org_id as ad_org_i3_329_, ec_product0_.ad_client_id as ad_clien4_329_, ec_product0_.created as created5_329_, ec_product0_.createdby as createdb6_329_, ec_product0_.updated as updated7_329_, ec_product0_.updatedby as updatedb8_329_, ec_product0_.value as value9_329_, ec_product0_.m_brand_id as m_brand10_329_, ec_product0_.c_bpartner_id as c_bpart11_329_, ec_product0_.iscurrentvendor as iscurre12_329_, ec_product0_.c_currency_id as c_curre13_329_, ec_product0_.priceeffective as priceef14_329_, ec_product0_.pricelist as priceli15_329_, ec_product0_.isactive as isactiv16_329_, ec_product0_.pricestd as pricest17_329_, ec_product0_.salesprice as salespr18_329_ from ec_product_cost_v ec_product0_ left outer join m_product product1_ on ec_product0_.m_product_id = product1_.m_product_id where (upper((coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.description), ?))) like upper(?) escape ?) and (ec_product0_.ad_org_id in (...)) and (ec_product0_.ad_client_id in (...)) order by ec_product0_.value, ec_product0_.ec_product_cost_v_id limit ?;-
select ec_product0_.EC_Product_Cost_V_ID as ec_produ1_329_, ec_product0_.M_Product_ID as m_produc2_329_, ec_product0_.AD_Org_ID as ad_org_i3_329_, ec_product0_.AD_Client_ID as ad_clien4_329_, ec_product0_.Created as created5_329_, ec_product0_.Createdby as createdb6_329_, ec_product0_.Updated as updated7_329_, ec_product0_.Updatedby as updatedb8_329_, ec_product0_.Value as value9_329_, ec_product0_.M_Brand_ID as m_brand10_329_, ec_product0_.C_Bpartner_ID as c_bpart11_329_, ec_product0_.Iscurrentvendor as iscurre12_329_, ec_product0_.C_Currency_ID as c_curre13_329_, ec_product0_.Priceeffective as priceef14_329_, ec_product0_.Pricelist as priceli15_329_, ec_product0_.Isactive as isactiv16_329_, ec_product0_.Pricestd as pricest17_329_, ec_product0_.Salesprice as salespr18_329_ from ec_product_cost_v ec_product0_ left outer join M_Product product1_ on ec_product0_.M_Product_ID = product1_.M_Product_ID where (upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.Description), ''))) like upper('%fermator%') escape '|') and (ec_product0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by ec_product0_.Value, ec_product0_.EC_Product_Cost_V_ID limit '101';
Date: 2026-07-14 10:57:33 Duration: 1s566ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select ec_product0_.EC_Product_Cost_V_ID as ec_produ1_329_, ec_product0_.M_Product_ID as m_produc2_329_, ec_product0_.AD_Org_ID as ad_org_i3_329_, ec_product0_.AD_Client_ID as ad_clien4_329_, ec_product0_.Created as created5_329_, ec_product0_.Createdby as createdb6_329_, ec_product0_.Updated as updated7_329_, ec_product0_.Updatedby as updatedb8_329_, ec_product0_.Value as value9_329_, ec_product0_.M_Brand_ID as m_brand10_329_, ec_product0_.C_Bpartner_ID as c_bpart11_329_, ec_product0_.Iscurrentvendor as iscurre12_329_, ec_product0_.C_Currency_ID as c_curre13_329_, ec_product0_.Priceeffective as priceef14_329_, ec_product0_.Pricelist as priceli15_329_, ec_product0_.Isactive as isactiv16_329_, ec_product0_.Pricestd as pricest17_329_, ec_product0_.Salesprice as salespr18_329_ from ec_product_cost_v ec_product0_ left outer join M_Product product1_ on ec_product0_.M_Product_ID = product1_.M_Product_ID where (upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.Description), ''))) like upper('%fermator%') escape '|') and (ec_product0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by ec_product0_.Value, ec_product0_.EC_Product_Cost_V_ID limit '101';
Date: 2026-07-14 10:54:53 Duration: 1s438ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 2 22.97 MiB 11.48 MiB 11.48 MiB 11.48 MiB select product0_.m_product_id as m_produc1_559_, product0_.ad_client_id as ad_clien2_559_, product0_.ad_org_id as ad_org_i3_559_, product0_.isactive as isactive4_559_, product0_.created as created5_559_, product0_.createdby as createdb6_559_, product0_.updated as updated7_559_, product0_.updatedby as updatedb8_559_, product0_.value as value9_559_, product0_.name as name10_559_, product0_.description as descrip11_559_, product0_.documentnote as documen12_559_, product0_.help as help13_559_, product0_.upc as upc14_559_, product0_.sku as sku15_559_, product0_.c_uom_id as c_uom_i16_559_, product0_.salesrep_id as salesre17_559_, product0_.issummary as issumma18_559_, product0_.isstocked as isstock19_559_, product0_.ispurchased as ispurch20_559_, product0_.issold as issold21_559_, product0_.isbom as isbom22_559_, product0_.isinvoiceprintdetails as isinvoi23_559_, product0_.ispicklistprintdetails as ispickl24_559_, product0_.isverified as isverif25_559_, product0_.m_product_category_id as m_produ26_559_, product0_.classification as classif27_559_, product0_.volume as volume28_559_, product0_.weight as weight29_559_, product0_.shelfwidth as shelfwi30_559_, product0_.shelfheight as shelfhe31_559_, product0_.shelfdepth as shelfde32_559_, product0_.unitsperpallet as unitspe33_559_, product0_.c_taxcategory_id as c_taxca34_559_, product0_.s_resource_id as s_resou35_559_, product0_.discontinued as discont36_559_, product0_.discontinuedby as discont37_559_, product0_.processing as process38_559_, product0_.s_expensetype_id as s_expen39_559_, product0_.producttype as product40_559_, product0_.imageurl as imageur41_559_, product0_.descriptionurl as descrip42_559_, product0_.guaranteedays as guarant43_559_, product0_.versionno as version44_559_, product0_.m_attributeset_id as m_attri45_559_, product0_.m_attributesetinstance_id as m_attri46_559_, product0_.downloadurl as downloa47_559_, product0_.m_freightcategory_id as m_freig48_559_, product0_.m_locator_id as m_locat49_559_, product0_.ad_image_id as ad_imag50_559_, product0_.c_bpartner_id as c_bpart51_559_, product0_.ispriceprinted as isprice52_559_, product0_.name2 as name53_559_, product0_.stock_min as stock_m54_559_, product0_.enforce_attribute as enforce55_559_, product0_.calculated as calcula56_559_, product0_.ma_processplan_id as ma_proc57_559_, product0_.production as product58_559_, product0_.capacity as capacit59_559_, product0_.delaymin as delaymi60_559_, product0_.mrp_planner_id as mrp_pla61_559_, product0_.mrp_planningmethod_id as mrp_pla62_559_, product0_.qtymax as qtymax63_559_, product0_.qtymin as qtymin64_559_, product0_.qtystd as qtystd65_559_, product0_.qtytype as qtytype66_559_, product0_.stockmin as stockmi67_559_, product0_.em_aeat347_isleasebusiness as em_aeat68_559_, product0_.attrsetvaluetype as attrset69_559_, product0_.em_aeat347_situation as em_aeat70_559_, product0_.isquantityvariable as isquant71_559_, product0_.isdeferredrevenue as isdefer72_559_, product0_.em_aeat347_referenceid as em_aeat73_559_, product0_.em_aeat347_locationtype as em_aeat74_559_, product0_.revplantype as revplan75_559_, product0_.em_aeat347_streetname as em_aeat76_559_, product0_.periodnumber as periodn77_559_, product0_.em_aeat347_streetnumbertype as em_aeat78_559_, product0_.isdeferredexpense as isdefer79_559_, product0_.em_aeat347_streetnumber as em_aeat80_559_, product0_.expplantype as expplan81_559_, product0_.em_aeat347_streetnumberqua as em_aeat82_559_, product0_.periodnumber_exp as periodn83_559_, product0_.defaultperiod as default84_559_, product0_.em_aeat347_building as em_aeat85_559_, product0_.defaultperiod_exp as default86_559_, product0_.em_aeat347_hall as em_aeat87_559_, product0_.bookusingpoprice as bookusi88_559_, product0_.em_aeat347_hallway as em_aeat89_559_, product0_.em_aeat347_floor as em_aeat90_559_, product0_.c_uom_weight_id as c_uom_w91_559_, product0_.m_brand_id as m_brand92_559_, product0_.em_aeat347_apartment as em_aeat93_559_, product0_.em_aeat347_complement as em_aeat94_559_, product0_.isgeneric as isgener95_559_, product0_.em_aeat347_location as em_aeat96_559_, product0_.generic_product_id as generic97_559_, product0_.createvariants as createv98_559_, product0_.em_aeat347_county as em_aeat99_559_, product0_.characteristic_desc as charac100_559_, product0_.em_aeat347_countycode as em_aea101_559_, product0_.em_aeat347_regioncode as em_aea102_559_, product0_.updateinvariants as update103_559_, product0_.em_aeat347_zipcode as em_aea104_559_, product0_.managevariants as manage105_559_, product0_.prod_cat_selection as prod_c106_559_, product0_.product_selection as produc107_559_, product0_.print_description as print_108_559_, product0_.returnable as return109_559_, product0_.overdue_return_days as overdu110_559_, product0_.ispricerulebased as ispric111_559_, product0_.unique_per_document as unique112_559_, product0_.relateprodcattoservice as relate113_559_, product0_.relateprodtoservice as relate114_559_, product0_.islinkedtoproduct as islink115_559_, product0_.quantity_rule as quanti116_559_, product0_.allow_deferred_sell as allow_117_559_, product0_.deferred_sell_max_days as deferr118_559_, product0_.em_etpp_print_label as em_etp119_559_, product0_.m_product_status_id as m_prod120_559_, product0_.em_prpres_short_description as em_prp121_559_, product0_.em_prpres_description as em_prp122_559_, product0_.em_prpres_meta_title as em_prp123_559_, product0_.em_prpres_meta_description as em_prp124_559_, product0_.em_prpres_friendly_url as em_prp125_559_, product0_.em_prpres_tags as em_prp126_559_, product0_.ismodifytax as ismodi127_559_, product0_.em_prpres_upload as em_prp128_559_, product0_.relateprodcattaxtoservice as relate129_559_, product0_.copyservicemodifytaxconfig as copyse130_559_, product0_.em_ec_observations as em_ec_131_559_, product0_.em_prpres_managecat as em_prp132_559_, product0_.em_prpres_deactivate_on_ps as em_prp133_559_, product0_.em_prpres_out_of_stock as em_prp134_559_, product0_.em_pruti_addmodifycharact as em_pru135_559_ from m_product product0_ where (upper((coalesce(to_char(( select producttrl1_.name from m_product_trl producttrl1_ where producttrl1_.m_product_id = product0_.m_product_id and producttrl1_.ad_language = ?)), to_char(product0_.name), ?) || ?| | coalesce(to_char(product0_.description), ?))) like upper(?) escape ?) and (exists ( select ? from ec_product_cost_v ec_product2_ inner join m_product product3_ on ec_product2_.m_product_id = product3_.m_product_id where product3_.m_product_id = product0_.m_product_id and (ec_product2_.ad_org_id in (...)) and (ec_product2_.ad_client_id in (...)))) order by product0_.name, product0_.description limit ? offset ?;-
select product0_.M_Product_ID as m_produc1_559_, product0_.AD_Client_ID as ad_clien2_559_, product0_.AD_Org_ID as ad_org_i3_559_, product0_.IsActive as isactive4_559_, product0_.Created as created5_559_, product0_.CreatedBy as createdb6_559_, product0_.Updated as updated7_559_, product0_.UpdatedBy as updatedb8_559_, product0_.Value as value9_559_, product0_.Name as name10_559_, product0_.Description as descrip11_559_, product0_.DocumentNote as documen12_559_, product0_.Help as help13_559_, product0_.UPC as upc14_559_, product0_.SKU as sku15_559_, product0_.C_UOM_ID as c_uom_i16_559_, product0_.SalesRep_ID as salesre17_559_, product0_.IsSummary as issumma18_559_, product0_.IsStocked as isstock19_559_, product0_.IsPurchased as ispurch20_559_, product0_.IsSold as issold21_559_, product0_.IsBOM as isbom22_559_, product0_.IsInvoicePrintDetails as isinvoi23_559_, product0_.IsPickListPrintDetails as ispickl24_559_, product0_.IsVerified as isverif25_559_, product0_.M_Product_Category_ID as m_produ26_559_, product0_.Classification as classif27_559_, product0_.Volume as volume28_559_, product0_.Weight as weight29_559_, product0_.ShelfWidth as shelfwi30_559_, product0_.ShelfHeight as shelfhe31_559_, product0_.ShelfDepth as shelfde32_559_, product0_.UnitsPerPallet as unitspe33_559_, product0_.C_TaxCategory_ID as c_taxca34_559_, product0_.S_Resource_ID as s_resou35_559_, product0_.Discontinued as discont36_559_, product0_.DiscontinuedBy as discont37_559_, product0_.Processing as process38_559_, product0_.S_ExpenseType_ID as s_expen39_559_, product0_.ProductType as product40_559_, product0_.ImageURL as imageur41_559_, product0_.DescriptionURL as descrip42_559_, product0_.GuaranteeDays as guarant43_559_, product0_.VersionNo as version44_559_, product0_.M_AttributeSet_ID as m_attri45_559_, product0_.M_AttributeSetInstance_ID as m_attri46_559_, product0_.DownloadURL as downloa47_559_, product0_.M_FreightCategory_ID as m_freig48_559_, product0_.M_Locator_ID as m_locat49_559_, product0_.AD_Image_ID as ad_imag50_559_, product0_.C_BPartner_ID as c_bpart51_559_, product0_.Ispriceprinted as isprice52_559_, product0_.Name2 as name53_559_, product0_.Stock_Min as stock_m54_559_, product0_.Enforce_Attribute as enforce55_559_, product0_.Calculated as calcula56_559_, product0_.MA_Processplan_ID as ma_proc57_559_, product0_.Production as product58_559_, product0_.Capacity as capacit59_559_, product0_.Delaymin as delaymi60_559_, product0_.MRP_Planner_ID as mrp_pla61_559_, product0_.MRP_Planningmethod_ID as mrp_pla62_559_, product0_.Qtymax as qtymax63_559_, product0_.Qtymin as qtymin64_559_, product0_.Qtystd as qtystd65_559_, product0_.Qtytype as qtytype66_559_, product0_.Stockmin as stockmi67_559_, product0_.EM_Aeat347_Isleasebusiness as em_aeat68_559_, product0_.Attrsetvaluetype as attrset69_559_, product0_.EM_Aeat347_Situation as em_aeat70_559_, product0_.Isquantityvariable as isquant71_559_, product0_.Isdeferredrevenue as isdefer72_559_, product0_.EM_Aeat347_Referenceid as em_aeat73_559_, product0_.EM_Aeat347_Locationtype as em_aeat74_559_, product0_.Revplantype as revplan75_559_, product0_.EM_Aeat347_Streetname as em_aeat76_559_, product0_.Periodnumber as periodn77_559_, product0_.EM_Aeat347_Streetnumbertype as em_aeat78_559_, product0_.Isdeferredexpense as isdefer79_559_, product0_.EM_Aeat347_Streetnumber as em_aeat80_559_, product0_.Expplantype as expplan81_559_, product0_.EM_Aeat347_Streetnumberqua as em_aeat82_559_, product0_.Periodnumber_Exp as periodn83_559_, product0_.DefaultPeriod as default84_559_, product0_.EM_Aeat347_Building as em_aeat85_559_, product0_.DefaultPeriod_Exp as default86_559_, product0_.EM_Aeat347_Hall as em_aeat87_559_, product0_.Bookusingpoprice as bookusi88_559_, product0_.EM_Aeat347_Hallway as em_aeat89_559_, product0_.EM_Aeat347_Floor as em_aeat90_559_, product0_.C_Uom_Weight_ID as c_uom_w91_559_, product0_.M_Brand_ID as m_brand92_559_, product0_.EM_Aeat347_Apartment as em_aeat93_559_, product0_.EM_Aeat347_Complement as em_aeat94_559_, product0_.IsGeneric as isgener95_559_, product0_.EM_Aeat347_Location as em_aeat96_559_, product0_.Generic_Product_ID as generic97_559_, product0_.CreateVariants as createv98_559_, product0_.EM_Aeat347_County as em_aeat99_559_, product0_.Characteristic_Desc as charac100_559_, product0_.EM_Aeat347_Countycode as em_aea101_559_, product0_.EM_Aeat347_Regioncode as em_aea102_559_, product0_.Updateinvariants as update103_559_, product0_.EM_Aeat347_Zipcode as em_aea104_559_, product0_.ManageVariants as manage105_559_, product0_.Prod_Cat_Selection as prod_c106_559_, product0_.Product_Selection as produc107_559_, product0_.Print_Description as print_108_559_, product0_.Returnable as return109_559_, product0_.Overdue_Return_Days as overdu110_559_, product0_.Ispricerulebased as ispric111_559_, product0_.Unique_Per_Document as unique112_559_, product0_.Relateprodcattoservice as relate113_559_, product0_.Relateprodtoservice as relate114_559_, product0_.Islinkedtoproduct as islink115_559_, product0_.Quantity_Rule as quanti116_559_, product0_.Allow_Deferred_Sell as allow_117_559_, product0_.Deferred_Sell_Max_Days as deferr118_559_, product0_.EM_Etpp_Print_Label as em_etp119_559_, product0_.M_Product_Status_ID as m_prod120_559_, product0_.EM_Prpres_Short_Description as em_prp121_559_, product0_.EM_Prpres_Description as em_prp122_559_, product0_.EM_Prpres_Meta_Title as em_prp123_559_, product0_.EM_Prpres_Meta_Description as em_prp124_559_, product0_.EM_Prpres_Friendly_Url as em_prp125_559_, product0_.EM_Prpres_Tags as em_prp126_559_, product0_.Ismodifytax as ismodi127_559_, product0_.EM_Prpres_Upload as em_prp128_559_, product0_.Relateprodcattaxtoservice as relate129_559_, product0_.Copyservicemodifytaxconfig as copyse130_559_, product0_.EM_Ec_Observations as em_ec_131_559_, product0_.EM_Prpres_Managecat as em_prp132_559_, product0_.EM_Prpres_Deactivate_On_Ps as em_prp133_559_, product0_.EM_Prpres_Out_Of_Stock as em_prp134_559_, product0_.EM_Pruti_Addmodifycharact as em_pru135_559_ from M_Product product0_ where (upper((coalesce(to_char(( select producttrl1_.Name from M_Product_Trl producttrl1_ where producttrl1_.M_Product_ID = product0_.M_Product_ID and producttrl1_.AD_Language = 'es_ES')), to_char(product0_.Name), '') || ' - ' || coalesce(to_char(product0_.Description), ''))) like upper('%fermator%') escape '|') and (exists ( select 1 from ec_product_cost_v ec_product2_ inner join M_Product product3_ on ec_product2_.M_Product_ID = product3_.M_Product_ID where product3_.M_Product_ID = product0_.M_Product_ID and (ec_product2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by product0_.Name, product0_.Description limit '75' offset '38';
Date: 2026-07-14 10:57:34 Duration: 1s430ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select product0_.M_Product_ID as m_produc1_559_, product0_.AD_Client_ID as ad_clien2_559_, product0_.AD_Org_ID as ad_org_i3_559_, product0_.IsActive as isactive4_559_, product0_.Created as created5_559_, product0_.CreatedBy as createdb6_559_, product0_.Updated as updated7_559_, product0_.UpdatedBy as updatedb8_559_, product0_.Value as value9_559_, product0_.Name as name10_559_, product0_.Description as descrip11_559_, product0_.DocumentNote as documen12_559_, product0_.Help as help13_559_, product0_.UPC as upc14_559_, product0_.SKU as sku15_559_, product0_.C_UOM_ID as c_uom_i16_559_, product0_.SalesRep_ID as salesre17_559_, product0_.IsSummary as issumma18_559_, product0_.IsStocked as isstock19_559_, product0_.IsPurchased as ispurch20_559_, product0_.IsSold as issold21_559_, product0_.IsBOM as isbom22_559_, product0_.IsInvoicePrintDetails as isinvoi23_559_, product0_.IsPickListPrintDetails as ispickl24_559_, product0_.IsVerified as isverif25_559_, product0_.M_Product_Category_ID as m_produ26_559_, product0_.Classification as classif27_559_, product0_.Volume as volume28_559_, product0_.Weight as weight29_559_, product0_.ShelfWidth as shelfwi30_559_, product0_.ShelfHeight as shelfhe31_559_, product0_.ShelfDepth as shelfde32_559_, product0_.UnitsPerPallet as unitspe33_559_, product0_.C_TaxCategory_ID as c_taxca34_559_, product0_.S_Resource_ID as s_resou35_559_, product0_.Discontinued as discont36_559_, product0_.DiscontinuedBy as discont37_559_, product0_.Processing as process38_559_, product0_.S_ExpenseType_ID as s_expen39_559_, product0_.ProductType as product40_559_, product0_.ImageURL as imageur41_559_, product0_.DescriptionURL as descrip42_559_, product0_.GuaranteeDays as guarant43_559_, product0_.VersionNo as version44_559_, product0_.M_AttributeSet_ID as m_attri45_559_, product0_.M_AttributeSetInstance_ID as m_attri46_559_, product0_.DownloadURL as downloa47_559_, product0_.M_FreightCategory_ID as m_freig48_559_, product0_.M_Locator_ID as m_locat49_559_, product0_.AD_Image_ID as ad_imag50_559_, product0_.C_BPartner_ID as c_bpart51_559_, product0_.Ispriceprinted as isprice52_559_, product0_.Name2 as name53_559_, product0_.Stock_Min as stock_m54_559_, product0_.Enforce_Attribute as enforce55_559_, product0_.Calculated as calcula56_559_, product0_.MA_Processplan_ID as ma_proc57_559_, product0_.Production as product58_559_, product0_.Capacity as capacit59_559_, product0_.Delaymin as delaymi60_559_, product0_.MRP_Planner_ID as mrp_pla61_559_, product0_.MRP_Planningmethod_ID as mrp_pla62_559_, product0_.Qtymax as qtymax63_559_, product0_.Qtymin as qtymin64_559_, product0_.Qtystd as qtystd65_559_, product0_.Qtytype as qtytype66_559_, product0_.Stockmin as stockmi67_559_, product0_.EM_Aeat347_Isleasebusiness as em_aeat68_559_, product0_.Attrsetvaluetype as attrset69_559_, product0_.EM_Aeat347_Situation as em_aeat70_559_, product0_.Isquantityvariable as isquant71_559_, product0_.Isdeferredrevenue as isdefer72_559_, product0_.EM_Aeat347_Referenceid as em_aeat73_559_, product0_.EM_Aeat347_Locationtype as em_aeat74_559_, product0_.Revplantype as revplan75_559_, product0_.EM_Aeat347_Streetname as em_aeat76_559_, product0_.Periodnumber as periodn77_559_, product0_.EM_Aeat347_Streetnumbertype as em_aeat78_559_, product0_.Isdeferredexpense as isdefer79_559_, product0_.EM_Aeat347_Streetnumber as em_aeat80_559_, product0_.Expplantype as expplan81_559_, product0_.EM_Aeat347_Streetnumberqua as em_aeat82_559_, product0_.Periodnumber_Exp as periodn83_559_, product0_.DefaultPeriod as default84_559_, product0_.EM_Aeat347_Building as em_aeat85_559_, product0_.DefaultPeriod_Exp as default86_559_, product0_.EM_Aeat347_Hall as em_aeat87_559_, product0_.Bookusingpoprice as bookusi88_559_, product0_.EM_Aeat347_Hallway as em_aeat89_559_, product0_.EM_Aeat347_Floor as em_aeat90_559_, product0_.C_Uom_Weight_ID as c_uom_w91_559_, product0_.M_Brand_ID as m_brand92_559_, product0_.EM_Aeat347_Apartment as em_aeat93_559_, product0_.EM_Aeat347_Complement as em_aeat94_559_, product0_.IsGeneric as isgener95_559_, product0_.EM_Aeat347_Location as em_aeat96_559_, product0_.Generic_Product_ID as generic97_559_, product0_.CreateVariants as createv98_559_, product0_.EM_Aeat347_County as em_aeat99_559_, product0_.Characteristic_Desc as charac100_559_, product0_.EM_Aeat347_Countycode as em_aea101_559_, product0_.EM_Aeat347_Regioncode as em_aea102_559_, product0_.Updateinvariants as update103_559_, product0_.EM_Aeat347_Zipcode as em_aea104_559_, product0_.ManageVariants as manage105_559_, product0_.Prod_Cat_Selection as prod_c106_559_, product0_.Product_Selection as produc107_559_, product0_.Print_Description as print_108_559_, product0_.Returnable as return109_559_, product0_.Overdue_Return_Days as overdu110_559_, product0_.Ispricerulebased as ispric111_559_, product0_.Unique_Per_Document as unique112_559_, product0_.Relateprodcattoservice as relate113_559_, product0_.Relateprodtoservice as relate114_559_, product0_.Islinkedtoproduct as islink115_559_, product0_.Quantity_Rule as quanti116_559_, product0_.Allow_Deferred_Sell as allow_117_559_, product0_.Deferred_Sell_Max_Days as deferr118_559_, product0_.EM_Etpp_Print_Label as em_etp119_559_, product0_.M_Product_Status_ID as m_prod120_559_, product0_.EM_Prpres_Short_Description as em_prp121_559_, product0_.EM_Prpres_Description as em_prp122_559_, product0_.EM_Prpres_Meta_Title as em_prp123_559_, product0_.EM_Prpres_Meta_Description as em_prp124_559_, product0_.EM_Prpres_Friendly_Url as em_prp125_559_, product0_.EM_Prpres_Tags as em_prp126_559_, product0_.Ismodifytax as ismodi127_559_, product0_.EM_Prpres_Upload as em_prp128_559_, product0_.Relateprodcattaxtoservice as relate129_559_, product0_.Copyservicemodifytaxconfig as copyse130_559_, product0_.EM_Ec_Observations as em_ec_131_559_, product0_.EM_Prpres_Managecat as em_prp132_559_, product0_.EM_Prpres_Deactivate_On_Ps as em_prp133_559_, product0_.EM_Prpres_Out_Of_Stock as em_prp134_559_, product0_.EM_Pruti_Addmodifycharact as em_pru135_559_ from M_Product product0_ where (upper((coalesce(to_char(( select producttrl1_.Name from M_Product_Trl producttrl1_ where producttrl1_.M_Product_ID = product0_.M_Product_ID and producttrl1_.AD_Language = 'es_ES')), to_char(product0_.Name), '') || ' - ' || coalesce(to_char(product0_.Description), ''))) like upper('%fermator%') escape '|') and (exists ( select 1 from ec_product_cost_v ec_product2_ inner join M_Product product3_ on ec_product2_.M_Product_ID = product3_.M_Product_ID where product3_.M_Product_ID = product0_.M_Product_ID and (ec_product2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')))) order by product0_.Name, product0_.Description limit '75' offset '38';
Date: 2026-07-14 11:00:42 Duration: 1s381ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 1 185.46 MiB 185.46 MiB 185.46 MiB 185.46 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 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_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.em_prouti_grandtotalinitial 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 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_.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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 17:59:10 Duration: 1s861ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 1 185.19 MiB 185.19 MiB 185.19 MiB 185.19 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 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 (...)) order by order0_.em_prouti_grandtotalinitial 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 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')) order by order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 17:59:14 Duration: 3s214ms 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 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')) order by order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 17:59:15 Duration: 1s300ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
11 1 168.81 MiB 168.81 MiB 168.81 MiB 168.81 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 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 = ?) 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 order0_.em_prouti_grandtotalinitial 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 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') 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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 17:59:14 Duration: 4s369ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
12 1 185.46 MiB 185.46 MiB 185.46 MiB 185.46 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 (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 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_.em_prouti_grandtotalinitial 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 (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 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_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 17:59:01 Duration: 4s608ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
13 1 194.02 MiB 194.02 MiB 194.02 MiB 194.02 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-14 18:00:14 Duration: 4s142ms 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-14 18:00:18 Duration: 3s502ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
14 1 185.46 MiB 185.46 MiB 185.46 MiB 185.46 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 (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 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_.em_prouti_grandtotalinitial 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 (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 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_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 17:59:03 Duration: 1s636ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
15 1 39.45 MiB 39.45 MiB 39.45 MiB 39.45 MiB select count(*) from ( select c_orderline.c_orderline_id as id, c_order.c_order_id as c_order_id, c_order.documentno 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, ad_column_identifier (to_char(?), to_char(c_orderline.m_product_id), to_char(?)) as product_name, m_attributesetinstance.description as description, c_orderline.qtyordered as total_qty, c_orderline.qtyordered - sum(coalesce(m_matchpo.qty, ?)) as qtyordered, ? as isactive, c_orderline.line 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_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, c_orderline.qtyordered, c_orderline.line) a where ( case when total_qty < ? then ? else ? end) = ( case when qtyordered < ? then ? else ? end) and qtyordered <> ?;-
SELECT count(*) FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO 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, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, C_ORDERLINE.QTYORDERED AS TOTAL_QTY, C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0)) AS QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE 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_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', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') 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, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN Qtyordered < 0 THEN -1 ELSE 1 End) AND Qtyordered <> 0;
Date: 2026-07-14 10:43:24 Duration: 4s471ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
SELECT count(*) FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO 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, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, C_ORDERLINE.QTYORDERED AS TOTAL_QTY, C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0)) AS QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE 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_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, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN Qtyordered < 0 THEN -1 ELSE 1 End) AND Qtyordered <> 0;
Date: 2026-07-14 08:23:10 Duration: 1s836ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
16 1 194.02 MiB 194.02 MiB 194.02 MiB 194.02 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 ? offset ?;-
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' offset '101';
Date: 2026-07-14 18:01:48 Duration: 8s307ms 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 '55' offset '48';
Date: 2026-07-14 18:01:47 Duration: 6s973ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
17 1 11.48 MiB 11.48 MiB 11.48 MiB 11.48 MiB 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 ec_product_cost_v ec_product1_ left outer join m_product product2_ on ec_product1_.m_product_id = product2_.m_product_id inner join c_bpartner businesspa3_ on ec_product1_.c_bpartner_id = businesspa3_.c_bpartner_id where (upper((coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product2_.m_product_id and producttrl4_.ad_language = ?)), to_char(product2_.name), ?) || ?| | coalesce(to_char(product2_.description), ?))) like upper(?) escape ?) and businesspa3_.c_bpartner_id = businesspa0_.c_bpartner_id and (ec_product1_.ad_org_id in (...)) and (ec_product1_.ad_client_id in (...))) order by businesspa0_.name, businesspa0_.name2 limit ?;-
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 ec_product_cost_v ec_product1_ left outer join M_Product product2_ on ec_product1_.M_Product_ID = product2_.M_Product_ID inner join C_BPartner businesspa3_ on ec_product1_.C_Bpartner_ID = businesspa3_.C_BPartner_ID where (upper((coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product2_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product2_.Name), '') || ' - ' || coalesce(to_char(product2_.Description), ''))) like upper('%fermator%') escape '|') and businesspa3_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (ec_product1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-14 11:00:52 Duration: 1s445ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
18 1 11.48 MiB 11.48 MiB 11.48 MiB 11.48 MiB select ec_product0_.ec_product_cost_v_id as ec_produ1_329_, ec_product0_.m_product_id as m_produc2_329_, ec_product0_.ad_org_id as ad_org_i3_329_, ec_product0_.ad_client_id as ad_clien4_329_, ec_product0_.created as created5_329_, ec_product0_.createdby as createdb6_329_, ec_product0_.updated as updated7_329_, ec_product0_.updatedby as updatedb8_329_, ec_product0_.value as value9_329_, ec_product0_.m_brand_id as m_brand10_329_, ec_product0_.c_bpartner_id as c_bpart11_329_, ec_product0_.iscurrentvendor as iscurre12_329_, ec_product0_.c_currency_id as c_curre13_329_, ec_product0_.priceeffective as priceef14_329_, ec_product0_.pricelist as priceli15_329_, ec_product0_.isactive as isactiv16_329_, ec_product0_.pricestd as pricest17_329_, ec_product0_.salesprice as salespr18_329_ from ec_product_cost_v ec_product0_ where (ec_product0_.ad_org_id in (...)) and (ec_product0_.ad_client_id in (...)) order by ec_product0_.value, ec_product0_.ec_product_cost_v_id limit ?;-
select ec_product0_.EC_Product_Cost_V_ID as ec_produ1_329_, ec_product0_.M_Product_ID as m_produc2_329_, ec_product0_.AD_Org_ID as ad_org_i3_329_, ec_product0_.AD_Client_ID as ad_clien4_329_, ec_product0_.Created as created5_329_, ec_product0_.Createdby as createdb6_329_, ec_product0_.Updated as updated7_329_, ec_product0_.Updatedby as updatedb8_329_, ec_product0_.Value as value9_329_, ec_product0_.M_Brand_ID as m_brand10_329_, ec_product0_.C_Bpartner_ID as c_bpart11_329_, ec_product0_.Iscurrentvendor as iscurre12_329_, ec_product0_.C_Currency_ID as c_curre13_329_, ec_product0_.Priceeffective as priceef14_329_, ec_product0_.Pricelist as priceli15_329_, ec_product0_.Isactive as isactiv16_329_, ec_product0_.Pricestd as pricest17_329_, ec_product0_.Salesprice as salespr18_329_ from ec_product_cost_v ec_product0_ where (ec_product0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by ec_product0_.Value, ec_product0_.EC_Product_Cost_V_ID limit '101';
Date: 2026-07-14 10:54:44 Duration: 1s20ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
19 1 194.02 MiB 194.02 MiB 194.02 MiB 194.02 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 desc, businesspa1_.name2 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_ 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 desc, businesspa1_.Name2 desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 18:00:06 Duration: 7s868ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
20 1 108.73 MiB 108.73 MiB 108.73 MiB 108.73 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 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 = ?) 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 order0_.em_prouti_grandtotalinitial 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 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') 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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-14 17:59:12 Duration: 2s868ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
21 1 11.48 MiB 11.48 MiB 11.48 MiB 11.48 MiB select ec_product0_.ec_product_cost_v_id as ec_produ1_329_, ec_product0_.m_product_id as m_produc2_329_, ec_product0_.ad_org_id as ad_org_i3_329_, ec_product0_.ad_client_id as ad_clien4_329_, ec_product0_.created as created5_329_, ec_product0_.createdby as createdb6_329_, ec_product0_.updated as updated7_329_, ec_product0_.updatedby as updatedb8_329_, ec_product0_.value as value9_329_, ec_product0_.m_brand_id as m_brand10_329_, ec_product0_.c_bpartner_id as c_bpart11_329_, ec_product0_.iscurrentvendor as iscurre12_329_, ec_product0_.c_currency_id as c_curre13_329_, ec_product0_.priceeffective as priceef14_329_, ec_product0_.pricelist as priceli15_329_, ec_product0_.isactive as isactiv16_329_, ec_product0_.pricestd as pricest17_329_, ec_product0_.salesprice as salespr18_329_ from ec_product_cost_v ec_product0_ left outer join m_product product1_ on ec_product0_.m_product_id = product1_.m_product_id where (upper((coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.description), ?))) like upper(?) escape ?) and (ec_product0_.ad_org_id in (...)) and (ec_product0_.ad_client_id in (...)) order by ec_product0_.value desc, ec_product0_.ec_product_cost_v_id desc limit ?;-
select ec_product0_.EC_Product_Cost_V_ID as ec_produ1_329_, ec_product0_.M_Product_ID as m_produc2_329_, ec_product0_.AD_Org_ID as ad_org_i3_329_, ec_product0_.AD_Client_ID as ad_clien4_329_, ec_product0_.Created as created5_329_, ec_product0_.Createdby as createdb6_329_, ec_product0_.Updated as updated7_329_, ec_product0_.Updatedby as updatedb8_329_, ec_product0_.Value as value9_329_, ec_product0_.M_Brand_ID as m_brand10_329_, ec_product0_.C_Bpartner_ID as c_bpart11_329_, ec_product0_.Iscurrentvendor as iscurre12_329_, ec_product0_.C_Currency_ID as c_curre13_329_, ec_product0_.Priceeffective as priceef14_329_, ec_product0_.Pricelist as priceli15_329_, ec_product0_.Isactive as isactiv16_329_, ec_product0_.Pricestd as pricest17_329_, ec_product0_.Salesprice as salespr18_329_ from ec_product_cost_v ec_product0_ left outer join M_Product product1_ on ec_product0_.M_Product_ID = product1_.M_Product_ID where (upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.Description), ''))) like upper('%fermator%') escape '|') and (ec_product0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (ec_product0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by ec_product0_.Value desc, ec_product0_.EC_Product_Cost_V_ID desc limit '101';
Date: 2026-07-14 11:00:42 Duration: 1s477ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 194.02 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 desc, businesspa1_.Name2 desc, order0_.C_Order_ID desc limit $15;[ Date: 2026-07-14 18:00:06 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 194.02 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 offset $16;[ Date: 2026-07-14 18:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 194.02 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-14 18:00:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 185.46 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 (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)) < $1 and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit $10;[ Date: 2026-07-14 17:59:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 185.46 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 (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)) > $1 and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit $10;[ Date: 2026-07-14 17:59:04 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 185.46 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 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)) > $1 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)) < $2 and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit $11;[ Date: 2026-07-14 17:59:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 185.19 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 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)) > $1 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)) < $2 and (order0_.InvoiceRule = $3 or order0_.InvoiceRule = $4 or order0_.InvoiceRule = $5 or order0_.InvoiceRule = $6) and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit $15;[ Date: 2026-07-14 17:59:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 168.81 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 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)) > $1 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)) < $2 and (order0_.InvoiceRule = $3 or order0_.InvoiceRule = $4 or order0_.InvoiceRule = $5) and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ($6, $7, $8, $9, $10, $11)) and (order0_.AD_Client_ID in ($12, $13)) order by order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit $14;[ Date: 2026-07-14 17:59:14 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 108.73 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 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)) > $1 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)) < $2 and (order0_.InvoiceRule = $3 or order0_.InvoiceRule = $4) and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.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 order0_.EM_Prouti_Grandtotalinitial desc, order0_.C_Order_ID desc limit $13;[ Date: 2026-07-14 17:59:12 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 69.82 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, $1 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($2)) 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', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE $3 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-14 10:43:34 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 42.36 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 ('EE41B79C2BDE4A20BBF1C7DFD2590A2D')) order by m_inout.documentno;[ Date: 2026-07-14 17:44:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 42.36 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 ('2CB4A95B07684EB9AD6A70728487C4B1')) order by m_inout.documentno;[ Date: 2026-07-14 18:00:06 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 42.36 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 ('C12861039CFA48F8A0BED4FE8837EC11')) order by m_inout.documentno;[ Date: 2026-07-14 18:16:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 42.36 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 ('070273598C994E7F8E6BF345AD37CB3F')) order by m_inout.documentno;[ Date: 2026-07-14 17:43:34 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 42.36 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 ('72145CBECB40414DA3F83CA177E014E4')) order by m_inout.documentno;[ Date: 2026-07-14 17:37:04 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 42.36 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 ('DC0EAD24B0524458B314DC5A6DA72ADF')) order by m_inout.documentno;[ Date: 2026-07-14 17:33:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 42.36 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 ('2A73CE1B869A40A4B49FE296C5DE3896')) order by m_inout.documentno;[ Date: 2026-07-14 17:26:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 42.36 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 ('2C713FA611C746AEB1185A1188ADFFE3')) order by m_inout.documentno;[ Date: 2026-07-14 17:26:56 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 42.36 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 ('68E555E3AC8D46328D58A83D011D678E')) order by m_inout.documentno;[ Date: 2026-07-14 17:27:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 42.36 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 ('3687AD62B70241C6B83069427C3B4DC3')) order by m_inout.documentno;[ Date: 2026-07-14 17:07:00 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.39 sec Highest CPU-cost vacuum
Table profile.sample_stat_tables
Database etendo - 2026-07-14 15:00:58 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 0.39 sec Highest CPU-cost vacuum
Table profile.sample_stat_tables
Database etendo - 2026-07-14 15:00:58 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (169) Main table analyzed (database etendo)
- 389 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 169 etendo.public.ad_session 45 etendo.public.ad_pinstance_para 16 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.public.ad_preference 11 etendo.profile.tables_list 8 etendo.profile.last_stat_io 8 etendo.profile.stmt_list 7 etendo.public.prpres_product 7 etendo.public.ad_sequence 7 etendo.profile.funcs_list 6 etendo.profile.indexes_list 5 etendo.profile.last_stat_activity_count_srv1 4 etendo.profile.last_extension_versions 4 etendo.public.prpres_conf 4 etendo.public.ad_process_request 3 etendo.public.ad_pinstance 3 etendo.profile.last_stat_slru 3 etendo.pg_catalog.pg_type 3 etendo.profile.sample_stat_user_functions 2 etendo.profile.sample_stat_indexes 2 etendo.profile.sample_stat_tables 2 etendo.profile.sample_statements 2 etendo.profile.sample_stat_tables_total 1 etendo.public.ad_process_run 1 etendo.pg_catalog.pg_attribute 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_indexes_total 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_slru 1 postgres.pg_catalog.pg_shdepend 1 Total 389 Vacuums per table
Key values
- public.ad_ep_instance_para (100) Main table vacuumed on database etendo
- 209 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 100 100 6,692 0 391 0 0 902 233 304,742 0 0 etendo.profile.last_stat_indexes_srv1 18 15 22,721 0 445 0 0 14,937 4,332 2,272,932 100 993 etendo.profile.last_stat_tables_srv1 18 15 17,521 0 203 0 0 11,976 3,411 1,671,425 211 1,297 etendo.profile.last_stat_user_functions_srv1 18 15 3,265 0 59 0 0 2,313 625 950,516 493 7,300 etendo.profile.last_stat_statements_srv1 18 15 20,663 0 331 0 0 15,843 4,367 4,919,689 2,571 27,063 etendo.profile.tables_list 5 5 1,029 0 22 0 0 814 265 494,609 181 1,988 etendo.profile.stmt_list 5 5 1,824 0 87 0 0 1,511 400 1,716,520 237 684 etendo.profile.funcs_list 5 5 450 0 16 0 0 176 48 93,204 34 383 etendo.public.ad_pinstance_para 4 4 1,575 0 426 0 0 1,189 304 834,330 79 271 etendo.profile.last_stat_io 4 4 234 0 17 0 0 37 20 20,168 5 68 etendo.profile.indexes_list 3 3 414 0 19 0 0 182 72 149,413 37 436 etendo.pg_toast.pg_toast_2619 2 2 2,007 0 561 0 0 1,160 368 944,676 92 202 etendo.profile.last_extension_versions 2 2 137 0 10 0 0 12 8 7,283 2 16 etendo.profile.last_stat_activity_count_srv1 2 0 45 0 8 0 0 12 4 1,890 0 0 etendo.pg_catalog.pg_statistic 1 1 1,928 0 412 0 0 1,731 589 1,632,098 280 2,820 etendo.pg_toast.pg_toast_305793 1 1 419 0 211 0 0 406 116 317,699 43 134 etendo.profile.last_stat_database_srv1 1 1 49 0 6 0 0 7 5 5,025 1 4 etendo.profile.sample_stat_tables 1 1 1,615 0 1,403 0 0 1,600 151 340,846 0 0 etendo.profile.last_stat_slru 1 1 69 0 4 0 0 6 4 3,728 1 5 Total 209 195 82,657 3,455 4,631 0 0 54,814 15,322 16,680,793 4,367 43,664 Vacuum throughput per table
Key values
- profile.last_stat_indexes_srv1 (0.39) 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_indexes_srv1 0 0 0.39 etendo.profile.last_stat_tables_srv1 0 0 0.2 etendo.profile.last_stat_user_functions_srv1 0 0 0 etendo.profile.last_stat_statements_srv1 0 0 0.34 etendo.profile.tables_list 0 0 0 etendo.profile.stmt_list 0 0 0.01 etendo.profile.funcs_list 0 0 0 etendo.public.ad_pinstance_para 0 0 0.12 etendo.profile.last_stat_io 0 0 0 etendo.profile.indexes_list 0 0 0 etendo.pg_toast.pg_toast_2619 0 0 0.17 etendo.profile.last_extension_versions 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.pg_catalog.pg_statistic 0 0 0.15 etendo.pg_toast.pg_toast_305793 0 0 0.07 etendo.profile.last_stat_database_srv1 0 0 0 etendo.profile.sample_stat_tables 0 0 0.39 etendo.profile.last_stat_slru 0 0 0 Total 0 0 1.89 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (93159) Main table with removed tuples on database etendo
- 216029 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,159 73,983 18,669 375 6,459 etendo.profile.last_stat_tables_srv1 18 15 59,532 45,658 11,883 273 5,211 etendo.profile.last_stat_statements_srv1 18 15 41,796 61,948 11,553 470 5,247 etendo.profile.last_stat_user_functions_srv1 18 15 9,038 11,574 1,854 0 665 etendo.public.ad_ep_instance_para 100 100 3,684 41 41 147 3 etendo.public.ad_pinstance_para 4 4 2,213 16,210 0 0 688 etendo.profile.sample_stat_tables 1 1 2,194 36,171 0 0 1,337 etendo.profile.tables_list 5 5 1,050 6,798 0 0 195 etendo.pg_catalog.pg_statistic 1 1 965 10,846 0 0 841 etendo.pg_toast.pg_toast_2619 2 2 721 4,385 14 0 1,374 etendo.profile.stmt_list 5 5 589 5,608 0 0 508 etendo.profile.funcs_list 5 5 261 1,121 0 0 45 etendo.pg_toast.pg_toast_305793 1 1 248 1,444 0 0 380 etendo.profile.last_stat_io 4 4 193 68 0 0 8 etendo.profile.indexes_list 3 3 167 1,409 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.profile.last_stat_database_srv1 1 1 4 4 0 0 1 Total 209 195 216,029 277,289 44,014 1,267 23,004 Pages removed per table
Key values
- profile.last_stat_statements_srv1 (470) Main table with removed pages on database etendo
- 1267 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_statements_srv1 18 15 41796 470 etendo.profile.last_stat_indexes_srv1 18 15 93159 375 etendo.profile.last_stat_tables_srv1 18 15 59532 273 etendo.public.ad_ep_instance_para 100 100 3684 147 etendo.profile.last_stat_activity_count_srv1 2 0 48 2 etendo.profile.tables_list 5 5 1050 0 etendo.pg_catalog.pg_statistic 1 1 965 0 etendo.pg_toast.pg_toast_2619 2 2 721 0 etendo.profile.stmt_list 5 5 589 0 etendo.pg_toast.pg_toast_305793 1 1 248 0 etendo.profile.funcs_list 5 5 261 0 etendo.public.ad_pinstance_para 4 4 2213 0 etendo.profile.last_extension_versions 2 2 112 0 etendo.profile.indexes_list 3 3 167 0 etendo.profile.last_stat_user_functions_srv1 18 15 9038 0 etendo.profile.last_stat_database_srv1 1 1 4 0 etendo.profile.sample_stat_tables 1 1 2194 0 etendo.profile.last_stat_slru 1 1 55 0 etendo.profile.last_stat_io 4 4 193 0 Total 209 195 216,029 1,267 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 14 07 10 16 08 11 20 09 14 33 10 18 31 11 22 43 12 19 47 13 22 19 14 17 29 15 19 43 16 17 34 17 12 24 18 9 16 19 5 11 20 7 7 21 7 16 - 0.39 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
- 634 Total read queries
- 0 Total write queries
Queries by database
Key values
- etendo Main database
- 634 Requests
- 49m59s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 621 Requests
User Request type Count Duration postgres Total 13 15s789ms select 13 15s789ms tad Total 621 49m43s select 621 49m43s Duration by user
Key values
- 49m43s (tad) Main time consuming user
User Request type Count Duration postgres Total 13 15s789ms select 13 15s789ms tad Total 621 49m43s select 621 49m43s Queries by host
Key values
- 127.0.0.1 Main host
- 576 Requests
- 37m17s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 576 Requests
- 37m17s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-14 07:42:01 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 585 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 45s200ms 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-14 11:04:47 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
2 44s785ms 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-14 16:03:46 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
3 44s712ms 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-14 18:04:02 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
4 44s444ms 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-14 14:03:09 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
5 42s960ms 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-14 20:03:59 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
6 38s532ms 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-14 11:04:04 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
7 37s195ms 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-14 16:03:26 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
8 35s952ms 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-14 20:03:51 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
9 35s696ms 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-14 18:04:09 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
10 34s914ms 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-14 14:03:00 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
11 24s545ms 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('15-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-14 15:27:31 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 24s543ms 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-14 21:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 24s287ms 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('15-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-14 19:04:20 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 23s867ms 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-14 16:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 23s625ms 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-14 18:01:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 23s565ms 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-14 11:01:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 23s513ms 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-14 13:01:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 23s447ms 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-14 08:01:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 23s232ms 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-14 19:01:47 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 23s63ms 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-14 20:01:47 - 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 7m15s 170 2s336ms 3s107ms 2s560ms 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 14 08 7 17s942ms 2s563ms 09 13 32s277ms 2s482ms 10 15 37s906ms 2s527ms 11 27 1m10s 2s602ms 12 23 58s831ms 2s557ms 13 10 25s277ms 2s527ms 14 17 43s768ms 2s574ms 15 27 1m9s 2s565ms 16 21 54s351ms 2s588ms 17 8 20s418ms 2s552ms 18 2 5s41ms 2s520ms [ User: tad - Total duration: 7m15s - Times executed: 170 ]
[ Application: openbravo - Total duration: 7m15s - Times executed: 170 ]
-
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 ('2ECEE9B6A7894EDCB3924B098E28C358')) order by m_inout.documentno;
Date: 2026-07-14 11:47:38 Duration: 3s107ms 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 ('AC9BC2FB6DC446BE951B8A89F5431861')) order by m_inout.documentno;
Date: 2026-07-14 16:38:23 Duration: 3s12ms 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 ('CB85114E7BBF474FA8FBBC19B44D594F')) order by m_inout.documentno;
Date: 2026-07-14 16:59:09 Duration: 2s989ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 5m48s 15 22s504ms 24s543ms 23s253ms 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 #2
Day Hour Count Duration Avg duration Jul 14 07 1 22s504ms 22s504ms 08 1 23s447ms 23s447ms 09 1 22s635ms 22s635ms 10 1 22s973ms 22s973ms 11 1 23s565ms 23s565ms 12 1 23s11ms 23s11ms 13 1 23s513ms 23s513ms 14 1 22s974ms 22s974ms 15 1 22s844ms 22s844ms 16 1 23s867ms 23s867ms 17 1 23s2ms 23s2ms 18 1 23s625ms 23s625ms 19 1 23s232ms 23s232ms 20 1 23s63ms 23s63ms 21 1 24s543ms 24s543ms [ User: tad - Total duration: 5m48s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m48s - 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-14 21:01:48 Duration: 24s543ms 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-14 16:01:48 Duration: 23s867ms 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-14 18:01:47 Duration: 23s625ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 4m4s 63 3s704ms 4s140ms 3s882ms 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 #3
Day Hour Count Duration Avg duration Jul 14 10 4 15s603ms 3s900ms 11 11 43s806ms 3s982ms 12 14 54s309ms 3s879ms 13 3 11s277ms 3s759ms 14 2 7s594ms 3s797ms 15 12 46s470ms 3s872ms 16 9 35s30ms 3s892ms 17 7 26s558ms 3s794ms 18 1 3s915ms 3s915ms [ User: tad - Total duration: 4m4s - Times executed: 63 ]
[ Application: openbravo - Total duration: 4m4s - Times executed: 63 ]
-
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-14 11:48:59 Duration: 4s140ms 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-14 11:49:35 Duration: 4s132ms 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-14 15:24:23 Duration: 4s127ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 3m42s 5 42s960ms 45s200ms 44s420ms 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 14 11 1 45s200ms 45s200ms 14 1 44s444ms 44s444ms 16 1 44s785ms 44s785ms 18 1 44s712ms 44s712ms 20 1 42s960ms 42s960ms [ User: tad - Total duration: 3m42s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m42s - 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-14 11:04:47 Duration: 45s200ms 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-14 16:03:46 Duration: 44s785ms 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-14 18:04:02 Duration: 44s712ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
5 3m2s 5 34s914ms 38s532ms 36s458ms 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 14 11 1 38s532ms 38s532ms 14 1 34s914ms 34s914ms 16 1 37s195ms 37s195ms 18 1 35s696ms 35s696ms 20 1 35s952ms 35s952ms [ User: tad - Total duration: 3m2s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m2s - 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-14 11:04:04 Duration: 38s532ms 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-14 16:03:26 Duration: 37s195ms 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-14 20:03:51 Duration: 35s952ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
6 2m36s 19 7s783ms 8s936ms 8s261ms 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 #6
Day Hour Count Duration Avg duration Jul 14 09 1 7s783ms 7s783ms 10 9 1m16s 8s473ms 12 6 49s118ms 8s186ms 15 3 23s798ms 7s932ms [ User: tad - Total duration: 2m36s - Times executed: 19 ]
[ Application: openbravo - Total duration: 2m36s - Times executed: 19 ]
-
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-14 10:22:26 Duration: 8s936ms 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-14 10:22:25 Duration: 8s676ms 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-14 10:21:59 Duration: 8s634ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 1m50s 33 3s183ms 3s707ms 3s341ms 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 #7
Day Hour Count Duration Avg duration Jul 14 12 7 24s69ms 3s438ms 13 15 49s688ms 3s312ms 15 2 6s736ms 3s368ms 17 3 10s70ms 3s356ms 18 6 19s692ms 3s282ms [ User: tad - Total duration: 1m50s - Times executed: 33 ]
[ Application: openbravo - Total duration: 1m50s - Times executed: 33 ]
-
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-14 13:00:02 Duration: 3s707ms 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-14 12:52:15 Duration: 3s578ms 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-14 12:49:32 Duration: 3s508ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1m34s 24 3s612ms 6s905ms 3s929ms 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 #8
Day Hour Count Duration Avg duration Jul 14 08 2 10s672ms 5s336ms 09 2 7s435ms 3s717ms 10 3 11s389ms 3s796ms 11 3 11s660ms 3s886ms 12 4 15s377ms 3s844ms 13 2 7s382ms 3s691ms 14 3 11s283ms 3s761ms 15 3 11s688ms 3s896ms 16 2 7s408ms 3s704ms [ User: tad - Total duration: 1m34s - Times executed: 24 ]
[ Application: openbravo - Total duration: 1m34s - Times executed: 24 ]
-
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 = '15A5BCA0BE7944C5893E502B7C5827E60928AC21B14E24C3C9ED358EBE6E9BD5Bpendingpurchase';
Date: 2026-07-14 08:43:46 Duration: 6s905ms 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 = '44E9FE7932BE474DB9FDA0A72B060A310928AC21B14E24C3C9ED358EBE6E9BD5Bpendingpurchase';
Date: 2026-07-14 15:04:54 Duration: 4s190ms 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 = '0DC9873272034AF68E15049BDA57E6B6006B0DBE5CA984B188585E4A2062CB02Apendingpurchase';
Date: 2026-07-14 11:04:40 Duration: 4s173ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 1m31s 10 8s855ms 9s552ms 9s126ms 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 #9
Day Hour Count Duration Avg duration Jul 14 09 1 8s859ms 8s859ms 10 4 37s697ms 9s424ms 12 3 26s938ms 8s979ms 15 2 17s770ms 8s885ms [ User: tad - Total duration: 1m31s - Times executed: 10 ]
[ Application: openbravo - Total duration: 1m31s - Times executed: 10 ]
-
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-14 10:21:27 Duration: 9s552ms 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-14 10:22:00 Duration: 9s396ms 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-14 10:23:06 Duration: 9s383ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 1m27s 11 7s624ms 8s387ms 7s972ms 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 #10
Day Hour Count Duration Avg duration Jul 14 10 2 16s299ms 8s149ms 12 1 7s980ms 7s980ms 15 3 23s126ms 7s708ms 16 5 40s295ms 8s59ms [ User: tad - Total duration: 1m27s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m27s - Times executed: 11 ]
-
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-14 10:19:46 Duration: 8s387ms 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-14 16:02:15 Duration: 8s238ms 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-14 16:42:26 Duration: 8s210ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1m20s 10 7s337ms 9s783ms 8s3ms 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 #11
Day Hour Count Duration Avg duration Jul 14 08 1 7s712ms 7s712ms 10 4 33s601ms 8s400ms 11 1 7s936ms 7s936ms 12 2 14s934ms 7s467ms 15 2 15s854ms 7s927ms [ User: tad - Total duration: 1m20s - Times executed: 10 ]
[ Application: openbravo - Total duration: 1m20s - Times executed: 10 ]
-
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', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') 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-14 10:43:34 Duration: 9s783ms 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-14 15:06:52 Duration: 8s517ms 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-14 10:23:26 Duration: 8s388ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1m9s 5 5s311ms 17s403ms 13s838ms 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 #12
Day Hour Count Duration Avg duration Jul 14 11 1 5s311ms 5s311ms 14 1 17s403ms 17s403ms 16 1 15s142ms 15s142ms 18 1 14s140ms 14s140ms 20 1 17s194ms 17s194ms [ User: tad - Total duration: 1m9s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m9s - 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-14 14:02:42 Duration: 17s403ms 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-14 20:03:19 Duration: 17s194ms 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-14 16:03:03 Duration: 15s142ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
13 1m1s 5 7s931ms 15s178ms 12s281ms 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 #13
Day Hour Count Duration Avg duration Jul 14 11 1 14s222ms 14s222ms 14 1 10s729ms 10s729ms 16 1 7s931ms 7s931ms 18 1 13s343ms 13s343ms 20 1 15s178ms 15s178ms [ User: tad - Total duration: 1m1s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m1s - 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-14 20:03:31 Duration: 15s178ms 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-14 11:03:40 Duration: 14s222ms 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-14 18:03:44 Duration: 13s343ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
14 59s312ms 5 9s911ms 15s304ms 11s862ms 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 #14
Day Hour Count Duration Avg duration Jul 14 11 1 12s478ms 12s478ms 14 1 9s911ms 9s911ms 16 1 10s956ms 10s956ms 18 1 10s661ms 10s661ms 20 1 15s304ms 15s304ms [ User: tad - Total duration: 59s312ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 59s312ms - 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-14 20:03:18 Duration: 15s304ms 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-14 11:03:38 Duration: 12s478ms 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-14 16:03:00 Duration: 10s956ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
15 57s908ms 5 5s171ms 15s856ms 11s581ms 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 #15
Day Hour Count Duration Avg duration Jul 14 11 1 12s550ms 12s550ms 14 1 15s856ms 15s856ms 16 1 5s171ms 5s171ms 18 1 11s636ms 11s636ms 20 1 12s693ms 12s693ms [ User: tad - Total duration: 57s908ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 57s908ms - 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-14 14:02:41 Duration: 15s856ms 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-14 20:03:14 Duration: 12s693ms 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-14 11:03:38 Duration: 12s550ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
16 55s997ms 5 10s389ms 12s954ms 11s199ms 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 #16
Day Hour Count Duration Avg duration Jul 14 11 1 12s954ms 12s954ms 14 1 10s563ms 10s563ms 16 1 11s216ms 11s216ms 18 1 10s389ms 10s389ms 20 1 10s873ms 10s873ms [ User: tad - Total duration: 55s997ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 55s997ms - 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-14 11:03:39 Duration: 12s954ms 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-14 16:03:00 Duration: 11s216ms 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-14 20:03:12 Duration: 10s873ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
17 54s754ms 7 7s736ms 7s917ms 7s822ms 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, order0_.c_order_id limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 14 11 1 7s871ms 7s871ms 13 1 7s780ms 7s780ms 15 1 7s736ms 7s736ms 16 4 31s366ms 7s841ms [ User: tad - Total duration: 54s754ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 54s754ms - Times executed: 7 ]
-
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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 16:30:02 Duration: 7s917ms 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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 11:35:14 Duration: 7s871ms 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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 16:25:11 Duration: 7s846ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 50s723ms 3 1s890ms 24s545ms 16s907ms 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 #18
Day Hour Count Duration Avg duration Jul 14 15 1 24s545ms 24s545ms 16 1 1s890ms 1s890ms 19 1 24s287ms 24s287ms [ User: tad - Total duration: 50s723ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 50s723ms - Times executed: 3 ]
-
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('15-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-14 15:27:31 Duration: 24s545ms 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-2026') AND C_ORDER.DATEORDERED < to_date('15-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-14 19:04:20 Duration: 24s287ms 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-07-2026') AND C_ORDER.DATEORDERED < to_date('15-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-14 16:14:41 Duration: 1s890ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 40s860ms 5 7s893ms 8s485ms 8s172ms select count(*) as col_0_0_, sum(order0_.grandtotal) as col_1_0_, sum(order0_.totallines) as col_2_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 #19
Day Hour Count Duration Avg duration Jul 14 07 1 7s916ms 7s916ms 12 3 25s50ms 8s350ms 16 1 7s893ms 7s893ms [ User: tad - Total duration: 40s860ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 40s860ms - Times executed: 5 ]
-
select count(*) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.TotalLines) as col_2_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-14 12:44:20 Duration: 8s485ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.TotalLines) as col_2_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-14 12:44:20 Duration: 8s415ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.TotalLines) as col_2_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-14 12:42:38 Duration: 8s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 35s368ms 25 1s344ms 1s520ms 1s414ms 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 #20
Day Hour Count Duration Avg duration Jul 14 12 13 18s579ms 1s429ms 15 12 16s788ms 1s399ms [ User: tad - Total duration: 35s368ms - Times executed: 25 ]
[ Application: openbravo - Total duration: 35s368ms - Times executed: 25 ]
-
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('%223958%') 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-14 12:35:10 Duration: 1s520ms 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('%223405%') 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-14 12:44:24 Duration: 1s500ms 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('%223531%') 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-14 12:57:53 Duration: 1s474ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 170 7m15s 2s336ms 3s107ms 2s560ms 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 14 08 7 17s942ms 2s563ms 09 13 32s277ms 2s482ms 10 15 37s906ms 2s527ms 11 27 1m10s 2s602ms 12 23 58s831ms 2s557ms 13 10 25s277ms 2s527ms 14 17 43s768ms 2s574ms 15 27 1m9s 2s565ms 16 21 54s351ms 2s588ms 17 8 20s418ms 2s552ms 18 2 5s41ms 2s520ms [ User: tad - Total duration: 7m15s - Times executed: 170 ]
[ Application: openbravo - Total duration: 7m15s - Times executed: 170 ]
-
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 ('2ECEE9B6A7894EDCB3924B098E28C358')) order by m_inout.documentno;
Date: 2026-07-14 11:47:38 Duration: 3s107ms 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 ('AC9BC2FB6DC446BE951B8A89F5431861')) order by m_inout.documentno;
Date: 2026-07-14 16:38:23 Duration: 3s12ms 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 ('CB85114E7BBF474FA8FBBC19B44D594F')) order by m_inout.documentno;
Date: 2026-07-14 16:59:09 Duration: 2s989ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 63 4m4s 3s704ms 4s140ms 3s882ms 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 14 10 4 15s603ms 3s900ms 11 11 43s806ms 3s982ms 12 14 54s309ms 3s879ms 13 3 11s277ms 3s759ms 14 2 7s594ms 3s797ms 15 12 46s470ms 3s872ms 16 9 35s30ms 3s892ms 17 7 26s558ms 3s794ms 18 1 3s915ms 3s915ms [ User: tad - Total duration: 4m4s - Times executed: 63 ]
[ Application: openbravo - Total duration: 4m4s - Times executed: 63 ]
-
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-14 11:48:59 Duration: 4s140ms 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-14 11:49:35 Duration: 4s132ms 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-14 15:24:23 Duration: 4s127ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 33 1m50s 3s183ms 3s707ms 3s341ms 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 #3
Day Hour Count Duration Avg duration Jul 14 12 7 24s69ms 3s438ms 13 15 49s688ms 3s312ms 15 2 6s736ms 3s368ms 17 3 10s70ms 3s356ms 18 6 19s692ms 3s282ms [ User: tad - Total duration: 1m50s - Times executed: 33 ]
[ Application: openbravo - Total duration: 1m50s - Times executed: 33 ]
-
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-14 13:00:02 Duration: 3s707ms 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-14 12:52:15 Duration: 3s578ms 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-14 12:49:32 Duration: 3s508ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 25 35s368ms 1s344ms 1s520ms 1s414ms 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 #4
Day Hour Count Duration Avg duration Jul 14 12 13 18s579ms 1s429ms 15 12 16s788ms 1s399ms [ User: tad - Total duration: 35s368ms - Times executed: 25 ]
[ Application: openbravo - Total duration: 35s368ms - Times executed: 25 ]
-
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('%223958%') 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-14 12:35:10 Duration: 1s520ms 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('%223405%') 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-14 12:44:24 Duration: 1s500ms 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('%223531%') 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-14 12:57:53 Duration: 1s474ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 24 1m34s 3s612ms 6s905ms 3s929ms 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 #5
Day Hour Count Duration Avg duration Jul 14 08 2 10s672ms 5s336ms 09 2 7s435ms 3s717ms 10 3 11s389ms 3s796ms 11 3 11s660ms 3s886ms 12 4 15s377ms 3s844ms 13 2 7s382ms 3s691ms 14 3 11s283ms 3s761ms 15 3 11s688ms 3s896ms 16 2 7s408ms 3s704ms [ User: tad - Total duration: 1m34s - Times executed: 24 ]
[ Application: openbravo - Total duration: 1m34s - Times executed: 24 ]
-
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 = '15A5BCA0BE7944C5893E502B7C5827E60928AC21B14E24C3C9ED358EBE6E9BD5Bpendingpurchase';
Date: 2026-07-14 08:43:46 Duration: 6s905ms 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 = '44E9FE7932BE474DB9FDA0A72B060A310928AC21B14E24C3C9ED358EBE6E9BD5Bpendingpurchase';
Date: 2026-07-14 15:04:54 Duration: 4s190ms 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 = '0DC9873272034AF68E15049BDA57E6B6006B0DBE5CA984B188585E4A2062CB02Apendingpurchase';
Date: 2026-07-14 11:04:40 Duration: 4s173ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 19 2m36s 7s783ms 8s936ms 8s261ms 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 #6
Day Hour Count Duration Avg duration Jul 14 09 1 7s783ms 7s783ms 10 9 1m16s 8s473ms 12 6 49s118ms 8s186ms 15 3 23s798ms 7s932ms [ User: tad - Total duration: 2m36s - Times executed: 19 ]
[ Application: openbravo - Total duration: 2m36s - Times executed: 19 ]
-
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-14 10:22:26 Duration: 8s936ms 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-14 10:22:25 Duration: 8s676ms 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-14 10:21:59 Duration: 8s634ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 16 23s897ms 1s357ms 1s790ms 1s493ms 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 #7
Day Hour Count Duration Avg duration Jul 14 12 6 8s605ms 1s434ms 15 10 15s291ms 1s529ms [ User: tad - Total duration: 23s897ms - Times executed: 16 ]
[ Application: openbravo - Total duration: 23s897ms - Times executed: 16 ]
-
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('%22404%') 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-14 15:23:27 Duration: 1s790ms 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('%2874%') 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-14 15:14:35 Duration: 1s667ms 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('%22382%') 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-14 15:28:30 Duration: 1s647ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 16 16s693ms 1s5ms 1s132ms 1s43ms 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 #8
Day Hour Count Duration Avg duration Jul 14 08 2 2s83ms 1s41ms 10 3 3s45ms 1s15ms 11 1 1s130ms 1s130ms 12 2 2s27ms 1s13ms 14 3 3s177ms 1s59ms 15 4 4s218ms 1s54ms 16 1 1s10ms 1s10ms [ User: tad - Total duration: 16s693ms - Times executed: 16 ]
[ Application: openbravo - Total duration: 16s693ms - Times executed: 16 ]
-
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-14 14:37:25 Duration: 1s132ms 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-14 11:20:28 Duration: 1s130ms 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-14 15:55:35 Duration: 1s120ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 15 5m48s 22s504ms 24s543ms 23s253ms 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 #9
Day Hour Count Duration Avg duration Jul 14 07 1 22s504ms 22s504ms 08 1 23s447ms 23s447ms 09 1 22s635ms 22s635ms 10 1 22s973ms 22s973ms 11 1 23s565ms 23s565ms 12 1 23s11ms 23s11ms 13 1 23s513ms 23s513ms 14 1 22s974ms 22s974ms 15 1 22s844ms 22s844ms 16 1 23s867ms 23s867ms 17 1 23s2ms 23s2ms 18 1 23s625ms 23s625ms 19 1 23s232ms 23s232ms 20 1 23s63ms 23s63ms 21 1 24s543ms 24s543ms [ User: tad - Total duration: 5m48s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m48s - 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-14 21:01:48 Duration: 24s543ms 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-14 16:01:48 Duration: 23s867ms 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-14 18:01:47 Duration: 23s625ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 15 32s669ms 1s709ms 6s450ms 2s177ms 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 #10
Day Hour Count Duration Avg duration Jul 14 07 1 1s709ms 1s709ms 08 1 1s818ms 1s818ms 09 1 1s741ms 1s741ms 10 1 1s780ms 1s780ms 11 1 6s450ms 6s450ms 12 1 1s933ms 1s933ms 13 1 2s282ms 2s282ms 14 1 1s833ms 1s833ms 15 1 1s825ms 1s825ms 16 1 1s905ms 1s905ms 17 1 2s104ms 2s104ms 18 1 1s833ms 1s833ms 19 1 1s829ms 1s829ms 20 1 1s767ms 1s767ms 21 1 1s853ms 1s853ms [ User: tad - Total duration: 32s669ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 32s669ms - 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-14 11:01:55 Duration: 6s450ms 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-14 13:01:51 Duration: 2s282ms 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-14 17:01:50 Duration: 2s104ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 15 22s953ms 1s229ms 4s269ms 1s530ms 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 #11
Day Hour Count Duration Avg duration Jul 14 07 1 1s229ms 1s229ms 08 1 1s282ms 1s282ms 09 1 1s254ms 1s254ms 10 1 1s245ms 1s245ms 11 1 1s260ms 1s260ms 12 1 4s269ms 4s269ms 13 1 1s392ms 1s392ms 14 1 1s324ms 1s324ms 15 1 1s327ms 1s327ms 16 1 1s339ms 1s339ms 17 1 1s510ms 1s510ms 18 1 1s363ms 1s363ms 19 1 1s370ms 1s370ms 20 1 1s356ms 1s356ms 21 1 1s426ms 1s426ms [ User: tad - Total duration: 22s953ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 22s953ms - 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-14 12:01:56 Duration: 4s269ms 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-14 17:01:53 Duration: 1s510ms 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-14 21:01:54 Duration: 1s426ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 13 15s789ms 1s109ms 1s341ms 1s214ms select profile.take_sample ();Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 14 08 1 1s341ms 1s341ms 09 1 1s173ms 1s173ms 10 1 1s268ms 1s268ms 11 1 1s219ms 1s219ms 12 1 1s216ms 1s216ms 13 1 1s330ms 1s330ms 14 1 1s146ms 1s146ms 15 1 1s109ms 1s109ms 16 1 1s249ms 1s249ms 17 1 1s244ms 1s244ms 18 1 1s166ms 1s166ms 19 1 1s202ms 1s202ms 20 1 1s123ms 1s123ms [ User: postgres - Total duration: 15s789ms - Times executed: 13 ]
[ Application: psql - Total duration: 15s789ms - Times executed: 13 ]
-
SELECT profile.take_sample ();
Date: 2026-07-14 08:00:02 Duration: 1s341ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 13:00:02 Duration: 1s330ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-14 10:00:02 Duration: 1s268ms Database: etendo User: postgres Remote: [local] Application: psql
13 12 16s890ms 1s331ms 1s448ms 1s407ms 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 #13
Day Hour Count Duration Avg duration Jul 14 12 6 8s357ms 1s392ms 15 6 8s532ms 1s422ms [ User: tad - Total duration: 16s890ms - Times executed: 12 ]
[ Application: openbravo - Total duration: 16s890ms - Times executed: 12 ]
-
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('%224051%') 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-14 15:52:37 Duration: 1s448ms 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('%223312%') 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-14 15:14:40 Duration: 1s445ms 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('%224046%') 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-14 15:23:29 Duration: 1s442ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 11 1m27s 7s624ms 8s387ms 7s972ms 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 14 10 2 16s299ms 8s149ms 12 1 7s980ms 7s980ms 15 3 23s126ms 7s708ms 16 5 40s295ms 8s59ms [ User: tad - Total duration: 1m27s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m27s - Times executed: 11 ]
-
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-14 10:19:46 Duration: 8s387ms 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-14 16:02:15 Duration: 8s238ms 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-14 16:42:26 Duration: 8s210ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 10 1m31s 8s855ms 9s552ms 9s126ms 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 #15
Day Hour Count Duration Avg duration Jul 14 09 1 8s859ms 8s859ms 10 4 37s697ms 9s424ms 12 3 26s938ms 8s979ms 15 2 17s770ms 8s885ms [ User: tad - Total duration: 1m31s - Times executed: 10 ]
[ Application: openbravo - Total duration: 1m31s - Times executed: 10 ]
-
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-14 10:21:27 Duration: 9s552ms 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-14 10:22:00 Duration: 9s396ms 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-14 10:23:06 Duration: 9s383ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 10 1m20s 7s337ms 9s783ms 8s3ms 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 #16
Day Hour Count Duration Avg duration Jul 14 08 1 7s712ms 7s712ms 10 4 33s601ms 8s400ms 11 1 7s936ms 7s936ms 12 2 14s934ms 7s467ms 15 2 15s854ms 7s927ms [ User: tad - Total duration: 1m20s - Times executed: 10 ]
[ Application: openbravo - Total duration: 1m20s - Times executed: 10 ]
-
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', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') 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-14 10:43:34 Duration: 9s783ms 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-14 15:06:52 Duration: 8s517ms 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-14 10:23:26 Duration: 8s388ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 8 11s207ms 1s374ms 1s481ms 1s400ms 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 #17
Day Hour Count Duration Avg duration Jul 14 12 4 5s649ms 1s412ms 15 4 5s557ms 1s389ms [ User: tad - Total duration: 11s207ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 11s207ms - Times executed: 8 ]
-
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('%220761%') 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-14 12:51:40 Duration: 1s481ms 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('%224051%') 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-14 15:52:38 Duration: 1s405ms 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('%223531%') 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-14 12:57:28 Duration: 1s401ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 8 9s987ms 1s184ms 1s367ms 1s248ms 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 #18
Day Hour Count Duration Avg duration Jul 14 12 4 5s63ms 1s265ms 15 4 4s923ms 1s230ms [ User: tad - Total duration: 9s987ms - Times executed: 8 ]
[ Application: openbravo - Total duration: 9s987ms - Times executed: 8 ]
-
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('%220761%') 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-14 12:51:41 Duration: 1s367ms 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('%224046%') 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-14 15:23:29 Duration: 1s289ms 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('%223405%') 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-14 12:43:17 Duration: 1s285ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 7 54s754ms 7s736ms 7s917ms 7s822ms 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, order0_.c_order_id limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 14 11 1 7s871ms 7s871ms 13 1 7s780ms 7s780ms 15 1 7s736ms 7s736ms 16 4 31s366ms 7s841ms [ User: tad - Total duration: 54s754ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 54s754ms - Times executed: 7 ]
-
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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 16:30:02 Duration: 7s917ms 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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 11:35:14 Duration: 7s871ms 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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 16:25:11 Duration: 7s846ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 5 3m42s 42s960ms 45s200ms 44s420ms 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 14 11 1 45s200ms 45s200ms 14 1 44s444ms 44s444ms 16 1 44s785ms 44s785ms 18 1 44s712ms 44s712ms 20 1 42s960ms 42s960ms [ User: tad - Total duration: 3m42s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m42s - 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-14 11:04:47 Duration: 45s200ms 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-14 16:03:46 Duration: 44s785ms 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-14 18:04:02 Duration: 44s712ms 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 42s960ms 45s200ms 44s420ms 5 3m42s 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 14 11 1 45s200ms 45s200ms 14 1 44s444ms 44s444ms 16 1 44s785ms 44s785ms 18 1 44s712ms 44s712ms 20 1 42s960ms 42s960ms [ User: tad - Total duration: 3m42s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m42s - 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-14 11:04:47 Duration: 45s200ms 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-14 16:03:46 Duration: 44s785ms 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-14 18:04:02 Duration: 44s712ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
2 34s914ms 38s532ms 36s458ms 5 3m2s 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 14 11 1 38s532ms 38s532ms 14 1 34s914ms 34s914ms 16 1 37s195ms 37s195ms 18 1 35s696ms 35s696ms 20 1 35s952ms 35s952ms [ User: tad - Total duration: 3m2s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m2s - 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-14 11:04:04 Duration: 38s532ms 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-14 16:03:26 Duration: 37s195ms 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-14 20:03:51 Duration: 35s952ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
3 22s504ms 24s543ms 23s253ms 15 5m48s 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 14 07 1 22s504ms 22s504ms 08 1 23s447ms 23s447ms 09 1 22s635ms 22s635ms 10 1 22s973ms 22s973ms 11 1 23s565ms 23s565ms 12 1 23s11ms 23s11ms 13 1 23s513ms 23s513ms 14 1 22s974ms 22s974ms 15 1 22s844ms 22s844ms 16 1 23s867ms 23s867ms 17 1 23s2ms 23s2ms 18 1 23s625ms 23s625ms 19 1 23s232ms 23s232ms 20 1 23s63ms 23s63ms 21 1 24s543ms 24s543ms [ User: tad - Total duration: 5m48s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m48s - 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-14 21:01:48 Duration: 24s543ms 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-14 16:01:48 Duration: 23s867ms 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-14 18:01:47 Duration: 23s625ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 1s890ms 24s545ms 16s907ms 3 50s723ms 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 14 15 1 24s545ms 24s545ms 16 1 1s890ms 1s890ms 19 1 24s287ms 24s287ms [ User: tad - Total duration: 50s723ms - Times executed: 3 ]
[ Application: openbravo - Total duration: 50s723ms - Times executed: 3 ]
-
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('15-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-14 15:27:31 Duration: 24s545ms 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-2026') AND C_ORDER.DATEORDERED < to_date('15-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-14 19:04:20 Duration: 24s287ms 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-07-2026') AND C_ORDER.DATEORDERED < to_date('15-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-14 16:14:41 Duration: 1s890ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 5s311ms 17s403ms 13s838ms 5 1m9s 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 #5
Day Hour Count Duration Avg duration Jul 14 11 1 5s311ms 5s311ms 14 1 17s403ms 17s403ms 16 1 15s142ms 15s142ms 18 1 14s140ms 14s140ms 20 1 17s194ms 17s194ms [ User: tad - Total duration: 1m9s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m9s - 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-14 14:02:42 Duration: 17s403ms 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-14 20:03:19 Duration: 17s194ms 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-14 16:03:03 Duration: 15s142ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
6 7s931ms 15s178ms 12s281ms 5 1m1s 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 #6
Day Hour Count Duration Avg duration Jul 14 11 1 14s222ms 14s222ms 14 1 10s729ms 10s729ms 16 1 7s931ms 7s931ms 18 1 13s343ms 13s343ms 20 1 15s178ms 15s178ms [ User: tad - Total duration: 1m1s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m1s - 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-14 20:03:31 Duration: 15s178ms 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-14 11:03:40 Duration: 14s222ms 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-14 18:03:44 Duration: 13s343ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
7 9s911ms 15s304ms 11s862ms 5 59s312ms 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 #7
Day Hour Count Duration Avg duration Jul 14 11 1 12s478ms 12s478ms 14 1 9s911ms 9s911ms 16 1 10s956ms 10s956ms 18 1 10s661ms 10s661ms 20 1 15s304ms 15s304ms [ User: tad - Total duration: 59s312ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 59s312ms - 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-14 20:03:18 Duration: 15s304ms 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-14 11:03:38 Duration: 12s478ms 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-14 16:03:00 Duration: 10s956ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
8 5s171ms 15s856ms 11s581ms 5 57s908ms 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 14 11 1 12s550ms 12s550ms 14 1 15s856ms 15s856ms 16 1 5s171ms 5s171ms 18 1 11s636ms 11s636ms 20 1 12s693ms 12s693ms [ User: tad - Total duration: 57s908ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 57s908ms - 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-14 14:02:41 Duration: 15s856ms 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-14 20:03:14 Duration: 12s693ms 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-14 11:03:38 Duration: 12s550ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
9 10s389ms 12s954ms 11s199ms 5 55s997ms 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 #9
Day Hour Count Duration Avg duration Jul 14 11 1 12s954ms 12s954ms 14 1 10s563ms 10s563ms 16 1 11s216ms 11s216ms 18 1 10s389ms 10s389ms 20 1 10s873ms 10s873ms [ User: tad - Total duration: 55s997ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 55s997ms - 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-14 11:03:39 Duration: 12s954ms 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-14 16:03:00 Duration: 11s216ms 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-14 20:03:12 Duration: 10s873ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
10 8s855ms 9s552ms 9s126ms 10 1m31s 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 #10
Day Hour Count Duration Avg duration Jul 14 09 1 8s859ms 8s859ms 10 4 37s697ms 9s424ms 12 3 26s938ms 8s979ms 15 2 17s770ms 8s885ms [ User: tad - Total duration: 1m31s - Times executed: 10 ]
[ Application: openbravo - Total duration: 1m31s - Times executed: 10 ]
-
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-14 10:21:27 Duration: 9s552ms 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-14 10:22:00 Duration: 9s396ms 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-14 10:23:06 Duration: 9s383ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 7s783ms 8s936ms 8s261ms 19 2m36s 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 #11
Day Hour Count Duration Avg duration Jul 14 09 1 7s783ms 7s783ms 10 9 1m16s 8s473ms 12 6 49s118ms 8s186ms 15 3 23s798ms 7s932ms [ User: tad - Total duration: 2m36s - Times executed: 19 ]
[ Application: openbravo - Total duration: 2m36s - Times executed: 19 ]
-
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-14 10:22:26 Duration: 8s936ms 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-14 10:22:25 Duration: 8s676ms 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-14 10:21:59 Duration: 8s634ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 7s893ms 8s485ms 8s172ms 5 40s860ms select count(*) as col_0_0_, sum(order0_.grandtotal) as col_1_0_, sum(order0_.totallines) as col_2_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 #12
Day Hour Count Duration Avg duration Jul 14 07 1 7s916ms 7s916ms 12 3 25s50ms 8s350ms 16 1 7s893ms 7s893ms [ User: tad - Total duration: 40s860ms - Times executed: 5 ]
[ Application: openbravo - Total duration: 40s860ms - Times executed: 5 ]
-
select count(*) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.TotalLines) as col_2_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-14 12:44:20 Duration: 8s485ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.TotalLines) as col_2_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-14 12:44:20 Duration: 8s415ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.TotalLines) as col_2_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-14 12:42:38 Duration: 8s149ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 7s337ms 9s783ms 8s3ms 10 1m20s 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 14 08 1 7s712ms 7s712ms 10 4 33s601ms 8s400ms 11 1 7s936ms 7s936ms 12 2 14s934ms 7s467ms 15 2 15s854ms 7s927ms [ User: tad - Total duration: 1m20s - Times executed: 10 ]
[ Application: openbravo - Total duration: 1m20s - Times executed: 10 ]
-
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', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033', '547464619E3348369E774BA8164BD820', '4336B51A28B149DF911A36B0D3F03677') 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-14 10:43:34 Duration: 9s783ms 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-14 15:06:52 Duration: 8s517ms 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-14 10:23:26 Duration: 8s388ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 7s624ms 8s387ms 7s972ms 11 1m27s 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 14 10 2 16s299ms 8s149ms 12 1 7s980ms 7s980ms 15 3 23s126ms 7s708ms 16 5 40s295ms 8s59ms [ User: tad - Total duration: 1m27s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m27s - Times executed: 11 ]
-
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-14 10:19:46 Duration: 8s387ms 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-14 16:02:15 Duration: 8s238ms 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-14 16:42:26 Duration: 8s210ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 7s736ms 7s917ms 7s822ms 7 54s754ms 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, order0_.c_order_id limit ?;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jul 14 11 1 7s871ms 7s871ms 13 1 7s780ms 7s780ms 15 1 7s736ms 7s736ms 16 4 31s366ms 7s841ms [ User: tad - Total duration: 54s754ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 54s754ms - Times executed: 7 ]
-
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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 16:30:02 Duration: 7s917ms 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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 11:35:14 Duration: 7s871ms 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)) > '99' 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, order0_.C_Order_ID limit '101';
Date: 2026-07-14 16:25:11 Duration: 7s846ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 3s612ms 6s905ms 3s929ms 24 1m34s 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 14 08 2 10s672ms 5s336ms 09 2 7s435ms 3s717ms 10 3 11s389ms 3s796ms 11 3 11s660ms 3s886ms 12 4 15s377ms 3s844ms 13 2 7s382ms 3s691ms 14 3 11s283ms 3s761ms 15 3 11s688ms 3s896ms 16 2 7s408ms 3s704ms [ User: tad - Total duration: 1m34s - Times executed: 24 ]
[ Application: openbravo - Total duration: 1m34s - Times executed: 24 ]
-
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 = '15A5BCA0BE7944C5893E502B7C5827E60928AC21B14E24C3C9ED358EBE6E9BD5Bpendingpurchase';
Date: 2026-07-14 08:43:46 Duration: 6s905ms 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 = '44E9FE7932BE474DB9FDA0A72B060A310928AC21B14E24C3C9ED358EBE6E9BD5Bpendingpurchase';
Date: 2026-07-14 15:04:54 Duration: 4s190ms 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 = '0DC9873272034AF68E15049BDA57E6B6006B0DBE5CA984B188585E4A2062CB02Apendingpurchase';
Date: 2026-07-14 11:04:40 Duration: 4s173ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 3s704ms 4s140ms 3s882ms 63 4m4s 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 #17
Day Hour Count Duration Avg duration Jul 14 10 4 15s603ms 3s900ms 11 11 43s806ms 3s982ms 12 14 54s309ms 3s879ms 13 3 11s277ms 3s759ms 14 2 7s594ms 3s797ms 15 12 46s470ms 3s872ms 16 9 35s30ms 3s892ms 17 7 26s558ms 3s794ms 18 1 3s915ms 3s915ms [ User: tad - Total duration: 4m4s - Times executed: 63 ]
[ Application: openbravo - Total duration: 4m4s - Times executed: 63 ]
-
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-14 11:48:59 Duration: 4s140ms 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-14 11:49:35 Duration: 4s132ms 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-14 15:24:23 Duration: 4s127ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 3s183ms 3s707ms 3s341ms 33 1m50s 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 #18
Day Hour Count Duration Avg duration Jul 14 12 7 24s69ms 3s438ms 13 15 49s688ms 3s312ms 15 2 6s736ms 3s368ms 17 3 10s70ms 3s356ms 18 6 19s692ms 3s282ms [ User: tad - Total duration: 1m50s - Times executed: 33 ]
[ Application: openbravo - Total duration: 1m50s - Times executed: 33 ]
-
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-14 13:00:02 Duration: 3s707ms 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-14 12:52:15 Duration: 3s578ms 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-14 12:49:32 Duration: 3s508ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 2s336ms 3s107ms 2s560ms 170 7m15s 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 #19
Day Hour Count Duration Avg duration Jul 14 08 7 17s942ms 2s563ms 09 13 32s277ms 2s482ms 10 15 37s906ms 2s527ms 11 27 1m10s 2s602ms 12 23 58s831ms 2s557ms 13 10 25s277ms 2s527ms 14 17 43s768ms 2s574ms 15 27 1m9s 2s565ms 16 21 54s351ms 2s588ms 17 8 20s418ms 2s552ms 18 2 5s41ms 2s520ms [ User: tad - Total duration: 7m15s - Times executed: 170 ]
[ Application: openbravo - Total duration: 7m15s - Times executed: 170 ]
-
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 ('2ECEE9B6A7894EDCB3924B098E28C358')) order by m_inout.documentno;
Date: 2026-07-14 11:47:38 Duration: 3s107ms 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 ('AC9BC2FB6DC446BE951B8A89F5431861')) order by m_inout.documentno;
Date: 2026-07-14 16:38:23 Duration: 3s12ms 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 ('CB85114E7BBF474FA8FBBC19B44D594F')) order by m_inout.documentno;
Date: 2026-07-14 16:59:09 Duration: 2s989ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s709ms 6s450ms 2s177ms 15 32s669ms 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 #20
Day Hour Count Duration Avg duration Jul 14 07 1 1s709ms 1s709ms 08 1 1s818ms 1s818ms 09 1 1s741ms 1s741ms 10 1 1s780ms 1s780ms 11 1 6s450ms 6s450ms 12 1 1s933ms 1s933ms 13 1 2s282ms 2s282ms 14 1 1s833ms 1s833ms 15 1 1s825ms 1s825ms 16 1 1s905ms 1s905ms 17 1 2s104ms 2s104ms 18 1 1s833ms 1s833ms 19 1 1s829ms 1s829ms 20 1 1s767ms 1s767ms 21 1 1s853ms 1s853ms [ User: tad - Total duration: 32s669ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 32s669ms - 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-14 11:01:55 Duration: 6s450ms 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-14 13:01:51 Duration: 2s282ms 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-14 17:01:50 Duration: 2s104ms 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
- 20,274 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 65 FATAL entries
- 9 ERROR entries
- 0 WARNING entries
- 15 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 26 Max number of times the same event was reported
- 89 Total events found
Rank Times reported Error 1 26 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", no encryption
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 14 07 9 08 4 10 1 11 1 13 2 14 1 16 4 18 1 20 1 21 2 - FATAL: no pg_hba.conf entry for host "85.11.167.7", user "wog", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "85.11.167.7", user "postgres", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "85.11.167.7", user "strapi", database "strapi", no encryption
Date: 2026-07-14 07:47:38 Database: postgres Application: [unknown] User: wog Remote: 85.11.167.7
Date: 2026-07-14 07:48:06 Database: postgres Application: [unknown] User: postgres Remote: 85.11.167.7
Date: 2026-07-14 07:48:48 Database: strapi Application: [unknown] User: strapi Remote: 85.11.167.7
2 17 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", SSL encryption
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 14 08 14 13 2 20 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-14 08:16:21 Database: postgres Application: [unknown] User: postgres Remote: 213.209.159.66
Date: 2026-07-14 08:18:00 Database: postgres Application: [unknown] User: postgres Remote: 213.209.159.66
Date: 2026-07-14 08:19:54 Database: postgres Application: [unknown] User: postgres Remote: 213.209.159.66
3 13 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 14 12 1 13 2 14 1 15 1 16 2 18 2 19 2 21 2 - 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-14 12:08:19 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
Date: 2026-07-14 13:36:34 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
Date: 2026-07-14 13:37:34 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
4 8 FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 14 07 1 08 1 16 3 18 1 19 1 20 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-14 07:03:25 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.172.133
Date: 2026-07-14 08:02:25 Database: [unknown] Application: [unknown] User: [unknown] Remote: 213.209.159.66
Date: 2026-07-14 16:25:43 Database: [unknown] Application: [unknown] User: [unknown] Remote: 147.182.213.43
5 6 FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 14 07 1 08 1 16 1 18 1 19 1 20 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-14 07:03:25 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.172.133
Date: 2026-07-14 08:02:25 Database: [unknown] Application: [unknown] User: [unknown] Remote: 213.209.159.66
Date: 2026-07-14 16:25:43 Database: [unknown] Application: [unknown] User: [unknown] Remote: 147.182.213.43
6 5 FATAL: no PostgreSQL user name specified in startup packet
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 14 07 1 08 1 18 1 19 1 20 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-14 07:03:26 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.172.133
Date: 2026-07-14 08:02:25 Database: [unknown] Application: [unknown] User: [unknown] Remote: 213.209.159.66
Date: 2026-07-14 18:08:27 Database: [unknown] Application: [unknown] User: [unknown] Remote: 64.62.156.38
7 3 ERROR: @PRUTI_PRODUCT_WITH_SUPPLIER@
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 14 11 3 - ERROR: @PRUTI_PRODUCT_WITH_SUPPLIER@
- ERROR: @PRUTI_PRODUCT_WITH_SUPPLIER@
- ERROR: @PRUTI_PRODUCT_WITH_SUPPLIER@
Context: PL/pgSQL function pruti_unique_supplier_trg() line 16 at RAISE
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, UPC, Discontinued, M_Product_PO_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)Date: 2026-07-14 11:25:39 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function pruti_unique_supplier_trg() line 16 at RAISE
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, UPC, Discontinued, M_Product_PO_ID) values ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16)Date: 2026-07-14 11:26:02 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function pruti_unique_supplier_trg() line 16 at RAISE
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-14 11:26:04 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
8 3 FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 14 14 1 16 2 - 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-14 14:33:17 Database: [unknown] Application: [unknown] User: [unknown] Remote: 45.33.14.5
Date: 2026-07-14 16:25:34 Database: [unknown] Application: [unknown] User: [unknown] Remote: 137.184.147.50
Date: 2026-07-14 16:57:46 Database: [unknown] Application: [unknown] User: [unknown] Remote: 159.223.110.222
9 2 ERROR: incomplete startup packet
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 14 12 1 18 1 - ERROR: incomplete startup packet
- ERROR: incomplete startup packet
Date: 2026-07-14 12:34:31 Database: [unknown] Application: [unknown] User: [unknown] Remote: 103.171.1.148
Date: 2026-07-14 18:00:54 Database: [unknown] Application: [unknown] User: [unknown] Remote: 195.178.110.137
10 2 ERROR: @ec_duplicity_orderref@ 4563885606
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 14 15 2 - ERROR: @ec_duplicity_orderref@ 4563885606
- ERROR: @ec_duplicity_orderref@ 4563885606
Context: PL/pgSQL function ec_c_order_ref_trg() line 24 at RAISE
Statement: insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, POReference, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, FreightAmt, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Ec_Isproforma, EM_Obwpl_Readypl, EM_OBMFM_Set_Weight, EM_Ml_Select_Product, Confirmcancelandreplace, EM_Etpr_Remove_Payment, EM_Etblkc_Bulkcompletion, Iscancelled, EM_Etafdp_Undoclose, EM_Ec_Deprocessbtn, EM_Prpp_Generatepicking, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prpres_Void_Order, EM_Prouti_Generate_Pick_Inv, EM_Ec_Changewarehouse, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, em_prouti_Invoiced, em_prouti_Received, EM_Prpres_Isgift, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Ml_Select_Product_Byattrib, EM_Prpres_Processing, EM_Prouti_Addlines_Btn, EM_Prpres_Generatepicking, EM_Prouti_Changebpartner_Bgt, EM_Pruti_Ignoreminqty, EM_Prouti_Reset_Initial_Values, EM_Prouti_Select_Soline, C_Order_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, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101)Date: 2026-07-14 15:38:21 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function ec_c_order_ref_trg() line 24 at RAISE
Statement: insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, POReference, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, FreightAmt, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Ec_Isproforma, EM_Obwpl_Readypl, EM_OBMFM_Set_Weight, EM_Ml_Select_Product, Confirmcancelandreplace, EM_Etpr_Remove_Payment, EM_Etblkc_Bulkcompletion, Iscancelled, EM_Etafdp_Undoclose, EM_Ec_Deprocessbtn, EM_Prpp_Generatepicking, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prpres_Void_Order, EM_Prouti_Generate_Pick_Inv, EM_Ec_Changewarehouse, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, em_prouti_Invoiced, em_prouti_Received, EM_Prpres_Isgift, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Ml_Select_Product_Byattrib, EM_Prpres_Processing, EM_Prouti_Addlines_Btn, EM_Prpres_Generatepicking, EM_Prouti_Changebpartner_Bgt, EM_Pruti_Ignoreminqty, EM_Prouti_Reset_Initial_Values, EM_Prouti_Select_Soline, C_Order_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, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101)Date: 2026-07-14 15:39:08 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
11 1 ERROR: @ec_duplicity_orderref@ 81970
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 14 13 1 - ERROR: @ec_duplicity_orderref@ 81970
Context: PL/pgSQL function ec_c_order_ref_trg() line 24 at RAISE
Statement: insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, POReference, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, FreightAmt, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Ec_Isproforma, EM_Obwpl_Readypl, EM_OBMFM_Set_Weight, EM_Ml_Select_Product, Confirmcancelandreplace, EM_Etpr_Remove_Payment, EM_Etblkc_Bulkcompletion, Iscancelled, EM_Etafdp_Undoclose, EM_Ec_Deprocessbtn, EM_Prpp_Generatepicking, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prpres_Void_Order, EM_Prouti_Generate_Pick_Inv, EM_Ec_Changewarehouse, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, em_prouti_Invoiced, em_prouti_Received, EM_Prpres_Isgift, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Ml_Select_Product_Byattrib, EM_Prpres_Processing, EM_Prouti_Addlines_Btn, EM_Prpres_Generatepicking, EM_Prouti_Changebpartner_Bgt, EM_Pruti_Ignoreminqty, EM_Prouti_Reset_Initial_Values, EM_Prouti_Select_Soline, C_Order_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, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101)Date: 2026-07-14 13:24:52 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
12 1 ERROR: @ec_duplicity_orderref@ 4564436499
Times Reported Most Frequent Error / Event #12
Day Hour Count Jul 14 11 1 - ERROR: @ec_duplicity_orderref@ 4564436499
Context: PL/pgSQL function ec_c_order_ref_trg() line 24 at RAISE
Statement: insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, POReference, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, FreightAmt, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Ec_Isproforma, EM_Obwpl_Readypl, EM_OBMFM_Set_Weight, EM_Ml_Select_Product, Confirmcancelandreplace, EM_Etpr_Remove_Payment, EM_Etblkc_Bulkcompletion, Iscancelled, EM_Etafdp_Undoclose, EM_Ec_Deprocessbtn, EM_Prpp_Generatepicking, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prpres_Void_Order, EM_Prouti_Generate_Pick_Inv, EM_Ec_Changewarehouse, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, em_prouti_Invoiced, em_prouti_Received, EM_Prpres_Isgift, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Ml_Select_Product_Byattrib, EM_Prpres_Processing, EM_Prouti_Addlines_Btn, EM_Prpres_Generatepicking, EM_Prouti_Changebpartner_Bgt, EM_Pruti_Ignoreminqty, EM_Prouti_Reset_Initial_Values, EM_Prouti_Select_Soline, C_Order_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, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101)Date: 2026-07-14 11:04:16 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
13 1 ERROR: @ProductChangeLineInReservation@
Times Reported Most Frequent Error / Event #13
Day Hour Count Jul 14 16 1 - ERROR: @ProductChangeLineInReservation@
Context: PL/pgSQL function c_orderline_trg() line 150 at RAISE
Statement: update C_OrderLine set Updated=$1, M_Product_ID=$2, PriceList=$3, PriceActual=$4, PriceLimit=$5, LineNetAmt=$6, PriceStd=$7, Taxbaseamt=$8 where C_OrderLine_ID=$9Date: 2026-07-14 16:33:38 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
14 1 ERROR: @ec_duplicity_orderref@ PULSADOR KONE
Times Reported Most Frequent Error / Event #14
Day Hour Count Jul 14 09 1 - ERROR: @ec_duplicity_orderref@ PULSADOR KONE
Context: PL/pgSQL function ec_c_order_ref_trg() line 24 at RAISE
Statement: insert into C_Order (AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, IsSOTrx, DocumentNo, DocStatus, DocAction, Processing, Processed, C_DocType_ID, C_DocTypeTarget_ID, IsDelivered, IsInvoiced, IsPrinted, IsSelected, SalesRep_ID, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, POReference, IsDiscountPrinted, C_Currency_ID, PaymentRule, C_PaymentTerm_ID, InvoiceRule, DeliveryRule, FreightCostRule, FreightAmt, DeliveryViaRule, ChargeAmt, PriorityRule, TotalLines, GrandTotal, M_Warehouse_ID, M_PriceList_ID, IsTaxIncluded, Posted, AD_User_ID, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, EM_OBMFM_Selectfreight, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Ec_Isproforma, EM_Obwpl_Readypl, EM_OBMFM_Set_Weight, EM_Ml_Select_Product, Confirmcancelandreplace, EM_Etpr_Remove_Payment, EM_Etblkc_Bulkcompletion, Iscancelled, EM_Etafdp_Undoclose, EM_Ec_Deprocessbtn, EM_Prpp_Generatepicking, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Prpres_Void_Order, EM_Prouti_Generate_Pick_Inv, EM_Ec_Changewarehouse, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Prouti_Reactiveorder, em_prouti_Invoiced, em_prouti_Received, EM_Prpres_Isgift, em_prouti_initial_received, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Ml_Select_Product_Byattrib, EM_Prpres_Processing, EM_Prouti_Addlines_Btn, EM_Prpres_Generatepicking, EM_Prouti_Changebpartner_Bgt, EM_Pruti_Ignoreminqty, EM_Prouti_Reset_Initial_Values, EM_Prouti_Select_Soline, C_Order_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, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49, $50, $51, $52, $53, $54, $55, $56, $57, $58, $59, $60, $61, $62, $63, $64, $65, $66, $67, $68, $69, $70, $71, $72, $73, $74, $75, $76, $77, $78, $79, $80, $81, $82, $83, $84, $85, $86, $87, $88, $89, $90, $91, $92, $93, $94, $95, $96, $97, $98, $99, $100, $101)Date: 2026-07-14 09:22:55 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1