-
Global information
- Generated on Wed Jul 15 23:00:09 2026
- Log file: /var/log/postgresql/postgresql-14-main.log
- Parsed 101,404 log entries in 7s
- Log start from 2026-07-15 07:00:01 to 2026-07-15 21:59:59
-
Overview
Global Stats
- 11 Number of unique normalized queries
- 137 Number of queries
- 9m39s Total query duration
- 2026-07-15 07:12:43 First query
- 2026-07-15 17:18:43 Last query
- 5 queries/s at 2026-07-15 17:18:43 Query peak
- 9m39s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 9m39s Execute total duration
- 632 Number of events
- 12 Number of unique normalized events
- 605 Max number of times the same event was reported
- 0 Number of cancellation
- 118 Total number of automatic vacuums
- 199 Total number of automatic analyzes
- 900 Number temporary file
- 112.13 MiB Max size of temporary file
- 3.02 MiB Average size of temporary file
- 10,523 Total number of sessions
- 21 sessions at 2026-07-15 19:00:01 Session peak
- 2d6h20m54s Total duration of sessions
- 18s593ms Average duration of sessions
- 0 Average queries per session
- 55ms Average queries duration per session
- 18s538ms Average idle time per session
- 10,524 Total number of connections
- 10 connections/s at 2026-07-15 18:45:08 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 5 queries/s Query Peak
- 2026-07-15 17:18:43 Date
SELECT Traffic
Key values
- 5 queries/s Query Peak
- 2026-07-15 17:18:43 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 0 queries/s Query Peak
- Date
Queries duration
Key values
- 9m39s 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 15 07 2 0ms 9s468ms 9s356ms 0ms 0ms 9s468ms 08 38 0ms 4s583ms 3s972ms 0ms 31s428ms 59s237ms 09 16 0ms 5s13ms 4s66ms 0ms 15s 27s106ms 10 0 0ms 0ms 0ms 0ms 0ms 0ms 11 13 0ms 6s84ms 3s886ms 0ms 6s84ms 29s208ms 12 22 0ms 6s796ms 5s81ms 0ms 26s687ms 33s671ms 13 0 0ms 0ms 0ms 0ms 0ms 0ms 14 0 0ms 0ms 0ms 0ms 0ms 0ms 15 31 0ms 4s227ms 3s883ms 0ms 23s586ms 41s512ms 16 10 0ms 5s979ms 4s236ms 0ms 5s979ms 20s670ms 17 5 0ms 3s938ms 3s854ms 0ms 0ms 19s274ms 18 0 0ms 0ms 0ms 0ms 0ms 0ms 19 0 0ms 0ms 0ms 0ms 0ms 0ms 20 0 0ms 0ms 0ms 0ms 0ms 0ms 21 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 15 07 2 0 9s356ms 0ms 0ms 9s243ms 08 38 0 3s972ms 0ms 0ms 36s492ms 09 16 0 4s66ms 0ms 0ms 19s457ms 10 0 0 0ms 0ms 0ms 0ms 11 13 0 3s886ms 0ms 0ms 15s236ms 12 22 0 5s81ms 0ms 0ms 28s130ms 13 0 0 0ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 31 0 3s883ms 0ms 0ms 23s817ms 16 10 0 4s236ms 0ms 0ms 7s168ms 17 5 0 3s854ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 15 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 15 07 0 2 2.00 0.00% 08 0 38 38.00 0.00% 09 0 16 16.00 0.00% 10 0 0 0.00 0.00% 11 0 13 13.00 0.00% 12 0 22 22.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 31 31.00 0.00% 16 0 10 10.00 0.00% 17 0 5 5.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% Day Hour Count Average / Second Jul 15 07 702 0.20/s 08 714 0.20/s 09 705 0.20/s 10 703 0.20/s 11 701 0.19/s 12 709 0.20/s 13 698 0.19/s 14 697 0.19/s 15 704 0.20/s 16 704 0.20/s 17 699 0.19/s 18 697 0.19/s 19 697 0.19/s 20 697 0.19/s 21 697 0.19/s Day Hour Count Average Duration Average idle time Jul 15 07 701 24s468ms 24s441ms 08 714 44s713ms 44s502ms 09 706 34s909ms 34s817ms 10 702 6s224ms 6s224ms 11 701 17s922ms 17s850ms 12 708 26s3ms 25s845ms 13 699 14s583ms 14s583ms 14 697 18ms 18ms 15 704 40s42ms 39s871ms 16 704 58s244ms 58s184ms 17 699 10s208ms 10s181ms 18 697 18ms 18ms 19 697 17ms 17ms 20 697 18ms 18ms 21 697 17ms 17ms -
Connections
Established Connections
Key values
- 10 connections Connection Peak
- 2026-07-15 18:45:08 Date
Connections per database
Key values
- etendo Main Database
- 10,524 connections Total
Connections per user
Key values
- postgres Main User
- 10,524 connections Total
-
Sessions
Simultaneous sessions
Key values
- 21 sessions Session Peak
- 2026-07-15 19:00:01 Date
Histogram of session times
Key values
- 10,425 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 10,523 sessions Total
Sessions per user
Key values
- postgres Main User
- 10,523 sessions Total
Sessions per host
Key values
- [local] Main Host
- 10,523 sessions Total
-
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 6,296 buffers Checkpoint Peak
- 2026-07-15 10:08:15 Date
- 270.011 seconds Highest write time
- 0.010 seconds Sync time
Checkpoints Wal files
Key values
- 0 files Wal files usage Peak
- 2026-07-15 12:23:16 Date
Checkpoints distance
Key values
- 97.00 Mo Distance Peak
- 2026-07-15 10:08:15 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 15 07 3,747 373.137s 0.028s 373.212s 08 24,471 1,484.045s 0.042s 1,484.215s 09 33,229 2,027.042s 0.04s 2,027.227s 10 20,493 1,247.145s 0.032s 1,247.284s 11 14,744 1,078.404s 0.027s 1,078.5s 12 15,377 1,151.146s 0.03s 1,151.259s 13 10,176 798.352s 0.027s 798.449s 14 3,933 391.137s 0.022s 391.2s 15 10,829 889.194s 0.027s 889.304s 16 34,864 2,246.786s 0.031s 2,246.957s 17 19,041 1,370.375s 0.028s 1,370.501s 18 2,112 210.177s 0.02s 210.239s 19 1,742 173.431s 0.02s 173.499s 20 2,078 206.749s 0.019s 206.813s 21 2,452 244.466s 0.018s 244.524s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 15 07 0 1 0 1,052 0.002s 0.012s 08 0 13 0 1,906 0.005s 0.012s 09 0 16 0 2,207 0.004s 0.012s 10 0 9 0 1,932 0.002s 0.012s 11 0 6 0 1,387 0.002s 0.012s 12 0 9 0 1,650 0.002s 0.011s 13 0 6 0 1,193 0.002s 0.013s 14 0 2 0 850 0.002s 0.012s 15 0 6 0 1,012 0.002s 0.012s 16 0 16 0 1,480 0.003s 0.011s 17 0 10 0 1,273 0.002s 0.013s 18 0 1 0 334 0.002s 0.012s 19 0 1 0 244 0.002s 0.012s 20 0 1 0 304 0.002s 0.012s 21 0 0 0 237 0.001s 0.012s Day Hour Count Avg time (sec) Jul 15 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 15 07 2,257.25 kB 117,361.75 kB 08 17,331.50 kB 42,673.67 kB 09 21,100.67 kB 35,618.25 kB 10 13,080.67 kB 36,476.67 kB 11 8,655.00 kB 28,337.83 kB 12 12,706.73 kB 28,749.64 kB 13 7,560.62 kB 30,220.31 kB 14 2,331.83 kB 10,239.33 kB 15 7,897.08 kB 23,477.25 kB 16 24,927.00 kB 30,949.64 kB 17 12,027.54 kB 31,753.85 kB 18 1,309.33 kB 18,149.50 kB 19 1,152.75 kB 7,223.83 kB 20 1,316.42 kB 7,913.00 kB 21 1,084.92 kB 6,481.50 kB -
Temporary Files
Size of temporary files
Key values
- 225.73 MiB Temp Files size Peak
- 2026-07-15 16:31:31 Date
Number of temporary files
Key values
- 26 per second Temp Files Peak
- 2026-07-15 07:18:12 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 15 07 105 615.12 MiB 5.86 MiB 08 105 170.62 MiB 1.62 MiB 09 157 318.08 MiB 2.03 MiB 10 33 58.78 MiB 1.78 MiB 11 66 138.66 MiB 2.10 MiB 12 114 317.44 MiB 2.78 MiB 13 21 78.24 MiB 3.73 MiB 14 32 160.11 MiB 5.00 MiB 15 54 87.33 MiB 1.62 MiB 16 203 759.21 MiB 3.74 MiB 17 10 16.17 MiB 1.62 MiB 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 152 1.11 GiB 1.62 MiB 77.41 MiB 7.47 MiB select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and do_m_produ0_.m_warehouse_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84%') escape '|' or upper(product1_.Value) like upper('84%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84%') escape '|' or do_m_produ0_.Qtyavaliable = '84' or upper(attributes3_.Description) like upper('84%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84%') escape '|' or do_m_produ0_.Stocktotal = '84' or upper(product1_.Name) like upper('84%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:50 Duration: 5s13ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84102%') escape '|' or upper(product1_.Value) like upper('84102%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84102%') escape '|' or do_m_produ0_.Qtyavaliable = '84102' or upper(attributes3_.Description) like upper('84102%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84102%') escape '|' or do_m_produ0_.Stocktotal = '84102' or upper(product1_.Name) like upper('84102%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:52 Duration: 4s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('8410%') escape '|' or upper(product1_.Value) like upper('8410%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('8410%') escape '|' or do_m_produ0_.Qtyavaliable = '8410' or upper(attributes3_.Description) like upper('8410%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('8410%') escape '|' or do_m_produ0_.Stocktotal = '8410' or upper(product1_.Name) like upper('8410%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:51 Duration: 4s779ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
2 54 446.15 MiB 2.69 MiB 112.13 MiB 8.26 MiB select fin_payment.created, c_invoice.dateinvoiced AS "dataFactura", c_invoice.documentno AS "numFactura", fin_paymentmethod.name AS "tipoCobro", c_bpartner.value AS "valuePartner", c_bpartner.name AS "namePartner", max(fin_payment_sched_inv_v.duedate) AS "fechaVencimiento", c_invoice.grandtotal AS "total", c_invoice.totalpaid AS "totalPagado", case when count(*) = ? then ? when count(*) = ? then ? when count(*) = ? then ? else ? end AS "rebut", c_invoice.ispaid AS "pagado", ad_sequence.prefix AS "prefijo", sum(fin_payment_detail_v.paidamt) AS "paidamt", fin_payment_detail_v.paymentdate from c_invoice left join fin_payment_sched_inv_v on fin_payment_sched_inv_v.c_invoice_id = c_invoice.c_invoice_id left join c_bpartner on c_bpartner.c_bpartner_id = c_invoice.c_bpartner_id left join c_doctype on c_doctype.c_doctype_id = c_invoice.c_doctype_id left join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join fin_payment_detail_v on fin_payment_detail_v.fin_payment_sched_inv_id = fin_payment_sched_inv_v.fin_payment_sched_inv_v_id left join fin_paymentmethod on fin_paymentmethod.fin_paymentmethod_id = fin_payment_detail_v.fin_paymentmethod_id left join fin_payment on fin_payment.fin_payment_id = fin_payment_detail_v.fin_payment_id where isreceipt = ? and c_invoice.ad_client_id = ? and c_invoice.ad_org_id in (...) and to_date(to_char(fin_payment.created, ?), ?) <= to_date(?, ?) and to_date(to_char(fin_payment.created, ?), ?) >= to_date(?, ?) and c_doctype.name != ? and c_doctype.name != ? group by c_invoice.dateinvoiced, c_invoice.documentno, fin_paymentmethod.name, c_bpartner.value, c_bpartner.name, c_invoice.grandtotal, c_invoice.totalpaid, c_invoice.ispaid, ad_sequence.prefix, fin_payment_detail_v.paymentdate, fin_payment.created order by ad_sequence.prefix, c_invoice.dateinvoiced, c_invoice.documentno;-
SELECT fin_payment.created, c_invoice.dateinvoiced as "dataFactura", c_invoice.documentno as "numFactura", fin_paymentmethod.name as "tipoCobro", c_bpartner.value as "valuePartner", c_bpartner.name as "namePartner", max(FIN_Payment_Sched_Inv_V.duedate) as "fechaVencimiento", c_invoice.grandtotal as "total", c_invoice.totalpaid as "totalPagado", case when count(*) = 1 then 'A' when count(*) = 2 then 'B' when count(*) = 3 then 'C' else '-' END as "rebut", c_invoice.ispaid as "pagado", ad_sequence.prefix as "prefijo", sum(fin_payment_detail_v.Paidamt) as "paidamt", fin_payment_detail_v.Paymentdate from c_invoice LEFT JOIN FIN_Payment_Sched_Inv_V ON FIN_Payment_Sched_Inv_V.c_invoice_id = c_invoice.c_invoice_id left join c_bpartner on c_bpartner.c_bpartner_id = c_invoice.c_bpartner_id left join c_doctype on c_doctype.c_doctype_id = c_invoice.c_doctype_id left join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join fin_payment_detail_v on fin_payment_detail_v.fin_payment_sched_inv_id = fin_payment_sched_inv_V.fin_payment_sched_inv_v_id left join fin_paymentmethod on fin_paymentmethod.fin_paymentmethod_id = fin_payment_detail_v.fin_paymentmethod_id left join fin_payment on fin_payment.fin_payment_id = fin_payment_detail_v.fin_payment_id where isreceipt = 'Y' and c_invoice.ad_client_id = $1 and c_invoice.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') <= to_date('14-07-2026', 'dd-mm-yyyy') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') >= to_date('14-07-2026', 'dd-mm-yyyy') and c_doctype.name != 'Factura D' and c_doctype.name != 'Factura N' group by c_invoice.dateinvoiced, c_invoice.documentno, fin_paymentmethod.name, c_bpartner.value, c_bpartner.name, c_invoice.grandtotal, c_invoice.totalpaid, c_invoice.ispaid, ad_sequence.prefix, fin_payment_detail_v.Paymentdate, fin_payment.created order by ad_sequence.prefix, c_invoice.dateinvoiced, c_invoice.documentno;
Date: 2026-07-15 07:12:44 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
3 44 317.09 MiB 2.23 MiB 26.44 MiB 7.21 MiB select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = '91B132A281B64330AF076174A673A546' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:31:32 Duration: 4s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:25:16 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 36 209.72 MiB 30.76 KiB 40.01 MiB 5.83 MiB select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and c_order.c_doctypetarget_id in (...) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = 'FF8081812FBA2641012FBA2AB5D20003' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:19 Duration: 4s215ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:18 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 28 85.45 MiB 2.69 MiB 3.42 MiB 3.05 MiB select fin_payment.created, c_invoice.dateinvoiced AS "dataFactura", c_invoice.documentno AS "numFactura", fin_paymentmethod.name AS "tipoCobro", c_bpartner.value AS "valuePartner", c_bpartner.name AS "namePartner", max(fin_payment_sched_inv_v.duedate) AS "fechaVencimiento", c_invoice.grandtotal AS "total", c_invoice.totalpaid AS "totalPagado", case when count(*) = ? then ? when count(*) = ? then ? when count(*) = ? then ? else ? end AS "rebut", c_invoice.ispaid AS "pagado", ad_sequence.prefix AS "prefijo", sum(fin_payment_detail_v.paidamt) AS "paidamt", fin_payment_detail_v.paymentdate from c_invoice left join fin_payment_sched_inv_v on fin_payment_sched_inv_v.c_invoice_id = c_invoice.c_invoice_id left join c_bpartner on c_bpartner.c_bpartner_id = c_invoice.c_bpartner_id left join c_doctype on c_doctype.c_doctype_id = c_invoice.c_doctype_id left join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join fin_payment_detail_v on fin_payment_detail_v.fin_payment_sched_inv_id = fin_payment_sched_inv_v.fin_payment_sched_inv_v_id left join fin_paymentmethod on fin_paymentmethod.fin_paymentmethod_id = fin_payment_detail_v.fin_paymentmethod_id left join fin_payment on fin_payment.fin_payment_id = fin_payment_detail_v.fin_payment_id where ? = ? and c_invoice.ad_client_id = ? and c_invoice.ad_org_id in (...) and to_date(to_char(fin_payment.created, ?), ?) <= to_date(?, ?) and to_date(to_char(fin_payment.created, ?), ?) >= to_date(?, ?) and (c_doctype.name = ? or c_doctype.name = ? or c_doctype.name = ? or c_doctype.name = ? or c_doctype.name = ?) group by c_invoice.dateinvoiced, c_invoice.documentno, fin_paymentmethod.name, c_bpartner.value, c_bpartner.name, c_invoice.grandtotal, c_invoice.totalpaid, c_invoice.ispaid, ad_sequence.prefix, fin_payment_detail_v.paymentdate, fin_payment.created order by ad_sequence.prefix, c_invoice.dateinvoiced, c_invoice.documentno;-
SELECT fin_payment.created, c_invoice.dateinvoiced as "dataFactura", c_invoice.documentno as "numFactura", fin_paymentmethod.name as "tipoCobro", c_bpartner.value as "valuePartner", c_bpartner.name as "namePartner", max(FIN_Payment_Sched_Inv_V.duedate) as "fechaVencimiento", c_invoice.grandtotal as "total", c_invoice.totalpaid as "totalPagado", case when count(*) = 1 then 'A' when count(*) = 2 then 'B' when count(*) = 3 then 'C' else '-' END as "rebut", c_invoice.ispaid as "pagado", ad_sequence.prefix as "prefijo", sum(fin_payment_detail_v.Paidamt) as "paidamt", fin_payment_detail_v.Paymentdate from c_invoice LEFT JOIN FIN_Payment_Sched_Inv_V ON FIN_Payment_Sched_Inv_V.c_invoice_id = c_invoice.c_invoice_id left join c_bpartner on c_bpartner.c_bpartner_id = c_invoice.c_bpartner_id left join c_doctype on c_doctype.c_doctype_id = c_invoice.c_doctype_id left join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join fin_payment_detail_v on fin_payment_detail_v.fin_payment_sched_inv_id = fin_payment_sched_inv_V.fin_payment_sched_inv_v_id left join fin_paymentmethod on fin_paymentmethod.fin_paymentmethod_id = fin_payment_detail_v.fin_paymentmethod_id left join fin_payment on fin_payment.fin_payment_id = fin_payment_detail_v.fin_payment_id where 1 = 1 --and isreceipt='Y' and c_invoice.ad_client_id = $1 and c_invoice.ad_org_id in ('FF8081813510684B01354402F76B59F3') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') <= to_date('14-07-2026', 'dd-mm-yyyy') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') >= to_date('14-07-2026', 'dd-mm-yyyy') and (c_doctype.name = 'Factura D' or c_doctype.name = 'Factura N' or c_doctype.name = 'Factura P3D' or c_doctype.name = 'Factura P3N' or c_doctype.name = 'Factura Compra') group by c_invoice.dateinvoiced, c_invoice.documentno, fin_paymentmethod.name, c_bpartner.value, c_bpartner.name, c_invoice.grandtotal, c_invoice.totalpaid, c_invoice.ispaid, ad_sequence.prefix, fin_payment_detail_v.Paymentdate, fin_payment.created order by ad_sequence.prefix, c_invoice.dateinvoiced, c_invoice.documentno;
Date: 2026-07-15 07:12:48 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
6 16 101.38 MiB 3.31 MiB 25.82 MiB 6.34 MiB select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099%') escape '|' or upper(product1_.Value) like upper('6099%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099%') escape '|' or do_m_produ0_.Qtyavaliable = '6099' or upper(attributes3_.Description) like upper('6099%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099%') escape '|' or do_m_produ0_.Stocktotal = '6099' or upper(product1_.Name) like upper('6099%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60994%') escape '|' or upper(product1_.Value) like upper('60994%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60994%') escape '|' or do_m_produ0_.Qtyavaliable = '60994' or upper(attributes3_.Description) like upper('60994%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60994%') escape '|' or do_m_produ0_.Stocktotal = '60994' or upper(product1_.Name) like upper('60994%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s795ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099455%') escape '|' or upper(product1_.Value) like upper('6099455%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099455%') escape '|' or do_m_produ0_.Qtyavaliable = '6099455' or upper(attributes3_.Description) like upper('6099455%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099455%') escape '|' or do_m_produ0_.Stocktotal = '6099455' or upper(product1_.Name) like upper('6099455%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:10 Duration: 6s749ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
7 1 15.18 MiB 15.18 MiB 15.18 MiB 15.18 MiB 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, dateordered, datepromised, dateacct, c_bpartner_id, billto_id, c_bpartner_location_id, 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, copyfrom, isselfservice, generatetemplate, delivery_location_id, copyfrompo, fin_paymentmethod_id, rm_pickfromshipment, rm_receivematerials, rm_createinvoice, rm_addorphanline, calculate_promotions, convertquotation, create_polines, iscashvat, rm_pickfromreceipt, cancelandreplace, em_aprm_addpayment, em_obwpl_generatepicking, em_obwpl_isinpickinglist, em_obwpl_readypl, confirmcancelandreplace, iscancelled, em_do_portes, em_do_albaranvalorado, em_prouti_order_stock, em_prouti_pregenerate_minout, em_prouti_sotopo, em_do_entregado, em_prouti_generate_pick_inv, em_do_esinterno, em_do_aceptaprecios, em_do_preparado, em_prouti_changebpartner, em_prouti_recalculate_price, em_do_createinout, em_prouti_reactiveorder, em_do_inoutdone, em_prouti_invoiced, em_do_tercerocontado, em_prouti_received, em_do_crearpedidooferta, em_pbsp_sigcaptured, em_prouti_initial_received, em_do_mediosenvio_id, em_do_cierrepedido, em_do_validate_usr_processing, em_do_issended, em_do_resend, em_prouti_status_of_review, em_prouti_validate_order, em_prouti_start_review, em_pr592_exclude_tax, c_order_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);-
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, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, 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, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Obwpl_Readypl, Confirmcancelandreplace, Iscancelled, EM_Do_Portes, EM_Do_Albaranvalorado, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Do_Entregado, EM_Prouti_Generate_Pick_Inv, EM_Do_Esinterno, EM_Do_Aceptaprecios, EM_Do_Preparado, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Do_Createinout, EM_Prouti_Reactiveorder, EM_Do_Inoutdone, em_prouti_Invoiced, EM_Do_Tercerocontado, em_prouti_Received, EM_Do_Crearpedidooferta, EM_Pbsp_Sigcaptured, em_prouti_initial_received, EM_Do_Mediosenvio_ID, EM_Do_Cierrepedido, em_do_validate_usr_processing, EM_Do_Issended, EM_Do_Resend, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Pr592_Exclude_Tax, 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);
Date: 2026-07-15 16:43:33 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
8 1 21.59 MiB 21.59 MiB 21.59 MiB 21.59 MiB select to_date(?) + to_number(?) as fecha from dual;-
SELECT TO_DATE($1) + to_number($2) as fecha FROM DUAL;
Date: 2026-07-15 09:53:07 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
9 1 10.64 MiB 10.64 MiB 10.64 MiB 10.64 MiB rollback;-
ROLLBACK;
Date: 2026-07-15 07:30:00 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
10 1 6.50 MiB 6.50 MiB 6.50 MiB 6.50 MiB update c_order set updated = ?, documentno = ?, c_doctypetarget_id = ?, dateordered = ? where c_order_id = ?;-
update C_Order set Updated = $1, DocumentNo = $2, C_DocTypeTarget_ID = $3, DateOrdered = $4 where C_Order_ID = $5;
Date: 2026-07-15 09:26:47 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 112.13 MiB SELECT fin_payment.created, c_invoice.dateinvoiced as "dataFactura", c_invoice.documentno as "numFactura", fin_paymentmethod.name as "tipoCobro", c_bpartner.value as "valuePartner", c_bpartner.name as "namePartner", max(FIN_Payment_Sched_Inv_V.duedate) as "fechaVencimiento", c_invoice.grandtotal as "total", c_invoice.totalpaid as "totalPagado", case when count(*) = 1 then 'A' when count(*) = 2 then 'B' when count(*) = 3 then 'C' else '-' END as "rebut", c_invoice.ispaid as "pagado", ad_sequence.prefix as "prefijo", sum(fin_payment_detail_v.Paidamt) as "paidamt", fin_payment_detail_v.Paymentdate from c_invoice LEFT JOIN FIN_Payment_Sched_Inv_V ON FIN_Payment_Sched_Inv_V.c_invoice_id = c_invoice.c_invoice_id left join c_bpartner on c_bpartner.c_bpartner_id = c_invoice.c_bpartner_id left join c_doctype on c_doctype.c_doctype_id = c_invoice.c_doctype_id left join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join fin_payment_detail_v on fin_payment_detail_v.fin_payment_sched_inv_id = fin_payment_sched_inv_V.fin_payment_sched_inv_v_id left join fin_paymentmethod on fin_paymentmethod.fin_paymentmethod_id = fin_payment_detail_v.fin_paymentmethod_id left join fin_payment on fin_payment.fin_payment_id = fin_payment_detail_v.fin_payment_id where isreceipt = 'Y' and c_invoice.ad_client_id = $1 and c_invoice.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') <= to_date('14-07-2026', 'dd-mm-yyyy') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') >= to_date('14-07-2026', 'dd-mm-yyyy') and c_doctype.name != 'Factura D' and c_doctype.name != 'Factura N' group by c_invoice.dateinvoiced, c_invoice.documentno, fin_paymentmethod.name, c_bpartner.value, c_bpartner.name, c_invoice.grandtotal, c_invoice.totalpaid, c_invoice.ispaid, ad_sequence.prefix, fin_payment_detail_v.Paymentdate, fin_payment.created order by ad_sequence.prefix, c_invoice.dateinvoiced, c_invoice.documentno;[ Date: 2026-07-15 07:12:44 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 112.13 MiB SELECT fin_payment.created, c_invoice.dateinvoiced as "dataFactura", c_invoice.documentno as "numFactura", fin_paymentmethod.name as "tipoCobro", c_bpartner.value as "valuePartner", c_bpartner.name as "namePartner", max(FIN_Payment_Sched_Inv_V.duedate) as "fechaVencimiento", c_invoice.grandtotal as "total", c_invoice.totalpaid as "totalPagado", case when count(*) = 1 then 'A' when count(*) = 2 then 'B' when count(*) = 3 then 'C' else '-' END as "rebut", c_invoice.ispaid as "pagado", ad_sequence.prefix as "prefijo", sum(fin_payment_detail_v.Paidamt) as "paidamt", fin_payment_detail_v.Paymentdate from c_invoice LEFT JOIN FIN_Payment_Sched_Inv_V ON FIN_Payment_Sched_Inv_V.c_invoice_id = c_invoice.c_invoice_id left join c_bpartner on c_bpartner.c_bpartner_id = c_invoice.c_bpartner_id left join c_doctype on c_doctype.c_doctype_id = c_invoice.c_doctype_id left join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join fin_payment_detail_v on fin_payment_detail_v.fin_payment_sched_inv_id = fin_payment_sched_inv_V.fin_payment_sched_inv_v_id left join fin_paymentmethod on fin_paymentmethod.fin_paymentmethod_id = fin_payment_detail_v.fin_paymentmethod_id left join fin_payment on fin_payment.fin_payment_id = fin_payment_detail_v.fin_payment_id where isreceipt = 'Y' and c_invoice.ad_client_id = $1 and c_invoice.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') <= to_date('14-07-2026', 'dd-mm-yyyy') and to_date(to_char(fin_payment.created, 'dd-mm-yyyy'), 'dd-mm-yyyy') >= to_date('14-07-2026', 'dd-mm-yyyy') and c_doctype.name != 'Factura D' and c_doctype.name != 'Factura N' group by c_invoice.dateinvoiced, c_invoice.documentno, fin_paymentmethod.name, c_bpartner.value, c_bpartner.name, c_invoice.grandtotal, c_invoice.totalpaid, c_invoice.ispaid, ad_sequence.prefix, fin_payment_detail_v.Paymentdate, fin_payment.created order by ad_sequence.prefix, c_invoice.dateinvoiced, c_invoice.documentno;[ Date: 2026-07-15 07:18:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 77.41 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 13:06:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 58.34 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 12:55:08 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 53.55 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 16:26:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 46.84 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 09:27:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 44.69 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 07:34:55 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 40.67 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 09:48:34 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 40.01 MiB select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;[ Date: 2026-07-15 16:33:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 39.99 MiB select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;[ Date: 2026-07-15 16:33:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 39.84 MiB select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;[ Date: 2026-07-15 16:33:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 39.17 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 11:50:56 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 37.43 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 11:27:08 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 31.35 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 12:55:11 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 30.12 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 16:25:41 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 26.89 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 13:06:33 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 26.44 MiB select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;[ Date: 2026-07-15 16:25:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 25.88 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 16:23:27 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 25.82 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 12:50:34 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 24.17 MiB select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper($1) escape '|' or upper(product1_.Value) like upper($2) escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper($3) escape '|' or do_m_produ0_.Qtyavaliable = $4 or upper(attributes3_.Description) like upper($5) escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper($6) escape '|' or do_m_produ0_.Stocktotal = $7 or upper(product1_.Name) like upper($8) escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = $9 and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = $10) = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ($11, $12)) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit $13;[ Date: 2026-07-15 09:09:56 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.81 sec Highest CPU-cost vacuum
Table pg_toast.pg_toast_90210
Database etendo - 2026-07-15 16:27:25 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 0.81 sec Highest CPU-cost vacuum
Table pg_toast.pg_toast_90210
Database etendo - 2026-07-15 16:27:25 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (55) Main table analyzed (database etendo)
- 199 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 55 etendo.public.ad_session 20 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.public.ad_process_request 13 etendo.profile.tables_list 7 etendo.profile.stmt_list 6 etendo.profile.indexes_list 5 etendo.profile.funcs_list 5 etendo.profile.last_extension_versions 4 etendo.profile.last_stat_activity_count_srv1 4 etendo.profile.sample_stat_user_functions 2 etendo.profile.last_stat_slru 2 etendo.public.ad_preference 2 etendo.profile.sample_statements 1 etendo.profile.sample_stat_indexes 1 etendo.public.ad_pinstance 1 etendo.public.m_stock_aux 1 etendo.public.ad_sequence 1 etendo.public.m_stock_proposed 1 etendo.public.fin_financial_account 1 etendo.public.m_storage_pending 1 etendo.profile.sample_stat_tables_total 1 etendo.profile.sample_stat_indexes_total 1 etendo.public.c_orderline 1 etendo.profile.sample_stat_slru 1 etendo.profile.sample_stat_database 1 etendo.profile.sample_stat_tables 1 Total 199 Vacuums per table
Key values
- public.ad_ep_instance_para (33) Main table vacuumed on database etendo
- 118 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 33 33 2,530 0 136 0 0 228 56 454,051 0 0 etendo.profile.last_stat_tables_srv1 15 15 13,189 0 187 0 0 9,395 197 1,365,417 0 0 etendo.profile.last_stat_indexes_srv1 15 15 16,899 0 293 0 0 12,122 303 1,906,015 0 0 etendo.profile.last_stat_statements_srv1 15 15 12,477 0 243 0 0 8,538 243 1,430,304 0 0 etendo.profile.last_stat_user_functions_srv1 15 15 3,121 0 41 0 0 1,788 41 323,543 0 0 etendo.profile.tables_list 4 4 676 0 11 0 0 326 11 100,063 0 0 etendo.profile.funcs_list 4 4 524 0 24 0 0 136 14 116,676 0 0 etendo.profile.stmt_list 4 4 1,595 0 99 0 0 1,037 66 493,270 0 0 etendo.profile.indexes_list 3 3 472 0 17 0 0 150 13 101,991 0 0 etendo.profile.last_stat_activity_count_srv1 2 0 58 0 10 0 0 12 4 32,654 0 0 etendo.profile.last_extension_versions 2 2 134 0 10 0 0 10 4 33,274 0 0 etendo.pg_toast.pg_toast_90210 1 0 6,640 0 3,301 0 0 3,300 2 210,811 0 0 etendo.profile.sample_statements 1 1 1,435 0 590 0 0 710 45 137,899 0 0 etendo.profile.sample_stat_user_functions 1 1 310 0 96 0 0 134 18 81,910 0 0 etendo.pg_toast.pg_toast_2619 1 1 1,068 0 208 0 82 509 175 462,223 0 0 etendo.profile.last_stat_slru 1 1 57 0 4 0 0 5 1 8,908 0 0 etendo.profile.last_stat_database_srv1 1 1 55 0 6 0 0 6 3 20,062 0 0 Total 118 115 61,240 229 5,276 0 82 38,406 1,196 7,279,071 0 0 Vacuum throughput per table
Key values
- pg_toast.pg_toast_90210 (0.81) 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.34 etendo.profile.last_stat_tables_srv1 0 0 0.15 etendo.profile.last_stat_indexes_srv1 0 0 0.24 etendo.profile.last_stat_statements_srv1 0 0 0.17 etendo.profile.last_stat_user_functions_srv1 0 0 0.03 etendo.profile.tables_list 0 0 0 etendo.profile.funcs_list 0 0 0 etendo.profile.stmt_list 0 0 0.03 etendo.profile.indexes_list 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0.02 etendo.profile.last_extension_versions 0 0 0 etendo.pg_toast.pg_toast_90210 0 0 0.81 etendo.profile.sample_statements 0 0 0.15 etendo.profile.sample_stat_user_functions 0 0 0.02 etendo.pg_toast.pg_toast_2619 0 0 0.06 etendo.profile.last_stat_slru 0 0 0 etendo.profile.last_stat_database_srv1 0 0 0 Total 0 0 2.02 Tuples removed per table
Key values
- profile.last_stat_indexes_srv1 (77713) Main table with removed tuples on database etendo
- 170809 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.profile.last_stat_indexes_srv1 15 15 77,713 38,385 0 205 4,446 etendo.profile.last_stat_tables_srv1 15 15 49,139 23,219 0 0 3,625 etendo.profile.last_stat_statements_srv1 15 15 30,900 27,272 0 314 2,398 etendo.profile.last_stat_user_functions_srv1 15 15 8,905 7,950 0 10 536 etendo.profile.sample_statements 1 1 921 13,662 0 0 586 etendo.public.ad_ep_instance_para 33 33 755 0 0 33 0 etendo.profile.sample_stat_user_functions 1 1 603 8,158 0 0 86 etendo.profile.stmt_list 4 4 478 4,310 0 0 439 etendo.profile.tables_list 4 4 464 3,564 0 0 104 etendo.pg_toast.pg_toast_2619 1 1 377 2,087 0 0 727 etendo.profile.indexes_list 3 3 173 1,388 0 0 42 etendo.profile.funcs_list 4 4 165 1,073 0 0 40 etendo.profile.last_extension_versions 2 2 112 16 0 0 2 etendo.profile.last_stat_slru 1 1 52 4 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_90210 1 0 0 13,436 0 0 3,299 Total 118 115 170,809 144,528 0 564 16,332 Pages removed per table
Key values
- profile.last_stat_statements_srv1 (314) Main table with removed pages on database etendo
- 564 pages Total removed
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_statements_srv1 15 15 30900 314 etendo.profile.last_stat_indexes_srv1 15 15 77713 205 etendo.public.ad_ep_instance_para 33 33 755 33 etendo.profile.last_stat_user_functions_srv1 15 15 8905 10 etendo.profile.last_stat_activity_count_srv1 2 0 48 2 etendo.profile.last_stat_tables_srv1 15 15 49139 0 etendo.pg_toast.pg_toast_90210 1 0 0 0 etendo.profile.sample_statements 1 1 921 0 etendo.profile.indexes_list 3 3 173 0 etendo.profile.tables_list 4 4 464 0 etendo.profile.sample_stat_user_functions 1 1 603 0 etendo.pg_toast.pg_toast_2619 1 1 377 0 etendo.profile.last_stat_slru 1 1 52 0 etendo.profile.last_extension_versions 2 2 112 0 etendo.profile.funcs_list 4 4 165 0 etendo.profile.stmt_list 4 4 478 0 etendo.profile.last_stat_database_srv1 1 1 4 0 Total 118 115 170,809 564 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 15 07 5 9 08 11 17 09 12 23 10 8 16 11 6 12 12 11 20 13 6 13 14 6 10 15 7 11 16 14 24 17 8 12 18 7 6 19 6 9 20 6 9 21 5 8 - 0.81 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
- 137 Total read queries
- 0 Total write queries
Queries by database
Key values
- etendo Main database
- 137 Requests
- 9m39s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 137 Requests
User Request type Count Duration tad Total 137 9m39s select 137 9m39s Duration by user
Key values
- 9m39s (tad) Main time consuming user
User Request type Count Duration tad Total 137 9m39s select 137 9m39s Queries by host
Key values
- 127.0.0.1 Main host
- 137 Requests
- 9m39s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 137 Requests
- 9m39s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-15 19:40:29 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 137 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 9s468ms select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;[ Date: 2026-07-15 07:12:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
2 9s243ms select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;[ Date: 2026-07-15 07:18:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
3 6s796ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099%') escape '|' or upper(product1_.Value) like upper('6099%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099%') escape '|' or do_m_produ0_.Qtyavaliable = '6099' or upper(attributes3_.Description) like upper('6099%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099%') escape '|' or do_m_produ0_.Stocktotal = '6099' or upper(product1_.Name) like upper('6099%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:49:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
4 6s795ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60994%') escape '|' or upper(product1_.Value) like upper('60994%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60994%') escape '|' or do_m_produ0_.Qtyavaliable = '60994' or upper(attributes3_.Description) like upper('60994%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60994%') escape '|' or do_m_produ0_.Stocktotal = '60994' or upper(product1_.Name) like upper('60994%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:49:09 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
5 6s749ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099455%') escape '|' or upper(product1_.Value) like upper('6099455%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099455%') escape '|' or do_m_produ0_.Qtyavaliable = '6099455' or upper(attributes3_.Description) like upper('6099455%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099455%') escape '|' or do_m_produ0_.Stocktotal = '6099455' or upper(product1_.Name) like upper('6099455%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:49:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
6 6s721ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099%') escape '|' or upper(product1_.Value) like upper('6099%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099%') escape '|' or do_m_produ0_.Qtyavaliable = '6099' or upper(attributes3_.Description) like upper('6099%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099%') escape '|' or do_m_produ0_.Stocktotal = '6099' or upper(product1_.Name) like upper('6099%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:53:00 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
7 6s716ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60994%') escape '|' or upper(product1_.Value) like upper('60994%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60994%') escape '|' or do_m_produ0_.Qtyavaliable = '60994' or upper(attributes3_.Description) like upper('60994%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60994%') escape '|' or do_m_produ0_.Stocktotal = '60994' or upper(product1_.Name) like upper('60994%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:53:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
8 6s702ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60%') escape '|' or upper(product1_.Value) like upper('60%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60%') escape '|' or do_m_produ0_.Qtyavaliable = '60' or upper(attributes3_.Description) like upper('60%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60%') escape '|' or do_m_produ0_.Stocktotal = '60' or upper(product1_.Name) like upper('60%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:49:08 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
9 6s652ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099455%') escape '|' or upper(product1_.Value) like upper('6099455%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099455%') escape '|' or do_m_produ0_.Qtyavaliable = '6099455' or upper(attributes3_.Description) like upper('6099455%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099455%') escape '|' or do_m_produ0_.Stocktotal = '6099455' or upper(product1_.Name) like upper('6099455%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:53:01 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 6s627ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6%') escape '|' or upper(product1_.Value) like upper('6%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6%') escape '|' or do_m_produ0_.Qtyavaliable = '6' or upper(attributes3_.Description) like upper('6%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6%') escape '|' or do_m_produ0_.Stocktotal = '6' or upper(product1_.Name) like upper('6%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:49:08 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
11 6s596ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60%') escape '|' or upper(product1_.Value) like upper('60%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60%') escape '|' or do_m_produ0_.Qtyavaliable = '60' or upper(attributes3_.Description) like upper('60%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60%') escape '|' or do_m_produ0_.Stocktotal = '60' or upper(product1_.Name) like upper('60%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:53:00 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
12 6s84ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('4604369%') escape '|' or upper(product1_.Value) like upper('4604369%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('4604369%') escape '|' or do_m_produ0_.Qtyavaliable = '4604369' or upper(attributes3_.Description) like upper('4604369%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('4604369%') escape '|' or do_m_produ0_.Stocktotal = '4604369' or upper(product1_.Name) like upper('4604369%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '29CC90B8DFBB426A842A6B44DCEA3EA2') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 11:39:26 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
13 5s979ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('53%') escape '|' or upper(product1_.Value) like upper('53%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('53%') escape '|' or do_m_produ0_.Qtyavaliable = '53' or upper(attributes3_.Description) like upper('53%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('53%') escape '|' or do_m_produ0_.Stocktotal = '53' or upper(product1_.Name) like upper('53%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '45847B4E303C4ABEB36214D4557A1C2D') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 16:35:00 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
14 5s13ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84%') escape '|' or upper(product1_.Value) like upper('84%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84%') escape '|' or do_m_produ0_.Qtyavaliable = '84' or upper(attributes3_.Description) like upper('84%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84%') escape '|' or do_m_produ0_.Stocktotal = '84' or upper(product1_.Name) like upper('84%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 09:18:50 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
15 4s982ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84102%') escape '|' or upper(product1_.Value) like upper('84102%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84102%') escape '|' or do_m_produ0_.Qtyavaliable = '84102' or upper(attributes3_.Description) like upper('84102%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84102%') escape '|' or do_m_produ0_.Stocktotal = '84102' or upper(product1_.Name) like upper('84102%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 09:18:52 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 4s779ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('8410%') escape '|' or upper(product1_.Value) like upper('8410%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('8410%') escape '|' or do_m_produ0_.Qtyavaliable = '8410' or upper(attributes3_.Description) like upper('8410%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('8410%') escape '|' or do_m_produ0_.Stocktotal = '8410' or upper(product1_.Name) like upper('8410%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 09:18:51 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
17 4s583ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('856005%') escape '|' or upper(product1_.Value) like upper('856005%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('856005%') escape '|' or do_m_produ0_.Qtyavaliable = '856005' or upper(attributes3_.Description) like upper('856005%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('856005%') escape '|' or do_m_produ0_.Stocktotal = '856005' or upper(product1_.Name) like upper('856005%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '6821C4A573774947A9467F8AABFEE57D') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 08:34:51 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 4s576ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('860%') escape '|' or upper(product1_.Value) like upper('860%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('860%') escape '|' or do_m_produ0_.Qtyavaliable = '860' or upper(attributes3_.Description) like upper('860%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('860%') escape '|' or do_m_produ0_.Stocktotal = '860' or upper(product1_.Name) like upper('860%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '9D03AD63366149D8B20AABFDCB7A73C1') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 08:05:43 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 4s361ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6100070%') escape '|' or upper(product1_.Value) like upper('6100070%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6100070%') escape '|' or do_m_produ0_.Qtyavaliable = '6100070' or upper(attributes3_.Description) like upper('6100070%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6100070%') escape '|' or do_m_produ0_.Stocktotal = '6100070' or upper(product1_.Name) like upper('6100070%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = 'F95B2F7080F64BC2BC0524B8CB1BFE52') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 12:32:10 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 4s341ms select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('09%') escape '|' or upper(product1_.Value) like upper('09%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('09%') escape '|' or do_m_produ0_.Qtyavaliable = '9' or upper(attributes3_.Description) like upper('09%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('09%') escape '|' or do_m_produ0_.Stocktotal = '9' or upper(product1_.Name) like upper('09%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = 'DC237BE56AE84A3CB326B876C04E4CA9') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';[ Date: 2026-07-15 16:25:09 - 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 7m59s 122 3s353ms 5s13ms 3s929ms select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and do_m_produ0_.m_warehouse_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 15 08 38 2m30s 3s972ms 09 16 1m5s 4s66ms 11 12 44s445ms 3s703ms 12 13 51s425ms 3s955ms 15 31 2m 3s883ms 16 7 27s838ms 3s976ms 17 5 19s274ms 3s854ms [ User: tad - Total duration: 7m59s - Times executed: 122 ]
[ Application: openbravo - Total duration: 7m59s - Times executed: 122 ]
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84%') escape '|' or upper(product1_.Value) like upper('84%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84%') escape '|' or do_m_produ0_.Qtyavaliable = '84' or upper(attributes3_.Description) like upper('84%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84%') escape '|' or do_m_produ0_.Stocktotal = '84' or upper(product1_.Name) like upper('84%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:50 Duration: 5s13ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84102%') escape '|' or upper(product1_.Value) like upper('84102%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84102%') escape '|' or do_m_produ0_.Qtyavaliable = '84102' or upper(attributes3_.Description) like upper('84102%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84102%') escape '|' or do_m_produ0_.Stocktotal = '84102' or upper(product1_.Name) like upper('84102%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:52 Duration: 4s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('8410%') escape '|' or upper(product1_.Value) like upper('8410%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('8410%') escape '|' or do_m_produ0_.Qtyavaliable = '8410' or upper(attributes3_.Description) like upper('8410%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('8410%') escape '|' or do_m_produ0_.Stocktotal = '8410' or upper(product1_.Name) like upper('8410%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:51 Duration: 4s779ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 1m12s 11 5s979ms 6s796ms 6s583ms select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 15 11 1 6s84ms 6s84ms 12 9 1m 6s706ms 16 1 5s979ms 5s979ms [ User: tad - Total duration: 1m12s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m12s - Times executed: 11 ]
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099%') escape '|' or upper(product1_.Value) like upper('6099%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099%') escape '|' or do_m_produ0_.Qtyavaliable = '6099' or upper(attributes3_.Description) like upper('6099%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099%') escape '|' or do_m_produ0_.Stocktotal = '6099' or upper(product1_.Name) like upper('6099%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60994%') escape '|' or upper(product1_.Value) like upper('60994%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60994%') escape '|' or do_m_produ0_.Qtyavaliable = '60994' or upper(attributes3_.Description) like upper('60994%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60994%') escape '|' or do_m_produ0_.Stocktotal = '60994' or upper(product1_.Name) like upper('60994%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s795ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099455%') escape '|' or upper(product1_.Value) like upper('6099455%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099455%') escape '|' or do_m_produ0_.Qtyavaliable = '6099455' or upper(attributes3_.Description) like upper('6099455%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099455%') escape '|' or do_m_produ0_.Stocktotal = '6099455' or upper(product1_.Name) like upper('6099455%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:10 Duration: 6s749ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 18s712ms 2 9s243ms 9s468ms 9s356ms select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value AS "valuePartner", case when c_bpartner.value != ? then c_bpartner.name else coalesce(c_order.em_do_namepartner, ?) end AS "namePartner", case when c_bpartner.value != ? then c_bpartner.value || ? || c_bpartner.name else c_bpartner.value || ? || coalesce(c_order.em_do_namepartner, ?) end AS "valuenamePartner", m_inout.documentno AS "numAlbara", m_inout.dateordered AS "dateOrdered", m_inout.movementdate AS "fehcaAlbaran", m_product.value AS "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", fin_paymentmethod.name AS "pago", m_inout.em_mi_totalalbaran AS "totalAlbaran", m_product.em_do_cantdisponible AS "cantDisponible", max(m_inoutline.m_attributesetinstance_id) AS "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix AS "prefijo", m_product.em_do_udtarifa AS "unidad", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", c_discount.discount AS "dtoOrder", c_order.em_do_namepartner AS "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end AS "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when ? then (c_invoiceline.priceactual * ?) * ((? + coalesce(c_invoiceline.em_do_descuento, ?)) / ?) when ? then c_invoiceline.priceactual * ((? + coalesce(c_invoiceline.em_do_descuento, ?)) / ?) end) else ( case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) * ((? + coalesce(c_orderline.em_do_descuento, ?)) / ?) when ? then c_orderline.priceactual * ((? + coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when ? then (c_invoiceline.priceactual * ?.?) * ? when ? then (c_invoiceline.priceactual * ?.?) end) else ( case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end) end AS "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxinv.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal AS "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id left join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxinv on c_taxinv.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = ? and m_inout.ad_client_id = ? and ad_sequence.prefix != ? and m_inout.docstatus = ? and m_inout.ad_org_id in (...) and m_inout.movementdate::date <= to_date(?, ?) and m_inout.movementdate::date >= to_date(?, ?) and c_doctype.name != ? and c_doctype.name != ? group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != ? then c_bpartner.name else coalesce(c_order.em_do_namepartner, ?) end, m_inout.documentno;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 15 07 2 18s712ms 9s356ms [ User: tad - Total duration: 18s712ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 18s712ms - Times executed: 2 ]
-
select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;
Date: 2026-07-15 07:12:43 Duration: 9s468ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;
Date: 2026-07-15 07:18:10 Duration: 9s243ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 4s326ms 1 4s326ms 4s326ms 4s326ms select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 15 16 1 4s326ms 4s326ms [ User: tad - Total duration: 4s326ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 4s326ms - Times executed: 1 ]
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = '91B132A281B64330AF076174A673A546' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:31:32 Duration: 4s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:25:16 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 4s215ms 1 4s215ms 4s215ms 4s215ms select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and c_order.c_doctypetarget_id in (...) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 15 16 1 4s215ms 4s215ms [ User: tad - Total duration: 4s215ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 4s215ms - Times executed: 1 ]
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = 'FF8081812FBA2641012FBA2AB5D20003' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:19 Duration: 4s215ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:18 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 122 7m59s 3s353ms 5s13ms 3s929ms select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and do_m_produ0_.m_warehouse_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 15 08 38 2m30s 3s972ms 09 16 1m5s 4s66ms 11 12 44s445ms 3s703ms 12 13 51s425ms 3s955ms 15 31 2m 3s883ms 16 7 27s838ms 3s976ms 17 5 19s274ms 3s854ms [ User: tad - Total duration: 7m59s - Times executed: 122 ]
[ Application: openbravo - Total duration: 7m59s - Times executed: 122 ]
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84%') escape '|' or upper(product1_.Value) like upper('84%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84%') escape '|' or do_m_produ0_.Qtyavaliable = '84' or upper(attributes3_.Description) like upper('84%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84%') escape '|' or do_m_produ0_.Stocktotal = '84' or upper(product1_.Name) like upper('84%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:50 Duration: 5s13ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84102%') escape '|' or upper(product1_.Value) like upper('84102%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84102%') escape '|' or do_m_produ0_.Qtyavaliable = '84102' or upper(attributes3_.Description) like upper('84102%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84102%') escape '|' or do_m_produ0_.Stocktotal = '84102' or upper(product1_.Name) like upper('84102%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:52 Duration: 4s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('8410%') escape '|' or upper(product1_.Value) like upper('8410%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('8410%') escape '|' or do_m_produ0_.Qtyavaliable = '8410' or upper(attributes3_.Description) like upper('8410%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('8410%') escape '|' or do_m_produ0_.Stocktotal = '8410' or upper(product1_.Name) like upper('8410%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:51 Duration: 4s779ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 11 1m12s 5s979ms 6s796ms 6s583ms select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 15 11 1 6s84ms 6s84ms 12 9 1m 6s706ms 16 1 5s979ms 5s979ms [ User: tad - Total duration: 1m12s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m12s - Times executed: 11 ]
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099%') escape '|' or upper(product1_.Value) like upper('6099%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099%') escape '|' or do_m_produ0_.Qtyavaliable = '6099' or upper(attributes3_.Description) like upper('6099%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099%') escape '|' or do_m_produ0_.Stocktotal = '6099' or upper(product1_.Name) like upper('6099%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60994%') escape '|' or upper(product1_.Value) like upper('60994%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60994%') escape '|' or do_m_produ0_.Qtyavaliable = '60994' or upper(attributes3_.Description) like upper('60994%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60994%') escape '|' or do_m_produ0_.Stocktotal = '60994' or upper(product1_.Name) like upper('60994%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s795ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099455%') escape '|' or upper(product1_.Value) like upper('6099455%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099455%') escape '|' or do_m_produ0_.Qtyavaliable = '6099455' or upper(attributes3_.Description) like upper('6099455%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099455%') escape '|' or do_m_produ0_.Stocktotal = '6099455' or upper(product1_.Name) like upper('6099455%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:10 Duration: 6s749ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 2 18s712ms 9s243ms 9s468ms 9s356ms select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value AS "valuePartner", case when c_bpartner.value != ? then c_bpartner.name else coalesce(c_order.em_do_namepartner, ?) end AS "namePartner", case when c_bpartner.value != ? then c_bpartner.value || ? || c_bpartner.name else c_bpartner.value || ? || coalesce(c_order.em_do_namepartner, ?) end AS "valuenamePartner", m_inout.documentno AS "numAlbara", m_inout.dateordered AS "dateOrdered", m_inout.movementdate AS "fehcaAlbaran", m_product.value AS "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", fin_paymentmethod.name AS "pago", m_inout.em_mi_totalalbaran AS "totalAlbaran", m_product.em_do_cantdisponible AS "cantDisponible", max(m_inoutline.m_attributesetinstance_id) AS "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix AS "prefijo", m_product.em_do_udtarifa AS "unidad", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", c_discount.discount AS "dtoOrder", c_order.em_do_namepartner AS "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end AS "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when ? then (c_invoiceline.priceactual * ?) * ((? + coalesce(c_invoiceline.em_do_descuento, ?)) / ?) when ? then c_invoiceline.priceactual * ((? + coalesce(c_invoiceline.em_do_descuento, ?)) / ?) end) else ( case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) * ((? + coalesce(c_orderline.em_do_descuento, ?)) / ?) when ? then c_orderline.priceactual * ((? + coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when ? then (c_invoiceline.priceactual * ?.?) * ? when ? then (c_invoiceline.priceactual * ?.?) end) else ( case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end) end AS "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxinv.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal AS "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id left join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxinv on c_taxinv.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = ? and m_inout.ad_client_id = ? and ad_sequence.prefix != ? and m_inout.docstatus = ? and m_inout.ad_org_id in (...) and m_inout.movementdate::date <= to_date(?, ?) and m_inout.movementdate::date >= to_date(?, ?) and c_doctype.name != ? and c_doctype.name != ? group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != ? then c_bpartner.name else coalesce(c_order.em_do_namepartner, ?) end, m_inout.documentno;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 15 07 2 18s712ms 9s356ms [ User: tad - Total duration: 18s712ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 18s712ms - Times executed: 2 ]
-
select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;
Date: 2026-07-15 07:12:43 Duration: 9s468ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;
Date: 2026-07-15 07:18:10 Duration: 9s243ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 1 4s326ms 4s326ms 4s326ms 4s326ms select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 15 16 1 4s326ms 4s326ms [ User: tad - Total duration: 4s326ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 4s326ms - Times executed: 1 ]
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = '91B132A281B64330AF076174A673A546' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:31:32 Duration: 4s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:25:16 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 1 4s215ms 4s215ms 4s215ms 4s215ms select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and c_order.c_doctypetarget_id in (...) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 15 16 1 4s215ms 4s215ms [ User: tad - Total duration: 4s215ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 4s215ms - Times executed: 1 ]
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = 'FF8081812FBA2641012FBA2AB5D20003' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:19 Duration: 4s215ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:18 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 9s243ms 9s468ms 9s356ms 2 18s712ms select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value AS "valuePartner", case when c_bpartner.value != ? then c_bpartner.name else coalesce(c_order.em_do_namepartner, ?) end AS "namePartner", case when c_bpartner.value != ? then c_bpartner.value || ? || c_bpartner.name else c_bpartner.value || ? || coalesce(c_order.em_do_namepartner, ?) end AS "valuenamePartner", m_inout.documentno AS "numAlbara", m_inout.dateordered AS "dateOrdered", m_inout.movementdate AS "fehcaAlbaran", m_product.value AS "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", fin_paymentmethod.name AS "pago", m_inout.em_mi_totalalbaran AS "totalAlbaran", m_product.em_do_cantdisponible AS "cantDisponible", max(m_inoutline.m_attributesetinstance_id) AS "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix AS "prefijo", m_product.em_do_udtarifa AS "unidad", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", c_discount.discount AS "dtoOrder", c_order.em_do_namepartner AS "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end AS "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when ? then (c_invoiceline.priceactual * ?) * ((? + coalesce(c_invoiceline.em_do_descuento, ?)) / ?) when ? then c_invoiceline.priceactual * ((? + coalesce(c_invoiceline.em_do_descuento, ?)) / ?) end) else ( case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) * ((? + coalesce(c_orderline.em_do_descuento, ?)) / ?) when ? then c_orderline.priceactual * ((? + coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when ? then (c_invoiceline.priceactual * ?.?) * ? when ? then (c_invoiceline.priceactual * ?.?) end) else ( case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end) end AS "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxinv.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal AS "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id left join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxinv on c_taxinv.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = ? and m_inout.ad_client_id = ? and ad_sequence.prefix != ? and m_inout.docstatus = ? and m_inout.ad_org_id in (...) and m_inout.movementdate::date <= to_date(?, ?) and m_inout.movementdate::date >= to_date(?, ?) and c_doctype.name != ? and c_doctype.name != ? group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != ? then c_bpartner.name else coalesce(c_order.em_do_namepartner, ?) end, m_inout.documentno;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 15 07 2 18s712ms 9s356ms [ User: tad - Total duration: 18s712ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 18s712ms - Times executed: 2 ]
-
select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;
Date: 2026-07-15 07:12:43 Duration: 9s468ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select c_invoice.documentno "InvoiceNo", c_order.documentno "PedidoNo", c_invoiceline.c_invoiceline_id, c_orderline.c_orderline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, c_bpartner.value as "valuePartner", case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end as "namePartner", case when c_bpartner.value != '100000' then c_bpartner.value || ' - ' || c_bpartner.name else c_bpartner.value || ' - ' || coalesce(c_order.em_do_namepartner, '') end as "valuenamePartner", m_inout.documentno as "numAlbara", m_inout.dateordered as "dateOrdered", m_inout.movementdate as "fehcaAlbaran", m_product.value as "valueProd", coalesce(c_orderline.description, m_product.name) AS "nameProd", FIN_PAYMENTMETHOD.NAME AS "pago", m_inout.em_mi_totalalbaran as "totalAlbaran", m_product.em_do_cantdisponible as "cantDisponible", max(m_inoutline.m_attributesetinstance_id) as "idlote", ad_sequence.ad_sequence_id, ad_sequence.prefix as "prefijo", m_product.em_do_udtarifa as "unidad", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", c_discount.discount as "dtoOrder", c_order.em_do_namepartner as "NameTerceroVarios", case when c_invoiceline.c_invoiceline_id is not null then sum(c_invoiceline.qtyinvoiced) else sum(m_inoutline.movementqty) end as "qty", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 1000) * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) when 'U' then c_invoiceline.priceactual * ((100 + coalesce(c_invoiceline.em_do_descuento, 0)) / 100) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) when 'U' then c_orderline.priceactual * ((100 + coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case when c_invoiceline.c_invoiceline_id is not null then ( case m_product.em_do_udtarifa when 'K' then (c_invoiceline.priceactual * 166.386) * 1000 when 'U' then (c_invoiceline.priceactual * 166.386) end) else ( case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end) end as "pricePTS", coalesce(c_invoiceline.em_do_descuento, c_orderline.em_do_descuento) AS "dtoLine", coalesce(c_taxINV.rate, c_tax.rate) AS "IVA", coalesce(c_invoiceline.linenetamt, m_inoutline.em_mi_linenet) AS "totalLinia", coalesce(c_invoice.grandtotal, c_order.grandtotal) AS "total", coalesce(c_invoice.totallines, c_order.totallines) AS "totallines", m_product.em_do_stocktotal as "stockTotal", c_orderline.em_do_preciosegunudtarifa from m_inout join c_bpartner on c_bpartner.c_bpartner_id = m_inout.c_bpartner_id join m_inoutline on m_inoutline.m_inout_id = m_inout.m_inout_id join m_product on m_inoutline.m_product_id = m_product.m_product_id left join c_orderline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join c_order on c_order.c_order_id = c_orderline.c_order_id LEFT JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id join ad_sequence on ad_sequence.ad_sequence_id = c_doctype.docnosequence_id left join c_order_discount on c_order_discount.c_order_id = c_order.c_order_id left join c_discount on c_discount.c_discount_id = c_order_discount.c_discount_id left join c_invoiceline on case when c_invoiceline.m_inoutline_id is not null then c_invoiceline.m_inoutline_id = m_inoutline.m_inoutline_id else c_orderline.c_orderline_id = c_invoiceline.c_orderline_id end left join c_tax as c_taxINV on c_taxINV.c_tax_id = c_invoiceline.c_tax_id left join c_invoice on c_invoice.c_invoice_id = c_invoiceline.c_invoice_id where m_inout.issotrx = 'Y' and m_inout.ad_client_id = 'FF8081812FBA2641012FBA2AB5D20003' and ad_sequence.prefix != 'GC' and m_inout.docstatus = 'CO' and m_inout.ad_org_id in ('FF8081812FBA2641012FBA3528033423', 'FF8081812FBA2641012FBA2DCB5E001E', 'A15AA70C8D23453DA93ACD1442681D80') and m_inout.movementdate::date <= to_date('14-07-2026', 'DD-MM-YYYY') and m_inout.movementdate::date >= to_date('14-07-2026', 'DD-MM-YYYY') and c_doctype.name != 'Albaran D' and c_doctype.name != 'Albaran N' group by m_inoutline.m_inoutline_id, c_orderline.c_orderline_id, c_order.c_order_id, c_invoice.c_invoice_id, c_invoiceline.c_invoiceline_id, m_inout.m_inout_id, c_bpartner.c_bpartner_id, m_product.m_product_id, fin_paymentmethod.fin_paymentmethod_id, ad_sequence.ad_sequence_id, c_discount.c_discount_id, c_taxinv.c_tax_id, c_tax.c_tax_id order by ad_sequence.prefix, case when c_bpartner.value != '100000' then c_bpartner.name else coalesce(c_order.em_do_namepartner, '') end, m_inout.documentno;
Date: 2026-07-15 07:18:10 Duration: 9s243ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 5s979ms 6s796ms 6s583ms 11 1m12s select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 15 11 1 6s84ms 6s84ms 12 9 1m 6s706ms 16 1 5s979ms 5s979ms [ User: tad - Total duration: 1m12s - Times executed: 11 ]
[ Application: openbravo - Total duration: 1m12s - Times executed: 11 ]
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099%') escape '|' or upper(product1_.Value) like upper('6099%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099%') escape '|' or do_m_produ0_.Qtyavaliable = '6099' or upper(attributes3_.Description) like upper('6099%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099%') escape '|' or do_m_produ0_.Stocktotal = '6099' or upper(product1_.Name) like upper('6099%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s796ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('60994%') escape '|' or upper(product1_.Value) like upper('60994%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('60994%') escape '|' or do_m_produ0_.Qtyavaliable = '60994' or upper(attributes3_.Description) like upper('60994%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('60994%') escape '|' or do_m_produ0_.Stocktotal = '60994' or upper(product1_.Name) like upper('60994%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:09 Duration: 6s795ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('6099455%') escape '|' or upper(product1_.Value) like upper('6099455%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('6099455%') escape '|' or do_m_produ0_.Qtyavaliable = '6099455' or upper(attributes3_.Description) like upper('6099455%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('6099455%') escape '|' or do_m_produ0_.Stocktotal = '6099455' or upper(product1_.Name) like upper('6099455%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '0DCA41A588DF4782AE634F5CA5C91C00') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF808181309287D001309309FC030155' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 12:49:10 Duration: 6s749ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 4s326ms 4s326ms 4s326ms 1 4s326ms select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 15 16 1 4s326ms 4s326ms [ User: tad - Total duration: 4s326ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 4s326ms - Times executed: 1 ]
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = '91B132A281B64330AF076174A673A546' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:31:32 Duration: 4s326ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = '50D4CE8A010D45029F09C6357BE1CF04' AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:25:16 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
4 4s215ms 4s215ms 4s215ms 1 4s215ms select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(m_inout.m_inout_id, ( select m_inout_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "M_INOUT_ID", coalesce(m_inout.documentno, ( select documentno from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) AS "AlabranNp", coalesce(m_inout.movementdate, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno AS "PedidoNo", c_bpartner.value AS "ValueTercero", c_bpartner.taxid AS "TaxTercero", c_bpartner.name AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description AS "descLine", fin_paymentmethod.name AS "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar AS "nombreAux", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then c_orderline.priceactual / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "priceSinDto", case m_product.em_do_udtarifa when ? then c_orderline.priceactual * ? when ? then c_orderline.priceactual end AS "price", case m_product.em_do_udtarifa when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when ? then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end AS "qty", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((? - coalesce(c_orderline.em_do_descuento, ?)) / ?), ?) = ?.? then ? else ((? - coalesce(c_orderline.em_do_descuento, ?)) / ?) end) end AS "totalLine", case m_product.em_do_udtarifa when ? then ((c_orderline.priceactual * ?) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / ?)) * ((c_tax.rate / ?) + ?) when ? then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / ?) + ?) end AS "totalLineConIva", case m_product.em_do_udtarifa when ? then (c_orderline.priceactual * ?.?) * ? when ? then (c_orderline.priceactual * ?.?) end AS "pricePTS", c_orderline.em_do_descuento AS "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id limit ?)) AS "tipoDoc", coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit ?)) AS "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as stock_prod, round(c_orderline.em_do_margen, ?) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(m_inout.c_bpartner_id, c_order.c_bpartner_id) = c_bpartner.c_bpartner_id inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner join fin_paymentmethod on c_order.fin_paymentmethod_id = fin_paymentmethod.fin_paymentmethod_id left join c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = ? and c_order.invoicerule <> ? and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?), ?)) != ? and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = ? and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?) = ?)) and exists ( select ? from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ?) and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = ? and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = ? and c_order.c_doctypetarget_id in (...) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) and coalesce(m_inout.movementdate, c_order.dateordered) >= to_date(?, ?) order by coalesce(m_inout.ad_org_id, c_order.ad_org_id), coalesce(c_doctype.name, ( select cd.name from m_inout mi inner join c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)) desc, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> ? limit ?)), c_bpartner.value, c_order.documentno, c_orderline.line;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 15 16 1 4s215ms 4s215ms [ User: tad - Total duration: 4s215ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 4s215ms - Times executed: 1 ]
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = 'FF8081812FBA2641012FBA2AB5D20003' and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:19 Duration: 4s215ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select coalesce(m_inout.ad_org_id, c_order.ad_org_id) as ad_org_id, coalesce(M_INOUT.M_INOUT_ID, ( select M_INOUT_ID from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) as "M_INOUT_ID", coalesce(M_INOUT.DOCUMENTNO, ( select documentno from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) AS "AlabranNp", coalesce(M_INOUT.MOVEMENTDATE, c_order.dateordered) AS "MOVEMENTDATE", coalesce(m_inout.c_order_id, c_order.c_order_id) AS "C_ORDER_ID", c_order.documentno as "PedidoNo", c_bpartner.value as "ValueTercero", C_BPARTNER.TAXID AS "TaxTercero", C_BPARTNER.NAME AS "NameTercero", m_product.name "NameProduct", m_product.value "ValueProduct", coalesce(m_inoutline.movementqty, c_orderline.qtyordered) as movementqty, c_orderline.pricestd, c_order.grandtotal, c_orderline.description as "descLine", FIN_PAYMENTMETHOD.NAME as "FORMAPAGO", c_paymentterm.name "ConPago", c_uom.uomsymbol "Unidad", c_tax.rate "IVA", c_orderline.em_do_udtarifa "UdTarifa", c_orderline.em_do_nombreauxiliar as "nombreAux", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 1000) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then c_orderline.priceactual / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "priceSinDto", case m_product.em_do_udtarifa when 'K' then c_orderline.priceactual * 1000 when 'U' then c_orderline.priceactual end as "price", case m_product.em_do_udtarifa when 'K' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) when 'U' then coalesce(m_inoutline.movementqty, c_orderline.qtyordered) end as "qty", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) / ( case when trunc(((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100), 2) = 0.00 then 1 else ((100 - coalesce(c_orderline.em_do_descuento, 0)) / 100) end) end as "totalLine", case m_product.em_do_udtarifa when 'K' then ((c_orderline.priceactual * 1000) * (coalesce(m_inoutline.movementqty, c_orderline.qtyordered) / 1000)) * ((c_tax.rate / 100) + 1) when 'U' then ((c_orderline.priceactual) * coalesce(m_inoutline.movementqty, c_orderline.qtyordered)) * ((c_tax.rate / 100) + 1) end as "totalLineConIva", case m_product.em_do_udtarifa when 'K' then (c_orderline.priceactual * 166.386) * 1000 when 'U' then (c_orderline.priceactual * 166.386) end as "pricePTS", c_orderline.em_do_descuento as "dtoLine", coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id limit 1)) as "tipoDoc", coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id limit 1)) as "NameDoc", ( select sum(m_transaction.movementqty) from m_transaction where m_transaction.m_product_id = m_product.m_product_id) as STOCK_PROD, round(c_orderline.em_do_margen, 3) as margen, c_orderline.em_pr592_line_generated_auto from c_orderline left join m_inoutline on c_orderline.c_orderline_id = m_inoutline.c_orderline_id left join m_inout on m_inoutline.m_inout_id = m_inout.m_inout_id inner join c_order on c_order.c_order_id = c_orderline.c_order_id inner join c_bpartner on coalesce(M_INOUT.C_BPARTNER_ID, c_order.C_BPARTNER_ID) = C_BPARTNER.C_BPARTNER_ID inner join c_paymentterm on c_order.c_paymentterm_id = c_paymentterm.c_paymentterm_id inner join m_product on m_product.m_product_id = c_orderline.m_product_id inner join c_uom on c_orderline.c_uom_id = c_uom.c_uom_id inner join c_tax on c_tax.c_tax_id = c_orderline.c_tax_id inner JOIN FIN_PAYMENTMETHOD ON c_order.FIN_PAYMENTMETHOD_ID = FIN_PAYMENTMETHOD.FIN_PAYMENTMETHOD_ID left JOIN c_doctype on c_doctype.c_doctype_id = m_inout.c_doctype_id where coalesce(m_inout.issotrx, c_order.issotrx) = 'Y' and c_order.invoicerule <> 'N' and coalesce(m_inout.docstatus, coalesce(( select mi.docstatus from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1), 'VO')) != 'VO' and (c_orderline.qtyordered <> c_orderline.qtyinvoiced or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and (m_inoutline.c_orderline_id is not null or (c_orderline.em_pr592_line_generated_auto = 'Y' and ( select mi.iscompletelyinvoiced from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1) = 'N')) and exists ( select 1 from m_inout mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO') and coalesce(m_inout.ad_client_id, c_order.ad_client_id) = $1 and coalesce(m_inout.ad_org_id, c_order.ad_org_id) = 'FF8081812FBA2641012FBA2DCB5E001E' and c_order.c_doctypetarget_id in ('05095C1387354E02903F8C3B3E101F2B', 'FF8081812FBA2641012FBA2E2C8A08D9', '3A82A2CF1CAF4612B41EF168395A3A49', '5E11BF36D452407D8B213D874FC14AD2', '3CC8B0C0372A492BA7B83246933C83D7', 'A6EF9FA7211A4EF49266FDD810530335') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') AND coalesce(m_inout.movementdate, c_order.dateordered) >= to_date('01-01-2026', 'DD-MM-YYYY') order by coalesce(M_INOUT.AD_ORG_ID, c_order.AD_ORG_ID), coalesce(c_doctype.name, ( select cd.name from M_INOUT mi inner JOIN c_doctype cd on cd.c_doctype_id = mi.c_doctype_id where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)) DESC, coalesce(m_inout.c_doctype_id, ( select c_doctype_id from M_INOUT mi where mi.c_order_id = c_order.c_order_id and mi.docstatus <> 'VO' limit 1)), c_bpartner.value, c_order.documentno, c_orderline.line;
Date: 2026-07-15 16:33:18 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
5 3s353ms 5s13ms 3s929ms 122 7m59s select do_m_produ0_.do_m_product_price_warehouse_v_id as do_m_pro1_346_, do_m_produ0_.ad_client_id as ad_clien2_346_, do_m_produ0_.ad_org_id as ad_org_i3_346_, do_m_produ0_.isactive as isactive4_346_, do_m_produ0_.created as created5_346_, do_m_produ0_.createdby as createdb6_346_, do_m_produ0_.updated as updated7_346_, do_m_produ0_.updatedby as updatedb8_346_, do_m_produ0_.m_product_id as m_produc9_346_, do_m_produ0_.m_attributesetinstance_id as m_attri10_346_, do_m_produ0_.qtyonhand as qtyonha11_346_, do_m_produ0_.qtyorderonhand as qtyorde12_346_, do_m_produ0_.preqtyonhand as preqtyo13_346_, do_m_produ0_.em_do_codiproveedor as em_do_c14_346_, do_m_produ0_.pricelist as priceli15_346_, do_m_produ0_.pricestd as pricest16_346_, do_m_produ0_.pricelimit as priceli17_346_, do_m_produ0_.m_warehouse_id as m_wareh18_346_, do_m_produ0_.m_productprice_id as m_produ19_346_, do_m_produ0_.hasstock as hasstoc20_346_, do_m_produ0_.isstocked as isstock21_346_, do_m_produ0_.m_locator_id as m_locat22_346_, do_m_produ0_.a as a23_346_, do_m_produ0_.qty_available as qty_ava24_346_, do_m_produ0_.qty_onhand as qty_onh25_346_, do_m_produ0_.qty_reserved as qty_res26_346_, do_m_produ0_.qty_ordered as qty_ord27_346_, do_m_produ0_.orgwarehouse as orgware28_346_, do_m_produ0_.stocktotal as stockto29_346_, do_m_produ0_.qtyavaliable as qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join m_product product1_ on do_m_produ0_.m_product_id = product1_.m_product_id left outer join m_warehouse warehouse2_ on do_m_produ0_.m_warehouse_id = warehouse2_.m_warehouse_id left outer join m_attributesetinstance attributes3_ on do_m_produ0_.m_attributesetinstance_id = attributes3_.m_attributesetinstance_id cross join m_productprice pricingpro8_ where do_m_produ0_.m_productprice_id = pricingpro8_.m_productprice_id and (upper(warehouse2_.name) like upper(?) escape ? or upper(product1_.value) like upper(?) escape ? or upper((product1_.value || ?| | coalesce(to_char(( select producttrl4_.name from m_product_trl producttrl4_ where producttrl4_.m_product_id = product1_.m_product_id and producttrl4_.ad_language = ?)), to_char(product1_.name), ?) || ?| | coalesce(to_char(product1_.em_do_codiproveedor), ?) || ?| | coalesce(to_char(product1_.upc), ?))) like upper(?) escape ? or do_m_produ0_.qtyavaliable = ? or upper(attributes3_.description) like upper(?) escape ? or upper(do_m_produ0_.em_do_codiproveedor) like upper(?) escape ? or do_m_produ0_.stocktotal = ? or upper(product1_.name) like upper(?) escape ?) and (do_m_produ0_.ad_org_id in (...)) and do_m_produ0_.isactive = ? and do_m_produ0_.ad_client_id = ? and case when ( select order5_.issotrx from c_order order5_ where order5_.c_order_id = ?) = ? then product1_.issold else product1_.ispurchased end = ? and pricingpro8_.m_pricelist_version_id = ? and do_m_produ0_.m_warehouse_id = ? and (do_m_produ0_.ad_client_id in (...)) and do_m_produ0_.isactive = ? order by product1_.name, product1_.m_product_id limit ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 15 08 38 2m30s 3s972ms 09 16 1m5s 4s66ms 11 12 44s445ms 3s703ms 12 13 51s425ms 3s955ms 15 31 2m 3s883ms 16 7 27s838ms 3s976ms 17 5 19s274ms 3s854ms [ User: tad - Total duration: 7m59s - Times executed: 122 ]
[ Application: openbravo - Total duration: 7m59s - Times executed: 122 ]
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84%') escape '|' or upper(product1_.Value) like upper('84%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84%') escape '|' or do_m_produ0_.Qtyavaliable = '84' or upper(attributes3_.Description) like upper('84%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84%') escape '|' or do_m_produ0_.Stocktotal = '84' or upper(product1_.Name) like upper('84%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:50 Duration: 5s13ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('84102%') escape '|' or upper(product1_.Value) like upper('84102%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('84102%') escape '|' or do_m_produ0_.Qtyavaliable = '84102' or upper(attributes3_.Description) like upper('84102%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('84102%') escape '|' or do_m_produ0_.Stocktotal = '84102' or upper(product1_.Name) like upper('84102%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:52 Duration: 4s982ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select do_m_produ0_.DO_M_Product_Price_Warehouse_V_ID as DO_M_Pro1_346_, do_m_produ0_.AD_Client_ID as AD_Clien2_346_, do_m_produ0_.AD_Org_ID as AD_Org_I3_346_, do_m_produ0_.Isactive as Isactive4_346_, do_m_produ0_.Created as Created5_346_, do_m_produ0_.Createdby as Createdb6_346_, do_m_produ0_.Updated as Updated7_346_, do_m_produ0_.Updatedby as Updatedb8_346_, do_m_produ0_.M_Product_ID as M_Produc9_346_, do_m_produ0_.M_Attributesetinstance_ID as M_Attri10_346_, do_m_produ0_.Qtyonhand as Qtyonha11_346_, do_m_produ0_.Qtyorderonhand as Qtyorde12_346_, do_m_produ0_.Preqtyonhand as Preqtyo13_346_, do_m_produ0_.EM_Do_Codiproveedor as EM_Do_C14_346_, do_m_produ0_.Pricelist as Priceli15_346_, do_m_produ0_.Pricestd as Pricest16_346_, do_m_produ0_.Pricelimit as Priceli17_346_, do_m_produ0_.M_Warehouse_ID as M_Wareh18_346_, do_m_produ0_.M_Productprice_ID as M_Produ19_346_, do_m_produ0_.Hasstock as Hasstoc20_346_, do_m_produ0_.Isstocked as Isstock21_346_, do_m_produ0_.M_Locator_ID as M_Locat22_346_, do_m_produ0_.A as A23_346_, do_m_produ0_.QTY_Available as QTY_Ava24_346_, do_m_produ0_.QTY_Onhand as QTY_Onh25_346_, do_m_produ0_.QTY_Reserved as QTY_Res26_346_, do_m_produ0_.QTY_Ordered as QTY_Ord27_346_, do_m_produ0_.Orgwarehouse as Orgware28_346_, do_m_produ0_.Stocktotal as Stockto29_346_, do_m_produ0_.Qtyavaliable as Qtyaval30_346_ from do_m_product_price_warehouse_v do_m_produ0_ left outer join M_Product product1_ on do_m_produ0_.M_Product_ID = product1_.M_Product_ID left outer join M_Warehouse warehouse2_ on do_m_produ0_.M_Warehouse_ID = warehouse2_.M_Warehouse_ID left outer join M_AttributeSetInstance attributes3_ on do_m_produ0_.M_Attributesetinstance_ID = attributes3_.M_AttributeSetInstance_ID cross join M_ProductPrice pricingpro8_ where do_m_produ0_.M_Productprice_ID = pricingpro8_.M_ProductPrice_ID and (upper(warehouse2_.Name) like upper('8410%') escape '|' or upper(product1_.Value) like upper('8410%') escape '|' or upper((product1_.Value || ' - ' || coalesce(to_char(( select producttrl4_.Name from M_Product_Trl producttrl4_ where producttrl4_.M_Product_ID = product1_.M_Product_ID and producttrl4_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || coalesce(to_char(product1_.EM_Do_Codiproveedor), '') || ' - ' || coalesce(to_char(product1_.UPC), ''))) like upper('8410%') escape '|' or do_m_produ0_.Qtyavaliable = '8410' or upper(attributes3_.Description) like upper('8410%') escape '|' or upper(do_m_produ0_.EM_Do_Codiproveedor) like upper('8410%') escape '|' or do_m_produ0_.Stocktotal = '8410' or upper(product1_.Name) like upper('8410%') escape '|') and (do_m_produ0_.AD_Org_ID in ('0', 'FF8081812FBA2641012FBA3528033423', 'A15AA70C8D23453DA93ACD1442681D80', 'FF8081812FBA2641012FBA2DCB5E001E', 'D8A3E616E25141988CBE2DC9CD7415EB')) and do_m_produ0_.Isactive = 'Y' and do_m_produ0_.AD_Client_ID = 'FF8081812FBA2641012FBA2AB5D20003' and case when ( select order5_.IsSOTrx from C_Order order5_ where order5_.C_Order_ID = '15028879C18A4127845C292F0C72D56F') = 'Y' then product1_.IsSold else product1_.IsPurchased end = 'Y' and pricingpro8_.M_PriceList_Version_ID = 'FF8081812FBA40E4012FBA619FB00011' and do_m_produ0_.M_Warehouse_ID = 'FF8081812FBB6FE4012FBB8A4239007A' and (do_m_produ0_.AD_Client_ID in ('FF8081812FBA2641012FBA2AB5D20003', '0')) and do_m_produ0_.Isactive = 'Y' order by product1_.Name, product1_.M_Product_ID limit '76';
Date: 2026-07-15 09:18:51 Duration: 4s779ms 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
- 45,465 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 625 FATAL entries
- 6 ERROR entries
- 0 WARNING entries
- 1 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 605 Max number of times the same event was reported
- 632 Total events found
Rank Times reported Error 1 605 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", no encryption
Times Reported Most Frequent Error / Event #1
Day Hour Count Jul 15 07 44 08 42 09 40 10 39 11 41 12 39 13 40 14 39 15 41 16 45 17 40 18 39 19 39 20 39 21 38 - FATAL: no pg_hba.conf entry for host "186.236.254.56", user "postgres", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "159.65.148.75", user "admin", database "postgres", no encryption
- FATAL: no pg_hba.conf entry for host "159.65.148.75", user "admin", database "postgres", no encryption
Date: 2026-07-15 07:01:40 Database: postgres Application: [unknown] User: postgres Remote: 186.236.254.56
Date: 2026-07-15 07:01:46 Database: postgres Application: [unknown] User: admin Remote: 159.65.148.75
Date: 2026-07-15 07:04:47 Database: postgres Application: [unknown] User: admin Remote: 159.65.148.75
2 4 FATAL: no pg_hba.conf entry for host "...", user "...", database "...", SSL encryption
Times Reported Most Frequent Error / Event #2
Day Hour Count Jul 15 11 1 12 2 15 1 - FATAL: no pg_hba.conf entry for host "64.89.163.137", user "postgres", database "postgres", SSL encryption
- FATAL: no pg_hba.conf entry for host "71.6.146.185", user "postgres", database "template0", SSL encryption
- FATAL: no pg_hba.conf entry for host "71.6.146.185", user "postgres", database "-h", SSL encryption
Date: 2026-07-15 11:12:33 Database: postgres Application: [unknown] User: postgres Remote: 64.89.163.137
Date: 2026-07-15 12:11:10 Database: template0 Application: [unknown] User: postgres Remote: 71.6.146.185
Date: 2026-07-15 12:11:12 Database: -h Application: [unknown] User: postgres Remote: 71.6.146.185
3 4 FATAL: no PostgreSQL user name specified in startup packet
Times Reported Most Frequent Error / Event #3
Day Hour Count Jul 15 11 1 13 1 15 1 19 1 - FATAL: no PostgreSQL user name specified in startup packet
- FATAL: no PostgreSQL user name specified in startup packet
- FATAL: no PostgreSQL user name specified in startup packet
Date: 2026-07-15 11:51:38 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.76
Date: 2026-07-15 13:51:48 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.186.182
Date: 2026-07-15 15:14:20 Database: [unknown] Application: [unknown] User: [unknown] Remote: 203.55.131.5
4 4 FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #4
Day Hour Count Jul 15 11 1 13 1 15 1 19 1 - FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 0.0: server supports 3.0 to 3.0
Date: 2026-07-15 11:51:36 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.76
Date: 2026-07-15 13:51:46 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.186.182
Date: 2026-07-15 15:14:20 Database: [unknown] Application: [unknown] User: [unknown] Remote: 203.55.131.5
5 4 FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #5
Day Hour Count Jul 15 11 1 13 1 15 1 19 1 - FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 255.255: server supports 3.0 to 3.0
Date: 2026-07-15 11:51:37 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.195.76
Date: 2026-07-15 13:51:47 Database: [unknown] Application: [unknown] User: [unknown] Remote: 66.132.186.182
Date: 2026-07-15 15:14:20 Database: [unknown] Application: [unknown] User: [unknown] Remote: 203.55.131.5
6 3 ERROR: @Do_PostalCode_Bpartner@
Times Reported Most Frequent Error / Event #6
Day Hour Count Jul 15 12 2 17 1 - ERROR: @Do_PostalCode_Bpartner@
- ERROR: @Do_PostalCode_Bpartner@
- ERROR: @Do_PostalCode_Bpartner@
Context: PL/pgSQL function do_postalcode() line 13 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, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, 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, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Obwpl_Readypl, Confirmcancelandreplace, Iscancelled, EM_Do_Portes, EM_Do_Albaranvalorado, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Do_Entregado, EM_Prouti_Generate_Pick_Inv, EM_Do_Esinterno, EM_Do_Aceptaprecios, EM_Do_Preparado, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Do_Createinout, EM_Prouti_Reactiveorder, EM_Do_Inoutdone, em_prouti_Invoiced, EM_Do_Tercerocontado, em_prouti_Received, EM_Do_Crearpedidooferta, EM_Pbsp_Sigcaptured, em_prouti_initial_received, EM_Do_Cierrepedido, em_do_validate_usr_processing, EM_Do_Issended, EM_Do_Resend, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Pr592_Exclude_Tax, 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)Date: 2026-07-15 12:54:24 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function do_postalcode() line 13 at RAISE SQL statement "update c_order set invoicerule='I' where c_order_id=new.c_order_id" PL/pgSQL function do_invoicerule() line 23 at SQL statement
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, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, 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, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Obwpl_Readypl, Confirmcancelandreplace, Iscancelled, EM_Do_Portes, EM_Do_Albaranvalorado, EM_Do_Location_ID, EM_Prouti_Order_Stock, EM_Do_Namepartner, EM_Prouti_Pregenerate_Minout, EM_Do_Dni, EM_Prouti_Sotopo, EM_Do_Entregado, EM_Prouti_Generate_Pick_Inv, EM_Do_Esinterno, EM_Do_Aceptaprecios, EM_Do_Preparado, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Do_Createinout, EM_Prouti_Reactiveorder, EM_Do_Inoutdone, EM_Do_Terceroscontado_ID, em_prouti_Invoiced, EM_Do_Tercerocontado, em_prouti_Received, EM_Do_Crearpedidooferta, EM_Pbsp_Sigcaptured, em_prouti_initial_received, EM_Do_Mediosenvio_ID, EM_Do_Cierrepedido, EM_Do_Delivery_Location_ID, em_do_validate_usr_processing, EM_Do_Issended, EM_Do_Resend, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Pr592_Exclude_Tax, 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-15 12:55:02 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function do_postalcode() line 13 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, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, 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, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Obwpl_Readypl, Confirmcancelandreplace, Iscancelled, EM_Do_Portes, EM_Do_Albaranvalorado, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Do_Entregado, EM_Prouti_Generate_Pick_Inv, EM_Do_Esinterno, EM_Do_Aceptaprecios, EM_Do_Preparado, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Do_Createinout, EM_Prouti_Reactiveorder, EM_Do_Inoutdone, em_prouti_Invoiced, EM_Do_Tercerocontado, em_prouti_Received, EM_Do_Crearpedidooferta, EM_Pbsp_Sigcaptured, em_prouti_initial_received, EM_Do_Mediosenvio_ID, EM_Do_Cierrepedido, em_do_validate_usr_processing, EM_Do_Issended, EM_Do_Resend, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Pr592_Exclude_Tax, 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)Date: 2026-07-15 17:07:32 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
7 2 ERROR: @Do_ControlEnvio@
Times Reported Most Frequent Error / Event #7
Day Hour Count Jul 15 09 2 - ERROR: @Do_ControlEnvio@
- ERROR: @Do_ControlEnvio@
Context: PL/pgSQL function do_controlenvio() line 11 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, DateOrdered, DatePromised, DateAcct, C_BPartner_ID, BillTo_ID, C_BPartner_Location_ID, 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, CopyFrom, IsSelfService, Generatetemplate, Delivery_Location_ID, CopyFromPO, FIN_Paymentmethod_ID, RM_PickFromShipment, RM_ReceiveMaterials, RM_CreateInvoice, RM_AddOrphanLine, Calculate_Promotions, Convertquotation, Create_POLines, Iscashvat, RM_Pickfromreceipt, Cancelandreplace, EM_APRM_AddPayment, EM_Obwpl_Generatepicking, EM_Obwpl_Isinpickinglist, EM_Obwpl_Readypl, Confirmcancelandreplace, Iscancelled, EM_Do_Portes, EM_Do_Albaranvalorado, EM_Prouti_Order_Stock, EM_Prouti_Pregenerate_Minout, EM_Prouti_Sotopo, EM_Do_Entregado, EM_Prouti_Generate_Pick_Inv, EM_Do_Esinterno, EM_Do_Aceptaprecios, EM_Do_Preparado, EM_Prouti_Changebpartner, EM_Prouti_Recalculate_Price, EM_Do_Createinout, EM_Prouti_Reactiveorder, EM_Do_Inoutdone, em_prouti_Invoiced, EM_Do_Tercerocontado, em_prouti_Received, EM_Do_Crearpedidooferta, EM_Pbsp_Sigcaptured, em_prouti_initial_received, EM_Do_Cierrepedido, em_do_validate_usr_processing, EM_Do_Issended, EM_Do_Resend, EM_Prouti_Status_Of_Review, EM_Prouti_Validate_Order, EM_Prouti_Start_Review, EM_Pr592_Exclude_Tax, 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)Date: 2026-07-15 09:26:36 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
Context: PL/pgSQL function do_controlenvio() line 11 at RAISE
Statement: update C_Order set Updated=$1, DocumentNo=$2, C_DocTypeTarget_ID=$3, DateOrdered=$4 where C_Order_ID=$5Date: 2026-07-15 09:26:53 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1
8 2 FATAL: unsupported frontend protocol 2.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #8
Day Hour Count Jul 15 11 2 - FATAL: unsupported frontend protocol 2.0: server supports 3.0 to 3.0
- FATAL: unsupported frontend protocol 2.0: server supports 3.0 to 3.0
Date: 2026-07-15 11:29:05 Database: [unknown] Application: [unknown] User: [unknown] Remote: 118.193.33.249
Date: 2026-07-15 11:29:05 Database: [unknown] Application: [unknown] User: [unknown] Remote: 118.193.33.249
9 1 FATAL: unsupported frontend protocol 16.0: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #9
Day Hour Count Jul 15 14 1 - FATAL: unsupported frontend protocol 16.0: server supports 3.0 to 3.0
Date: 2026-07-15 14:43:19 Database: [unknown] Application: [unknown] User: [unknown] Remote: 20.64.104.237
10 1 FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Times Reported Most Frequent Error / Event #10
Day Hour Count Jul 15 12 1 - FATAL: unsupported frontend protocol 65363.19778: server supports 3.0 to 3.0
Date: 2026-07-15 12:11:11 Database: [unknown] Application: [unknown] User: [unknown] Remote: 71.6.146.185
11 1 LOG: could not receive data from client: Connection reset by peer
Times Reported Most Frequent Error / Event #11
Day Hour Count Jul 15 12 1 - LOG: could not receive data from client: Connection reset by peer
Date: 2026-07-15 12:11:16 Database: [unknown] Application: [unknown] User: [unknown] Remote: 71.6.146.185
12 1 ERROR: Pedido Compra Almacen L-L2600510,@ActivePoSo@
Times Reported Most Frequent Error / Event #12
Day Hour Count Jul 15 09 1 - ERROR: Pedido Compra Almacen L-L2600510,@ActivePoSo@
Context: PL/pgSQL function m_product_trg() line 121 at RAISE
Statement: update M_Product set Updated=$1, M_AttributeSet_ID=$2 where M_Product_ID=$3Date: 2026-07-15 09:25:22 Database: etendo Application: openbravo User: tad Remote: 127.0.0.1