-
Global information
- Generated on Fri Jul 17 23:00:09 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 83,703 log entries in 7s
- Log start from 2026-07-17 07:00:01 to 2026-07-17 21:59:59
-
Overview
Global Stats
- 73 Number of unique normalized queries
- 849 Number of queries
- 2h23m57s Total query duration
- 2026-07-17 07:00:02 First query
- 2026-07-17 21:01:54 Last query
- 3 queries/s at 2026-07-17 15:32:18 Query peak
- 2h23m57s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 2h23m57s Execute total duration
- 570 Number of events
- 14 Number of unique normalized events
- 535 Max number of times the same event was reported
- 0 Number of cancellation
- 251 Total number of automatic vacuums
- 367 Total number of automatic analyzes
- 394 Number temporary file
- 194.45 MiB Max size of temporary file
- 30.67 MiB Average size of temporary file
- 3,543 Total number of sessions
- 127 sessions at 2026-07-17 21:00:02 Session peak
- 4d2h58m34s Total duration of sessions
- 1m40s Average duration of sessions
- 0 Average queries per session
- 2s437ms Average queries duration per session
- 1m38s Average idle time per session
- 4,441 Total number of connections
- 6 connections/s at 2026-07-17 21:00:00 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 3 queries/s Query Peak
- 2026-07-17 15:32:18 Date
SELECT Traffic
Key values
- 3 queries/s Query Peak
- 2026-07-17 15:32:18 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 0 queries/s Query Peak
- Date
Queries duration
Key values
- 2h23m57s 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 17 07 22 0ms 22s982ms 2s330ms 2s360ms 6s376ms 25s922ms 08 30 0ms 23s955ms 3s813ms 7s4ms 11s902ms 26s975ms 09 101 0ms 16m40s 13s275ms 17s906ms 22s576ms 17m7s 10 87 0ms 23s400ms 3s138ms 15s129ms 19s176ms 34s541ms 11 56 0ms 50s810ms 6s142ms 9s960ms 33s965ms 1m47s 12 64 0ms 23s973ms 3s802ms 10s576ms 17s603ms 30s929ms 13 54 0ms 24s93ms 3s78ms 8s441ms 11s168ms 33s941ms 14 52 0ms 43s224ms 5s681ms 7s681ms 32s390ms 1m22s 15 163 0ms 23s660ms 2s647ms 20s90ms 22s759ms 36s946ms 16 68 0ms 18m37s 37s810ms 13s971ms 45s651ms 37m18s 17 60 0ms 16m50s 36s531ms 13s282ms 29s422ms 16m51s 18 70 0ms 43s620ms 5s202ms 24s556ms 26s688ms 2m26s 19 4 0ms 23s498ms 6s958ms 0ms 0ms 26s638ms 20 14 0ms 45s172ms 13s828ms 0ms 2s829ms 2m44s 21 4 0ms 24s645ms 7s232ms 0ms 0ms 27s889ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 22 0 2s330ms 0ms 2s360ms 7s860ms 08 30 0 3s813ms 2s925ms 7s4ms 21s683ms 09 101 0 13s275ms 10s232ms 17s906ms 26s518ms 10 87 0 3s138ms 7s567ms 15s129ms 20s34ms 11 56 0 6s142ms 6s437ms 9s960ms 1m11s 12 64 0 3s802ms 7s958ms 10s576ms 17s910ms 13 54 0 3s78ms 6s9ms 8s441ms 15s83ms 14 52 0 5s681ms 4s83ms 7s681ms 1m17s 15 163 0 2s647ms 12s767ms 20s90ms 35s967ms 16 68 0 37s810ms 5s348ms 13s971ms 2m2s 17 60 0 36s531ms 7s844ms 13s282ms 16m31s 18 70 0 5s202ms 4s189ms 24s556ms 35s251ms 19 4 0 6s958ms 0ms 0ms 1s197ms 20 14 0 13s828ms 0ms 0ms 26s451ms 21 4 0 7s232ms 0ms 0ms 1s40ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 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 17 07 0 21 21.00 0.00% 08 0 29 29.00 0.00% 09 0 100 100.00 0.00% 10 0 86 86.00 0.00% 11 0 55 55.00 0.00% 12 0 63 63.00 0.00% 13 0 53 53.00 0.00% 14 0 51 51.00 0.00% 15 0 162 162.00 0.00% 16 0 67 67.00 0.00% 17 0 59 59.00 0.00% 18 0 69 69.00 0.00% 19 0 3 3.00 0.00% 20 0 13 13.00 0.00% 21 0 3 3.00 0.00% Day Hour Count Average / Second Jul 17 07 278 0.08/s 08 286 0.08/s 09 296 0.08/s 10 296 0.08/s 11 312 0.09/s 12 323 0.09/s 13 287 0.08/s 14 301 0.08/s 15 303 0.08/s 16 316 0.09/s 17 301 0.08/s 18 295 0.08/s 19 277 0.08/s 20 287 0.08/s 21 283 0.08/s Day Hour Count Average Duration Average idle time Jul 17 07 217 35ms 0ms 08 225 1m59s 1m58s 09 236 3m23s 3m18s 10 237 58s690ms 57s538ms 11 251 2m37s 2m35s 12 259 2m13s 2m12s 13 232 1m1s 1m1s 14 239 1m20s 1m19s 15 244 2m37s 2m35s 16 253 1m43s 1m33s 17 246 2m10s 2m1s 18 236 51s68ms 49s525ms 19 217 37ms 0ms 20 228 1m27s 1m26s 21 223 2m19s 2m19s -
Connections
Established Connections
Key values
- 6 connections Connection Peak
- 2026-07-17 21:00:00 Date
Connections per database
Key values
- etendo Main Database
- 4,441 connections Total
Connections per user
Key values
- tad Main User
- 4,441 connections Total
-
Sessions
Simultaneous sessions
Key values
- 127 sessions Session Peak
- 2026-07-17 21:00:02 Date
Histogram of session times
Key values
- 3,226 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,543 sessions Total
Sessions per user
Key values
- tad Main User
- 3,543 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,543 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 16,830 buffers Checkpoint Peak
- 2026-07-17 13:10:10 Date
- 270.019 seconds Highest write time
- 0.010 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-17 15:39:59 Date
Checkpoints distance
Key values
- 203.72 Mo Distance Peak
- 2026-07-17 13:10:10 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 17 07 3,567 353.829s 0.026s 353.897s 08 6,998 697.022s 0.039s 697.126s 09 21,351 1,714.8s 0.04s 1,714.924s 10 16,321 1,621.484s 0.048s 1,621.611s 11 22,341 2,077.479s 0.059s 2,077.627s 12 20,584 2,038.923s 0.048s 2,039.066s 13 30,099 1,353.446s 0.03s 1,353.584s 14 9,809 967.099s 0.024s 967.175s 15 23,877 2,248.961s 0.055s 2,249.093s 16 22,821 2,279.712s 0.054s 2,279.858s 17 24,376 2,218.155s 0.058s 2,218.298s 18 15,891 1,281.876s 0.031s 1,281.978s 19 3,855 388.995s 0.022s 389.067s 20 5,515 409.689s 0.025s 409.77s 21 3,935 410.131s 0.019s 410.187s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 17 07 0 1 0 1,139 0.002s 0.012s 08 0 3 0 1,528 0.002s 0.012s 09 0 8 0 2,606 0.002s 0.012s 10 0 5 0 2,990 0.002s 0.012s 11 0 8 0 3,215 0.004s 0.012s 12 0 6 0 2,837 0.002s 0.012s 13 0 11 0 2,039 0.002s 0.012s 14 0 2 0 952 0.002s 0.012s 15 0 7 0 2,825 0.002s 0.012s 16 0 7 0 3,002 0.002s 0.012s 17 0 8 0 3,009 0.002s 0.012s 18 0 5 0 1,659 0.003s 0.012s 19 0 1 0 733 0.002s 0.012s 20 0 2 0 572 0.002s 0.012s 21 0 1 0 412 0.002s 0.012s Day Hour Count Avg time (sec) Jul 17 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 17 07 1,638.75 kB 17,404.00 kB 08 3,171.08 kB 7,265.25 kB 09 11,571.25 kB 35,008.42 kB 10 6,831.83 kB 15,447.17 kB 11 10,181.67 kB 16,785.58 kB 12 8,737.08 kB 13,644.58 kB 13 14,583.92 kB 64,210.42 kB 14 2,479.92 kB 21,607.50 kB 15 9,929.33 kB 13,411.00 kB 16 10,093.50 kB 14,162.83 kB 17 10,426.33 kB 17,503.83 kB 18 6,649.00 kB 26,293.75 kB 19 1,639.17 kB 8,887.67 kB 20 2,340.67 kB 13,617.25 kB 21 1,411.42 kB 6,436.50 kB -
Temporary Files
Size of temporary files
Key values
- 194.45 MiB Temp Files size Peak
- 2026-07-17 18:11:23 Date
Number of temporary files
Key values
- 3 per second Temp Files Peak
- 2026-07-17 13:04:07 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 17 07 0 0 0 08 14 407.35 MiB 29.10 MiB 09 63 1.71 GiB 27.79 MiB 10 50 1.42 GiB 29.10 MiB 11 38 1.05 GiB 28.28 MiB 12 34 934.54 MiB 27.49 MiB 13 24 756.93 MiB 31.54 MiB 14 11 316.42 MiB 28.77 MiB 15 80 2.17 GiB 27.73 MiB 16 27 782.22 MiB 28.97 MiB 17 21 583.84 MiB 27.80 MiB 18 29 1.68 GiB 59.35 MiB 19 0 0 0 20 3 83.59 MiB 27.86 MiB 21 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 356 10.12 GiB 15.78 MiB 42.44 MiB 29.10 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 ('24CBEFE8194F4D17B3138C4AC7DF86C5')) order by m_inout.documentno;
Date: 2026-07-17 12:07:07 Duration: 3s221ms 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 ('685BADFEF7C54DCAA1A22B657FCCFAD9')) order by m_inout.documentno;
Date: 2026-07-17 11:04:54 Duration: 2s857ms 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 ('DA863C0B6A314ABA92D7A21925B0D62F')) order by m_inout.documentno;
Date: 2026-07-17 11:05:07 Duration: 2s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 11 17.62 MiB 1.60 MiB 1.61 MiB 1.60 MiB select id, c_order_id, documentno, dateordered, c_bpartner_id, partner_name, product_value, product_id, product_name, description, attributeid, total_qty, qtyordered, mlocatorid, mlocatorname, orderlineid, qtypending, isactive, ? as date_format, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = ? where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, ?)), ?) as uomsymbol, conversionrate, c_aum as alternativeuom from ( select c_orderline.c_orderline_id as id, c_order.c_order_id as c_order_id, c_order.documentno || ? || to_char(c_order.dateordered, ?) || ? || to_char(c_order.datepromised, ?) as documentno, c_order.dateordered as dateordered, c_bpartner.c_bpartner_id as c_bpartner_id, c_bpartner.name || ? || c_bpartner.name2 as partner_name, c_orderline.m_product_id as product_id, ad_column_identifier (to_char(?), to_char(c_orderline.m_product_id), to_char(?)) as product_name, ( select value from m_product where m_product_id = c_orderline.m_product_id) as product_value, m_attributesetinstance.description as description, m_attributesetinstance.m_attributesetinstance_id as attributeid, coalesce(c_orderline.aumqty, c_orderline.qtyordered) as total_qty, coalesce(c_orderline.aumqty, c_orderline.qtyordered) - round((sum(coalesce(m_matchpo.qty, ?)) * round((coalesce(c_orderline.aumqty, c_orderline.qtyordered) / c_orderline.qtyordered), ?)), ?) as qtypending, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then (c_orderline.qtyordered - sum(coalesce(m_matchpo.qty, ?))) else ? end as qtyordered, ? as isactive, c_orderline.line, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorid, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorname, c_orderline.c_orderline_id as orderlineid, null as c_aum, c_orderline.c_uom_id, ? as conversionrate from c_orderline left join m_matchpo on c_orderline.c_orderline_id = m_matchpo.c_orderline_id and m_matchpo.m_inoutline_id is not null left join m_attributesetinstance on c_orderline.m_attributesetinstance_id = m_attributesetinstance.m_attributesetinstance_id, c_order, c_bpartner, c_doctype where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_orderline.qtyordered != ? and c_order.c_order_id = c_orderline.c_order_id and c_order.ad_client_id in (...) and c_order.ad_org_id in (...) and c_order.issotrx = ? and c_order.documentno like ? and c_order.docstatus = ? and c_order.c_doctype_id = c_doctype.c_doctype_id and c_doctype.isreturn = ? group by c_orderline.c_orderline_id, c_order.c_order_id, c_order.documentno, c_order.dateordered, c_bpartner.c_bpartner_id, c_bpartner.name, c_bpartner.name2, c_orderline.m_product_id, m_attributesetinstance.description, m_attributesetinstance.m_attributesetinstance_id, c_orderline.qtyordered, c_orderline.line) a where ( case when total_qty < ? then ? else ? end) = ( case when qtypending < ? then ? else ? end) and qtypending <> ? order by c_bpartner_id, documentno, line;-
SELECT ID, C_ORDER_ID, DOCUMENTNO, DATEORDERED, C_BPARTNER_ID, PARTNER_NAME, PRODUCT_VALUE, PRODUCT_ID, PRODUCT_NAME, DESCRIPTION, ATTRIBUTEID, TOTAL_QTY, QTYORDERED, MLOCATORID, MLOCATORNAME, ORDERLINEID, QTYPENDING, ISACTIVE, 'DD-MM-YYYY' AS DATE_FORMAT, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = 'es_ES' where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, '')), '') as uomsymbol, conversionrate, c_aum as alternativeuom FROM ( SELECT C_ORDERLINE.C_ORDERLINE_ID AS ID, C_ORDER.C_ORDER_ID AS C_ORDER_ID, C_ORDER.DOCUMENTNO || ' - ' || TO_CHAR(C_ORDER.DATEORDERED, 'DD-MM-YYYY') || ' / ' || TO_CHAR(C_ORDER.DATEPROMISED, 'DD-MM-YYYY') AS DOCUMENTNO, C_ORDER.DATEORDERED AS DATEORDERED, C_BPARTNER.C_BPARTNER_ID AS C_BPARTNER_ID, C_BPARTNER.NAME || ' - ' || C_BPARTNER.NAME2 AS PARTNER_NAME, C_ORDERLINE.M_PRODUCT_ID AS PRODUCT_ID, AD_COLUMN_IDENTIFIER (TO_CHAR('M_Product'), TO_CHAR(C_ORDERLINE.M_PRODUCT_ID), TO_CHAR('es_ES')) AS PRODUCT_NAME, ( select VALUE from M_PRODUCT where M_PRODUCT_ID = C_ORDERLINE.M_PRODUCT_ID) as PRODUCT_VALUE, M_ATTRIBUTESETINSTANCE.DESCRIPTION AS DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID AS ATTRIBUTEID, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) AS TOTAL_QTY, coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) - round((SUM(COALESCE(M_MATCHPO.QTY, 0)) * round((coalesce(c_orderline.aumqty, C_ORDERLINE.QTYORDERED) / C_ORDERLINE.QTYORDERED), 20)), 2) AS QTYPENDING, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'PROUTI_ShowPendingQty') = 'Y' then (C_ORDERLINE.QTYORDERED - SUM(COALESCE(M_MATCHPO.QTY, 0))) else 0 end as QTYORDERED, '-1' AS ISACTIVE, C_ORDERLINE.LINE, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT msb.m_locator_id FROM prouti_multi_storage_bin msb LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.m_locator_id FROM m_locator loc WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORID, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_MultiStorageBin') = 'Y' then case when ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( SELECT loc.value FROM prouti_multi_storage_bin msb LEFT JOIN m_locator loc on msb.m_locator_id = loc.m_locator_id LEFT JOIN m_product prod on msb.m_product_id = prod.m_product_id LEFT JOIN c_order co on co.c_order_id = c_orderline.c_order_id LEFT JOIN m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id WHERE prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, 'Prouti_ShowDefaultStorageBin') = 'Y' then ( SELECT loc.value || ' - ' || ware.name FROM m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id WHERE loc.m_warehouse_id = c_order.m_warehouse_id and loc.IsDefault = 'Y' LIMIT 1) else null end end as MLOCATORNAME, C_ORDERLINE.C_ORDERLINE_ID as ORDERLINEID, null as c_aum, c_orderline.c_uom_id, 1 as conversionrate FROM C_ORDERLINE left join M_MATCHPO on C_ORDERLINE.C_ORDERLINE_ID = M_MATCHPO.C_ORDERLINE_ID and M_MATCHPO.M_INOUTLINE_ID IS NOT NULL left join M_ATTRIBUTESETINSTANCE on C_ORDERLINE.M_ATTRIBUTESETINSTANCE_ID = M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDER, C_BPARTNER, C_DOCTYPE WHERE C_ORDER.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID AND C_ORDERLINE.QTYORDERED != 0 AND C_ORDER.C_ORDER_ID = C_ORDERLINE.C_ORDER_ID AND C_ORDER.AD_CLIENT_ID IN ('0', 'CFEDC17130E14D2BAE431B401DF89CF1') AND C_ORDER.AD_ORG_ID IN ('F7EA3492149E4357B7FCFAE16C7F027F') AND C_ORDER.ISSOTRX = 'N' AND C_ORDER.DOCUMENTNO LIKE '%' AND C_ORDER.DOCSTATUS = 'CO' AND C_ORDER.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID AND C_DOCTYPE.ISRETURN = 'N' GROUP BY C_ORDERLINE.C_ORDERLINE_ID, C_ORDER.C_ORDER_ID, C_ORDER.DOCUMENTNO, C_ORDER.DATEORDERED, C_BPARTNER.C_BPARTNER_ID, C_BPARTNER.NAME, C_BPARTNER.NAME2, C_ORDERLINE.M_PRODUCT_ID, M_ATTRIBUTESETINSTANCE.DESCRIPTION, M_ATTRIBUTESETINSTANCE.M_ATTRIBUTESETINSTANCE_ID, C_ORDERLINE.QTYORDERED, C_ORDERLINE.LINE) A WHERE ( CASE WHEN Total_Qty < 0 THEN -1 ELSE 1 END) = ( CASE WHEN QTYPENDING < 0 THEN -1 ELSE 1 End) AND QTYPENDING <> 0 ORDER BY C_BPARTNER_ID, DOCUMENTNO, LINE;
Date: 2026-07-17 17:23:22 Duration: 7s844ms 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-17 12:13:51 Duration: 7s837ms 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-17 09:08:33 Duration: 7s792ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 10 273.77 MiB 23.30 MiB 33.27 MiB 27.38 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-17 14:04:52 Duration: 22s279ms 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-17 16:04:36 Duration: 20s879ms 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-17 11:03:35 Duration: 17s583ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
4 5 144.12 MiB 22.51 MiB 32.88 MiB 28.82 MiB select "_"."c_order_id", ;-
select "_"."c_order_id", ;
Date: 2026-07-17 11:03:35 Duration: 0ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine
5 4 155.36 MiB 14.86 MiB 62.82 MiB 38.84 MiB select fin_paymen0_.fin_payment_scheduledetail_id as col_0_0_, ( select adlist7_.seqno from ad_ref_list adlist7_ where adlist7_.ad_reference_id = ? and adlist7_.value = coalesce(fin_paymen2_.status, ?)) as col_1_0_ from fin_payment_scheduledetail fin_paymen0_ left outer join fin_payment_detail fin_paymen1_ on fin_paymen0_.fin_payment_detail_id = fin_paymen1_.fin_payment_detail_id left outer join fin_payment fin_paymen2_ on fin_paymen1_.fin_payment_id = fin_paymen2_.fin_payment_id left outer join fin_payment_schedule fin_paymen3_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen3_.fin_payment_schedule_id left outer join c_invoice invoice4_ on fin_paymen3_.c_invoice_id = invoice4_.c_invoice_id left outer join c_bpartner businesspa5_ on fin_paymen2_.c_bpartner_id = businesspa5_.c_bpartner_id left outer join c_bpartner businesspa6_ on invoice4_.c_bpartner_id = businesspa6_.c_bpartner_id where (fin_paymen0_.fin_payment_detail_id is not null or fin_paymen0_.fin_payment_schedule_invoice is not null) and (fin_paymen0_.ad_org_id in (...)) and fin_paymen3_.duedate >= ? and fin_paymen3_.duedate <= ? and (fin_paymen2_.status in (...) or fin_paymen0_.fin_payment_detail_id is null) and (fin_paymen2_.isreceipt = ? or invoice4_.issotrx = ?) order by col_1_0_, coalesce(fin_paymen2_.status, ?), coalesce(businesspa5_.name, businesspa6_.name), fin_paymen0_.fin_payment_schedule_invoice;-
select fin_paymen0_.FIN_Payment_Scheduledetail_ID as col_0_0_, ( select adlist7_.Seqno from AD_Ref_List adlist7_ where adlist7_.AD_Reference_ID = '575BCB88A4694C27BC013DE9C73E6FE7' and adlist7_.Value = coalesce(fin_paymen2_.Status, 'RPAP')) as col_1_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Detail fin_paymen1_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen1_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen2_ on fin_paymen1_.Fin_Payment_ID = fin_paymen2_.Fin_Payment_ID left outer join FIN_Payment_Schedule fin_paymen3_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen3_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice4_ on fin_paymen3_.C_Invoice_ID = invoice4_.C_Invoice_ID left outer join C_BPartner businesspa5_ on fin_paymen2_.C_Bpartner_ID = businesspa5_.C_BPartner_ID left outer join C_BPartner businesspa6_ on invoice4_.C_BPartner_ID = businesspa6_.C_BPartner_ID where (fin_paymen0_.FIN_Payment_Detail_ID is not null or fin_paymen0_.FIN_Payment_Schedule_Invoice is not null) and (fin_paymen0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and fin_paymen3_.Duedate >= '2025-11-01 00:00:00' and fin_paymen3_.Duedate <= '2026-07-21 00:00:00' and (fin_paymen2_.Status in ('RPAP') or fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen2_.Isreceipt = 'N' or invoice4_.IsSOTrx = 'N') order by col_1_0_, coalesce(fin_paymen2_.Status, 'RPAP'), coalesce(businesspa5_.Name, businesspa6_.Name), fin_paymen0_.FIN_Payment_Schedule_Invoice;
Date: 2026-07-17 13:04:26 Duration: 1s20ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select fin_paymen0_.FIN_Payment_Scheduledetail_ID as col_0_0_, ( select adlist7_.Seqno from AD_Ref_List adlist7_ where adlist7_.AD_Reference_ID = '575BCB88A4694C27BC013DE9C73E6FE7' and adlist7_.Value = coalesce(fin_paymen2_.Status, 'RPAP')) as col_1_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Detail fin_paymen1_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen1_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen2_ on fin_paymen1_.Fin_Payment_ID = fin_paymen2_.Fin_Payment_ID left outer join FIN_Payment_Schedule fin_paymen3_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen3_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice4_ on fin_paymen3_.C_Invoice_ID = invoice4_.C_Invoice_ID left outer join C_BPartner businesspa5_ on fin_paymen2_.C_Bpartner_ID = businesspa5_.C_BPartner_ID left outer join C_BPartner businesspa6_ on invoice4_.C_BPartner_ID = businesspa6_.C_BPartner_ID where (fin_paymen0_.FIN_Payment_Detail_ID is not null or fin_paymen0_.FIN_Payment_Schedule_Invoice is not null) and (fin_paymen0_.AD_Org_ID in ($1, $2, $3, $4, $5, $6)) and fin_paymen3_.Duedate >= $7 and fin_paymen3_.Duedate <= $8 and (fin_paymen2_.Status in ($9) or fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen2_.Isreceipt = 'N' or invoice4_.IsSOTrx = 'N') order by col_1_0_, coalesce(fin_paymen2_.Status, 'RPAP'), coalesce(businesspa5_.Name, businesspa6_.Name), fin_paymen0_.FIN_Payment_Schedule_Invoice;
Date: 2026-07-17 13:04:07 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 2 388.89 MiB 194.45 MiB 194.45 MiB 194.45 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-17 18:12:53 Duration: 6s654ms 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-17 18:11:21 Duration: 5s992ms 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-17 18:12:55 Duration: 2s35ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 2 77.68 MiB 14.86 MiB 62.82 MiB 38.84 MiB select count(*) as col_0_0_ from fin_payment_scheduledetail fin_paymen0_ left outer join fin_payment_detail fin_paymen1_ on fin_paymen0_.fin_payment_detail_id = fin_paymen1_.fin_payment_detail_id left outer join fin_payment fin_paymen2_ on fin_paymen1_.fin_payment_id = fin_paymen2_.fin_payment_id left outer join fin_payment_schedule fin_paymen3_ on fin_paymen0_.fin_payment_schedule_invoice = fin_paymen3_.fin_payment_schedule_id left outer join c_invoice invoice4_ on fin_paymen3_.c_invoice_id = invoice4_.c_invoice_id left outer join c_bpartner businesspa5_ on fin_paymen2_.c_bpartner_id = businesspa5_.c_bpartner_id left outer join c_bpartner businesspa6_ on invoice4_.c_bpartner_id = businesspa6_.c_bpartner_id where (fin_paymen0_.fin_payment_detail_id is not null or fin_paymen0_.fin_payment_schedule_invoice is not null) and (fin_paymen0_.ad_org_id in (...)) and fin_paymen3_.duedate >= ? and fin_paymen3_.duedate <= ? and (fin_paymen2_.status in (...) or fin_paymen0_.fin_payment_detail_id is null) and (fin_paymen2_.isreceipt = ? or invoice4_.issotrx = ?);-
select count(*) as col_0_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Detail fin_paymen1_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen1_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen2_ on fin_paymen1_.Fin_Payment_ID = fin_paymen2_.Fin_Payment_ID left outer join FIN_Payment_Schedule fin_paymen3_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen3_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice4_ on fin_paymen3_.C_Invoice_ID = invoice4_.C_Invoice_ID left outer join C_BPartner businesspa5_ on fin_paymen2_.C_Bpartner_ID = businesspa5_.C_BPartner_ID left outer join C_BPartner businesspa6_ on invoice4_.C_BPartner_ID = businesspa6_.C_BPartner_ID where (fin_paymen0_.FIN_Payment_Detail_ID is not null or fin_paymen0_.FIN_Payment_Schedule_Invoice is not null) and (fin_paymen0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and fin_paymen3_.Duedate >= '2025-11-01 00:00:00' and fin_paymen3_.Duedate <= '2026-07-21 00:00:00' and (fin_paymen2_.Status in ('RPAP') or fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen2_.Isreceipt = 'N' or invoice4_.IsSOTrx = 'N');
Date: 2026-07-17 13:04:07 Duration: 1s840ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select count(*) as col_0_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Detail fin_paymen1_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen1_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen2_ on fin_paymen1_.Fin_Payment_ID = fin_paymen2_.Fin_Payment_ID left outer join FIN_Payment_Schedule fin_paymen3_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen3_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice4_ on fin_paymen3_.C_Invoice_ID = invoice4_.C_Invoice_ID left outer join C_BPartner businesspa5_ on fin_paymen2_.C_Bpartner_ID = businesspa5_.C_BPartner_ID left outer join C_BPartner businesspa6_ on invoice4_.C_BPartner_ID = businesspa6_.C_BPartner_ID where (fin_paymen0_.FIN_Payment_Detail_ID is not null or fin_paymen0_.FIN_Payment_Schedule_Invoice is not null) and (fin_paymen0_.AD_Org_ID in ($1, $2, $3, $4, $5, $6)) and fin_paymen3_.Duedate >= $7 and fin_paymen3_.Duedate <= $8 and (fin_paymen2_.Status in ($9) or fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen2_.Isreceipt = 'N' or invoice4_.IsSOTrx = 'N');
Date: 2026-07-17 13:04:07 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 1 108.96 MiB 108.96 MiB 108.96 MiB 108.96 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-17 18:11:05 Duration: 2s897ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 1 185.87 MiB 185.87 MiB 185.87 MiB 185.87 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-17 18:11:03 Duration: 1s905ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 1 185.87 MiB 185.87 MiB 185.87 MiB 185.87 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-17 18:10:58 Duration: 1s611ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
11 1 185.59 MiB 185.59 MiB 185.59 MiB 185.59 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-17 18:11:07 Duration: 4s113ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 194.45 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-17 18:11:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 194.45 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-17 18:12:55 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 185.87 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-17 18:10:58 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 185.87 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-17 18:11:03 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 185.59 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-17 18:11:08 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 108.96 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-17 18:11:05 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 62.82 MiB select fin_paymen0_.FIN_Payment_Scheduledetail_ID as col_0_0_, ( select adlist7_.Seqno from AD_Ref_List adlist7_ where adlist7_.AD_Reference_ID = '575BCB88A4694C27BC013DE9C73E6FE7' and adlist7_.Value = coalesce(fin_paymen2_.Status, 'RPAP')) as col_1_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Detail fin_paymen1_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen1_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen2_ on fin_paymen1_.Fin_Payment_ID = fin_paymen2_.Fin_Payment_ID left outer join FIN_Payment_Schedule fin_paymen3_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen3_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice4_ on fin_paymen3_.C_Invoice_ID = invoice4_.C_Invoice_ID left outer join C_BPartner businesspa5_ on fin_paymen2_.C_Bpartner_ID = businesspa5_.C_BPartner_ID left outer join C_BPartner businesspa6_ on invoice4_.C_BPartner_ID = businesspa6_.C_BPartner_ID where (fin_paymen0_.FIN_Payment_Detail_ID is not null or fin_paymen0_.FIN_Payment_Schedule_Invoice is not null) and (fin_paymen0_.AD_Org_ID in ($1, $2, $3, $4, $5, $6)) and fin_paymen3_.Duedate >= $7 and fin_paymen3_.Duedate <= $8 and (fin_paymen2_.Status in ($9) or fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen2_.Isreceipt = 'N' or invoice4_.IsSOTrx = 'N') order by col_1_0_, coalesce(fin_paymen2_.Status, 'RPAP'), coalesce(businesspa5_.Name, businesspa6_.Name), fin_paymen0_.FIN_Payment_Schedule_Invoice;[ Date: 2026-07-17 13:04:26 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 62.82 MiB select count(*) as col_0_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Detail fin_paymen1_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen1_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen2_ on fin_paymen1_.Fin_Payment_ID = fin_paymen2_.Fin_Payment_ID left outer join FIN_Payment_Schedule fin_paymen3_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen3_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice4_ on fin_paymen3_.C_Invoice_ID = invoice4_.C_Invoice_ID left outer join C_BPartner businesspa5_ on fin_paymen2_.C_Bpartner_ID = businesspa5_.C_BPartner_ID left outer join C_BPartner businesspa6_ on invoice4_.C_BPartner_ID = businesspa6_.C_BPartner_ID where (fin_paymen0_.FIN_Payment_Detail_ID is not null or fin_paymen0_.FIN_Payment_Schedule_Invoice is not null) and (fin_paymen0_.AD_Org_ID in ($1, $2, $3, $4, $5, $6)) and fin_paymen3_.Duedate >= $7 and fin_paymen3_.Duedate <= $8 and (fin_paymen2_.Status in ($9) or fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen2_.Isreceipt = 'N' or invoice4_.IsSOTrx = 'N');[ Date: 2026-07-17 13:04:07 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 62.82 MiB select fin_paymen0_.FIN_Payment_Scheduledetail_ID as col_0_0_, ( select adlist7_.Seqno from AD_Ref_List adlist7_ where adlist7_.AD_Reference_ID = '575BCB88A4694C27BC013DE9C73E6FE7' and adlist7_.Value = coalesce(fin_paymen2_.Status, 'RPAP')) as col_1_0_ from FIN_Payment_ScheduleDetail fin_paymen0_ left outer join FIN_Payment_Detail fin_paymen1_ on fin_paymen0_.FIN_Payment_Detail_ID = fin_paymen1_.Fin_Payment_Detail_ID left outer join FIN_Payment fin_paymen2_ on fin_paymen1_.Fin_Payment_ID = fin_paymen2_.Fin_Payment_ID left outer join FIN_Payment_Schedule fin_paymen3_ on fin_paymen0_.FIN_Payment_Schedule_Invoice = fin_paymen3_.Fin_Payment_Schedule_ID left outer join C_Invoice invoice4_ on fin_paymen3_.C_Invoice_ID = invoice4_.C_Invoice_ID left outer join C_BPartner businesspa5_ on fin_paymen2_.C_Bpartner_ID = businesspa5_.C_BPartner_ID left outer join C_BPartner businesspa6_ on invoice4_.C_BPartner_ID = businesspa6_.C_BPartner_ID where (fin_paymen0_.FIN_Payment_Detail_ID is not null or fin_paymen0_.FIN_Payment_Schedule_Invoice is not null) and (fin_paymen0_.AD_Org_ID in ($1, $2, $3, $4, $5, $6)) and fin_paymen3_.Duedate >= $7 and fin_paymen3_.Duedate <= $8 and (fin_paymen2_.Status in ($9) or fin_paymen0_.FIN_Payment_Detail_ID is null) and (fin_paymen2_.Isreceipt = 'N' or invoice4_.IsSOTrx = 'N') order by col_1_0_, coalesce(fin_paymen2_.Status, 'RPAP'), coalesce(businesspa5_.Name, businesspa6_.Name), fin_paymen0_.FIN_Payment_Schedule_Invoice;[ Date: 2026-07-17 13:04:08 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 42.44 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 ('95F08FEA81CE441188A2240F0A806510')) order by m_inout.documentno;[ Date: 2026-07-17 18:08:52 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 42.44 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 ('AD3A5224CF9A4818A4EAE02DAEA356E3')) order by m_inout.documentno;[ Date: 2026-07-17 18:08:54 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 42.44 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 ('2D5BE54C8B7943E5923EC268EB3B4831')) order by m_inout.documentno;[ Date: 2026-07-17 18:09:22 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 42.44 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 ('F144B2DB36A6434490E59290224CAFAE')) order by m_inout.documentno;[ Date: 2026-07-17 18:09:38 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 42.44 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 ('A4C1CF8F687442DF82CB0EDC3B351DF5')) order by m_inout.documentno;[ Date: 2026-07-17 18:09:53 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 42.44 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 ('DD9DBCD5B06447F5BD34608822BCA264')) order by m_inout.documentno;[ Date: 2026-07-17 18:10:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 42.44 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 ('1350415020344834A0DCD5C9F112A84C')) order by m_inout.documentno;[ Date: 2026-07-17 18:13:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 42.44 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 ('C8DC2F59B26B451E8F4A61C0A283E00A')) order by m_inout.documentno;[ Date: 2026-07-17 18:08:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 42.44 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 ('9B68155586C9419F874E6869193AC9E8')) order by m_inout.documentno;[ Date: 2026-07-17 18:08:35 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 42.44 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 ('F12808BD1B4841448AC394971660B0ED')) order by m_inout.documentno;[ Date: 2026-07-17 18:06:58 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 42.44 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 ('FB3C544FBD0F437FBEFB9BD381C6F152')) order by m_inout.documentno;[ Date: 2026-07-17 17:47:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.42 sec Highest CPU-cost vacuum
Table profile.sample_stat_tables
Database etendo - 2026-07-17 18:00:27 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 0.42 sec Highest CPU-cost vacuum
Table profile.sample_stat_tables
Database etendo - 2026-07-17 18:00:27 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (152) Main table analyzed (database etendo)
- 367 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 152 etendo.public.ad_session 43 etendo.public.ad_pinstance_para 16 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.last_stat_indexes_srv1 15 etendo.public.ad_sequence 8 etendo.profile.tables_list 8 etendo.profile.last_stat_io 8 etendo.public.ad_preference 8 etendo.profile.funcs_list 7 etendo.profile.stmt_list 7 etendo.public.prpres_product 7 etendo.profile.indexes_list 4 etendo.profile.last_stat_activity_count_srv1 4 etendo.profile.last_extension_versions 4 etendo.profile.last_stat_slru 3 etendo.public.prpres_conf 3 etendo.public.ad_process_request 2 etendo.public.fin_financial_account 2 etendo.profile.sample_stat_tables 2 etendo.profile.sample_stat_user_functions 2 etendo.profile.sample_statements 2 etendo.profile.sample_stat_indexes 2 etendo.pg_catalog.pg_type 2 etendo.public.ad_pinstance 2 etendo.public.ad_process_run 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_indexes_total 1 etendo.pg_catalog.pg_attribute 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_tables_total 1 etendo.profile.sample_stat_slru 1 postgres.pg_catalog.pg_shdepend 1 etendo.public.c_bpartner 1 Total 367 Vacuums per table
Key values
- public.ad_ep_instance_para (132) Main table vacuumed on database etendo
- 251 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 132 82 8,532 0 363 0 0 871 226 283,498 0 0 etendo.profile.last_stat_tables_srv1 19 15 18,028 0 532 0 0 11,879 2,034 1,461,285 112 666 etendo.profile.last_stat_indexes_srv1 19 15 23,863 0 771 0 0 14,868 2,628 2,015,074 42 382 etendo.profile.last_stat_user_functions_srv1 19 15 3,379 0 59 0 0 2,151 423 678,555 315 4,748 etendo.profile.last_stat_statements_srv1 19 15 20,845 0 334 0 0 14,838 2,587 3,362,889 1,471 15,323 etendo.profile.funcs_list 7 7 690 0 34 0 0 265 66 128,428 37 404 etendo.profile.tables_list 5 5 1,045 0 23 0 0 751 168 341,477 113 1,433 etendo.profile.last_stat_io 4 4 234 0 17 0 0 34 12 15,903 2 17 etendo.public.ad_pinstance_para 4 4 1,587 0 433 0 0 1,185 308 833,843 77 271 etendo.profile.stmt_list 4 4 1,447 0 97 0 0 1,119 219 943,010 111 369 etendo.profile.indexes_list 3 3 419 0 16 0 0 166 50 106,342 24 297 etendo.pg_toast.pg_toast_2619 2 2 1,604 0 567 0 0 1,157 362 811,757 82 179 etendo.public.ad_session 2 2 799 0 161 0 0 255 66 185,484 12 50 etendo.pg_toast.pg_toast_305793 2 2 702 0 471 0 0 679 113 273,710 49 103 etendo.profile.last_extension_versions 2 2 137 0 8 0 0 11 5 4,767 1 8 etendo.profile.last_stat_activity_count_srv1 2 0 45 0 10 0 0 12 5 6,193 0 0 etendo.pg_catalog.pg_statistic 1 1 2,096 0 722 0 0 1,829 641 1,803,152 281 3,308 etendo.profile.last_stat_database_srv1 1 1 49 0 6 0 0 6 3 5,745 0 0 etendo.profile.sample_stat_tables 1 1 1,643 0 1,455 0 0 1,665 118 184,153 0 0 etendo.profile.sample_stat_user_functions 1 1 189 0 100 0 0 123 13 32,094 0 0 etendo.pg_toast.pg_toast_901293 1 1 202 0 80 0 0 89 5 20,581 2 5 etendo.profile.last_stat_slru 1 1 69 0 4 0 0 5 1 795 0 0 Total 251 183 87,604 3,605 6,263 0 0 53,958 10,053 13,498,735 2,731 27,563 Vacuum throughput per table
Key values
- profile.last_stat_indexes_srv1 (0.44) 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.04 etendo.profile.last_stat_tables_srv1 0 0 0.23 etendo.profile.last_stat_indexes_srv1 0 0 0.44 etendo.profile.last_stat_user_functions_srv1 0 0 0 etendo.profile.last_stat_statements_srv1 0 0 0.29 etendo.profile.funcs_list 0 0 0 etendo.profile.tables_list 0 0 0 etendo.profile.last_stat_io 0 0 0 etendo.public.ad_pinstance_para 0 0 0.12 etendo.profile.stmt_list 0 0 0.01 etendo.profile.indexes_list 0 0 0 etendo.pg_toast.pg_toast_2619 0 0 0.18 etendo.public.ad_session 0 0 0.05 etendo.pg_toast.pg_toast_305793 0 0 0.13 etendo.profile.last_extension_versions 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0.01 etendo.pg_catalog.pg_statistic 0 0 0.21 etendo.profile.last_stat_database_srv1 0 0 0 etendo.profile.sample_stat_tables 0 0 0.42 etendo.profile.sample_stat_user_functions 0 0 0.03 etendo.pg_toast.pg_toast_901293 0 0 0.02 etendo.profile.last_stat_slru 0 0 0 Total 0 0 2.18 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (93162) Main table with removed tuples on database etendo
- 217169 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.profile.last_stat_indexes_srv1 19 15 93,162 83,247 24,860 625 6,576 etendo.profile.last_stat_tables_srv1 19 15 59,619 51,534 15,884 70 5,724 etendo.profile.last_stat_statements_srv1 19 15 41,144 64,460 12,988 365 5,460 etendo.profile.last_stat_user_functions_srv1 19 15 9,104 12,714 2,416 2 701 etendo.public.ad_ep_instance_para 132 82 4,735 6,941 6,941 144 174 etendo.profile.sample_stat_tables 1 1 2,355 36,670 0 0 1,369 etendo.public.ad_pinstance_para 4 4 2,159 16,022 0 0 678 etendo.profile.tables_list 5 5 939 6,883 0 0 200 etendo.pg_catalog.pg_statistic 1 1 866 10,691 0 0 861 etendo.pg_toast.pg_toast_2619 2 2 801 4,510 0 0 1,632 etendo.profile.sample_stat_user_functions 1 1 556 8,440 0 0 86 etendo.profile.stmt_list 4 4 475 4,542 0 0 407 etendo.profile.funcs_list 7 7 342 1,492 0 0 70 etendo.pg_toast.pg_toast_305793 2 2 265 2,832 0 0 685 etendo.profile.last_stat_io 4 4 193 68 0 0 8 etendo.profile.indexes_list 3 3 165 1,369 0 0 39 etendo.profile.last_extension_versions 2 2 112 16 0 0 2 etendo.public.ad_session 2 2 66 6,273 818 0 264 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 etendo.pg_toast.pg_toast_901293 1 1 4 364 0 0 80 Total 251 183 217,169 319,077 63,907 1,208 25,018 Pages removed per table
Key values
- profile.last_stat_indexes_srv1 (625) Main table with removed pages on database etendo
- 1208 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_indexes_srv1 19 15 93162 625 etendo.profile.last_stat_statements_srv1 19 15 41144 365 etendo.public.ad_ep_instance_para 132 82 4735 144 etendo.profile.last_stat_tables_srv1 19 15 59619 70 etendo.profile.last_stat_user_functions_srv1 19 15 9104 2 etendo.profile.last_stat_activity_count_srv1 2 0 48 2 etendo.pg_toast.pg_toast_2619 2 2 801 0 etendo.profile.last_stat_io 4 4 193 0 etendo.pg_catalog.pg_statistic 1 1 866 0 etendo.profile.last_stat_database_srv1 1 1 4 0 etendo.public.ad_session 2 2 66 0 etendo.profile.sample_stat_tables 1 1 2355 0 etendo.profile.sample_stat_user_functions 1 1 556 0 etendo.pg_toast.pg_toast_901293 1 1 4 0 etendo.profile.indexes_list 3 3 165 0 etendo.profile.tables_list 5 5 939 0 etendo.public.ad_pinstance_para 4 4 2159 0 etendo.profile.last_stat_slru 1 1 55 0 etendo.pg_toast.pg_toast_305793 2 2 265 0 etendo.profile.last_extension_versions 2 2 112 0 etendo.profile.stmt_list 4 4 475 0 etendo.profile.funcs_list 7 7 342 0 Total 251 183 217,169 1,208 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 17 07 10 13 08 9 16 09 22 27 10 15 27 11 24 45 12 13 35 13 25 20 14 9 15 15 26 52 16 32 40 17 35 25 18 9 17 19 9 18 20 7 7 21 6 10 - 0.42 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
- 849 Total read queries
- 0 Total write queries
Queries by database
Key values
- etendo Main database
- 849 Requests
- 2h23m57s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 834 Requests
User Request type Count Duration postgres Total 15 17s676ms select 15 17s676ms tad Total 834 2h23m40s select 834 2h23m40s Duration by user
Key values
- 2h23m40s (tad) Main time consuming user
User Request type Count Duration postgres Total 15 17s676ms select 15 17s676ms tad Total 834 2h23m40s select 834 2h23m40s Queries by host
Key values
- 127.0.0.1 Main host
- 789 Requests
- 2h10m21s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 789 Requests
- 2h10m21s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-17 16:56:26 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 795 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 18m37s select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';[ Date: 2026-07-17 16:38:08 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 18m37s select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';[ Date: 2026-07-17 16:38:11 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 16m50s select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';[ Date: 2026-07-17 17:32:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 16m40s select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';[ Date: 2026-07-17 09:50:23 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 16m31s select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';[ Date: 2026-07-17 17:55:06 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 50s810ms 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-17 11:04:08 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
7 45s172ms 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-17 20:03:56 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
8 43s620ms 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-17 18:03:41 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
9 43s224ms 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-17 14:05:47 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
10 42s956ms 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-17 16:05:38 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
11 40s514ms 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-17 11:03:58 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
12 36s708ms 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-17 18:03:34 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
13 35s405ms 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-17 16:04:51 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
14 34s642ms 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-17 14:05:07 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
15 34s280ms 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-17 20:03:59 - Database: etendo - User: tad - Remote: 51.195.39.29 - Application: Mashup Engine - Bind query: yes ]
16 24s645ms 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-17 21:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 24s556ms 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('18-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-17 18:31:35 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 24s126ms 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-17 11:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 24s93ms 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-17 13:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 23s973ms 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-17 12:01:48 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 1h27m17s 5 16m31s 18m37s 17m27s select aduser0_.ad_user_id as ad_user_1_129_, aduser0_.ad_client_id as ad_clien2_129_, aduser0_.ad_org_id as ad_org_i3_129_, aduser0_.isactive as isactive4_129_, aduser0_.created as created5_129_, aduser0_.createdby as createdb6_129_, aduser0_.updated as updated7_129_, aduser0_.updatedby as updatedb8_129_, aduser0_.name as name9_129_, aduser0_.description as descrip10_129_, aduser0_.password as passwor11_129_, aduser0_.email as email12_129_, aduser0_.supervisor_id as supervi13_129_, aduser0_.c_bpartner_id as c_bpart14_129_, aduser0_.processing as process15_129_, aduser0_.emailuser as emailus16_129_, aduser0_.emailuserpw as emailus17_129_, aduser0_.c_bpartner_location_id as c_bpart18_129_, aduser0_.c_greeting_id as c_greet19_129_, aduser0_.title as title20_129_, aduser0_.comments as comment21_129_, aduser0_.phone as phone22_129_, aduser0_.phone2 as phone23_129_, aduser0_.fax as fax24_129_, aduser0_.lastcontact as lastcon25_129_, aduser0_.lastresult as lastres26_129_, aduser0_.birthday as birthda27_129_, aduser0_.ad_orgtrx_id as ad_orgt28_129_, aduser0_.firstname as firstna29_129_, aduser0_.lastname as lastnam30_129_, aduser0_.username as usernam31_129_, aduser0_.default_ad_client_id as default32_129_, aduser0_.default_ad_language as default33_129_, aduser0_.default_ad_org_id as default34_129_, aduser0_.default_ad_role_id as default35_129_, aduser0_.default_m_warehouse_id as default36_129_, aduser0_.islocked as islocke37_129_, aduser0_.ad_image_id as ad_imag38_129_, aduser0_.grant_portal_access as grant_p39_129_, aduser0_.em_ec_isbillingcontact as em_ec_i40_129_, aduser0_.em_prapp_username as em_prap41_129_, aduser0_.lastpasswordupdate as lastpas42_129_, aduser0_.em_prapp_password as em_prap43_129_, aduser0_.isexpiredpassword as isexpir44_129_, aduser0_.commercialauth as commerc45_129_, aduser0_.em_prapp_mail1 as em_prap46_129_, aduser0_.em_prapp_mail2 as em_prap47_129_, aduser0_.viasms as viasms48_129_, aduser0_.em_prapp_platform as em_prap49_129_, aduser0_.viaemail as viaemai50_129_, aduser0_.em_prapp_uuid as em_prap51_129_, aduser0_.em_prapp_token as em_prap52_129_, aduser0_.em_pruti_isbillingcontact as em_prut53_129_, aduser0_.em_pruti_isordercontact as em_prut54_129_, aduser0_.em_smfsws_default_ws_role_id as em_smfs55_129_, aduser0_.em_pruti_ispurchaseordcontact as em_prut56_129_, aduser0_.em_ec_ispurchorder as em_ec_i57_129_, aduser0_.isdefaultfordocs as isdefau58_129_, aduser0_.em_etas_bad_password_attempts as em_etas59_129_, aduser0_.em_etas_enable_mult_session as em_etas60_129_, aduser0_.em_etas_issecure_pw as em_etas61_129_, aduser0_.em_prpres_prestashop_id as em_prpr62_129_, aduser0_.em_etas_isused_pw as em_etas63_129_, aduser0_.em_prpres_gender as em_prpr64_129_, aduser0_.em_etas_isnewuser as em_etas65_129_, aduser0_.em_prpres_newsletter as em_prpr66_129_, aduser0_.em_prpres_password as em_prpr67_129_, aduser0_.em_pruti_isshipmentcontact as em_prut68_129_, aduser0_.em_prpres_not_upload as em_prpr69_129_, aduser0_.em_prpres_created_from_ps as em_prpr70_129_, aduser0_.em_primpa_iscontact as em_prim71_129_ from ad_user aduser0_ where exists ( select ? from c_order order1_ inner join ad_user aduser2_ on order1_.updatedby = aduser2_.ad_user_id cross join c_order order_comp3_ cross join c_doctype documentty4_ where order1_.c_order_id = order_comp3_.c_order_id and order1_.c_doctypetarget_id = documentty4_.c_doctype_id and order1_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), ?)) = ? and order1_.m_warehouse_id = ? and order1_.issotrx = ? and documentty4_.isreturn = ? and (documentty4_.docsubtypeso not like ?) and aduser2_.ad_user_id = aduser0_.ad_user_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by aduser0_.name limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 09 1 16m40s 16m40s 16 2 37m14s 18m37s 17 2 33m22s 16m41s [ User: tad - Total duration: 1h27m17s - Times executed: 5 ]
[ Application: openbravo - Total duration: 1h27m17s - Times executed: 5 ]
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 16:38:08 Duration: 18m37s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 16:38:11 Duration: 18m37s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 17:32:33 Duration: 16m50s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 14m36s 256 2s884ms 4s229ms 3s422ms 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 17 08 12 35s815ms 2s984ms 09 42 2m18s 3s297ms 10 46 2m42s 3s530ms 11 16 59s213ms 3s700ms 12 23 1m19s 3s455ms 13 14 47s425ms 3s387ms 14 15 50s48ms 3s336ms 15 38 2m17s 3s611ms 16 22 1m14s 3s391ms 17 19 1m2s 3s266ms 18 9 29s234ms 3s248ms [ User: tad - Total duration: 14m36s - Times executed: 256 ]
[ Application: openbravo - Total duration: 14m36s - Times executed: 256 ]
-
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-17 12:35:19 Duration: 4s229ms 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-17 12:36:19 Duration: 4s200ms 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-17 12:35:53 Duration: 4s189ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 7m34s 178 2s398ms 3s221ms 2s555ms 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 #3
Day Hour Count Duration Avg duration Jul 17 08 7 17s573ms 2s510ms 09 30 1m16s 2s545ms 10 25 1m2s 2s500ms 11 17 44s389ms 2s611ms 12 16 41s709ms 2s606ms 13 9 22s612ms 2s512ms 14 4 10s209ms 2s552ms 15 38 1m36s 2s544ms 16 12 31s37ms 2s586ms 17 10 25s827ms 2s582ms 18 10 25s920ms 2s592ms [ User: tad - Total duration: 7m34s - Times executed: 178 ]
[ Application: openbravo - Total duration: 7m34s - Times executed: 178 ]
-
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 ('24CBEFE8194F4D17B3138C4AC7DF86C5')) order by m_inout.documentno;
Date: 2026-07-17 12:07:07 Duration: 3s221ms 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 ('685BADFEF7C54DCAA1A22B657FCCFAD9')) order by m_inout.documentno;
Date: 2026-07-17 11:04:54 Duration: 2s857ms 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 ('DA863C0B6A314ABA92D7A21925B0D62F')) order by m_inout.documentno;
Date: 2026-07-17 11:05:07 Duration: 2s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 5m55s 15 22s982ms 24s645ms 23s680ms 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 #4
Day Hour Count Duration Avg duration Jul 17 07 1 22s982ms 22s982ms 08 1 23s955ms 23s955ms 09 1 23s560ms 23s560ms 10 1 23s400ms 23s400ms 11 1 24s126ms 24s126ms 12 1 23s973ms 23s973ms 13 1 24s93ms 24s93ms 14 1 23s499ms 23s499ms 15 1 23s660ms 23s660ms 16 1 23s611ms 23s611ms 17 1 23s367ms 23s367ms 18 1 23s457ms 23s457ms 19 1 23s498ms 23s498ms 20 1 23s376ms 23s376ms 21 1 24s645ms 24s645ms [ User: tad - Total duration: 5m55s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m55s - 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-17 21:01:48 Duration: 24s645ms 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-17 11:01:48 Duration: 24s126ms 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-17 13:01:48 Duration: 24s93ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 3m45s 5 42s956ms 50s810ms 45s156ms 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 #5
Day Hour Count Duration Avg duration Jul 17 11 1 50s810ms 50s810ms 14 1 43s224ms 43s224ms 16 1 42s956ms 42s956ms 18 1 43s620ms 43s620ms 20 1 45s172ms 45s172ms [ User: tad - Total duration: 3m45s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m45s - 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-17 11:04:08 Duration: 50s810ms 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-17 20:03:56 Duration: 45s172ms 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-17 18:03:41 Duration: 43s620ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
6 3m1s 5 34s280ms 40s514ms 36s310ms 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 #6
Day Hour Count Duration Avg duration Jul 17 11 1 40s514ms 40s514ms 14 1 34s642ms 34s642ms 16 1 35s405ms 35s405ms 18 1 36s708ms 36s708ms 20 1 34s280ms 34s280ms [ User: tad - Total duration: 3m1s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m1s - 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-17 11:03:58 Duration: 40s514ms 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-17 18:03:34 Duration: 36s708ms 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-17 16:04:51 Duration: 35s405ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
7 2m23s 37 3s614ms 7s4ms 3s875ms 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 #7
Day Hour Count Duration Avg duration Jul 17 08 1 7s4ms 7s4ms 09 3 11s139ms 3s713ms 10 2 7s321ms 3s660ms 11 5 18s787ms 3s757ms 12 1 3s702ms 3s702ms 13 3 11s435ms 3s811ms 15 11 41s625ms 3s784ms 16 7 26s448ms 3s778ms 17 4 15s944ms 3s986ms [ User: tad - Total duration: 2m23s - Times executed: 37 ]
[ Application: openbravo - Total duration: 2m23s - Times executed: 37 ]
-
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 = '1E3D5A99D03547D3B52A7D0EA4776521006B0DBE5CA984B188585E4A2062CB02Apendingsales';
Date: 2026-07-17 08:47:34 Duration: 7s4ms 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 = '53B031A7D9A04EE1AC19BC6041C9689F0FEA662845D2C4C0EB3590D6265EA6108stock';
Date: 2026-07-17 17:28:35 Duration: 4s144ms 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 = '53B031A7D9A04EE1AC19BC6041C9689F04050A3176DE744FCA19943E0F0F77F07stock';
Date: 2026-07-17 17:28:36 Duration: 4s127ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1m29s 5 11s679ms 22s279ms 17s891ms 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 #8
Day Hour Count Duration Avg duration Jul 17 11 1 17s583ms 17s583ms 14 1 22s279ms 22s279ms 16 1 20s879ms 20s879ms 18 1 11s679ms 11s679ms 20 1 17s36ms 17s36ms [ User: tad - Total duration: 1m29s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m29s - 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-17 14:04:52 Duration: 22s279ms 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-17 16:04:36 Duration: 20s879ms 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-17 11:03:35 Duration: 17s583ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
9 1m22s 11 7s89ms 7s844ms 7s535ms 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 #9
Day Hour Count Duration Avg duration Jul 17 09 3 23s31ms 7s677ms 11 1 7s485ms 7s485ms 12 2 15s306ms 7s653ms 15 4 29s223ms 7s305ms 17 1 7s844ms 7s844ms [ User: tad - Total duration: 1m22s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m22s - Times executed: 11 ]
-
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-17 17:23:22 Duration: 7s844ms 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-17 12:13:51 Duration: 7s837ms 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-17 09:08:33 Duration: 7s792ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 1m20s 5 10s517ms 21s809ms 16s2ms 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 #10
Day Hour Count Duration Avg duration Jul 17 11 1 10s517ms 10s517ms 14 1 14s67ms 14s67ms 16 1 19s679ms 19s679ms 18 1 13s940ms 13s940ms 20 1 21s809ms 21s809ms [ User: tad - Total duration: 1m20s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m20s - 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-17 20:03:33 Duration: 21s809ms 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-17 16:04:34 Duration: 19s679ms 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-17 14:04:58 Duration: 14s67ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
11 1m9s 21 3s116ms 3s691ms 3s332ms 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 #11
Day Hour Count Duration Avg duration Jul 17 12 2 6s759ms 3s379ms 13 8 26s829ms 3s353ms 15 2 6s285ms 3s142ms 17 2 6s674ms 3s337ms 18 7 23s424ms 3s346ms [ User: tad - Total duration: 1m9s - Times executed: 21 ]
[ Application: openbravo - Total duration: 1m9s - Times executed: 21 ]
-
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-17 18:12:48 Duration: 3s691ms 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', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-17 13:02:04 Duration: 3s674ms 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-17 13:04:24 Duration: 3s550ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1m8s 5 11s917ms 15s575ms 13s612ms 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 #12
Day Hour Count Duration Avg duration Jul 17 11 1 15s42ms 15s42ms 14 1 12s172ms 12s172ms 16 1 15s575ms 15s575ms 18 1 11s917ms 11s917ms 20 1 13s352ms 13s352ms [ User: tad - Total duration: 1m8s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m8s - 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-17 16:04:31 Duration: 15s575ms 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-17 11:03:32 Duration: 15s42ms 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-17 20:03:38 Duration: 13s352ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
13 59s992ms 5 8s576ms 16s325ms 11s998ms 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 #13
Day Hour Count Duration Avg duration Jul 17 11 1 8s708ms 8s708ms 14 1 16s325ms 16s325ms 16 1 8s576ms 8s576ms 18 1 12s136ms 12s136ms 20 1 14s244ms 14s244ms [ User: tad - Total duration: 59s992ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 59s992ms - 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-17 14:04:47 Duration: 16s325ms 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-17 20:03:26 Duration: 14s244ms 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-17 18:03:10 Duration: 12s136ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
14 53s556ms 5 9s984ms 12s851ms 10s711ms select w.name AS "Almacén", l.value AS "Ubicación", sd.m_product_id, sd.qtyonhand "Cantidad", sd.reservedqty "Cantidad Reservada", round(coalesce(sd.qtyonhand * coalesce(m_get_cost (sd.m_product_id, now()::timestamp, ?, sd.ad_org_id, sd.ad_client_id, null, ?, ?), ?), ?), ?) AS "Valoración Inventario" from m_storage_detail sd inner join m_locator l on l.m_locator_id = sd.m_locator_id inner join m_warehouse w on w.m_warehouse_id = l.m_warehouse_id;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 11 1 12s851ms 12s851ms 14 1 10s153ms 10s153ms 16 1 9s984ms 9s984ms 18 1 10s285ms 10s285ms 20 1 10s281ms 10s281ms [ User: tad - Total duration: 53s556ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 53s556ms - 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-17 11:03:44 Duration: 12s851ms 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-17 18:03:08 Duration: 10s285ms 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-17 20:03:21 Duration: 10s281ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
15 49s506ms 35 1s255ms 1s651ms 1s414ms 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 #15
Day Hour Count Duration Avg duration Jul 17 07 2 2s892ms 1s446ms 09 2 2s913ms 1s456ms 10 2 2s798ms 1s399ms 12 2 2s874ms 1s437ms 13 3 4s150ms 1s383ms 14 4 5s781ms 1s445ms 15 18 25s259ms 1s403ms 16 2 2s834ms 1s417ms [ User: tad - Total duration: 49s506ms - Times executed: 35 ]
[ Application: openbravo - Total duration: 49s506ms - Times executed: 35 ]
-
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('%22455%') 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-17 15:35:59 Duration: 1s651ms 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('%22449%') 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-17 09:59:57 Duration: 1s638ms 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('%22289%') 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-17 14:52:42 Duration: 1s613ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 44s658ms 35 1s224ms 1s373ms 1s275ms 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 #16
Day Hour Count Duration Avg duration Jul 17 12 2 2s500ms 1s250ms 13 3 4s50ms 1s350ms 14 6 7s738ms 1s289ms 15 21 26s625ms 1s267ms 16 3 3s743ms 1s247ms [ User: tad - Total duration: 44s658ms - Times executed: 35 ]
[ Application: openbravo - Total duration: 44s658ms - Times executed: 35 ]
-
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('%222556%') 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-17 13:01:52 Duration: 1s373ms 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('%222556%') 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-17 13:02:36 Duration: 1s360ms 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('%222899%') 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-17 14:52:57 Duration: 1s357ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 33s228ms 15 1s729ms 7s313ms 2s215ms 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 #17
Day Hour Count Duration Avg duration Jul 17 07 1 1s735ms 1s735ms 08 1 1s772ms 1s772ms 09 1 1s730ms 1s730ms 10 1 1s813ms 1s813ms 11 1 2s95ms 2s95ms 12 1 2s196ms 2s196ms 13 1 1s889ms 1s889ms 14 1 7s313ms 7s313ms 15 1 1s823ms 1s823ms 16 1 1s770ms 1s770ms 17 1 1s804ms 1s804ms 18 1 1s885ms 1s885ms 19 1 1s788ms 1s788ms 20 1 1s729ms 1s729ms 21 1 1s880ms 1s880ms [ User: tad - Total duration: 33s228ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 33s228ms - 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-17 14:01:56 Duration: 7s313ms 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-17 12:01:51 Duration: 2s196ms 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-17 11:01:51 Duration: 2s95ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 31s20ms 4 7s510ms 8s148ms 7s755ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 09 1 7s680ms 7s680ms 11 1 7s510ms 7s510ms 14 1 7s681ms 7s681ms 17 1 8s148ms 8s148ms [ User: tad - Total duration: 31s20ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 31s20ms - Times executed: 4 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 17:10:44 Duration: 8s148ms 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-17 14:59:45 Duration: 7s681ms 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-17 09:55:00 Duration: 7s680ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 30s642ms 4 1s22ms 24s556ms 7s660ms 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 #19
Day Hour Count Duration Avg duration Jul 17 15 1 2s530ms 2s530ms 17 1 1s22ms 1s22ms 18 2 27s89ms 13s544ms [ User: tad - Total duration: 30s642ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 30s642ms - Times executed: 4 ]
-
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('18-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-17 18:31:35 Duration: 24s556ms 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('18-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-17 18:09:10 Duration: 2s533ms 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('18-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-17 15:01:39 Duration: 2s530ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 28s274ms 9 2s974ms 3s475ms 3s141ms select sum(order0_.totallines) as col_0_0_, sum(order0_.grandtotal) as col_1_0_, sum(order0_.em_prouti_grandtotalinitial) as col_2_0_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp1_.iscancelled = ? or order_comp1_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and (order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ?) and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 18 9 28s274ms 3s141ms [ User: tad - Total duration: 28s274ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 28s274ms - Times executed: 9 ]
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:50 Duration: 3s475ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:08 Duration: 3s224ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:59 Duration: 3s176ms 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 256 14m36s 2s884ms 4s229ms 3s422ms select order0_.c_order_id as c_order_1_260_, order0_.ad_client_id as ad_clien2_260_, order0_.ad_org_id as ad_org_i3_260_, order0_.isactive as isactive4_260_, order0_.created as created5_260_, order0_.createdby as createdb6_260_, order0_.updated as updated7_260_, order0_.updatedby as updatedb8_260_, order0_.issotrx as issotrx9_260_, order0_.documentno as documen10_260_, order0_.docstatus as docstat11_260_, order0_.docaction as docacti12_260_, order0_.processing as process13_260_, order0_.processed as process14_260_, order0_.c_doctype_id as c_docty15_260_, order0_.c_doctypetarget_id as c_docty16_260_, order0_.description as descrip17_260_, order0_.isdelivered as isdeliv18_260_, order0_.isinvoiced as isinvoi19_260_, order0_.isprinted as isprint20_260_, order0_.isselected as isselec21_260_, order0_.salesrep_id as salesre22_260_, order0_.dateordered as dateord23_260_, order0_.datepromised as datepro24_260_, order0_.dateprinted as datepri25_260_, order0_.dateacct as dateacc26_260_, order0_.c_bpartner_id as c_bpart27_260_, order0_.billto_id as billto_28_260_, order0_.c_bpartner_location_id as c_bpart29_260_, order0_.poreference as porefer30_260_, order0_.isdiscountprinted as isdisco31_260_, order0_.c_currency_id as c_curre32_260_, order0_.paymentrule as payment33_260_, order0_.c_paymentterm_id as c_payme34_260_, order0_.invoicerule as invoice35_260_, order0_.deliveryrule as deliver36_260_, order0_.freightcostrule as freight37_260_, order0_.freightamt as freight38_260_, order0_.deliveryviarule as deliver39_260_, order0_.m_shipper_id as m_shipp40_260_, order0_.c_charge_id as c_charg41_260_, order0_.chargeamt as chargea42_260_, order0_.priorityrule as priorit43_260_, order0_.totallines as totalli44_260_, order0_.grandtotal as grandto45_260_, order0_.m_warehouse_id as m_wareh46_260_, order0_.m_pricelist_id as m_price47_260_, order0_.istaxincluded as istaxin48_260_, order0_.c_campaign_id as c_campa49_260_, order0_.c_project_id as c_proje50_260_, order0_.c_activity_id as c_activ51_260_, order0_.posted as posted52_260_, order0_.ad_user_id as ad_user53_260_, order0_.copyfrom as copyfro54_260_, order0_.dropship_bpartner_id as dropshi55_260_, order0_.dropship_location_id as dropshi56_260_, order0_.dropship_user_id as dropshi57_260_, order0_.isselfservice as isselfs58_260_, order0_.ad_orgtrx_id as ad_orgt59_260_, order0_.user1_id as user60_260_, order0_.user2_id as user61_260_, order0_.deliverynotes as deliver62_260_, order0_.c_incoterms_id as c_incot63_260_, order0_.incotermsdescription as incoter64_260_, order0_.generatetemplate as generat65_260_, order0_.delivery_location_id as deliver66_260_, order0_.copyfrompo as copyfro67_260_, order0_.fin_paymentmethod_id as fin_pay68_260_, order0_.fin_payment_priority_id as fin_pay69_260_, order0_.rm_pickfromshipment as rm_pick70_260_, order0_.rm_receivematerials as rm_rece71_260_, order0_.em_obcma_c_poc_email_id as em_obcm72_260_, order0_.rm_createinvoice as rm_crea73_260_, order0_.c_return_reason_id as c_retur74_260_, order0_.rm_addorphanline as rm_addo75_260_, order0_.a_asset_id as a_asset76_260_, order0_.calculate_promotions as calcula77_260_, order0_.c_costcenter_id as c_costc78_260_, order0_.convertquotation as convert79_260_, order0_.c_reject_reason_id as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.quotation_id as quotati82_260_, order0_.so_res_status as so_res_83_260_, order0_.create_polines as create_84_260_, order0_.iscashvat as iscashv85_260_, order0_.em_obmfm_selectfreight as em_obmf86_260_, order0_.em_obmfm_delivery_period_id as em_obmf87_260_, order0_.rm_pickfromreceipt as rm_pick88_260_, order0_.cancelandreplace as cancela89_260_, order0_.em_aprm_addpayment as em_aprm90_260_, order0_.em_obmfm_delivery_charges as em_obmf91_260_, order0_.em_obmfm_freight_id as em_obmf92_260_, order0_.em_obwpl_generatepicking as em_obwp93_260_, order0_.em_obmfm_weight as em_obmf94_260_, order0_.em_obwpl_isinpickinglist as em_obwp95_260_, order0_.em_ec_isproforma as em_ec_i96_260_, order0_.em_obwpl_readypl as em_obwp97_260_, order0_.em_obmfm_weight_uom_id as em_obmf98_260_, order0_.em_obmfm_set_weight as em_obmf99_260_, order0_.em_aeatsii_fecha_operacion as em_aea100_260_, order0_.em_ml_select_product as em_ml_101_260_, order0_.confirmcancelandreplace as confir102_260_, order0_.em_aeatsii_descripcion_sii as em_aea103_260_, order0_.em_etabam_bankaccount_id as em_eta104_260_, order0_.em_etpr_remove_payment as em_etp105_260_, order0_.em_etvfac_reversed_invoice as em_etv106_260_, order0_.cancelledorder_id as cancel107_260_, order0_.em_etblkc_bulkcompletion as em_etb108_260_, order0_.replacedorder_id as replac109_260_, order0_.iscancelled as iscanc110_260_, order0_.replacementorder_id as replac111_260_, order0_.em_etafdp_undoclose as em_eta112_260_, order0_.em_etinter_interco_orig as em_eti113_260_, order0_.bpartner_extref as bpartn114_260_, order0_.em_ec_deprocessbtn as em_ec_115_260_, order0_.em_prpp_generatepicking as em_prp116_260_, order0_.em_prouti_order_stock as em_pro117_260_, order0_.em_prouti_pregenerate_minout as em_pro118_260_, order0_.em_prpres_reference as em_prp119_260_, order0_.em_prouti_sotopo as em_pro120_260_, order0_.em_prpres_void_order as em_prp121_260_, order0_.em_prouti_generate_pick_inv as em_pro122_260_, order0_.em_prpres_gross_total as em_prp123_260_, order0_.em_ec_changewarehouse as em_ec_124_260_, order0_.em_prouti_order_id as em_pro125_260_, order0_.em_prpres_net_total as em_prp126_260_, order0_.em_prouti_grandtotalinitial as em_pro127_260_, order0_.em_prouti_dateclosed as em_pro128_260_, order0_.em_prouti_totallinesinitial as em_pro129_260_, order0_.em_prouti_changebpartner as em_pro130_260_, order0_.em_prouti_recalculate_price as em_pro131_260_, order0_.em_prouti_pricecalculatetdate as em_pro132_260_, order0_.em_prouti_reactiveorder as em_pro133_260_, order0_.em_prouti_totalizations as em_pro134_260_, order0_.em_prouti_invoiced as em_pro135_260_, order0_.em_prouti_received as em_pro136_260_, order0_.em_prpres_isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.em_prpres_giftmessage as em_prp139_260_, order0_.em_prouti_status_of_review as em_pro140_260_, order0_.em_prpres_id_cart as em_prp141_260_, order0_.em_prouti_validate_order as em_pro142_260_, order0_.em_prouti_start_review as em_pro143_260_, order0_.em_prpres_id_paym_transaction as em_prp144_260_, order0_.em_ml_select_product_byattrib as em_ml_145_260_, order0_.em_prouti_initial_bp_id as em_pro146_260_, order0_.em_prpres_processing as em_prp147_260_, order0_.em_prouti_addlines_btn as em_pro148_260_, order0_.em_prpres_generatepicking as em_prp149_260_, order0_.em_prouti_changebpartner_bgt as em_pro150_260_, order0_.em_pruti_ignoreminqty as em_pru151_260_, order0_.em_prpres_c_order_id as em_prp152_260_, order0_.em_prouti_reset_initial_values as em_pro153_260_, order0_.em_prouti_select_soline as em_pro154_260_, order0_.em_prouti_return_quantity as em_pro155_260_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty2_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty2_.c_doctype_id and order0_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), ?)) = ? and order0_.m_warehouse_id = ? and order0_.issotrx = ? and documentty2_.isreturn = ? and (documentty2_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) order by order0_.dateordered desc, order0_.c_order_id desc limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 08 12 35s815ms 2s984ms 09 42 2m18s 3s297ms 10 46 2m42s 3s530ms 11 16 59s213ms 3s700ms 12 23 1m19s 3s455ms 13 14 47s425ms 3s387ms 14 15 50s48ms 3s336ms 15 38 2m17s 3s611ms 16 22 1m14s 3s391ms 17 19 1m2s 3s266ms 18 9 29s234ms 3s248ms [ User: tad - Total duration: 14m36s - Times executed: 256 ]
[ Application: openbravo - Total duration: 14m36s - Times executed: 256 ]
-
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-17 12:35:19 Duration: 4s229ms 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-17 12:36:19 Duration: 4s200ms 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-17 12:35:53 Duration: 4s189ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 178 7m34s 2s398ms 3s221ms 2s555ms select ad_org.ad_org_id, ad_org.social_name, ad_orginfo.taxid as taxidorg, c_locationorg.address1 address1org, c_locationorg.city cityorg, c_locationorg.postal postalorg, c_regionorg.name as regionorg, c_countryorg.name as countryorg, case when c_bpartner.em_ec_isvalorated = ? then c_bpartner.em_ec_isvalorated else m_inout.em_ec_isvalued end as em_ec_isvalued, ad_orginfo.em_pruti_email, ad_orginfo.em_pruti_url, ad_orginfo.em_pruti_phone, ad_orginfo.em_pruti_phone2, ad_orginfo.em_pruti_fax, ad_orginfo.em_pruti_inforeport, ad_orginfo.em_pruti_inforeport2, c_bpartner.value as valuepartner, upper(c_bpartner.name) as namepartner, upper(c_bpartner.name2) as name2partner, c_bpartner.taxid as taxid, contact.name || ?| | coalesce(contact.phone, ?) as contact_info, contact.email as contact_mail, c_location.address1, c_location.postal, c_location.city, c_region.name as region, upper(c_country_trl.name) as country, c_location_description (c_location.c_location_id) || ?| | upper(c_country.name) || ? as locationdesc, c_location_description (c_locationdeliv.c_location_id) || ?| | upper(c_countrydel.name) || ? as locationdelivdesc, upper(c_counttrl_del.name) as countrydel, m_inout.movementdate, m_inout.documentno, m_inout.poreference, m_inout.description as descorder, upper(coalesce(c_doctype_trl.printname, c_doctype.printname)) doctype, m_inout.m_inout_id, concat(repre.firstname, ?, repre.lastname) as comercial, repre.email comercialmail, repre.phone comercialphone, c_order.documentno as docorder, c_currency.cursymbol, ( select sum(movementqty * c_orderline.priceactual) from c_orderline, m_inoutline where c_orderline.c_orderline_id = m_inoutline.c_orderline_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as total, ( select sum(movementqty * m_product.weight) from m_inoutline, m_product where m_inoutline.m_product_id = m_product.m_product_id and m_inoutline.m_inout_id = m_inout.m_inout_id) as weight, row_number() over (order by m_inout.m_inout_id) % ? = ? as row from m_inout left join c_bpartner on m_inout.c_bpartner_id = c_bpartner.c_bpartner_id left join c_bpartner_location on m_inout.c_bpartner_location_id = c_bpartner_location.c_bpartner_location_id left join c_location on c_bpartner_location.c_location_id = c_location.c_location_id left join c_region on c_location.c_region_id = c_region.c_region_id left join c_country on c_location.c_country_id = c_country.c_country_id left join c_country_trl on c_country.c_country_id = c_country_trl.c_country_id and c_country_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_order on m_inout.c_order_id = c_order.c_order_id left join ad_user contact on m_inout.ad_user_id = contact.ad_user_id left join c_bpartner_location delivadd on m_inout.delivery_location_id = delivadd.c_bpartner_location_id left join c_location c_locationdeliv on delivadd.c_location_id = c_locationdeliv.c_location_id left join c_country c_countrydel on c_locationdeliv.c_country_id = c_countrydel.c_country_id left join c_country_trl c_counttrl_del on c_countrydel.c_country_id = c_counttrl_del.c_country_id and c_counttrl_del.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join ad_org on m_inout.ad_org_id = ad_org.ad_org_id left join ad_orginfo on ad_org.ad_org_id = ad_orginfo.ad_org_id left join c_location c_locationorg on ad_orginfo.c_location_id = c_locationorg.c_location_id left join c_region c_regionorg on c_locationorg.c_region_id = c_regionorg.c_region_id left join c_country c_countryorg on c_locationorg.c_country_id = c_countryorg.c_country_id left join c_doctype on m_inout.c_doctype_id = c_doctype.c_doctype_id left join c_doctype_trl on c_doctype_trl.c_doctype_id = c_doctype.c_doctype_id and c_doctype_trl.ad_language = coalesce(c_bpartner_location.em_pbl_ad_language, c_bpartner.ad_language) left join c_currency on c_order.c_currency_id = c_currency.c_currency_id left join ad_user repre on m_inout.salesrep_id = repre.ad_user_id left join fin_financial_account on fin_financial_account.fin_financial_account_id = c_bpartner.fin_financial_account_id left join pruti_paymentmethod_trl on c_order.fin_paymentmethod_id = pruti_paymentmethod_trl.fin_paymentmethod_id and pruti_paymentmethod_trl.ad_language = c_bpartner.ad_language left join prlab_num on ? > prlab_num.num where ? = ? and m_inout.m_inout_id in ( select distinct il.m_inout_id from obwpl_pickinglist pl left join m_inoutline il on il.em_obwpl_pickinglist_id = pl.obwpl_pickinglist_id where pl.obwpl_pickinglist_id in (...)) order by m_inout.documentno;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 08 7 17s573ms 2s510ms 09 30 1m16s 2s545ms 10 25 1m2s 2s500ms 11 17 44s389ms 2s611ms 12 16 41s709ms 2s606ms 13 9 22s612ms 2s512ms 14 4 10s209ms 2s552ms 15 38 1m36s 2s544ms 16 12 31s37ms 2s586ms 17 10 25s827ms 2s582ms 18 10 25s920ms 2s592ms [ User: tad - Total duration: 7m34s - Times executed: 178 ]
[ Application: openbravo - Total duration: 7m34s - Times executed: 178 ]
-
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 ('24CBEFE8194F4D17B3138C4AC7DF86C5')) order by m_inout.documentno;
Date: 2026-07-17 12:07:07 Duration: 3s221ms 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 ('685BADFEF7C54DCAA1A22B657FCCFAD9')) order by m_inout.documentno;
Date: 2026-07-17 11:04:54 Duration: 2s857ms 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 ('DA863C0B6A314ABA92D7A21925B0D62F')) order by m_inout.documentno;
Date: 2026-07-17 11:05:07 Duration: 2s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 37 2m23s 3s614ms 7s4ms 3s875ms select pruti_stoc0_.pruti_stock_detail_v_id as pruti_st1_943_0_, pruti_stoc0_.ad_client_id as ad_clien2_943_0_, pruti_stoc0_.ad_org_id as ad_org_i3_943_0_, pruti_stoc0_.isactive as isactive4_943_0_, pruti_stoc0_.created as created5_943_0_, pruti_stoc0_.createdby as createdb6_943_0_, pruti_stoc0_.updated as updated7_943_0_, pruti_stoc0_.updatedby as updatedb8_943_0_, pruti_stoc0_.type as type9_943_0_, pruti_stoc0_.m_product_id as m_produ10_943_0_, pruti_stoc0_.qty as qty11_943_0_, pruti_stoc0_.m_attributesetinstance_id as m_attri12_943_0_, pruti_stoc0_.m_locator_id as m_locat13_943_0_, pruti_stoc0_.m_warehouse_id as m_wareh14_943_0_ from pruti_stock_detail_v pruti_stoc0_ where pruti_stoc0_.pruti_stock_detail_v_id = ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 08 1 7s4ms 7s4ms 09 3 11s139ms 3s713ms 10 2 7s321ms 3s660ms 11 5 18s787ms 3s757ms 12 1 3s702ms 3s702ms 13 3 11s435ms 3s811ms 15 11 41s625ms 3s784ms 16 7 26s448ms 3s778ms 17 4 15s944ms 3s986ms [ User: tad - Total duration: 2m23s - Times executed: 37 ]
[ Application: openbravo - Total duration: 2m23s - Times executed: 37 ]
-
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 = '1E3D5A99D03547D3B52A7D0EA4776521006B0DBE5CA984B188585E4A2062CB02Apendingsales';
Date: 2026-07-17 08:47:34 Duration: 7s4ms 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 = '53B031A7D9A04EE1AC19BC6041C9689F0FEA662845D2C4C0EB3590D6265EA6108stock';
Date: 2026-07-17 17:28:35 Duration: 4s144ms 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 = '53B031A7D9A04EE1AC19BC6041C9689F04050A3176DE744FCA19943E0F0F77F07stock';
Date: 2026-07-17 17:28:36 Duration: 4s127ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 35 49s506ms 1s255ms 1s651ms 1s414ms 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 #4
Day Hour Count Duration Avg duration Jul 17 07 2 2s892ms 1s446ms 09 2 2s913ms 1s456ms 10 2 2s798ms 1s399ms 12 2 2s874ms 1s437ms 13 3 4s150ms 1s383ms 14 4 5s781ms 1s445ms 15 18 25s259ms 1s403ms 16 2 2s834ms 1s417ms [ User: tad - Total duration: 49s506ms - Times executed: 35 ]
[ Application: openbravo - Total duration: 49s506ms - Times executed: 35 ]
-
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('%22455%') 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-17 15:35:59 Duration: 1s651ms 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('%22449%') 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-17 09:59:57 Duration: 1s638ms 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('%22289%') 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-17 14:52:42 Duration: 1s613ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 35 44s658ms 1s224ms 1s373ms 1s275ms select sum(invoice0_.grandtotal) as col_0_0_, sum(invoice0_.totallines) as col_1_0_ from c_invoice invoice0_ inner join c_order order1_ on invoice0_.c_order_id = order1_.c_order_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and invoice0_.issotrx = ? and invoice0_.docstatus <> ? and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 12 2 2s500ms 1s250ms 13 3 4s50ms 1s350ms 14 6 7s738ms 1s289ms 15 21 26s625ms 1s267ms 16 3 3s743ms 1s247ms [ User: tad - Total duration: 44s658ms - Times executed: 35 ]
[ Application: openbravo - Total duration: 44s658ms - Times executed: 35 ]
-
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('%222556%') 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-17 13:01:52 Duration: 1s373ms 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('%222556%') 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-17 13:02:36 Duration: 1s360ms 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('%222899%') 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-17 14:52:57 Duration: 1s357ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 21 1m9s 3s116ms 3s691ms 3s332ms 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 #6
Day Hour Count Duration Avg duration Jul 17 12 2 6s759ms 3s379ms 13 8 26s829ms 3s353ms 15 2 6s285ms 3s142ms 17 2 6s674ms 3s337ms 18 7 23s424ms 3s346ms [ User: tad - Total duration: 1m9s - Times executed: 21 ]
[ Application: openbravo - Total duration: 1m9s - Times executed: 21 ]
-
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-17 18:12:48 Duration: 3s691ms 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', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-17 13:02:04 Duration: 3s674ms 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-17 13:04:24 Duration: 3s550ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 16 20s906ms 1s227ms 1s583ms 1s306ms 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 #7
Day Hour Count Duration Avg duration Jul 17 12 1 1s227ms 1s227ms 13 2 2s820ms 1s410ms 14 2 2s555ms 1s277ms 15 10 13s14ms 1s301ms 16 1 1s287ms 1s287ms [ User: tad - Total duration: 20s906ms - Times executed: 16 ]
[ Application: openbravo - Total duration: 20s906ms - Times executed: 16 ]
-
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('%222871%') 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-17 15:47:34 Duration: 1s583ms 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('%222556%') 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-17 13:02:20 Duration: 1s451ms 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('%222556%') 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-17 13:01:50 Duration: 1s369ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 15 5m55s 22s982ms 24s645ms 23s680ms 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 #8
Day Hour Count Duration Avg duration Jul 17 07 1 22s982ms 22s982ms 08 1 23s955ms 23s955ms 09 1 23s560ms 23s560ms 10 1 23s400ms 23s400ms 11 1 24s126ms 24s126ms 12 1 23s973ms 23s973ms 13 1 24s93ms 24s93ms 14 1 23s499ms 23s499ms 15 1 23s660ms 23s660ms 16 1 23s611ms 23s611ms 17 1 23s367ms 23s367ms 18 1 23s457ms 23s457ms 19 1 23s498ms 23s498ms 20 1 23s376ms 23s376ms 21 1 24s645ms 24s645ms [ User: tad - Total duration: 5m55s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m55s - 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-17 21:01:48 Duration: 24s645ms 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-17 11:01:48 Duration: 24s126ms 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-17 13:01:48 Duration: 24s93ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 15 33s228ms 1s729ms 7s313ms 2s215ms 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 #9
Day Hour Count Duration Avg duration Jul 17 07 1 1s735ms 1s735ms 08 1 1s772ms 1s772ms 09 1 1s730ms 1s730ms 10 1 1s813ms 1s813ms 11 1 2s95ms 2s95ms 12 1 2s196ms 2s196ms 13 1 1s889ms 1s889ms 14 1 7s313ms 7s313ms 15 1 1s823ms 1s823ms 16 1 1s770ms 1s770ms 17 1 1s804ms 1s804ms 18 1 1s885ms 1s885ms 19 1 1s788ms 1s788ms 20 1 1s729ms 1s729ms 21 1 1s880ms 1s880ms [ User: tad - Total duration: 33s228ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 33s228ms - 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-17 14:01:56 Duration: 7s313ms 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-17 12:01:51 Duration: 2s196ms 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-17 11:01:51 Duration: 2s95ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 15 22s624ms 1s203ms 4s410ms 1s508ms 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 #10
Day Hour Count Duration Avg duration Jul 17 07 1 1s203ms 1s203ms 08 1 1s247ms 1s247ms 09 1 1s227ms 1s227ms 10 1 1s237ms 1s237ms 11 1 1s249ms 1s249ms 12 1 4s410ms 4s410ms 13 1 1s217ms 1s217ms 14 1 1s578ms 1s578ms 15 1 1s268ms 1s268ms 16 1 1s296ms 1s296ms 17 1 1s281ms 1s281ms 18 1 1s345ms 1s345ms 19 1 1s351ms 1s351ms 20 1 1s344ms 1s344ms 21 1 1s364ms 1s364ms [ User: tad - Total duration: 22s624ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 22s624ms - 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-17 12:02:01 Duration: 4s410ms 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-17 14:01:59 Duration: 1s578ms 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-17 21:01:54 Duration: 1s364ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 15 17s676ms 1s40ms 1s317ms 1s178ms select profile.take_sample ();Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 07 1 1s73ms 1s73ms 08 1 1s238ms 1s238ms 09 1 1s99ms 1s99ms 10 1 1s247ms 1s247ms 11 1 1s239ms 1s239ms 12 1 1s199ms 1s199ms 13 1 1s317ms 1s317ms 14 1 1s177ms 1s177ms 15 1 1s121ms 1s121ms 16 1 1s180ms 1s180ms 17 1 1s216ms 1s216ms 18 1 1s263ms 1s263ms 19 1 1s197ms 1s197ms 20 1 1s63ms 1s63ms 21 1 1s40ms 1s40ms [ User: postgres - Total duration: 17s676ms - Times executed: 15 ]
[ Application: psql - Total duration: 17s676ms - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 13:00:02 Duration: 1s317ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 18:00:02 Duration: 1s263ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 10:00:03 Duration: 1s247ms Database: etendo User: postgres Remote: [local] Application: psql
12 13 13s354ms 1s6ms 1s51ms 1s27ms 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 #12
Day Hour Count Duration Avg duration Jul 17 07 1 1s6ms 1s6ms 08 1 1s48ms 1s48ms 09 3 3s73ms 1s24ms 10 1 1s34ms 1s34ms 12 1 1s51ms 1s51ms 13 1 1s12ms 1s12ms 14 2 2s55ms 1s27ms 15 2 2s57ms 1s28ms 16 1 1s15ms 1s15ms [ User: tad - Total duration: 13s354ms - Times executed: 13 ]
[ Application: openbravo - Total duration: 13s354ms - Times executed: 13 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ 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-17 12:32:23 Duration: 1s51ms 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-17 08:14:45 Duration: 1s48ms 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-17 09:17:48 Duration: 1s42ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 11 1m22s 7s89ms 7s844ms 7s535ms 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 17 09 3 23s31ms 7s677ms 11 1 7s485ms 7s485ms 12 2 15s306ms 7s653ms 15 4 29s223ms 7s305ms 17 1 7s844ms 7s844ms [ User: tad - Total duration: 1m22s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m22s - Times executed: 11 ]
-
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-17 17:23:22 Duration: 7s844ms 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-17 12:13:51 Duration: 7s837ms 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-17 09:08:33 Duration: 7s792ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 10 14s805ms 1s392ms 1s588ms 1s480ms select businesspa0_.c_bpartner_id as c_bpartn1_189_, businesspa0_.ad_client_id as ad_clien2_189_, businesspa0_.ad_org_id as ad_org_i3_189_, businesspa0_.isactive as isactive4_189_, businesspa0_.created as created5_189_, businesspa0_.createdby as createdb6_189_, businesspa0_.updated as updated7_189_, businesspa0_.updatedby as updatedb8_189_, businesspa0_.value as value9_189_, businesspa0_.name as name10_189_, businesspa0_.name2 as name11_189_, businesspa0_.description as descrip12_189_, businesspa0_.issummary as issumma13_189_, businesspa0_.c_bp_group_id as c_bp_gr14_189_, businesspa0_.isonetime as isoneti15_189_, businesspa0_.isprospect as isprosp16_189_, businesspa0_.isvendor as isvendo17_189_, businesspa0_.iscustomer as iscusto18_189_, businesspa0_.isemployee as isemplo19_189_, businesspa0_.issalesrep as issales20_189_, businesspa0_.referenceno as referen21_189_, businesspa0_.duns as duns22_189_, businesspa0_.url as url23_189_, businesspa0_.ad_language as ad_lang24_189_, businesspa0_.taxid as taxid25_189_, businesspa0_.istaxexempt as istaxex26_189_, businesspa0_.c_invoiceschedule_id as c_invoi27_189_, businesspa0_.rating as rating28_189_, businesspa0_.salesvolume as salesvo29_189_, businesspa0_.numberemployees as numbere30_189_, businesspa0_.naics as naics31_189_, businesspa0_.firstsale as firstsa32_189_, businesspa0_.acqusitioncost as acqusit33_189_, businesspa0_.potentiallifetimevalue as potenti34_189_, businesspa0_.actuallifetimevalue as actuall35_189_, businesspa0_.shareofcustomer as shareof36_189_, businesspa0_.paymentrule as payment37_189_, businesspa0_.so_creditlimit as so_cred38_189_, businesspa0_.so_creditused as so_cred39_189_, businesspa0_.c_paymentterm_id as c_payme40_189_, businesspa0_.m_pricelist_id as m_price41_189_, businesspa0_.isdiscountprinted as isdisco42_189_, businesspa0_.so_description as so_desc43_189_, businesspa0_.poreference as porefer44_189_, businesspa0_.paymentrulepo as payment45_189_, businesspa0_.po_pricelist_id as po_pric46_189_, businesspa0_.po_paymentterm_id as po_paym47_189_, businesspa0_.documentcopies as documen48_189_, businesspa0_.c_greeting_id as c_greet49_189_, businesspa0_.invoicerule as invoice50_189_, businesspa0_.deliveryrule as deliver51_189_, businesspa0_.deliveryviarule as deliver52_189_, businesspa0_.salesrep_id as salesre53_189_, businesspa0_.bpartner_parent_id as bpartne54_189_, businesspa0_.socreditstatus as socredi55_189_, businesspa0_.ad_forced_org_id as ad_forc56_189_, businesspa0_.showpriceinorder as showpri57_189_, businesspa0_.invoicegrouping as invoice58_189_, businesspa0_.fixmonthday as fixmont59_189_, businesspa0_.fixmonthday2 as fixmont60_189_, businesspa0_.fixmonthday3 as fixmont61_189_, businesspa0_.isworker as isworke62_189_, businesspa0_.upc as upc63_189_, businesspa0_.c_salary_category_id as c_salar64_189_, businesspa0_.invoice_printformat as invoice65_189_, businesspa0_.last_days as last_da66_189_, businesspa0_.po_bankaccount_id as po_bank67_189_, businesspa0_.po_bp_taxcategory_id as po_bp_t68_189_, businesspa0_.po_fixmonthday as po_fixm69_189_, businesspa0_.po_fixmonthday2 as po_fixm70_189_, businesspa0_.po_fixmonthday3 as po_fixm71_189_, businesspa0_.so_bankaccount_id as so_bank72_189_, businesspa0_.so_bp_taxcategory_id as so_bp_t73_189_, businesspa0_.fiscalcode as fiscalc74_189_, businesspa0_.isofiscalcode as isofisc75_189_, businesspa0_.em_einv_einvoice as em_einv76_189_, businesspa0_.po_c_incoterms_id as po_c_in77_189_, businesspa0_.em_einv_format_id as em_einv78_189_, businesspa0_.so_c_incoterms_id as so_c_in79_189_, businesspa0_.em_einv_platform_id as em_einv80_189_, businesspa0_.fin_paymentmethod_id as fin_pay81_189_, businesspa0_.em_einv_email as em_einv82_189_, businesspa0_.po_paymentmethod_id as po_paym83_189_, businesspa0_.fin_financial_account_id as fin_fin84_189_, businesspa0_.em_einv_deliverymode as em_einv85_189_, businesspa0_.po_financial_account_id as po_fina86_189_, businesspa0_.customer_blocking as custome87_189_, businesspa0_.vendor_blocking as vendor_88_189_, businesspa0_.so_payment_blocking as so_paym89_189_, businesspa0_.po_payment_blocking as po_paym90_189_, businesspa0_.so_invoice_blocking as so_invo91_189_, businesspa0_.po_invoice_blocking as po_invo92_189_, businesspa0_.so_order_blocking as so_orde93_189_, businesspa0_.po_order_blocking as po_orde94_189_, businesspa0_.so_goods_blocking as so_good95_189_, businesspa0_.po_goods_blocking as po_good96_189_, businesspa0_.iscashvat as iscashv97_189_, businesspa0_.update_currency as update_98_189_, businesspa0_.bp_currency_id as bp_curr99_189_, businesspa0_.birthplace as birthp100_189_, businesspa0_.birthday as birthd101_189_, businesspa0_.is_customer_consent as is_cus102_189_, businesspa0_.em_obsepad_mandate_identifier as em_obs103_189_, businesspa0_.em_obsepad_mandate_date as em_obs104_189_, businesspa0_.em_aeatsii_rep_taxid as em_aea105_189_, businesspa0_.em_aeatsii_menor as em_aea106_189_, businesspa0_.em_ec_isvalorated as em_ec_107_189_, businesspa0_.em_pruti_addbp as em_pru108_189_, businesspa0_.em_ec_isminoutvalued as em_ec_109_189_, businesspa0_.em_pruti_unlock_date as em_pru110_189_, businesspa0_.em_pruti_unlock_order_date as em_pru111_189_, businesspa0_.em_pruti_annexes_bp_so_id as em_pru112_189_, businesspa0_.em_pruti_annexes_bp_po_id as em_pru113_189_, businesspa0_.em_aeatsii_defaultsiikey as em_aea114_189_, businesspa0_.em_aeatsii_siikeylist as em_aea115_189_, businesspa0_.em_prsii_clave_tipo_proveedor as em_prs116_189_, businesspa0_.em_tbai_issimplifiedinv as em_tba117_189_, businesspa0_.em_prsii_clave_tipo_cliente as em_prs118_189_, businesspa0_.em_obwpl_bp_block_pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.em_pruti_notsendinvoice as em_pru121_189_, businesspa0_.em_pruti_showpriceingoods as em_pru122_189_, businesspa0_.em_obtik_tax_id_key as em_obt123_189_, businesspa0_.em_prcex_glitem_id as em_prc124_189_ from c_bpartner businesspa0_ where exists ( select ? from c_invoice invoice1_ inner join c_bpartner businesspa2_ on invoice1_.c_bpartner_id = businesspa2_.c_bpartner_id where (upper((invoice1_.documentno || ?| | coalesce(to_char(invoice1_.dateinvoiced), ?) || ?| | coalesce(to_char(invoice1_.grandtotal), ?))) like upper(?) escape ?) and businesspa2_.c_bpartner_id = businesspa0_.c_bpartner_id and (invoice1_.ad_org_id in (...)) and (invoice1_.ad_client_id in (...))) order by businesspa0_.name, businesspa0_.name2 limit ?;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jul 17 08 1 1s392ms 1s392ms 14 1 1s393ms 1s393ms 16 2 2s911ms 1s455ms 17 6 9s108ms 1s518ms [ User: tad - Total duration: 14s805ms - Times executed: 10 ]
[ Application: openbravo - Total duration: 14s805ms - Times executed: 10 ]
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea105_189_, businesspa0_.EM_Aeatsii_Menor as em_aea106_189_, businesspa0_.EM_Ec_Isvalorated as em_ec_107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Ec_Isminoutvalued as em_ec_109_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru111_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru113_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea114_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea115_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs116_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba117_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs118_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru121_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru122_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt123_189_, businesspa0_.Em_Prcex_Glitem_Id as em_prc124_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%se%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-17 17:08:28 Duration: 1s588ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea105_189_, businesspa0_.EM_Aeatsii_Menor as em_aea106_189_, businesspa0_.EM_Ec_Isvalorated as em_ec_107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Ec_Isminoutvalued as em_ec_109_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru111_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru113_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea114_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea115_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs116_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba117_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs118_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru121_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru122_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt123_189_, businesspa0_.Em_Prcex_Glitem_Id as em_prc124_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%sick%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-17 17:10:44 Duration: 1s582ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select businesspa0_.C_BPartner_ID as c_bpartn1_189_, businesspa0_.AD_Client_ID as ad_clien2_189_, businesspa0_.AD_Org_ID as ad_org_i3_189_, businesspa0_.IsActive as isactive4_189_, businesspa0_.Created as created5_189_, businesspa0_.CreatedBy as createdb6_189_, businesspa0_.Updated as updated7_189_, businesspa0_.UpdatedBy as updatedb8_189_, businesspa0_.Value as value9_189_, businesspa0_.Name as name10_189_, businesspa0_.Name2 as name11_189_, businesspa0_.Description as descrip12_189_, businesspa0_.IsSummary as issumma13_189_, businesspa0_.C_BP_Group_ID as c_bp_gr14_189_, businesspa0_.IsOneTime as isoneti15_189_, businesspa0_.IsProspect as isprosp16_189_, businesspa0_.IsVendor as isvendo17_189_, businesspa0_.IsCustomer as iscusto18_189_, businesspa0_.IsEmployee as isemplo19_189_, businesspa0_.IsSalesRep as issales20_189_, businesspa0_.ReferenceNo as referen21_189_, businesspa0_.DUNS as duns22_189_, businesspa0_.URL as url23_189_, businesspa0_.AD_Language as ad_lang24_189_, businesspa0_.TaxID as taxid25_189_, businesspa0_.IsTaxExempt as istaxex26_189_, businesspa0_.C_InvoiceSchedule_ID as c_invoi27_189_, businesspa0_.Rating as rating28_189_, businesspa0_.SalesVolume as salesvo29_189_, businesspa0_.NumberEmployees as numbere30_189_, businesspa0_.NAICS as naics31_189_, businesspa0_.FirstSale as firstsa32_189_, businesspa0_.AcqusitionCost as acqusit33_189_, businesspa0_.PotentialLifeTimeValue as potenti34_189_, businesspa0_.ActualLifeTimeValue as actuall35_189_, businesspa0_.ShareOfCustomer as shareof36_189_, businesspa0_.PaymentRule as payment37_189_, businesspa0_.SO_CreditLimit as so_cred38_189_, businesspa0_.SO_CreditUsed as so_cred39_189_, businesspa0_.C_PaymentTerm_ID as c_payme40_189_, businesspa0_.M_PriceList_ID as m_price41_189_, businesspa0_.IsDiscountPrinted as isdisco42_189_, businesspa0_.SO_Description as so_desc43_189_, businesspa0_.POReference as porefer44_189_, businesspa0_.PaymentRulePO as payment45_189_, businesspa0_.PO_PriceList_ID as po_pric46_189_, businesspa0_.PO_PaymentTerm_ID as po_paym47_189_, businesspa0_.DocumentCopies as documen48_189_, businesspa0_.C_Greeting_ID as c_greet49_189_, businesspa0_.InvoiceRule as invoice50_189_, businesspa0_.DeliveryRule as deliver51_189_, businesspa0_.DeliveryViaRule as deliver52_189_, businesspa0_.SalesRep_ID as salesre53_189_, businesspa0_.BPartner_Parent_ID as bpartne54_189_, businesspa0_.SOCreditStatus as socredi55_189_, businesspa0_.AD_Forced_Org_ID as ad_forc56_189_, businesspa0_.ShowPriceInOrder as showpri57_189_, businesspa0_.Invoicegrouping as invoice58_189_, businesspa0_.FixMonthDay as fixmont59_189_, businesspa0_.FixMonthDay2 as fixmont60_189_, businesspa0_.Fixmonthday3 as fixmont61_189_, businesspa0_.Isworker as isworke62_189_, businesspa0_.UPC as upc63_189_, businesspa0_.C_Salary_Category_ID as c_salar64_189_, businesspa0_.Invoice_Printformat as invoice65_189_, businesspa0_.Last_Days as last_da66_189_, businesspa0_.PO_Bankaccount_ID as po_bank67_189_, businesspa0_.PO_BP_TaxCategory_ID as po_bp_t68_189_, businesspa0_.PO_Fixmonthday as po_fixm69_189_, businesspa0_.PO_Fixmonthday2 as po_fixm70_189_, businesspa0_.PO_Fixmonthday3 as po_fixm71_189_, businesspa0_.SO_Bankaccount_ID as so_bank72_189_, businesspa0_.SO_Bp_Taxcategory_ID as so_bp_t73_189_, businesspa0_.Fiscalcode as fiscalc74_189_, businesspa0_.Isofiscalcode as isofisc75_189_, businesspa0_.EM_Einv_Einvoice as em_einv76_189_, businesspa0_.PO_C_Incoterms_ID as po_c_in77_189_, businesspa0_.EM_Einv_Format_Id as em_einv78_189_, businesspa0_.SO_C_Incoterms_ID as so_c_in79_189_, businesspa0_.EM_Einv_Platform_Id as em_einv80_189_, businesspa0_.FIN_Paymentmethod_ID as fin_pay81_189_, businesspa0_.EM_Einv_Email as em_einv82_189_, businesspa0_.PO_Paymentmethod_ID as po_paym83_189_, businesspa0_.FIN_Financial_Account_ID as fin_fin84_189_, businesspa0_.EM_Einv_Deliverymode as em_einv85_189_, businesspa0_.PO_Financial_Account_ID as po_fina86_189_, businesspa0_.Customer_Blocking as custome87_189_, businesspa0_.Vendor_Blocking as vendor_88_189_, businesspa0_.SO_Payment_Blocking as so_paym89_189_, businesspa0_.PO_Payment_Blocking as po_paym90_189_, businesspa0_.SO_Invoice_Blocking as so_invo91_189_, businesspa0_.PO_Invoice_Blocking as po_invo92_189_, businesspa0_.SO_Order_Blocking as so_orde93_189_, businesspa0_.PO_Order_Blocking as po_orde94_189_, businesspa0_.SO_Goods_Blocking as so_good95_189_, businesspa0_.PO_Goods_Blocking as po_good96_189_, businesspa0_.Iscashvat as iscashv97_189_, businesspa0_.Update_Currency as update_98_189_, businesspa0_.BP_Currency_ID as bp_curr99_189_, businesspa0_.Birthplace as birthp100_189_, businesspa0_.Birthday as birthd101_189_, businesspa0_.Is_Customer_Consent as is_cus102_189_, businesspa0_.EM_Obsepad_Mandate_Identifier as em_obs103_189_, businesspa0_.EM_Obsepad_Mandate_Date as em_obs104_189_, businesspa0_.EM_Aeatsii_Rep_Taxid as em_aea105_189_, businesspa0_.EM_Aeatsii_Menor as em_aea106_189_, businesspa0_.EM_Ec_Isvalorated as em_ec_107_189_, businesspa0_.EM_Pruti_Addbp as em_pru108_189_, businesspa0_.EM_Ec_Isminoutvalued as em_ec_109_189_, businesspa0_.EM_Pruti_Unlock_Date as em_pru110_189_, businesspa0_.EM_Pruti_Unlock_Order_Date as em_pru111_189_, businesspa0_.EM_Pruti_Annexes_Bp_So_ID as em_pru112_189_, businesspa0_.EM_Pruti_Annexes_Bp_Po_ID as em_pru113_189_, businesspa0_.EM_Aeatsii_Defaultsiikey as em_aea114_189_, businesspa0_.EM_Aeatsii_Siikeylist as em_aea115_189_, businesspa0_.EM_Prsii_Clave_Tipo_Proveedor as em_prs116_189_, businesspa0_.EM_Tbai_Issimplifiedinv as em_tba117_189_, businesspa0_.EM_Prsii_Clave_Tipo_Cliente as em_prs118_189_, businesspa0_.EM_Obwpl_Bp_Block_Pickinglist as em_obw119_189_, businesspa0_.em_pruti_cus_block_reason_id as em_pru120_189_, businesspa0_.EM_Pruti_Notsendinvoice as em_pru121_189_, businesspa0_.EM_Pruti_Showpriceingoods as em_pru122_189_, businesspa0_.EM_OBTIK_Tax_ID_Key as em_obt123_189_, businesspa0_.Em_Prcex_Glitem_Id as em_prc124_189_ from C_BPartner businesspa0_ where exists ( select 1 from C_Invoice invoice1_ inner join C_BPartner businesspa2_ on invoice1_.C_BPartner_ID = businesspa2_.C_BPartner_ID where (upper((invoice1_.DocumentNo || ' - ' || coalesce(to_char(invoice1_.DateInvoiced), '') || ' - ' || coalesce(to_char(invoice1_.GrandTotal), ''))) like upper('%REG%') escape '|') and businesspa2_.C_BPartner_ID = businesspa0_.C_BPartner_ID and (invoice1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (invoice1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by businesspa0_.Name, businesspa0_.Name2 limit '76';
Date: 2026-07-17 17:32:14 Duration: 1s555ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 10 13s784ms 1s105ms 3s289ms 1s378ms 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 #15
Day Hour Count Duration Avg duration Jul 17 07 1 1s147ms 1s147ms 09 1 1s173ms 1s173ms 10 1 1s162ms 1s162ms 13 1 1s305ms 1s305ms 14 1 3s289ms 3s289ms 15 5 5s706ms 1s141ms [ User: tad - Total duration: 13s784ms - Times executed: 10 ]
[ Application: openbravo - Total duration: 13s784ms - 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_ 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('%22137%') 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-17 14:56:59 Duration: 3s289ms 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('%222556%') 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-17 13:01:51 Duration: 1s305ms 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('%224548%') 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-17 15:01:24 Duration: 1s203ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 10 13s281ms 1s267ms 1s474ms 1s328ms 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 #16
Day Hour Count Duration Avg duration Jul 17 07 1 1s303ms 1s303ms 09 1 1s333ms 1s333ms 10 1 1s290ms 1s290ms 13 1 1s303ms 1s303ms 14 1 1s474ms 1s474ms 15 5 6s576ms 1s315ms [ User: tad - Total duration: 13s281ms - Times executed: 10 ]
[ Application: openbravo - Total duration: 13s281ms - 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_ where (upper((order0_.DocumentNo || ' - ' || coalesce(to_char(order0_.DateOrdered), '') || ' - ' || coalesce(to_char(order0_.GrandTotal), ''))) like upper('%22137%') 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-17 14:56:56 Duration: 1s474ms 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('%224550%') 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-17 15:36:00 Duration: 1s377ms 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('%224525%') 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-17 15:05:30 Duration: 1s340ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 9 28s274ms 2s974ms 3s475ms 3s141ms select sum(order0_.totallines) as col_0_0_, sum(order0_.grandtotal) as col_1_0_, sum(order0_.em_prouti_grandtotalinitial) as col_2_0_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp1_.iscancelled = ? or order_comp1_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and (order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ?) and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 17 18 9 28s274ms 3s141ms [ User: tad - Total duration: 28s274ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 28s274ms - Times executed: 9 ]
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:50 Duration: 3s475ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:08 Duration: 3s224ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:59 Duration: 3s176ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 9 11s390ms 1s237ms 1s303ms 1s265ms select count(*) as col_0_0_, sum(invoice0_.totallines) as col_1_0_, sum(invoice0_.grandtotal) as col_2_0_, sum(invoice0_.dueamt) as col_3_0_, sum(invoice0_.outstandingamt) as col_4_0_, sum(invoice0_.totalpaid) as col_5_0_ from c_invoice invoice0_ inner join c_order order1_ on invoice0_.c_order_id = order1_.c_order_id where (upper((order1_.documentno || ?| | coalesce(to_char(order1_.dateordered), ?) || ?| | coalesce(to_char(order1_.grandtotal), ?))) like upper(?) escape ?) and invoice0_.issotrx = ? and invoice0_.docstatus <> ? and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jul 17 07 9 11s390ms 1s265ms [ User: tad - Total duration: 11s390ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 11s390ms - Times executed: 9 ]
-
select count(*) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_, sum(invoice0_.GrandTotal) as col_2_0_, sum(invoice0_.DueAmt) as col_3_0_, sum(invoice0_.OutstandingAmt) as col_4_0_, sum(invoice0_.Totalpaid) as col_5_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%223906%') 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-17 07:38:49 Duration: 1s303ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_, sum(invoice0_.GrandTotal) as col_2_0_, sum(invoice0_.DueAmt) as col_3_0_, sum(invoice0_.OutstandingAmt) as col_4_0_, sum(invoice0_.Totalpaid) as col_5_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%223906%') 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-17 07:38:45 Duration: 1s302ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select count(*) as col_0_0_, sum(invoice0_.TotalLines) as col_1_0_, sum(invoice0_.GrandTotal) as col_2_0_, sum(invoice0_.DueAmt) as col_3_0_, sum(invoice0_.OutstandingAmt) as col_4_0_, sum(invoice0_.Totalpaid) as col_5_0_ from C_Invoice invoice0_ inner join C_Order order1_ on invoice0_.C_Order_ID = order1_.C_Order_ID where (upper((order1_.DocumentNo || ' - ' || coalesce(to_char(order1_.DateOrdered), '') || ' - ' || coalesce(to_char(order1_.GrandTotal), ''))) like upper('%223906%') 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-17 07:39:07 Duration: 1s270ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 7 20s49ms 2s684ms 3s104ms 2s864ms select orderline0_.c_orderline_id as c_orderl1_263_, orderline0_.ad_client_id as ad_clien2_263_, orderline0_.ad_org_id as ad_org_i3_263_, orderline0_.isactive as isactive4_263_, orderline0_.created as created5_263_, orderline0_.createdby as createdb6_263_, orderline0_.updated as updated7_263_, orderline0_.updatedby as updatedb8_263_, orderline0_.c_order_id as c_order_9_263_, orderline0_.line as line10_263_, orderline0_.c_bpartner_id as c_bpart11_263_, orderline0_.c_bpartner_location_id as c_bpart12_263_, orderline0_.dateordered as dateord13_263_, orderline0_.datepromised as datepro14_263_, orderline0_.datedelivered as datedel15_263_, orderline0_.dateinvoiced as dateinv16_263_, orderline0_.description as descrip17_263_, orderline0_.m_product_id as m_produ18_263_, orderline0_.m_warehouse_id as m_wareh19_263_, orderline0_.directship as directs20_263_, orderline0_.c_uom_id as c_uom_i21_263_, orderline0_.qtyordered as qtyorde22_263_, orderline0_.qtyreserved as qtyrese23_263_, orderline0_.qtydelivered as qtydeli24_263_, orderline0_.qtyinvoiced as qtyinvo25_263_, orderline0_.m_shipper_id as m_shipp26_263_, orderline0_.c_currency_id as c_curre27_263_, orderline0_.pricelist as priceli28_263_, orderline0_.priceactual as priceac29_263_, orderline0_.pricelimit as priceli30_263_, orderline0_.linenetamt as linenet31_263_, orderline0_.discount as discoun32_263_, orderline0_.freightamt as freight33_263_, orderline0_.c_charge_id as c_charg34_263_, orderline0_.chargeamt as chargea35_263_, orderline0_.c_tax_id as c_tax_i36_263_, orderline0_.s_resourceassignment_id as s_resou37_263_, orderline0_.ref_orderline_id as ref_ord38_263_, orderline0_.m_attributesetinstance_id as m_attri39_263_, orderline0_.isdescription as isdescr40_263_, orderline0_.quantityorder as quantit41_263_, orderline0_.m_product_uom_id as m_produ42_263_, orderline0_.m_offer_id as m_offer43_263_, orderline0_.pricestd as pricest44_263_, orderline0_.cancelpricead as cancelp45_263_, orderline0_.c_order_discount_id as c_order46_263_, orderline0_.iseditlinenetamt as iseditl47_263_, orderline0_.taxbaseamt as taxbase48_263_, orderline0_.m_inoutline_id as m_inout49_263_, orderline0_.c_return_reason_id as c_retur50_263_, orderline0_.em_obdipol_widget as em_obdi51_263_, orderline0_.gross_unit_price as gross_u52_263_, orderline0_.line_gross_amount as line_gr53_263_, orderline0_.grosspricelist as grosspr54_263_, orderline0_.c_costcenter_id as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.a_asset_id as a_asset57_263_, orderline0_.m_warehouse_rule_id as m_wareh58_263_, orderline0_.user1_id as user59_263_, orderline0_.quotationline_id as quotati60_263_, orderline0_.user2_id as user61_263_, orderline0_.create_reservation as create_62_263_, orderline0_.c_project_id as c_proje63_263_, orderline0_.so_res_status as so_res_64_263_, orderline0_.manage_reservation as manage_65_263_, orderline0_.manage_prereservation as manage_66_263_, orderline0_.explode as explode67_263_, orderline0_.bom_parent_id as bom_par68_263_, orderline0_.em_obmfm_isfreightamt as em_obmf69_263_, orderline0_.replacedorderline_id as replace70_263_, orderline0_.print_description as print_d71_263_, orderline0_.em_ec_updateprice as em_ec_u72_263_, orderline0_.em_obmfm_freight_definition_id as em_obmf73_263_, orderline0_.overdue_return_days as overdue74_263_, orderline0_.relate_orderline as relate_75_263_, orderline0_.c_aum as c_aum76_263_, orderline0_.aumqty as aumqty77_263_, orderline0_.em_etinter_orig_line as em_etin78_263_, orderline0_.em_etafdp_qtyclose as em_etaf79_263_, orderline0_.returnline as returnl80_263_, orderline0_.em_ec_changeproduct as em_ec_c81_263_, orderline0_.em_prouti_cancelreason_id as em_prou82_263_, orderline0_.em_prouti_canceled as em_prou83_263_, orderline0_.em_prouti_canceledby as em_prou84_263_, orderline0_.em_prouti_closeline as em_prou85_263_, orderline0_.em_prouti_orderline_id as em_prou86_263_, orderline0_.em_prouti_qtyinitial as em_prou87_263_, orderline0_.em_prouti_linenetamtinitial as em_prou88_263_, orderline0_.em_obwpl_readypl as em_obwp89_263_, orderline0_.em_pruti_bom_production as em_prut90_263_, orderline0_.em_prouti_recalculate_qtyinit as em_prou91_263_, orderline0_.em_obwpl_generatepicking_lines as em_obwp92_263_, orderline0_.em_prpres_ps_line_id as em_prpr93_263_ from c_orderline orderline0_ inner join c_order order1_ on orderline0_.c_order_id = order1_.c_order_id where exists ( select ? from m_reservation materialmg2_ left outer join m_product product3_ on materialmg2_.m_product_id = product3_.m_product_id inner join c_orderline orderline4_ on materialmg2_.c_orderline_id = orderline4_.c_orderline_id where (upper(((coalesce(to_char(( select producttrl5_.name from m_product_trl producttrl5_ where producttrl5_.m_product_id = materialmg2_.m_product_id and producttrl5_.ad_language = ?)), to_char(product3_.name), ?) || ?| | coalesce(to_char(product3_.description), ?)) || ?| | coalesce(to_char(materialmg2_.quantity), ?))) like upper(?) escape ?) and orderline4_.c_orderline_id = orderline0_.c_orderline_id and (materialmg2_.ad_org_id in (...)) and (materialmg2_.ad_client_id in (...))) order by order1_.documentno, order1_.dateordered, order1_.grandtotal, orderline0_.line, orderline0_.linenetamt limit ?;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 17 7 20s49ms 2s864ms [ User: tad - Total duration: 20s49ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 20s49ms - Times executed: 7 ]
-
select orderline0_.C_OrderLine_ID as c_orderl1_263_, orderline0_.AD_Client_ID as ad_clien2_263_, orderline0_.AD_Org_ID as ad_org_i3_263_, orderline0_.IsActive as isactive4_263_, orderline0_.Created as created5_263_, orderline0_.CreatedBy as createdb6_263_, orderline0_.Updated as updated7_263_, orderline0_.UpdatedBy as updatedb8_263_, orderline0_.C_Order_ID as c_order_9_263_, orderline0_.Line as line10_263_, orderline0_.C_BPartner_ID as c_bpart11_263_, orderline0_.C_BPartner_Location_ID as c_bpart12_263_, orderline0_.DateOrdered as dateord13_263_, orderline0_.DatePromised as datepro14_263_, orderline0_.DateDelivered as datedel15_263_, orderline0_.DateInvoiced as dateinv16_263_, orderline0_.Description as descrip17_263_, orderline0_.M_Product_ID as m_produ18_263_, orderline0_.M_Warehouse_ID as m_wareh19_263_, orderline0_.DirectShip as directs20_263_, orderline0_.C_UOM_ID as c_uom_i21_263_, orderline0_.QtyOrdered as qtyorde22_263_, orderline0_.QtyReserved as qtyrese23_263_, orderline0_.QtyDelivered as qtydeli24_263_, orderline0_.QtyInvoiced as qtyinvo25_263_, orderline0_.M_Shipper_ID as m_shipp26_263_, orderline0_.C_Currency_ID as c_curre27_263_, orderline0_.PriceList as priceli28_263_, orderline0_.PriceActual as priceac29_263_, orderline0_.PriceLimit as priceli30_263_, orderline0_.LineNetAmt as linenet31_263_, orderline0_.Discount as discoun32_263_, orderline0_.FreightAmt as freight33_263_, orderline0_.C_Charge_ID as c_charg34_263_, orderline0_.ChargeAmt as chargea35_263_, orderline0_.C_Tax_ID as c_tax_i36_263_, orderline0_.S_ResourceAssignment_ID as s_resou37_263_, orderline0_.Ref_OrderLine_ID as ref_ord38_263_, orderline0_.M_AttributeSetInstance_ID as m_attri39_263_, orderline0_.IsDescription as isdescr40_263_, orderline0_.QuantityOrder as quantit41_263_, orderline0_.M_Product_Uom_Id as m_produ42_263_, orderline0_.M_Offer_ID as m_offer43_263_, orderline0_.PriceStd as pricest44_263_, orderline0_.CANCELPRICEAD as cancelp45_263_, orderline0_.C_Order_Discount_ID as c_order46_263_, orderline0_.Iseditlinenetamt as iseditl47_263_, orderline0_.Taxbaseamt as taxbase48_263_, orderline0_.M_Inoutline_ID as m_inout49_263_, orderline0_.C_Return_Reason_ID as c_retur50_263_, orderline0_.EM_Obdipol_Widget as em_obdi51_263_, orderline0_.Gross_Unit_Price as gross_u52_263_, orderline0_.Line_Gross_Amount as line_gr53_263_, orderline0_.GrossPriceList as grosspr54_263_, orderline0_.C_Costcenter_ID as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.A_Asset_ID as a_asset57_263_, orderline0_.M_Warehouse_Rule_ID as m_wareh58_263_, orderline0_.User1_ID as user59_263_, orderline0_.Quotationline_ID as quotati60_263_, orderline0_.User2_ID as user61_263_, orderline0_.Create_Reservation as create_62_263_, orderline0_.C_Project_ID as c_proje63_263_, orderline0_.SO_Res_Status as so_res_64_263_, orderline0_.Manage_Reservation as manage_65_263_, orderline0_.Manage_Prereservation as manage_66_263_, orderline0_.Explode as explode67_263_, orderline0_.BOM_Parent_ID as bom_par68_263_, orderline0_.EM_OBMFM_IsFreightAmt as em_obmf69_263_, orderline0_.Replacedorderline_id as replace70_263_, orderline0_.Print_Description as print_d71_263_, orderline0_.EM_Ec_Updateprice as em_ec_u72_263_, orderline0_.EM_OBMFM_Freight_Definition_ID as em_obmf73_263_, orderline0_.Overdue_Return_Days as overdue74_263_, orderline0_.Relate_Orderline as relate_75_263_, orderline0_.C_Aum as c_aum76_263_, orderline0_.Aumqty as aumqty77_263_, orderline0_.EM_Etinter_Orig_Line as em_etin78_263_, orderline0_.EM_Etafdp_Qtyclose as em_etaf79_263_, orderline0_.Returnline as returnl80_263_, orderline0_.EM_Ec_Changeproduct as em_ec_c81_263_, orderline0_.EM_Prouti_Cancelreason_ID as em_prou82_263_, orderline0_.EM_Prouti_Canceled as em_prou83_263_, orderline0_.EM_Prouti_Canceledby as em_prou84_263_, orderline0_.EM_Prouti_Closeline as em_prou85_263_, orderline0_.EM_Prouti_Orderline_ID as em_prou86_263_, orderline0_.EM_Prouti_Qtyinitial as em_prou87_263_, orderline0_.EM_Prouti_Linenetamtinitial as em_prou88_263_, orderline0_.EM_Obwpl_Readypl as em_obwp89_263_, orderline0_.EM_Pruti_Bom_Production as em_prut90_263_, orderline0_.EM_Prouti_Recalculate_Qtyinit as em_prou91_263_, orderline0_.EM_Obwpl_Generatepicking_Lines as em_obwp92_263_, orderline0_.EM_Prpres_Ps_Line_ID as em_prpr93_263_ from C_OrderLine orderline0_ inner join C_Order order1_ on orderline0_.C_Order_ID = order1_.C_Order_ID where exists ( select 1 from M_Reservation materialmg2_ left outer join M_Product product3_ on materialmg2_.M_Product_ID = product3_.M_Product_ID inner join C_OrderLine orderline4_ on materialmg2_.C_Orderline_ID = orderline4_.C_OrderLine_ID where (upper(((coalesce(to_char(( select producttrl5_.Name from M_Product_Trl producttrl5_ where producttrl5_.M_Product_ID = materialmg2_.M_Product_ID and producttrl5_.AD_Language = 'es_ES')), to_char(product3_.Name), '') || ' - ' || coalesce(to_char(product3_.Description), '')) || ' - ' || coalesce(to_char(materialmg2_.Quantity), ''))) like upper('%217%') escape '|') and orderline4_.C_OrderLine_ID = orderline0_.C_OrderLine_ID and (materialmg2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (materialmg2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order1_.DocumentNo, order1_.DateOrdered, order1_.GrandTotal, orderline0_.Line, orderline0_.LineNetAmt limit '76';
Date: 2026-07-17 17:08:41 Duration: 3s104ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select orderline0_.C_OrderLine_ID as c_orderl1_263_, orderline0_.AD_Client_ID as ad_clien2_263_, orderline0_.AD_Org_ID as ad_org_i3_263_, orderline0_.IsActive as isactive4_263_, orderline0_.Created as created5_263_, orderline0_.CreatedBy as createdb6_263_, orderline0_.Updated as updated7_263_, orderline0_.UpdatedBy as updatedb8_263_, orderline0_.C_Order_ID as c_order_9_263_, orderline0_.Line as line10_263_, orderline0_.C_BPartner_ID as c_bpart11_263_, orderline0_.C_BPartner_Location_ID as c_bpart12_263_, orderline0_.DateOrdered as dateord13_263_, orderline0_.DatePromised as datepro14_263_, orderline0_.DateDelivered as datedel15_263_, orderline0_.DateInvoiced as dateinv16_263_, orderline0_.Description as descrip17_263_, orderline0_.M_Product_ID as m_produ18_263_, orderline0_.M_Warehouse_ID as m_wareh19_263_, orderline0_.DirectShip as directs20_263_, orderline0_.C_UOM_ID as c_uom_i21_263_, orderline0_.QtyOrdered as qtyorde22_263_, orderline0_.QtyReserved as qtyrese23_263_, orderline0_.QtyDelivered as qtydeli24_263_, orderline0_.QtyInvoiced as qtyinvo25_263_, orderline0_.M_Shipper_ID as m_shipp26_263_, orderline0_.C_Currency_ID as c_curre27_263_, orderline0_.PriceList as priceli28_263_, orderline0_.PriceActual as priceac29_263_, orderline0_.PriceLimit as priceli30_263_, orderline0_.LineNetAmt as linenet31_263_, orderline0_.Discount as discoun32_263_, orderline0_.FreightAmt as freight33_263_, orderline0_.C_Charge_ID as c_charg34_263_, orderline0_.ChargeAmt as chargea35_263_, orderline0_.C_Tax_ID as c_tax_i36_263_, orderline0_.S_ResourceAssignment_ID as s_resou37_263_, orderline0_.Ref_OrderLine_ID as ref_ord38_263_, orderline0_.M_AttributeSetInstance_ID as m_attri39_263_, orderline0_.IsDescription as isdescr40_263_, orderline0_.QuantityOrder as quantit41_263_, orderline0_.M_Product_Uom_Id as m_produ42_263_, orderline0_.M_Offer_ID as m_offer43_263_, orderline0_.PriceStd as pricest44_263_, orderline0_.CANCELPRICEAD as cancelp45_263_, orderline0_.C_Order_Discount_ID as c_order46_263_, orderline0_.Iseditlinenetamt as iseditl47_263_, orderline0_.Taxbaseamt as taxbase48_263_, orderline0_.M_Inoutline_ID as m_inout49_263_, orderline0_.C_Return_Reason_ID as c_retur50_263_, orderline0_.EM_Obdipol_Widget as em_obdi51_263_, orderline0_.Gross_Unit_Price as gross_u52_263_, orderline0_.Line_Gross_Amount as line_gr53_263_, orderline0_.GrossPriceList as grosspr54_263_, orderline0_.C_Costcenter_ID as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.A_Asset_ID as a_asset57_263_, orderline0_.M_Warehouse_Rule_ID as m_wareh58_263_, orderline0_.User1_ID as user59_263_, orderline0_.Quotationline_ID as quotati60_263_, orderline0_.User2_ID as user61_263_, orderline0_.Create_Reservation as create_62_263_, orderline0_.C_Project_ID as c_proje63_263_, orderline0_.SO_Res_Status as so_res_64_263_, orderline0_.Manage_Reservation as manage_65_263_, orderline0_.Manage_Prereservation as manage_66_263_, orderline0_.Explode as explode67_263_, orderline0_.BOM_Parent_ID as bom_par68_263_, orderline0_.EM_OBMFM_IsFreightAmt as em_obmf69_263_, orderline0_.Replacedorderline_id as replace70_263_, orderline0_.Print_Description as print_d71_263_, orderline0_.EM_Ec_Updateprice as em_ec_u72_263_, orderline0_.EM_OBMFM_Freight_Definition_ID as em_obmf73_263_, orderline0_.Overdue_Return_Days as overdue74_263_, orderline0_.Relate_Orderline as relate_75_263_, orderline0_.C_Aum as c_aum76_263_, orderline0_.Aumqty as aumqty77_263_, orderline0_.EM_Etinter_Orig_Line as em_etin78_263_, orderline0_.EM_Etafdp_Qtyclose as em_etaf79_263_, orderline0_.Returnline as returnl80_263_, orderline0_.EM_Ec_Changeproduct as em_ec_c81_263_, orderline0_.EM_Prouti_Cancelreason_ID as em_prou82_263_, orderline0_.EM_Prouti_Canceled as em_prou83_263_, orderline0_.EM_Prouti_Canceledby as em_prou84_263_, orderline0_.EM_Prouti_Closeline as em_prou85_263_, orderline0_.EM_Prouti_Orderline_ID as em_prou86_263_, orderline0_.EM_Prouti_Qtyinitial as em_prou87_263_, orderline0_.EM_Prouti_Linenetamtinitial as em_prou88_263_, orderline0_.EM_Obwpl_Readypl as em_obwp89_263_, orderline0_.EM_Pruti_Bom_Production as em_prut90_263_, orderline0_.EM_Prouti_Recalculate_Qtyinit as em_prou91_263_, orderline0_.EM_Obwpl_Generatepicking_Lines as em_obwp92_263_, orderline0_.EM_Prpres_Ps_Line_ID as em_prpr93_263_ from C_OrderLine orderline0_ inner join C_Order order1_ on orderline0_.C_Order_ID = order1_.C_Order_ID where exists ( select 1 from M_Reservation materialmg2_ left outer join M_Product product3_ on materialmg2_.M_Product_ID = product3_.M_Product_ID inner join C_OrderLine orderline4_ on materialmg2_.C_Orderline_ID = orderline4_.C_OrderLine_ID where (upper(((coalesce(to_char(( select producttrl5_.Name from M_Product_Trl producttrl5_ where producttrl5_.M_Product_ID = materialmg2_.M_Product_ID and producttrl5_.AD_Language = 'es_ES')), to_char(product3_.Name), '') || ' - ' || coalesce(to_char(product3_.Description), '')) || ' - ' || coalesce(to_char(materialmg2_.Quantity), ''))) like upper('%2167%') escape '|') and orderline4_.C_OrderLine_ID = orderline0_.C_OrderLine_ID and (materialmg2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (materialmg2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order1_.DocumentNo, order1_.DateOrdered, order1_.GrandTotal, orderline0_.Line, orderline0_.LineNetAmt limit '76';
Date: 2026-07-17 17:08:49 Duration: 2s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select orderline0_.C_OrderLine_ID as c_orderl1_263_, orderline0_.AD_Client_ID as ad_clien2_263_, orderline0_.AD_Org_ID as ad_org_i3_263_, orderline0_.IsActive as isactive4_263_, orderline0_.Created as created5_263_, orderline0_.CreatedBy as createdb6_263_, orderline0_.Updated as updated7_263_, orderline0_.UpdatedBy as updatedb8_263_, orderline0_.C_Order_ID as c_order_9_263_, orderline0_.Line as line10_263_, orderline0_.C_BPartner_ID as c_bpart11_263_, orderline0_.C_BPartner_Location_ID as c_bpart12_263_, orderline0_.DateOrdered as dateord13_263_, orderline0_.DatePromised as datepro14_263_, orderline0_.DateDelivered as datedel15_263_, orderline0_.DateInvoiced as dateinv16_263_, orderline0_.Description as descrip17_263_, orderline0_.M_Product_ID as m_produ18_263_, orderline0_.M_Warehouse_ID as m_wareh19_263_, orderline0_.DirectShip as directs20_263_, orderline0_.C_UOM_ID as c_uom_i21_263_, orderline0_.QtyOrdered as qtyorde22_263_, orderline0_.QtyReserved as qtyrese23_263_, orderline0_.QtyDelivered as qtydeli24_263_, orderline0_.QtyInvoiced as qtyinvo25_263_, orderline0_.M_Shipper_ID as m_shipp26_263_, orderline0_.C_Currency_ID as c_curre27_263_, orderline0_.PriceList as priceli28_263_, orderline0_.PriceActual as priceac29_263_, orderline0_.PriceLimit as priceli30_263_, orderline0_.LineNetAmt as linenet31_263_, orderline0_.Discount as discoun32_263_, orderline0_.FreightAmt as freight33_263_, orderline0_.C_Charge_ID as c_charg34_263_, orderline0_.ChargeAmt as chargea35_263_, orderline0_.C_Tax_ID as c_tax_i36_263_, orderline0_.S_ResourceAssignment_ID as s_resou37_263_, orderline0_.Ref_OrderLine_ID as ref_ord38_263_, orderline0_.M_AttributeSetInstance_ID as m_attri39_263_, orderline0_.IsDescription as isdescr40_263_, orderline0_.QuantityOrder as quantit41_263_, orderline0_.M_Product_Uom_Id as m_produ42_263_, orderline0_.M_Offer_ID as m_offer43_263_, orderline0_.PriceStd as pricest44_263_, orderline0_.CANCELPRICEAD as cancelp45_263_, orderline0_.C_Order_Discount_ID as c_order46_263_, orderline0_.Iseditlinenetamt as iseditl47_263_, orderline0_.Taxbaseamt as taxbase48_263_, orderline0_.M_Inoutline_ID as m_inout49_263_, orderline0_.C_Return_Reason_ID as c_retur50_263_, orderline0_.EM_Obdipol_Widget as em_obdi51_263_, orderline0_.Gross_Unit_Price as gross_u52_263_, orderline0_.Line_Gross_Amount as line_gr53_263_, orderline0_.GrossPriceList as grosspr54_263_, orderline0_.C_Costcenter_ID as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.A_Asset_ID as a_asset57_263_, orderline0_.M_Warehouse_Rule_ID as m_wareh58_263_, orderline0_.User1_ID as user59_263_, orderline0_.Quotationline_ID as quotati60_263_, orderline0_.User2_ID as user61_263_, orderline0_.Create_Reservation as create_62_263_, orderline0_.C_Project_ID as c_proje63_263_, orderline0_.SO_Res_Status as so_res_64_263_, orderline0_.Manage_Reservation as manage_65_263_, orderline0_.Manage_Prereservation as manage_66_263_, orderline0_.Explode as explode67_263_, orderline0_.BOM_Parent_ID as bom_par68_263_, orderline0_.EM_OBMFM_IsFreightAmt as em_obmf69_263_, orderline0_.Replacedorderline_id as replace70_263_, orderline0_.Print_Description as print_d71_263_, orderline0_.EM_Ec_Updateprice as em_ec_u72_263_, orderline0_.EM_OBMFM_Freight_Definition_ID as em_obmf73_263_, orderline0_.Overdue_Return_Days as overdue74_263_, orderline0_.Relate_Orderline as relate_75_263_, orderline0_.C_Aum as c_aum76_263_, orderline0_.Aumqty as aumqty77_263_, orderline0_.EM_Etinter_Orig_Line as em_etin78_263_, orderline0_.EM_Etafdp_Qtyclose as em_etaf79_263_, orderline0_.Returnline as returnl80_263_, orderline0_.EM_Ec_Changeproduct as em_ec_c81_263_, orderline0_.EM_Prouti_Cancelreason_ID as em_prou82_263_, orderline0_.EM_Prouti_Canceled as em_prou83_263_, orderline0_.EM_Prouti_Canceledby as em_prou84_263_, orderline0_.EM_Prouti_Closeline as em_prou85_263_, orderline0_.EM_Prouti_Orderline_ID as em_prou86_263_, orderline0_.EM_Prouti_Qtyinitial as em_prou87_263_, orderline0_.EM_Prouti_Linenetamtinitial as em_prou88_263_, orderline0_.EM_Obwpl_Readypl as em_obwp89_263_, orderline0_.EM_Pruti_Bom_Production as em_prut90_263_, orderline0_.EM_Prouti_Recalculate_Qtyinit as em_prou91_263_, orderline0_.EM_Obwpl_Generatepicking_Lines as em_obwp92_263_, orderline0_.EM_Prpres_Ps_Line_ID as em_prpr93_263_ from C_OrderLine orderline0_ inner join C_Order order1_ on orderline0_.C_Order_ID = order1_.C_Order_ID where exists ( select 1 from M_Reservation materialmg2_ left outer join M_Product product3_ on materialmg2_.M_Product_ID = product3_.M_Product_ID inner join C_OrderLine orderline4_ on materialmg2_.C_Orderline_ID = orderline4_.C_OrderLine_ID where (upper(((coalesce(to_char(( select producttrl5_.Name from M_Product_Trl producttrl5_ where producttrl5_.M_Product_ID = materialmg2_.M_Product_ID and producttrl5_.AD_Language = 'es_ES')), to_char(product3_.Name), '') || ' - ' || coalesce(to_char(product3_.Description), '')) || ' - ' || coalesce(to_char(materialmg2_.Quantity), ''))) like upper('%217826%') escape '|') and orderline4_.C_OrderLine_ID = orderline0_.C_OrderLine_ID and (materialmg2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (materialmg2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order1_.DocumentNo, order1_.DateOrdered, order1_.GrandTotal, orderline0_.Line, orderline0_.LineNetAmt limit '76';
Date: 2026-07-17 17:08:45 Duration: 2s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 5 1h27m17s 16m31s 18m37s 17m27s select aduser0_.ad_user_id as ad_user_1_129_, aduser0_.ad_client_id as ad_clien2_129_, aduser0_.ad_org_id as ad_org_i3_129_, aduser0_.isactive as isactive4_129_, aduser0_.created as created5_129_, aduser0_.createdby as createdb6_129_, aduser0_.updated as updated7_129_, aduser0_.updatedby as updatedb8_129_, aduser0_.name as name9_129_, aduser0_.description as descrip10_129_, aduser0_.password as passwor11_129_, aduser0_.email as email12_129_, aduser0_.supervisor_id as supervi13_129_, aduser0_.c_bpartner_id as c_bpart14_129_, aduser0_.processing as process15_129_, aduser0_.emailuser as emailus16_129_, aduser0_.emailuserpw as emailus17_129_, aduser0_.c_bpartner_location_id as c_bpart18_129_, aduser0_.c_greeting_id as c_greet19_129_, aduser0_.title as title20_129_, aduser0_.comments as comment21_129_, aduser0_.phone as phone22_129_, aduser0_.phone2 as phone23_129_, aduser0_.fax as fax24_129_, aduser0_.lastcontact as lastcon25_129_, aduser0_.lastresult as lastres26_129_, aduser0_.birthday as birthda27_129_, aduser0_.ad_orgtrx_id as ad_orgt28_129_, aduser0_.firstname as firstna29_129_, aduser0_.lastname as lastnam30_129_, aduser0_.username as usernam31_129_, aduser0_.default_ad_client_id as default32_129_, aduser0_.default_ad_language as default33_129_, aduser0_.default_ad_org_id as default34_129_, aduser0_.default_ad_role_id as default35_129_, aduser0_.default_m_warehouse_id as default36_129_, aduser0_.islocked as islocke37_129_, aduser0_.ad_image_id as ad_imag38_129_, aduser0_.grant_portal_access as grant_p39_129_, aduser0_.em_ec_isbillingcontact as em_ec_i40_129_, aduser0_.em_prapp_username as em_prap41_129_, aduser0_.lastpasswordupdate as lastpas42_129_, aduser0_.em_prapp_password as em_prap43_129_, aduser0_.isexpiredpassword as isexpir44_129_, aduser0_.commercialauth as commerc45_129_, aduser0_.em_prapp_mail1 as em_prap46_129_, aduser0_.em_prapp_mail2 as em_prap47_129_, aduser0_.viasms as viasms48_129_, aduser0_.em_prapp_platform as em_prap49_129_, aduser0_.viaemail as viaemai50_129_, aduser0_.em_prapp_uuid as em_prap51_129_, aduser0_.em_prapp_token as em_prap52_129_, aduser0_.em_pruti_isbillingcontact as em_prut53_129_, aduser0_.em_pruti_isordercontact as em_prut54_129_, aduser0_.em_smfsws_default_ws_role_id as em_smfs55_129_, aduser0_.em_pruti_ispurchaseordcontact as em_prut56_129_, aduser0_.em_ec_ispurchorder as em_ec_i57_129_, aduser0_.isdefaultfordocs as isdefau58_129_, aduser0_.em_etas_bad_password_attempts as em_etas59_129_, aduser0_.em_etas_enable_mult_session as em_etas60_129_, aduser0_.em_etas_issecure_pw as em_etas61_129_, aduser0_.em_prpres_prestashop_id as em_prpr62_129_, aduser0_.em_etas_isused_pw as em_etas63_129_, aduser0_.em_prpres_gender as em_prpr64_129_, aduser0_.em_etas_isnewuser as em_etas65_129_, aduser0_.em_prpres_newsletter as em_prpr66_129_, aduser0_.em_prpres_password as em_prpr67_129_, aduser0_.em_pruti_isshipmentcontact as em_prut68_129_, aduser0_.em_prpres_not_upload as em_prpr69_129_, aduser0_.em_prpres_created_from_ps as em_prpr70_129_, aduser0_.em_primpa_iscontact as em_prim71_129_ from ad_user aduser0_ where exists ( select ? from c_order order1_ inner join ad_user aduser2_ on order1_.updatedby = aduser2_.ad_user_id cross join c_order order_comp3_ cross join c_doctype documentty4_ where order1_.c_order_id = order_comp3_.c_order_id and order1_.c_doctypetarget_id = documentty4_.c_doctype_id and order1_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), ?)) = ? and order1_.m_warehouse_id = ? and order1_.issotrx = ? and documentty4_.isreturn = ? and (documentty4_.docsubtypeso not like ?) and aduser2_.ad_user_id = aduser0_.ad_user_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by aduser0_.name limit ?;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jul 17 09 1 16m40s 16m40s 16 2 37m14s 18m37s 17 2 33m22s 16m41s [ User: tad - Total duration: 1h27m17s - Times executed: 5 ]
[ Application: openbravo - Total duration: 1h27m17s - Times executed: 5 ]
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 16:38:08 Duration: 18m37s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 16:38:11 Duration: 18m37s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 17:32:33 Duration: 16m50s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 16m31s 18m37s 17m27s 5 1h27m17s select aduser0_.ad_user_id as ad_user_1_129_, aduser0_.ad_client_id as ad_clien2_129_, aduser0_.ad_org_id as ad_org_i3_129_, aduser0_.isactive as isactive4_129_, aduser0_.created as created5_129_, aduser0_.createdby as createdb6_129_, aduser0_.updated as updated7_129_, aduser0_.updatedby as updatedb8_129_, aduser0_.name as name9_129_, aduser0_.description as descrip10_129_, aduser0_.password as passwor11_129_, aduser0_.email as email12_129_, aduser0_.supervisor_id as supervi13_129_, aduser0_.c_bpartner_id as c_bpart14_129_, aduser0_.processing as process15_129_, aduser0_.emailuser as emailus16_129_, aduser0_.emailuserpw as emailus17_129_, aduser0_.c_bpartner_location_id as c_bpart18_129_, aduser0_.c_greeting_id as c_greet19_129_, aduser0_.title as title20_129_, aduser0_.comments as comment21_129_, aduser0_.phone as phone22_129_, aduser0_.phone2 as phone23_129_, aduser0_.fax as fax24_129_, aduser0_.lastcontact as lastcon25_129_, aduser0_.lastresult as lastres26_129_, aduser0_.birthday as birthda27_129_, aduser0_.ad_orgtrx_id as ad_orgt28_129_, aduser0_.firstname as firstna29_129_, aduser0_.lastname as lastnam30_129_, aduser0_.username as usernam31_129_, aduser0_.default_ad_client_id as default32_129_, aduser0_.default_ad_language as default33_129_, aduser0_.default_ad_org_id as default34_129_, aduser0_.default_ad_role_id as default35_129_, aduser0_.default_m_warehouse_id as default36_129_, aduser0_.islocked as islocke37_129_, aduser0_.ad_image_id as ad_imag38_129_, aduser0_.grant_portal_access as grant_p39_129_, aduser0_.em_ec_isbillingcontact as em_ec_i40_129_, aduser0_.em_prapp_username as em_prap41_129_, aduser0_.lastpasswordupdate as lastpas42_129_, aduser0_.em_prapp_password as em_prap43_129_, aduser0_.isexpiredpassword as isexpir44_129_, aduser0_.commercialauth as commerc45_129_, aduser0_.em_prapp_mail1 as em_prap46_129_, aduser0_.em_prapp_mail2 as em_prap47_129_, aduser0_.viasms as viasms48_129_, aduser0_.em_prapp_platform as em_prap49_129_, aduser0_.viaemail as viaemai50_129_, aduser0_.em_prapp_uuid as em_prap51_129_, aduser0_.em_prapp_token as em_prap52_129_, aduser0_.em_pruti_isbillingcontact as em_prut53_129_, aduser0_.em_pruti_isordercontact as em_prut54_129_, aduser0_.em_smfsws_default_ws_role_id as em_smfs55_129_, aduser0_.em_pruti_ispurchaseordcontact as em_prut56_129_, aduser0_.em_ec_ispurchorder as em_ec_i57_129_, aduser0_.isdefaultfordocs as isdefau58_129_, aduser0_.em_etas_bad_password_attempts as em_etas59_129_, aduser0_.em_etas_enable_mult_session as em_etas60_129_, aduser0_.em_etas_issecure_pw as em_etas61_129_, aduser0_.em_prpres_prestashop_id as em_prpr62_129_, aduser0_.em_etas_isused_pw as em_etas63_129_, aduser0_.em_prpres_gender as em_prpr64_129_, aduser0_.em_etas_isnewuser as em_etas65_129_, aduser0_.em_prpres_newsletter as em_prpr66_129_, aduser0_.em_prpres_password as em_prpr67_129_, aduser0_.em_pruti_isshipmentcontact as em_prut68_129_, aduser0_.em_prpres_not_upload as em_prpr69_129_, aduser0_.em_prpres_created_from_ps as em_prpr70_129_, aduser0_.em_primpa_iscontact as em_prim71_129_ from ad_user aduser0_ where exists ( select ? from c_order order1_ inner join ad_user aduser2_ on order1_.updatedby = aduser2_.ad_user_id cross join c_order order_comp3_ cross join c_doctype documentty4_ where order1_.c_order_id = order_comp3_.c_order_id and order1_.c_doctypetarget_id = documentty4_.c_doctype_id and order1_.dateordered >= ? and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), ?)) = ? and order1_.m_warehouse_id = ? and order1_.issotrx = ? and documentty4_.isreturn = ? and (documentty4_.docsubtypeso not like ?) and aduser2_.ad_user_id = aduser0_.ad_user_id and (order1_.ad_org_id in (...)) and (order1_.ad_client_id in (...))) order by aduser0_.name limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 09 1 16m40s 16m40s 16 2 37m14s 18m37s 17 2 33m22s 16m41s [ User: tad - Total duration: 1h27m17s - Times executed: 5 ]
[ Application: openbravo - Total duration: 1h27m17s - Times executed: 5 ]
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 16:38:08 Duration: 18m37s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 16:38:11 Duration: 18m37s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select aduser0_.AD_User_ID as ad_user_1_129_, aduser0_.AD_Client_ID as ad_clien2_129_, aduser0_.AD_Org_ID as ad_org_i3_129_, aduser0_.IsActive as isactive4_129_, aduser0_.Created as created5_129_, aduser0_.CreatedBy as createdb6_129_, aduser0_.Updated as updated7_129_, aduser0_.UpdatedBy as updatedb8_129_, aduser0_.Name as name9_129_, aduser0_.Description as descrip10_129_, aduser0_.Password as passwor11_129_, aduser0_.Email as email12_129_, aduser0_.Supervisor_ID as supervi13_129_, aduser0_.C_BPartner_ID as c_bpart14_129_, aduser0_.Processing as process15_129_, aduser0_.EmailUser as emailus16_129_, aduser0_.EmailUserPW as emailus17_129_, aduser0_.C_BPartner_Location_ID as c_bpart18_129_, aduser0_.C_Greeting_ID as c_greet19_129_, aduser0_.Title as title20_129_, aduser0_.Comments as comment21_129_, aduser0_.Phone as phone22_129_, aduser0_.Phone2 as phone23_129_, aduser0_.Fax as fax24_129_, aduser0_.LastContact as lastcon25_129_, aduser0_.LastResult as lastres26_129_, aduser0_.Birthday as birthda27_129_, aduser0_.AD_OrgTrx_ID as ad_orgt28_129_, aduser0_.Firstname as firstna29_129_, aduser0_.Lastname as lastnam30_129_, aduser0_.UserName as usernam31_129_, aduser0_.Default_Ad_Client_ID as default32_129_, aduser0_.Default_Ad_Language as default33_129_, aduser0_.Default_Ad_Org_ID as default34_129_, aduser0_.Default_Ad_Role_ID as default35_129_, aduser0_.Default_M_Warehouse_ID as default36_129_, aduser0_.IsLocked as islocke37_129_, aduser0_.AD_Image_ID as ad_imag38_129_, aduser0_.Grant_Portal_Access as grant_p39_129_, aduser0_.EM_Ec_Isbillingcontact as em_ec_i40_129_, aduser0_.EM_Prapp_Username as em_prap41_129_, aduser0_.LastPasswordUpdate as lastpas42_129_, aduser0_.EM_Prapp_Password as em_prap43_129_, aduser0_.Isexpiredpassword as isexpir44_129_, aduser0_.Commercialauth as commerc45_129_, aduser0_.EM_Prapp_Mail1 as em_prap46_129_, aduser0_.EM_Prapp_Mail2 as em_prap47_129_, aduser0_.Viasms as viasms48_129_, aduser0_.EM_Prapp_Platform as em_prap49_129_, aduser0_.Viaemail as viaemai50_129_, aduser0_.EM_Prapp_Uuid as em_prap51_129_, aduser0_.EM_Prapp_Token as em_prap52_129_, aduser0_.EM_Pruti_Isbillingcontact as em_prut53_129_, aduser0_.EM_Pruti_Isordercontact as em_prut54_129_, aduser0_.EM_Smfsws_Default_Ws_Role_ID as em_smfs55_129_, aduser0_.EM_Pruti_Ispurchaseordcontact as em_prut56_129_, aduser0_.EM_Ec_Ispurchorder as em_ec_i57_129_, aduser0_.Isdefaultfordocs as isdefau58_129_, aduser0_.EM_Etas_bad_Password_Attempts as em_etas59_129_, aduser0_.EM_Etas_Enable_Mult_Session as em_etas60_129_, aduser0_.EM_Etas_Issecure_Pw as em_etas61_129_, aduser0_.EM_Prpres_Prestashop_ID as em_prpr62_129_, aduser0_.EM_Etas_Isused_Pw as em_etas63_129_, aduser0_.EM_Prpres_Gender as em_prpr64_129_, aduser0_.EM_Etas_Isnewuser as em_etas65_129_, aduser0_.EM_Prpres_Newsletter as em_prpr66_129_, aduser0_.EM_Prpres_Password as em_prpr67_129_, aduser0_.EM_Pruti_Isshipmentcontact as em_prut68_129_, aduser0_.EM_Prpres_Not_Upload as em_prpr69_129_, aduser0_.EM_Prpres_Created_From_Ps as em_prpr70_129_, aduser0_.EM_Primpa_Iscontact as em_prim71_129_ from AD_User aduser0_ where exists ( select 1 from C_Order order1_ inner join AD_User aduser2_ on order1_.UpdatedBy = aduser2_.AD_User_ID cross join C_Order order_comp3_ cross join C_DocType documentty4_ where order1_.C_Order_ID = order_comp3_.C_Order_ID and order1_.C_DocTypeTarget_ID = documentty4_.C_DocType_ID and order1_.DateOrdered >= '2023-12-31 00:00:00' and (coalesce(prouti_deliveryavailable (order_comp3_.c_order_id), 0)) = '100' and order1_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order1_.IsSOTrx = 'Y' and documentty4_.IsReturn = 'N' and (documentty4_.DocSubTypeSO not like 'OB') and aduser2_.AD_User_ID = aduser0_.AD_User_ID and (order1_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order1_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by aduser0_.Name limit '76';
Date: 2026-07-17 17:32:33 Duration: 16m50s Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 42s956ms 50s810ms 45s156ms 5 3m45s 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 #2
Day Hour Count Duration Avg duration Jul 17 11 1 50s810ms 50s810ms 14 1 43s224ms 43s224ms 16 1 42s956ms 42s956ms 18 1 43s620ms 43s620ms 20 1 45s172ms 45s172ms [ User: tad - Total duration: 3m45s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m45s - 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-17 11:04:08 Duration: 50s810ms 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-17 20:03:56 Duration: 45s172ms 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-17 18:03:41 Duration: 43s620ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
3 34s280ms 40s514ms 36s310ms 5 3m1s 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 #3
Day Hour Count Duration Avg duration Jul 17 11 1 40s514ms 40s514ms 14 1 34s642ms 34s642ms 16 1 35s405ms 35s405ms 18 1 36s708ms 36s708ms 20 1 34s280ms 34s280ms [ User: tad - Total duration: 3m1s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 3m1s - 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-17 11:03:58 Duration: 40s514ms 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-17 18:03:34 Duration: 36s708ms 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-17 16:04:51 Duration: 35s405ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
4 22s982ms 24s645ms 23s680ms 15 5m55s 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 #4
Day Hour Count Duration Avg duration Jul 17 07 1 22s982ms 22s982ms 08 1 23s955ms 23s955ms 09 1 23s560ms 23s560ms 10 1 23s400ms 23s400ms 11 1 24s126ms 24s126ms 12 1 23s973ms 23s973ms 13 1 24s93ms 24s93ms 14 1 23s499ms 23s499ms 15 1 23s660ms 23s660ms 16 1 23s611ms 23s611ms 17 1 23s367ms 23s367ms 18 1 23s457ms 23s457ms 19 1 23s498ms 23s498ms 20 1 23s376ms 23s376ms 21 1 24s645ms 24s645ms [ User: tad - Total duration: 5m55s - Times executed: 15 ]
[ Application: openbravo - Total duration: 5m55s - 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-17 21:01:48 Duration: 24s645ms 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-17 11:01:48 Duration: 24s126ms 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-17 13:01:48 Duration: 24s93ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 11s679ms 22s279ms 17s891ms 5 1m29s 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 17 11 1 17s583ms 17s583ms 14 1 22s279ms 22s279ms 16 1 20s879ms 20s879ms 18 1 11s679ms 11s679ms 20 1 17s36ms 17s36ms [ User: tad - Total duration: 1m29s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m29s - 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-17 14:04:52 Duration: 22s279ms 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-17 16:04:36 Duration: 20s879ms 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-17 11:03:35 Duration: 17s583ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
6 10s517ms 21s809ms 16s2ms 5 1m20s 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 17 11 1 10s517ms 10s517ms 14 1 14s67ms 14s67ms 16 1 19s679ms 19s679ms 18 1 13s940ms 13s940ms 20 1 21s809ms 21s809ms [ User: tad - Total duration: 1m20s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m20s - 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-17 20:03:33 Duration: 21s809ms 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-17 16:04:34 Duration: 19s679ms 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-17 14:04:58 Duration: 14s67ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
7 11s917ms 15s575ms 13s612ms 5 1m8s 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 #7
Day Hour Count Duration Avg duration Jul 17 11 1 15s42ms 15s42ms 14 1 12s172ms 12s172ms 16 1 15s575ms 15s575ms 18 1 11s917ms 11s917ms 20 1 13s352ms 13s352ms [ User: tad - Total duration: 1m8s - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 1m8s - 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-17 16:04:31 Duration: 15s575ms 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-17 11:03:32 Duration: 15s42ms 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-17 20:03:38 Duration: 13s352ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
8 8s576ms 16s325ms 11s998ms 5 59s992ms select "_"."c_orderline_id" AS "c_orderline_id", "_"."c_order_id" AS "c_order_id", "_"."ad_org_id" AS "ad_org_id", "_"."isactive" AS "isactive", "_"."issotrx" AS "issotrx", "_"."c_bpartner_id" AS "c_bpartner_id", "_"."c_currency_id" AS "c_currency_id", "_"."m_product_id" AS "m_product_id", "_"."m_warehouse_id" AS "m_warehouse_id", "_"."line" AS "line", cast("_"."Fecha Pedido" as date) AS "Fecha Pedido", cast("_"."Fecha Comprometida" as date) AS "Fecha Comprometida", cast("_"."Fecha Enviada" as date) AS "Fecha Enviada", "_"."Descripción" AS "Descripción", "_"."Cantidad Pedido" AS "Cantidad Pedido", "_"."Precio Lista" AS "Precio Lista", "_"."Precio Actual" AS "Precio Actual", "_"."Precio Limite" AS "Precio Limite", "_"."Importe Linea" AS "Importe Linea", "_"."Descuento" AS "Descuento", "_"."Cantidad Recibida" AS "Cantidad Recibida", cast("_"."Fecha Recepción" as date) AS "Fecha Recepción" from ( select ol.c_orderline_id, ol.c_order_id, ol.ad_org_id, ol.isactive, o.issotrx, ol.c_bpartner_id, ol.c_currency_id, ol.m_product_id, ol.m_warehouse_id, ol.line, ol.dateordered AS "Fecha Pedido", ol.datepromised AS "Fecha Comprometida", ol.datedelivered AS "Fecha Enviada", ol.description AS "Descripción", ol.qtyordered "Cantidad Pedido", ol.pricelist "Precio Lista", ol.priceactual "Precio Actual", ol.pricelimit "Precio Limite", ol.linenetamt "Importe Linea", ol.discount AS "Descuento", ( select sum(movementqty) from m_inoutline iol where iol.c_orderline_id = ol.c_orderline_id) AS "Cantidad Recibida", ( select max(movementdate) from m_inoutline iol inner join m_inout io on io.m_inout_id = iol.m_inout_id where iol.c_orderline_id = ol.c_orderline_id) AS "Fecha Recepción" from c_orderline ol left join c_order o on o.c_order_id = ol.c_order_id where o.issotrx <> ?) "_";Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 11 1 8s708ms 8s708ms 14 1 16s325ms 16s325ms 16 1 8s576ms 8s576ms 18 1 12s136ms 12s136ms 20 1 14s244ms 14s244ms [ User: tad - Total duration: 59s992ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 59s992ms - 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-17 14:04:47 Duration: 16s325ms 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-17 20:03:26 Duration: 14s244ms 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-17 18:03:10 Duration: 12s136ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
9 9s984ms 12s851ms 10s711ms 5 53s556ms 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 17 11 1 12s851ms 12s851ms 14 1 10s153ms 10s153ms 16 1 9s984ms 9s984ms 18 1 10s285ms 10s285ms 20 1 10s281ms 10s281ms [ User: tad - Total duration: 53s556ms - Times executed: 5 ]
[ Application: Mashup Engine - Total duration: 53s556ms - 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-17 11:03:44 Duration: 12s851ms 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-17 18:03:08 Duration: 10s285ms 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-17 20:03:21 Duration: 10s281ms Database: etendo User: tad Remote: 51.195.39.29 Application: Mashup Engine Bind query: yes
10 7s510ms 8s148ms 7s755ms 4 31s20ms 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 17 09 1 7s680ms 7s680ms 11 1 7s510ms 7s510ms 14 1 7s681ms 7s681ms 17 1 8s148ms 8s148ms [ User: tad - Total duration: 31s20ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 31s20ms - Times executed: 4 ]
-
select order0_.C_Order_ID as c_order_1_260_, order0_.AD_Client_ID as ad_clien2_260_, order0_.AD_Org_ID as ad_org_i3_260_, order0_.IsActive as isactive4_260_, order0_.Created as created5_260_, order0_.CreatedBy as createdb6_260_, order0_.Updated as updated7_260_, order0_.UpdatedBy as updatedb8_260_, order0_.IsSOTrx as issotrx9_260_, order0_.DocumentNo as documen10_260_, order0_.DocStatus as docstat11_260_, order0_.DocAction as docacti12_260_, order0_.Processing as process13_260_, order0_.Processed as process14_260_, order0_.C_DocType_ID as c_docty15_260_, order0_.C_DocTypeTarget_ID as c_docty16_260_, order0_.Description as descrip17_260_, order0_.IsDelivered as isdeliv18_260_, order0_.IsInvoiced as isinvoi19_260_, order0_.IsPrinted as isprint20_260_, order0_.IsSelected as isselec21_260_, order0_.SalesRep_ID as salesre22_260_, order0_.DateOrdered as dateord23_260_, order0_.DatePromised as datepro24_260_, order0_.DatePrinted as datepri25_260_, order0_.DateAcct as dateacc26_260_, order0_.C_BPartner_ID as c_bpart27_260_, order0_.BillTo_ID as billto_28_260_, order0_.C_BPartner_Location_ID as c_bpart29_260_, order0_.POReference as porefer30_260_, order0_.IsDiscountPrinted as isdisco31_260_, order0_.C_Currency_ID as c_curre32_260_, order0_.PaymentRule as payment33_260_, order0_.C_PaymentTerm_ID as c_payme34_260_, order0_.InvoiceRule as invoice35_260_, order0_.DeliveryRule as deliver36_260_, order0_.FreightCostRule as freight37_260_, order0_.FreightAmt as freight38_260_, order0_.DeliveryViaRule as deliver39_260_, order0_.M_Shipper_ID as m_shipp40_260_, order0_.C_Charge_ID as c_charg41_260_, order0_.ChargeAmt as chargea42_260_, order0_.PriorityRule as priorit43_260_, order0_.TotalLines as totalli44_260_, order0_.GrandTotal as grandto45_260_, order0_.M_Warehouse_ID as m_wareh46_260_, order0_.M_PriceList_ID as m_price47_260_, order0_.IsTaxIncluded as istaxin48_260_, order0_.C_Campaign_ID as c_campa49_260_, order0_.C_Project_ID as c_proje50_260_, order0_.C_Activity_ID as c_activ51_260_, order0_.Posted as posted52_260_, order0_.AD_User_ID as ad_user53_260_, order0_.CopyFrom as copyfro54_260_, order0_.DropShip_BPartner_ID as dropshi55_260_, order0_.DropShip_Location_ID as dropshi56_260_, order0_.DropShip_User_ID as dropshi57_260_, order0_.IsSelfService as isselfs58_260_, order0_.AD_OrgTrx_ID as ad_orgt59_260_, order0_.User1_ID as user60_260_, order0_.User2_ID as user61_260_, order0_.Deliverynotes as deliver62_260_, order0_.C_Incoterms_ID as c_incot63_260_, order0_.Incotermsdescription as incoter64_260_, order0_.Generatetemplate as generat65_260_, order0_.Delivery_Location_ID as deliver66_260_, order0_.CopyFromPO as copyfro67_260_, order0_.FIN_Paymentmethod_ID as fin_pay68_260_, order0_.FIN_Payment_Priority_ID as fin_pay69_260_, order0_.RM_PickFromShipment as rm_pick70_260_, order0_.RM_ReceiveMaterials as rm_rece71_260_, order0_.EM_Obcma_C_Poc_Email_ID as em_obcm72_260_, order0_.RM_CreateInvoice as rm_crea73_260_, order0_.C_Return_Reason_ID as c_retur74_260_, order0_.RM_AddOrphanLine as rm_addo75_260_, order0_.A_Asset_ID as a_asset76_260_, order0_.Calculate_Promotions as calcula77_260_, order0_.C_Costcenter_ID as c_costc78_260_, order0_.Convertquotation as convert79_260_, order0_.C_Reject_Reason_ID as c_rejec80_260_, order0_.validuntil as validun81_260_, order0_.Quotation_ID as quotati82_260_, order0_.SO_Res_Status as so_res_83_260_, order0_.Create_POLines as create_84_260_, order0_.Iscashvat as iscashv85_260_, order0_.EM_OBMFM_Selectfreight as em_obmf86_260_, order0_.EM_OBMFM_Delivery_Period_ID as em_obmf87_260_, order0_.RM_Pickfromreceipt as rm_pick88_260_, order0_.Cancelandreplace as cancela89_260_, order0_.EM_APRM_AddPayment as em_aprm90_260_, order0_.EM_OBMFM_Delivery_Charges as em_obmf91_260_, order0_.EM_OBMFM_Freight_ID as em_obmf92_260_, order0_.EM_Obwpl_Generatepicking as em_obwp93_260_, order0_.EM_OBMFM_Weight as em_obmf94_260_, order0_.EM_Obwpl_Isinpickinglist as em_obwp95_260_, order0_.EM_Ec_Isproforma as em_ec_i96_260_, order0_.EM_Obwpl_Readypl as em_obwp97_260_, order0_.EM_OBMFM_Weight_Uom_ID as em_obmf98_260_, order0_.EM_OBMFM_Set_Weight as em_obmf99_260_, order0_.EM_Aeatsii_Fecha_Operacion as em_aea100_260_, order0_.EM_Ml_Select_Product as em_ml_101_260_, order0_.Confirmcancelandreplace as confir102_260_, order0_.EM_Aeatsii_Descripcion_Sii as em_aea103_260_, order0_.EM_Etabam_Bankaccount_ID as em_eta104_260_, order0_.EM_Etpr_Remove_Payment as em_etp105_260_, order0_.EM_Etvfac_Reversed_Invoice as em_etv106_260_, order0_.Cancelledorder_id as cancel107_260_, order0_.EM_Etblkc_Bulkcompletion as em_etb108_260_, order0_.Replacedorder_id as replac109_260_, order0_.Iscancelled as iscanc110_260_, order0_.Replacementorder_ID as replac111_260_, order0_.EM_Etafdp_Undoclose as em_eta112_260_, order0_.EM_Etinter_Interco_Orig as em_eti113_260_, order0_.BPartner_ExtRef as bpartn114_260_, order0_.EM_Ec_Deprocessbtn as em_ec_115_260_, order0_.EM_Prpp_Generatepicking as em_prp116_260_, order0_.EM_Prouti_Order_Stock as em_pro117_260_, order0_.EM_Prouti_Pregenerate_Minout as em_pro118_260_, order0_.EM_Prpres_Reference as em_prp119_260_, order0_.EM_Prouti_Sotopo as em_pro120_260_, order0_.EM_Prpres_Void_Order as em_prp121_260_, order0_.EM_Prouti_Generate_Pick_Inv as em_pro122_260_, order0_.EM_Prpres_Gross_Total as em_prp123_260_, order0_.EM_Ec_Changewarehouse as em_ec_124_260_, order0_.EM_Prouti_Order_ID as em_pro125_260_, order0_.EM_Prpres_Net_Total as em_prp126_260_, order0_.EM_Prouti_Grandtotalinitial as em_pro127_260_, order0_.EM_Prouti_Dateclosed as em_pro128_260_, order0_.EM_Prouti_Totallinesinitial as em_pro129_260_, order0_.EM_Prouti_Changebpartner as em_pro130_260_, order0_.EM_Prouti_Recalculate_Price as em_pro131_260_, order0_.EM_Prouti_Pricecalculatetdate as em_pro132_260_, order0_.EM_Prouti_Reactiveorder as em_pro133_260_, order0_.EM_Prouti_Totalizations as em_pro134_260_, order0_.em_prouti_Invoiced as em_pro135_260_, order0_.em_prouti_Received as em_pro136_260_, order0_.EM_Prpres_Isgift as em_prp137_260_, order0_.em_prouti_initial_received as em_pro138_260_, order0_.EM_Prpres_Giftmessage as em_prp139_260_, order0_.EM_Prouti_Status_Of_Review as em_pro140_260_, order0_.EM_Prpres_Id_Cart as em_prp141_260_, order0_.EM_Prouti_Validate_Order as em_pro142_260_, order0_.EM_Prouti_Start_Review as em_pro143_260_, order0_.EM_Prpres_Id_Paym_Transaction as em_prp144_260_, order0_.EM_Ml_Select_Product_Byattrib as em_ml_145_260_, order0_.EM_Prouti_Initial_Bp_ID as em_pro146_260_, order0_.EM_Prpres_Processing as em_prp147_260_, order0_.EM_Prouti_Addlines_Btn as em_pro148_260_, order0_.EM_Prpres_Generatepicking as em_prp149_260_, order0_.EM_Prouti_Changebpartner_Bgt as em_pro150_260_, order0_.EM_Pruti_Ignoreminqty as em_pru151_260_, order0_.EM_Prpres_C_Order_ID as em_prp152_260_, order0_.EM_Prouti_Reset_Initial_Values as em_pro153_260_, order0_.EM_Prouti_Select_Soline as em_pro154_260_, order0_.EM_Prouti_Return_Quantity as em_pro155_260_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty2_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty2_.C_DocType_ID and (coalesce(prouti_deliveryavailable (order_comp1_.c_order_id), 0)) = '100' and order0_.M_Warehouse_ID = '928AC21B14E24C3C9ED358EBE6E9BD5B' and order0_.IsSOTrx = 'Y' and documentty2_.IsReturn = 'N' and (documentty2_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) order by order0_.DateOrdered desc, order0_.C_Order_ID desc limit '101';
Date: 2026-07-17 17:10:44 Duration: 8s148ms 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-17 14:59:45 Duration: 7s681ms 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-17 09:55:00 Duration: 7s680ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1s22ms 24s556ms 7s660ms 4 30s642ms 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 #11
Day Hour Count Duration Avg duration Jul 17 15 1 2s530ms 2s530ms 17 1 1s22ms 1s22ms 18 2 27s89ms 13s544ms [ User: tad - Total duration: 30s642ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 30s642ms - Times executed: 4 ]
-
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('18-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-17 18:31:35 Duration: 24s556ms 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('18-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-17 18:09:10 Duration: 2s533ms 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('18-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-17 15:01:39 Duration: 2s530ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 7s89ms 7s844ms 7s535ms 11 1m22s select id, c_order_id, documentno, dateordered, c_bpartner_id, partner_name, product_value, product_id, product_name, description, attributeid, total_qty, qtyordered, mlocatorid, mlocatorname, orderlineid, qtypending, isactive, ? as date_format, coalesce(( select coalesce(c_uom_trl.name, c_uom.name) from c_uom left join c_uom_trl on c_uom_trl.c_uom_id = c_uom.c_uom_id and c_uom_trl.ad_language = ? where c_uom.c_uom_id = coalesce(a.c_aum, a.c_uom_id, ?)), ?) as uomsymbol, conversionrate, c_aum as alternativeuom from ( select c_orderline.c_orderline_id as id, c_order.c_order_id as c_order_id, c_order.documentno || ? || to_char(c_order.dateordered, ?) || ? || to_char(c_order.datepromised, ?) as documentno, c_order.dateordered as dateordered, c_bpartner.c_bpartner_id as c_bpartner_id, c_bpartner.name || ? || c_bpartner.name2 as partner_name, c_orderline.m_product_id as product_id, ad_column_identifier (to_char(?), to_char(c_orderline.m_product_id), to_char(?)) as product_name, ( select value from m_product where m_product_id = c_orderline.m_product_id) as product_value, m_attributesetinstance.description as description, m_attributesetinstance.m_attributesetinstance_id as attributeid, coalesce(c_orderline.aumqty, c_orderline.qtyordered) as total_qty, coalesce(c_orderline.aumqty, c_orderline.qtyordered) - round((sum(coalesce(m_matchpo.qty, ?)) * round((coalesce(c_orderline.aumqty, c_orderline.qtyordered) / c_orderline.qtyordered), ?)), ?) as qtypending, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then (c_orderline.qtyordered - sum(coalesce(m_matchpo.qty, ?))) else ? end as qtyordered, ? as isactive, c_orderline.line, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select msb.m_locator_id from prouti_multi_storage_bin msb left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.m_locator_id from m_locator loc where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorid, case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then case when ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) is not null then ( select loc.value from prouti_multi_storage_bin msb left join m_locator loc on msb.m_locator_id = loc.m_locator_id left join m_product prod on msb.m_product_id = prod.m_product_id left join c_order co on co.c_order_id = c_orderline.c_order_id left join m_warehouse ware on msb.m_warehouse_id = ware.m_warehouse_id where prod.m_product_id = c_orderline.m_product_id and ware.m_warehouse_id = co.m_warehouse_id) else ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) end else case when prouti_getpropertyenabled (c_order.ad_client_id, c_order.ad_org_id, ?) = ? then ( select loc.value || ? || ware.name from m_locator loc left join m_warehouse ware on loc.m_warehouse_id = ware.m_warehouse_id where loc.m_warehouse_id = c_order.m_warehouse_id and loc.isdefault = ? limit ?) else null end end as mlocatorname, c_orderline.c_orderline_id as orderlineid, null as c_aum, c_orderline.c_uom_id, ? as conversionrate from c_orderline left join m_matchpo on c_orderline.c_orderline_id = m_matchpo.c_orderline_id and m_matchpo.m_inoutline_id is not null left join m_attributesetinstance on c_orderline.m_attributesetinstance_id = m_attributesetinstance.m_attributesetinstance_id, c_order, c_bpartner, c_doctype where c_order.c_bpartner_id = c_bpartner.c_bpartner_id and c_orderline.qtyordered != ? and c_order.c_order_id = c_orderline.c_order_id and c_order.ad_client_id in (...) and c_order.ad_org_id in (...) and c_order.issotrx = ? and c_order.documentno like ? and c_order.docstatus = ? and c_order.c_doctype_id = c_doctype.c_doctype_id and c_doctype.isreturn = ? group by c_orderline.c_orderline_id, c_order.c_order_id, c_order.documentno, c_order.dateordered, c_bpartner.c_bpartner_id, c_bpartner.name, c_bpartner.name2, c_orderline.m_product_id, m_attributesetinstance.description, m_attributesetinstance.m_attributesetinstance_id, c_orderline.qtyordered, c_orderline.line) a where ( case when total_qty < ? then ? else ? end) = ( case when qtypending < ? then ? else ? end) and qtypending <> ? order by c_bpartner_id, documentno, line;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 09 3 23s31ms 7s677ms 11 1 7s485ms 7s485ms 12 2 15s306ms 7s653ms 15 4 29s223ms 7s305ms 17 1 7s844ms 7s844ms [ User: tad - Total duration: 1m22s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m22s - Times executed: 11 ]
-
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-17 17:23:22 Duration: 7s844ms 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-17 12:13:51 Duration: 7s837ms 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-17 09:08:33 Duration: 7s792ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
13 3s614ms 7s4ms 3s875ms 37 2m23s 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 #13
Day Hour Count Duration Avg duration Jul 17 08 1 7s4ms 7s4ms 09 3 11s139ms 3s713ms 10 2 7s321ms 3s660ms 11 5 18s787ms 3s757ms 12 1 3s702ms 3s702ms 13 3 11s435ms 3s811ms 15 11 41s625ms 3s784ms 16 7 26s448ms 3s778ms 17 4 15s944ms 3s986ms [ User: tad - Total duration: 2m23s - Times executed: 37 ]
[ Application: openbravo - Total duration: 2m23s - Times executed: 37 ]
-
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 = '1E3D5A99D03547D3B52A7D0EA4776521006B0DBE5CA984B188585E4A2062CB02Apendingsales';
Date: 2026-07-17 08:47:34 Duration: 7s4ms 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 = '53B031A7D9A04EE1AC19BC6041C9689F0FEA662845D2C4C0EB3590D6265EA6108stock';
Date: 2026-07-17 17:28:35 Duration: 4s144ms 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 = '53B031A7D9A04EE1AC19BC6041C9689F04050A3176DE744FCA19943E0F0F77F07stock';
Date: 2026-07-17 17:28:36 Duration: 4s127ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
14 2s884ms 4s229ms 3s422ms 256 14m36s 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 #14
Day Hour Count Duration Avg duration Jul 17 08 12 35s815ms 2s984ms 09 42 2m18s 3s297ms 10 46 2m42s 3s530ms 11 16 59s213ms 3s700ms 12 23 1m19s 3s455ms 13 14 47s425ms 3s387ms 14 15 50s48ms 3s336ms 15 38 2m17s 3s611ms 16 22 1m14s 3s391ms 17 19 1m2s 3s266ms 18 9 29s234ms 3s248ms [ User: tad - Total duration: 14m36s - Times executed: 256 ]
[ Application: openbravo - Total duration: 14m36s - Times executed: 256 ]
-
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-17 12:35:19 Duration: 4s229ms 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-17 12:36:19 Duration: 4s200ms 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-17 12:35:53 Duration: 4s189ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
15 3s116ms 3s691ms 3s332ms 21 1m9s 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 #15
Day Hour Count Duration Avg duration Jul 17 12 2 6s759ms 3s379ms 13 8 26s829ms 3s353ms 15 2 6s285ms 3s142ms 17 2 6s674ms 3s337ms 18 7 23s424ms 3s346ms [ User: tad - Total duration: 1m9s - Times executed: 21 ]
[ Application: openbravo - Total duration: 1m9s - Times executed: 21 ]
-
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-17 18:12:48 Duration: 3s691ms 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', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', 'E55BA2DCBF9C4D4A83D456F5B710B033')) order by organizati2_.Name, businesspa3_.Name, invoicecan0_.Dateordered limit '101';
Date: 2026-07-17 13:02:04 Duration: 3s674ms 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-17 13:04:24 Duration: 3s550ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
16 2s974ms 3s475ms 3s141ms 9 28s274ms select sum(order0_.totallines) as col_0_0_, sum(order0_.grandtotal) as col_1_0_, sum(order0_.em_prouti_grandtotalinitial) as col_2_0_ from c_order order0_ cross join c_order order_comp1_ cross join c_doctype documentty3_ where order0_.c_order_id = order_comp1_.c_order_id and order0_.c_doctypetarget_id = documentty3_.c_doctype_id and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? then ? else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), ?) / sum(abs(ol.qtyordered)) * ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) > ? and (coalesce(( select case when sum(abs(ol.qtyordered)) = ? or order_comp1_.iscancelled = ? or order_comp1_.cancelledorder_id is not null then ? else round(coalesce(sum(abs(ol.qtyinvoiced)), ?) / sum(abs(ol.qtyordered)) * ?, ?) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), ?)) < ? and (order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ? or order0_.invoicerule = ?) and order0_.issotrx = ? and documentty3_.isreturn = ? and (documentty3_.docsubtypeso not like ?) and (order0_.ad_org_id in (...)) and (order0_.ad_client_id in (...)) limit ?;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jul 17 18 9 28s274ms 3s141ms [ User: tad - Total duration: 28s274ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 28s274ms - Times executed: 9 ]
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:50 Duration: 3s475ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:08 Duration: 3s224ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select sum(order0_.TotalLines) as col_0_0_, sum(order0_.GrandTotal) as col_1_0_, sum(order0_.EM_Prouti_Grandtotalinitial) as col_2_0_ from C_Order order0_ cross join C_Order order_comp1_ cross join C_DocType documentty3_ where order0_.C_Order_ID = order_comp1_.C_Order_ID and order0_.C_DocTypeTarget_ID = documentty3_.C_DocType_ID and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 then 0 else trunc(coalesce(sum(abs(least (ol.qtydelivered, ol.qtyordered))), 0) / sum(abs(ol.qtyordered)) * 100) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) > '0' and (coalesce(( select case when sum(abs(ol.qtyordered)) = 0 or order_comp1_.iscancelled = 'Y' or order_comp1_.cancelledorder_id is not null then 0 else round(coalesce(sum(abs(ol.qtyinvoiced)), 0) / sum(abs(ol.qtyordered)) * 100, 0) end from c_orderline ol where ol.c_order_id = order_comp1_.c_order_id and ol.c_order_discount_id is null), 0)) < '100' and (order0_.InvoiceRule = 'D' or order0_.InvoiceRule = 'I' or order0_.InvoiceRule = 'O' or order0_.InvoiceRule = 'S') and order0_.IsSOTrx = 'Y' and documentty3_.IsReturn = 'N' and (documentty3_.DocSubTypeSO not like 'OB') and (order0_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (order0_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0')) limit '2';
Date: 2026-07-17 18:12:59 Duration: 3s176ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
17 2s684ms 3s104ms 2s864ms 7 20s49ms select orderline0_.c_orderline_id as c_orderl1_263_, orderline0_.ad_client_id as ad_clien2_263_, orderline0_.ad_org_id as ad_org_i3_263_, orderline0_.isactive as isactive4_263_, orderline0_.created as created5_263_, orderline0_.createdby as createdb6_263_, orderline0_.updated as updated7_263_, orderline0_.updatedby as updatedb8_263_, orderline0_.c_order_id as c_order_9_263_, orderline0_.line as line10_263_, orderline0_.c_bpartner_id as c_bpart11_263_, orderline0_.c_bpartner_location_id as c_bpart12_263_, orderline0_.dateordered as dateord13_263_, orderline0_.datepromised as datepro14_263_, orderline0_.datedelivered as datedel15_263_, orderline0_.dateinvoiced as dateinv16_263_, orderline0_.description as descrip17_263_, orderline0_.m_product_id as m_produ18_263_, orderline0_.m_warehouse_id as m_wareh19_263_, orderline0_.directship as directs20_263_, orderline0_.c_uom_id as c_uom_i21_263_, orderline0_.qtyordered as qtyorde22_263_, orderline0_.qtyreserved as qtyrese23_263_, orderline0_.qtydelivered as qtydeli24_263_, orderline0_.qtyinvoiced as qtyinvo25_263_, orderline0_.m_shipper_id as m_shipp26_263_, orderline0_.c_currency_id as c_curre27_263_, orderline0_.pricelist as priceli28_263_, orderline0_.priceactual as priceac29_263_, orderline0_.pricelimit as priceli30_263_, orderline0_.linenetamt as linenet31_263_, orderline0_.discount as discoun32_263_, orderline0_.freightamt as freight33_263_, orderline0_.c_charge_id as c_charg34_263_, orderline0_.chargeamt as chargea35_263_, orderline0_.c_tax_id as c_tax_i36_263_, orderline0_.s_resourceassignment_id as s_resou37_263_, orderline0_.ref_orderline_id as ref_ord38_263_, orderline0_.m_attributesetinstance_id as m_attri39_263_, orderline0_.isdescription as isdescr40_263_, orderline0_.quantityorder as quantit41_263_, orderline0_.m_product_uom_id as m_produ42_263_, orderline0_.m_offer_id as m_offer43_263_, orderline0_.pricestd as pricest44_263_, orderline0_.cancelpricead as cancelp45_263_, orderline0_.c_order_discount_id as c_order46_263_, orderline0_.iseditlinenetamt as iseditl47_263_, orderline0_.taxbaseamt as taxbase48_263_, orderline0_.m_inoutline_id as m_inout49_263_, orderline0_.c_return_reason_id as c_retur50_263_, orderline0_.em_obdipol_widget as em_obdi51_263_, orderline0_.gross_unit_price as gross_u52_263_, orderline0_.line_gross_amount as line_gr53_263_, orderline0_.grosspricelist as grosspr54_263_, orderline0_.c_costcenter_id as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.a_asset_id as a_asset57_263_, orderline0_.m_warehouse_rule_id as m_wareh58_263_, orderline0_.user1_id as user59_263_, orderline0_.quotationline_id as quotati60_263_, orderline0_.user2_id as user61_263_, orderline0_.create_reservation as create_62_263_, orderline0_.c_project_id as c_proje63_263_, orderline0_.so_res_status as so_res_64_263_, orderline0_.manage_reservation as manage_65_263_, orderline0_.manage_prereservation as manage_66_263_, orderline0_.explode as explode67_263_, orderline0_.bom_parent_id as bom_par68_263_, orderline0_.em_obmfm_isfreightamt as em_obmf69_263_, orderline0_.replacedorderline_id as replace70_263_, orderline0_.print_description as print_d71_263_, orderline0_.em_ec_updateprice as em_ec_u72_263_, orderline0_.em_obmfm_freight_definition_id as em_obmf73_263_, orderline0_.overdue_return_days as overdue74_263_, orderline0_.relate_orderline as relate_75_263_, orderline0_.c_aum as c_aum76_263_, orderline0_.aumqty as aumqty77_263_, orderline0_.em_etinter_orig_line as em_etin78_263_, orderline0_.em_etafdp_qtyclose as em_etaf79_263_, orderline0_.returnline as returnl80_263_, orderline0_.em_ec_changeproduct as em_ec_c81_263_, orderline0_.em_prouti_cancelreason_id as em_prou82_263_, orderline0_.em_prouti_canceled as em_prou83_263_, orderline0_.em_prouti_canceledby as em_prou84_263_, orderline0_.em_prouti_closeline as em_prou85_263_, orderline0_.em_prouti_orderline_id as em_prou86_263_, orderline0_.em_prouti_qtyinitial as em_prou87_263_, orderline0_.em_prouti_linenetamtinitial as em_prou88_263_, orderline0_.em_obwpl_readypl as em_obwp89_263_, orderline0_.em_pruti_bom_production as em_prut90_263_, orderline0_.em_prouti_recalculate_qtyinit as em_prou91_263_, orderline0_.em_obwpl_generatepicking_lines as em_obwp92_263_, orderline0_.em_prpres_ps_line_id as em_prpr93_263_ from c_orderline orderline0_ inner join c_order order1_ on orderline0_.c_order_id = order1_.c_order_id where exists ( select ? from m_reservation materialmg2_ left outer join m_product product3_ on materialmg2_.m_product_id = product3_.m_product_id inner join c_orderline orderline4_ on materialmg2_.c_orderline_id = orderline4_.c_orderline_id where (upper(((coalesce(to_char(( select producttrl5_.name from m_product_trl producttrl5_ where producttrl5_.m_product_id = materialmg2_.m_product_id and producttrl5_.ad_language = ?)), to_char(product3_.name), ?) || ?| | coalesce(to_char(product3_.description), ?)) || ?| | coalesce(to_char(materialmg2_.quantity), ?))) like upper(?) escape ?) and orderline4_.c_orderline_id = orderline0_.c_orderline_id and (materialmg2_.ad_org_id in (...)) and (materialmg2_.ad_client_id in (...))) order by order1_.documentno, order1_.dateordered, order1_.grandtotal, orderline0_.line, orderline0_.linenetamt limit ?;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jul 17 17 7 20s49ms 2s864ms [ User: tad - Total duration: 20s49ms - Times executed: 7 ]
[ Application: openbravo - Total duration: 20s49ms - Times executed: 7 ]
-
select orderline0_.C_OrderLine_ID as c_orderl1_263_, orderline0_.AD_Client_ID as ad_clien2_263_, orderline0_.AD_Org_ID as ad_org_i3_263_, orderline0_.IsActive as isactive4_263_, orderline0_.Created as created5_263_, orderline0_.CreatedBy as createdb6_263_, orderline0_.Updated as updated7_263_, orderline0_.UpdatedBy as updatedb8_263_, orderline0_.C_Order_ID as c_order_9_263_, orderline0_.Line as line10_263_, orderline0_.C_BPartner_ID as c_bpart11_263_, orderline0_.C_BPartner_Location_ID as c_bpart12_263_, orderline0_.DateOrdered as dateord13_263_, orderline0_.DatePromised as datepro14_263_, orderline0_.DateDelivered as datedel15_263_, orderline0_.DateInvoiced as dateinv16_263_, orderline0_.Description as descrip17_263_, orderline0_.M_Product_ID as m_produ18_263_, orderline0_.M_Warehouse_ID as m_wareh19_263_, orderline0_.DirectShip as directs20_263_, orderline0_.C_UOM_ID as c_uom_i21_263_, orderline0_.QtyOrdered as qtyorde22_263_, orderline0_.QtyReserved as qtyrese23_263_, orderline0_.QtyDelivered as qtydeli24_263_, orderline0_.QtyInvoiced as qtyinvo25_263_, orderline0_.M_Shipper_ID as m_shipp26_263_, orderline0_.C_Currency_ID as c_curre27_263_, orderline0_.PriceList as priceli28_263_, orderline0_.PriceActual as priceac29_263_, orderline0_.PriceLimit as priceli30_263_, orderline0_.LineNetAmt as linenet31_263_, orderline0_.Discount as discoun32_263_, orderline0_.FreightAmt as freight33_263_, orderline0_.C_Charge_ID as c_charg34_263_, orderline0_.ChargeAmt as chargea35_263_, orderline0_.C_Tax_ID as c_tax_i36_263_, orderline0_.S_ResourceAssignment_ID as s_resou37_263_, orderline0_.Ref_OrderLine_ID as ref_ord38_263_, orderline0_.M_AttributeSetInstance_ID as m_attri39_263_, orderline0_.IsDescription as isdescr40_263_, orderline0_.QuantityOrder as quantit41_263_, orderline0_.M_Product_Uom_Id as m_produ42_263_, orderline0_.M_Offer_ID as m_offer43_263_, orderline0_.PriceStd as pricest44_263_, orderline0_.CANCELPRICEAD as cancelp45_263_, orderline0_.C_Order_Discount_ID as c_order46_263_, orderline0_.Iseditlinenetamt as iseditl47_263_, orderline0_.Taxbaseamt as taxbase48_263_, orderline0_.M_Inoutline_ID as m_inout49_263_, orderline0_.C_Return_Reason_ID as c_retur50_263_, orderline0_.EM_Obdipol_Widget as em_obdi51_263_, orderline0_.Gross_Unit_Price as gross_u52_263_, orderline0_.Line_Gross_Amount as line_gr53_263_, orderline0_.GrossPriceList as grosspr54_263_, orderline0_.C_Costcenter_ID as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.A_Asset_ID as a_asset57_263_, orderline0_.M_Warehouse_Rule_ID as m_wareh58_263_, orderline0_.User1_ID as user59_263_, orderline0_.Quotationline_ID as quotati60_263_, orderline0_.User2_ID as user61_263_, orderline0_.Create_Reservation as create_62_263_, orderline0_.C_Project_ID as c_proje63_263_, orderline0_.SO_Res_Status as so_res_64_263_, orderline0_.Manage_Reservation as manage_65_263_, orderline0_.Manage_Prereservation as manage_66_263_, orderline0_.Explode as explode67_263_, orderline0_.BOM_Parent_ID as bom_par68_263_, orderline0_.EM_OBMFM_IsFreightAmt as em_obmf69_263_, orderline0_.Replacedorderline_id as replace70_263_, orderline0_.Print_Description as print_d71_263_, orderline0_.EM_Ec_Updateprice as em_ec_u72_263_, orderline0_.EM_OBMFM_Freight_Definition_ID as em_obmf73_263_, orderline0_.Overdue_Return_Days as overdue74_263_, orderline0_.Relate_Orderline as relate_75_263_, orderline0_.C_Aum as c_aum76_263_, orderline0_.Aumqty as aumqty77_263_, orderline0_.EM_Etinter_Orig_Line as em_etin78_263_, orderline0_.EM_Etafdp_Qtyclose as em_etaf79_263_, orderline0_.Returnline as returnl80_263_, orderline0_.EM_Ec_Changeproduct as em_ec_c81_263_, orderline0_.EM_Prouti_Cancelreason_ID as em_prou82_263_, orderline0_.EM_Prouti_Canceled as em_prou83_263_, orderline0_.EM_Prouti_Canceledby as em_prou84_263_, orderline0_.EM_Prouti_Closeline as em_prou85_263_, orderline0_.EM_Prouti_Orderline_ID as em_prou86_263_, orderline0_.EM_Prouti_Qtyinitial as em_prou87_263_, orderline0_.EM_Prouti_Linenetamtinitial as em_prou88_263_, orderline0_.EM_Obwpl_Readypl as em_obwp89_263_, orderline0_.EM_Pruti_Bom_Production as em_prut90_263_, orderline0_.EM_Prouti_Recalculate_Qtyinit as em_prou91_263_, orderline0_.EM_Obwpl_Generatepicking_Lines as em_obwp92_263_, orderline0_.EM_Prpres_Ps_Line_ID as em_prpr93_263_ from C_OrderLine orderline0_ inner join C_Order order1_ on orderline0_.C_Order_ID = order1_.C_Order_ID where exists ( select 1 from M_Reservation materialmg2_ left outer join M_Product product3_ on materialmg2_.M_Product_ID = product3_.M_Product_ID inner join C_OrderLine orderline4_ on materialmg2_.C_Orderline_ID = orderline4_.C_OrderLine_ID where (upper(((coalesce(to_char(( select producttrl5_.Name from M_Product_Trl producttrl5_ where producttrl5_.M_Product_ID = materialmg2_.M_Product_ID and producttrl5_.AD_Language = 'es_ES')), to_char(product3_.Name), '') || ' - ' || coalesce(to_char(product3_.Description), '')) || ' - ' || coalesce(to_char(materialmg2_.Quantity), ''))) like upper('%217%') escape '|') and orderline4_.C_OrderLine_ID = orderline0_.C_OrderLine_ID and (materialmg2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (materialmg2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order1_.DocumentNo, order1_.DateOrdered, order1_.GrandTotal, orderline0_.Line, orderline0_.LineNetAmt limit '76';
Date: 2026-07-17 17:08:41 Duration: 3s104ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select orderline0_.C_OrderLine_ID as c_orderl1_263_, orderline0_.AD_Client_ID as ad_clien2_263_, orderline0_.AD_Org_ID as ad_org_i3_263_, orderline0_.IsActive as isactive4_263_, orderline0_.Created as created5_263_, orderline0_.CreatedBy as createdb6_263_, orderline0_.Updated as updated7_263_, orderline0_.UpdatedBy as updatedb8_263_, orderline0_.C_Order_ID as c_order_9_263_, orderline0_.Line as line10_263_, orderline0_.C_BPartner_ID as c_bpart11_263_, orderline0_.C_BPartner_Location_ID as c_bpart12_263_, orderline0_.DateOrdered as dateord13_263_, orderline0_.DatePromised as datepro14_263_, orderline0_.DateDelivered as datedel15_263_, orderline0_.DateInvoiced as dateinv16_263_, orderline0_.Description as descrip17_263_, orderline0_.M_Product_ID as m_produ18_263_, orderline0_.M_Warehouse_ID as m_wareh19_263_, orderline0_.DirectShip as directs20_263_, orderline0_.C_UOM_ID as c_uom_i21_263_, orderline0_.QtyOrdered as qtyorde22_263_, orderline0_.QtyReserved as qtyrese23_263_, orderline0_.QtyDelivered as qtydeli24_263_, orderline0_.QtyInvoiced as qtyinvo25_263_, orderline0_.M_Shipper_ID as m_shipp26_263_, orderline0_.C_Currency_ID as c_curre27_263_, orderline0_.PriceList as priceli28_263_, orderline0_.PriceActual as priceac29_263_, orderline0_.PriceLimit as priceli30_263_, orderline0_.LineNetAmt as linenet31_263_, orderline0_.Discount as discoun32_263_, orderline0_.FreightAmt as freight33_263_, orderline0_.C_Charge_ID as c_charg34_263_, orderline0_.ChargeAmt as chargea35_263_, orderline0_.C_Tax_ID as c_tax_i36_263_, orderline0_.S_ResourceAssignment_ID as s_resou37_263_, orderline0_.Ref_OrderLine_ID as ref_ord38_263_, orderline0_.M_AttributeSetInstance_ID as m_attri39_263_, orderline0_.IsDescription as isdescr40_263_, orderline0_.QuantityOrder as quantit41_263_, orderline0_.M_Product_Uom_Id as m_produ42_263_, orderline0_.M_Offer_ID as m_offer43_263_, orderline0_.PriceStd as pricest44_263_, orderline0_.CANCELPRICEAD as cancelp45_263_, orderline0_.C_Order_Discount_ID as c_order46_263_, orderline0_.Iseditlinenetamt as iseditl47_263_, orderline0_.Taxbaseamt as taxbase48_263_, orderline0_.M_Inoutline_ID as m_inout49_263_, orderline0_.C_Return_Reason_ID as c_retur50_263_, orderline0_.EM_Obdipol_Widget as em_obdi51_263_, orderline0_.Gross_Unit_Price as gross_u52_263_, orderline0_.Line_Gross_Amount as line_gr53_263_, orderline0_.GrossPriceList as grosspr54_263_, orderline0_.C_Costcenter_ID as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.A_Asset_ID as a_asset57_263_, orderline0_.M_Warehouse_Rule_ID as m_wareh58_263_, orderline0_.User1_ID as user59_263_, orderline0_.Quotationline_ID as quotati60_263_, orderline0_.User2_ID as user61_263_, orderline0_.Create_Reservation as create_62_263_, orderline0_.C_Project_ID as c_proje63_263_, orderline0_.SO_Res_Status as so_res_64_263_, orderline0_.Manage_Reservation as manage_65_263_, orderline0_.Manage_Prereservation as manage_66_263_, orderline0_.Explode as explode67_263_, orderline0_.BOM_Parent_ID as bom_par68_263_, orderline0_.EM_OBMFM_IsFreightAmt as em_obmf69_263_, orderline0_.Replacedorderline_id as replace70_263_, orderline0_.Print_Description as print_d71_263_, orderline0_.EM_Ec_Updateprice as em_ec_u72_263_, orderline0_.EM_OBMFM_Freight_Definition_ID as em_obmf73_263_, orderline0_.Overdue_Return_Days as overdue74_263_, orderline0_.Relate_Orderline as relate_75_263_, orderline0_.C_Aum as c_aum76_263_, orderline0_.Aumqty as aumqty77_263_, orderline0_.EM_Etinter_Orig_Line as em_etin78_263_, orderline0_.EM_Etafdp_Qtyclose as em_etaf79_263_, orderline0_.Returnline as returnl80_263_, orderline0_.EM_Ec_Changeproduct as em_ec_c81_263_, orderline0_.EM_Prouti_Cancelreason_ID as em_prou82_263_, orderline0_.EM_Prouti_Canceled as em_prou83_263_, orderline0_.EM_Prouti_Canceledby as em_prou84_263_, orderline0_.EM_Prouti_Closeline as em_prou85_263_, orderline0_.EM_Prouti_Orderline_ID as em_prou86_263_, orderline0_.EM_Prouti_Qtyinitial as em_prou87_263_, orderline0_.EM_Prouti_Linenetamtinitial as em_prou88_263_, orderline0_.EM_Obwpl_Readypl as em_obwp89_263_, orderline0_.EM_Pruti_Bom_Production as em_prut90_263_, orderline0_.EM_Prouti_Recalculate_Qtyinit as em_prou91_263_, orderline0_.EM_Obwpl_Generatepicking_Lines as em_obwp92_263_, orderline0_.EM_Prpres_Ps_Line_ID as em_prpr93_263_ from C_OrderLine orderline0_ inner join C_Order order1_ on orderline0_.C_Order_ID = order1_.C_Order_ID where exists ( select 1 from M_Reservation materialmg2_ left outer join M_Product product3_ on materialmg2_.M_Product_ID = product3_.M_Product_ID inner join C_OrderLine orderline4_ on materialmg2_.C_Orderline_ID = orderline4_.C_OrderLine_ID where (upper(((coalesce(to_char(( select producttrl5_.Name from M_Product_Trl producttrl5_ where producttrl5_.M_Product_ID = materialmg2_.M_Product_ID and producttrl5_.AD_Language = 'es_ES')), to_char(product3_.Name), '') || ' - ' || coalesce(to_char(product3_.Description), '')) || ' - ' || coalesce(to_char(materialmg2_.Quantity), ''))) like upper('%2167%') escape '|') and orderline4_.C_OrderLine_ID = orderline0_.C_OrderLine_ID and (materialmg2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (materialmg2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order1_.DocumentNo, order1_.DateOrdered, order1_.GrandTotal, orderline0_.Line, orderline0_.LineNetAmt limit '76';
Date: 2026-07-17 17:08:49 Duration: 2s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select orderline0_.C_OrderLine_ID as c_orderl1_263_, orderline0_.AD_Client_ID as ad_clien2_263_, orderline0_.AD_Org_ID as ad_org_i3_263_, orderline0_.IsActive as isactive4_263_, orderline0_.Created as created5_263_, orderline0_.CreatedBy as createdb6_263_, orderline0_.Updated as updated7_263_, orderline0_.UpdatedBy as updatedb8_263_, orderline0_.C_Order_ID as c_order_9_263_, orderline0_.Line as line10_263_, orderline0_.C_BPartner_ID as c_bpart11_263_, orderline0_.C_BPartner_Location_ID as c_bpart12_263_, orderline0_.DateOrdered as dateord13_263_, orderline0_.DatePromised as datepro14_263_, orderline0_.DateDelivered as datedel15_263_, orderline0_.DateInvoiced as dateinv16_263_, orderline0_.Description as descrip17_263_, orderline0_.M_Product_ID as m_produ18_263_, orderline0_.M_Warehouse_ID as m_wareh19_263_, orderline0_.DirectShip as directs20_263_, orderline0_.C_UOM_ID as c_uom_i21_263_, orderline0_.QtyOrdered as qtyorde22_263_, orderline0_.QtyReserved as qtyrese23_263_, orderline0_.QtyDelivered as qtydeli24_263_, orderline0_.QtyInvoiced as qtyinvo25_263_, orderline0_.M_Shipper_ID as m_shipp26_263_, orderline0_.C_Currency_ID as c_curre27_263_, orderline0_.PriceList as priceli28_263_, orderline0_.PriceActual as priceac29_263_, orderline0_.PriceLimit as priceli30_263_, orderline0_.LineNetAmt as linenet31_263_, orderline0_.Discount as discoun32_263_, orderline0_.FreightAmt as freight33_263_, orderline0_.C_Charge_ID as c_charg34_263_, orderline0_.ChargeAmt as chargea35_263_, orderline0_.C_Tax_ID as c_tax_i36_263_, orderline0_.S_ResourceAssignment_ID as s_resou37_263_, orderline0_.Ref_OrderLine_ID as ref_ord38_263_, orderline0_.M_AttributeSetInstance_ID as m_attri39_263_, orderline0_.IsDescription as isdescr40_263_, orderline0_.QuantityOrder as quantit41_263_, orderline0_.M_Product_Uom_Id as m_produ42_263_, orderline0_.M_Offer_ID as m_offer43_263_, orderline0_.PriceStd as pricest44_263_, orderline0_.CANCELPRICEAD as cancelp45_263_, orderline0_.C_Order_Discount_ID as c_order46_263_, orderline0_.Iseditlinenetamt as iseditl47_263_, orderline0_.Taxbaseamt as taxbase48_263_, orderline0_.M_Inoutline_ID as m_inout49_263_, orderline0_.C_Return_Reason_ID as c_retur50_263_, orderline0_.EM_Obdipol_Widget as em_obdi51_263_, orderline0_.Gross_Unit_Price as gross_u52_263_, orderline0_.Line_Gross_Amount as line_gr53_263_, orderline0_.GrossPriceList as grosspr54_263_, orderline0_.C_Costcenter_ID as c_costc55_263_, orderline0_.grosspricestd as grosspr56_263_, orderline0_.A_Asset_ID as a_asset57_263_, orderline0_.M_Warehouse_Rule_ID as m_wareh58_263_, orderline0_.User1_ID as user59_263_, orderline0_.Quotationline_ID as quotati60_263_, orderline0_.User2_ID as user61_263_, orderline0_.Create_Reservation as create_62_263_, orderline0_.C_Project_ID as c_proje63_263_, orderline0_.SO_Res_Status as so_res_64_263_, orderline0_.Manage_Reservation as manage_65_263_, orderline0_.Manage_Prereservation as manage_66_263_, orderline0_.Explode as explode67_263_, orderline0_.BOM_Parent_ID as bom_par68_263_, orderline0_.EM_OBMFM_IsFreightAmt as em_obmf69_263_, orderline0_.Replacedorderline_id as replace70_263_, orderline0_.Print_Description as print_d71_263_, orderline0_.EM_Ec_Updateprice as em_ec_u72_263_, orderline0_.EM_OBMFM_Freight_Definition_ID as em_obmf73_263_, orderline0_.Overdue_Return_Days as overdue74_263_, orderline0_.Relate_Orderline as relate_75_263_, orderline0_.C_Aum as c_aum76_263_, orderline0_.Aumqty as aumqty77_263_, orderline0_.EM_Etinter_Orig_Line as em_etin78_263_, orderline0_.EM_Etafdp_Qtyclose as em_etaf79_263_, orderline0_.Returnline as returnl80_263_, orderline0_.EM_Ec_Changeproduct as em_ec_c81_263_, orderline0_.EM_Prouti_Cancelreason_ID as em_prou82_263_, orderline0_.EM_Prouti_Canceled as em_prou83_263_, orderline0_.EM_Prouti_Canceledby as em_prou84_263_, orderline0_.EM_Prouti_Closeline as em_prou85_263_, orderline0_.EM_Prouti_Orderline_ID as em_prou86_263_, orderline0_.EM_Prouti_Qtyinitial as em_prou87_263_, orderline0_.EM_Prouti_Linenetamtinitial as em_prou88_263_, orderline0_.EM_Obwpl_Readypl as em_obwp89_263_, orderline0_.EM_Pruti_Bom_Production as em_prut90_263_, orderline0_.EM_Prouti_Recalculate_Qtyinit as em_prou91_263_, orderline0_.EM_Obwpl_Generatepicking_Lines as em_obwp92_263_, orderline0_.EM_Prpres_Ps_Line_ID as em_prpr93_263_ from C_OrderLine orderline0_ inner join C_Order order1_ on orderline0_.C_Order_ID = order1_.C_Order_ID where exists ( select 1 from M_Reservation materialmg2_ left outer join M_Product product3_ on materialmg2_.M_Product_ID = product3_.M_Product_ID inner join C_OrderLine orderline4_ on materialmg2_.C_Orderline_ID = orderline4_.C_OrderLine_ID where (upper(((coalesce(to_char(( select producttrl5_.Name from M_Product_Trl producttrl5_ where producttrl5_.M_Product_ID = materialmg2_.M_Product_ID and producttrl5_.AD_Language = 'es_ES')), to_char(product3_.Name), '') || ' - ' || coalesce(to_char(product3_.Description), '')) || ' - ' || coalesce(to_char(materialmg2_.Quantity), ''))) like upper('%217826%') escape '|') and orderline4_.C_OrderLine_ID = orderline0_.C_OrderLine_ID and (materialmg2_.AD_Org_ID in ('0', '4336B51A28B149DF911A36B0D3F03677', 'F7EA3492149E4357B7FCFAE16C7F027F', 'EB72268743764DE99601631DDF69CFA1', '547464619E3348369E774BA8164BD820', 'E55BA2DCBF9C4D4A83D456F5B710B033')) and (materialmg2_.AD_Client_ID in ('CFEDC17130E14D2BAE431B401DF89CF1', '0'))) order by order1_.DocumentNo, order1_.DateOrdered, order1_.GrandTotal, orderline0_.Line, orderline0_.LineNetAmt limit '76';
Date: 2026-07-17 17:08:45 Duration: 2s864ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
18 2s398ms 3s221ms 2s555ms 178 7m34s 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 #18
Day Hour Count Duration Avg duration Jul 17 08 7 17s573ms 2s510ms 09 30 1m16s 2s545ms 10 25 1m2s 2s500ms 11 17 44s389ms 2s611ms 12 16 41s709ms 2s606ms 13 9 22s612ms 2s512ms 14 4 10s209ms 2s552ms 15 38 1m36s 2s544ms 16 12 31s37ms 2s586ms 17 10 25s827ms 2s582ms 18 10 25s920ms 2s592ms [ User: tad - Total duration: 7m34s - Times executed: 178 ]
[ Application: openbravo - Total duration: 7m34s - Times executed: 178 ]
-
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 ('24CBEFE8194F4D17B3138C4AC7DF86C5')) order by m_inout.documentno;
Date: 2026-07-17 12:07:07 Duration: 3s221ms 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 ('685BADFEF7C54DCAA1A22B657FCCFAD9')) order by m_inout.documentno;
Date: 2026-07-17 11:04:54 Duration: 2s857ms 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 ('DA863C0B6A314ABA92D7A21925B0D62F')) order by m_inout.documentno;
Date: 2026-07-17 11:05:07 Duration: 2s843ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
19 1s729ms 7s313ms 2s215ms 15 33s228ms select * from ( select cin.c_invoice_id as referencekey_id, ad_column_identifier (?, cin.c_invoice_id, ?) as record_id, ? as ad_role_id, null as ad_user_id, ad_column_identifier (?, cin.c_invoice_id, ?) || ?| | cin.totallines || ?| | sum(cil.linenetamt) as description, ? as isactive, cin.ad_org_id, cin.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice cin left join c_invoiceline cil on cil.c_invoice_id = cin.c_invoice_id inner join c_bpartner on cin.c_bpartner_id = c_bpartner.c_bpartner_id group by cin.c_invoice_id, cin.documentno, cin.dateinvoiced, cin.grandtotal, cin.totallines, c_bpartner.name having sum(cil.linenetamt) <> cin.totallines order by cin.documentno) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jul 17 07 1 1s735ms 1s735ms 08 1 1s772ms 1s772ms 09 1 1s730ms 1s730ms 10 1 1s813ms 1s813ms 11 1 2s95ms 2s95ms 12 1 2s196ms 2s196ms 13 1 1s889ms 1s889ms 14 1 7s313ms 7s313ms 15 1 1s823ms 1s823ms 16 1 1s770ms 1s770ms 17 1 1s804ms 1s804ms 18 1 1s885ms 1s885ms 19 1 1s788ms 1s788ms 20 1 1s729ms 1s729ms 21 1 1s880ms 1s880ms [ User: tad - Total duration: 33s228ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 33s228ms - 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-17 14:01:56 Duration: 7s313ms 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-17 12:01:51 Duration: 2s196ms 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-17 11:01:51 Duration: 2s95ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
20 1s203ms 4s410ms 1s508ms 15 22s624ms 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 #20
Day Hour Count Duration Avg duration Jul 17 07 1 1s203ms 1s203ms 08 1 1s247ms 1s247ms 09 1 1s227ms 1s227ms 10 1 1s237ms 1s237ms 11 1 1s249ms 1s249ms 12 1 4s410ms 4s410ms 13 1 1s217ms 1s217ms 14 1 1s578ms 1s578ms 15 1 1s268ms 1s268ms 16 1 1s296ms 1s296ms 17 1 1s281ms 1s281ms 18 1 1s345ms 1s345ms 19 1 1s351ms 1s351ms 20 1 1s344ms 1s344ms 21 1 1s364ms 1s364ms [ User: tad - Total duration: 22s624ms - Times executed: 15 ]
[ Application: openbravo - Total duration: 22s624ms - 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-17 12:02:01 Duration: 4s410ms 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-17 14:01:59 Duration: 1s578ms 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-17 21:01:54 Duration: 1s364ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 21,296 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 552 FATAL entries
- 13 ERROR entries
- 0 WARNING entries
- 5 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 535 Max number of times the same event was reported
- 570 Total events found
Rank Times reported Error 1 535 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", no encryption
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 17 07 39 08 35 09 36 10 36 11 35 12 34 13 35 14 34 15 38 16 36 17 34 18 37 19 36 20 34 21 36 - FATAL: no pg_hba.conf entry for host "159.65.148.75", user "administrator", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "186.236.254.56", user "app", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "159.65.148.75", user "administrator", database "postgres", no encryption
Date: 2026-07-17 07:00:54 Database: postgres Application: [unknown] User: administrator Remote: 159.65.148.75
Date: 2026-07-17 07:01:24 Database: postgres Application: [unknown] User: app Remote: 186.236.254.56
Date: 2026-07-17 07:03:57 Database: postgres Application: [unknown] User: administrator Remote: 159.65.148.75
2 7 FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 17 16 1 18 3 19 1 20 1 21 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-17 16:54:48 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.34
Date: 2026-07-17 18:42:03 Database: [unknown] Application: [unknown] User: [unknown] Remote: 134.122.112.94
Date: 2026-07-17 18:42:03 Database: [unknown] Application: [unknown] User: [unknown] Remote: 134.122.112.94
3 5 FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 17 16 1 18 1 19 1 20 1 21 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-17 16:54:50 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.34
Date: 2026-07-17 18:42:03 Database: [unknown] Application: [unknown] User: [unknown] Remote: 134.122.112.94
Date: 2026-07-17 19:02:06 Database: [unknown] Application: [unknown] User: [unknown] Remote: 64.62.156.80
4 5 ERROR: @DeliveredInvoicedOrderline@
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 17 09 3 17 2 - ERROR: @DeliveredInvoicedOrderline@
- ERROR: @DeliveredInvoicedOrderline@
- ERROR: @DeliveredInvoicedOrderline@
Context: PL/pgSQL function c_ordline_chk_restrictions_trg() line 77 at RAISE
Statement: update C_OrderLine set Updated=$1, QtyOrdered=$2, LineNetAmt=$3 where C_OrderLine_ID=$4Date: 2026-07-17 09:19:43 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function c_ordline_chk_restrictions_trg() line 77 at RAISE
Statement: update C_OrderLine set Updated=$1, QtyOrdered=$2, LineNetAmt=$3 where C_OrderLine_ID=$4Date: 2026-07-17 09:19:45 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function c_ordline_chk_restrictions_trg() line 77 at RAISE
Statement: update C_OrderLine set Updated=$1, QtyOrdered=$2, LineNetAmt=$3 where C_OrderLine_ID=$4Date: 2026-07-17 09:21:17 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
5 5 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 17 11 1 13 2 15 1 18 1 - LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
- LOG: could not receive data from client: Connection reset by peer
Date: 2026-07-17 11:07:13 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
Date: 2026-07-17 13:35:08 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
Date: 2026-07-17 13:36:08 Database: etendo Application: Mashup Engine User: tad Remote: 51.195.39.29
6 4 FATAL: no PostgreSQL user name specified in startup packet
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 17 16 1 19 1 20 1 21 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-17 16:54:53 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.34
Date: 2026-07-17 19:02:06 Database: [unknown] Application: [unknown] User: [unknown] Remote: 64.62.156.80
Date: 2026-07-17 20:54:05 Database: [unknown] Application: [unknown] User: [unknown] Remote: 172.104.100.117
7 2 ERROR: @20201@ 1
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 17 08 2 - ERROR: @20201@ 1
- ERROR: @20201@ 1
Context: PL/pgSQL function c_orderline_trg() line 80 at RAISE
Statement: delete from C_OrderLine where C_OrderLine_ID=$1Date: 2026-07-17 08:56:22 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function c_orderline_trg() line 80 at RAISE
Statement: delete from C_OrderLine where C_OrderLine_ID=$1Date: 2026-07-17 08:56:41 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
8 1 ERROR: @PRUTI_PRODUCT_WITH_SUPPLIER@
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 17 12 1 - ERROR: @PRUTI_PRODUCT_WITH_SUPPLIER@
Context: PL/pgSQL function pruti_unique_supplier_trg() line 16 at RAISE
Statement: update M_Product_PO set Updated=$1, IsCurrentVendor=$2 where M_Product_PO_ID=$3Date: 2026-07-17 12:18:54 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
9 1 ERROR: @ec_duplicity_orderref@ 001810
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 17 13 1 - ERROR: @ec_duplicity_orderref@ 001810
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, 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)Date: 2026-07-17 13:13:48 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
10 1 ERROR: @ec_duplicity_orderref@ 191201
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 17 16 1 - ERROR: @ec_duplicity_orderref@ 191201
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, 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)Date: 2026-07-17 16:03:36 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
11 1 ERROR: @ec_duplicity_orderref@ DR MAIL 17/07
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 17 12 1 - ERROR: @ec_duplicity_orderref@ DR MAIL 17/07
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, Description, 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, $102)Date: 2026-07-17 12:50:02 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
12 1 ERROR: @20501@
Times Reported Most Frequent Error / Event #12
Day Hour Count Jul 17 18 1 - ERROR: @20501@
Context: PL/pgSQL function aprm_fin_finacc_tran_check_trg() line 103 at RAISE
Statement: delete from FIN_Finacc_Transaction where Fin_Finacc_Transaction_ID=$1Date: 2026-07-17 18:09:19 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
13 1 FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #13
Day Hour Count Jul 17 18 1 - FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Date: 2026-07-17 18:42:01 Database: [unknown] Application: [unknown] User: [unknown] Remote: 137.184.223.6
14 1 ERROR: @20502@
Times Reported Most Frequent Error / Event #14
Day Hour Count Jul 17 16 1 - ERROR: @20502@
Context: PL/pgSQL function c_order_chk_restrinctions_trg() line 60 at RAISE
Statement: update C_Order set Updated=$1, C_BPartner_ID=$2, BillTo_ID=$3, C_BPartner_Location_ID=$4, C_PaymentTerm_ID=$5, AD_User_ID=$6 where C_Order_ID=$7Date: 2026-07-17 16:28:07 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1