-
Global information
- Generated on Fri Jul 17 23:00:46 2026
- Log file: /var/log/postgresql/postgresql-16-main.log
- Parsed 88,909 log entries in 44s
- Log start from 2026-07-17 07:00:01 to 2026-07-17 22:00:00
-
Overview
Global Stats
- 13 Number of unique normalized queries
- 124 Number of queries
- 11m44s Total query duration
- 2026-07-17 07:00:11 First query
- 2026-07-17 21:00:21 Last query
- 3 queries/s at 2026-07-17 10:16:17 Query peak
- 11m44s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 11m44s Execute total duration
- 0 Number of events
- 0 Number of unique normalized events
- 0 Max number of times the same event was reported
- 0 Number of cancellation
- 56,524 Total number of automatic vacuums
- 200 Total number of automatic analyzes
- 30 Number temporary file
- 154.66 MiB Max size of temporary file
- 132.58 MiB Average size of temporary file
- 3,297 Total number of sessions
- 7 sessions at 2026-07-17 08:00:11 Session peak
- 3d10h27m42s Total duration of sessions
- 1m30s Average duration of sessions
- 0 Average queries per session
- 213ms Average queries duration per session
- 1m29s Average idle time per session
- 3,301 Total number of connections
- 5 connections/s at 2026-07-17 22:00:00 Connection peak
- 1 Total number of databases
SQL Traffic
Key values
- 3 queries/s Query Peak
- 2026-07-17 10:16:17 Date
SELECT Traffic
Key values
- 3 queries/s Query Peak
- 2026-07-17 10:16:17 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 0 queries/s Query Peak
- Date
Queries duration
Key values
- 11m44s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 12 0ms 17s782ms 3s513ms 1s43ms 2s996ms 29s379ms 08 14 0ms 49s148ms 5s791ms 1s8ms 1s876ms 1m10s 09 9 0ms 19s704ms 5s365ms 0ms 0ms 45s713ms 10 17 0ms 19s866ms 3s341ms 1s344ms 4s407ms 40s829ms 11 8 0ms 49s344ms 8s671ms 0ms 1s873ms 1m2s 12 9 0ms 15s459ms 4s130ms 1s8ms 1s61ms 30s54ms 13 4 0ms 19s24ms 9s427ms 0ms 0ms 36s310ms 14 10 0ms 17s865ms 4s491ms 0ms 1s510ms 38s228ms 15 6 0ms 17s941ms 6s244ms 0ms 1s57ms 34s220ms 16 5 0ms 17s39ms 6s975ms 0ms 1s13ms 32s656ms 17 13 0ms 21s48ms 4s974ms 0ms 2s125ms 41s47ms 18 5 0ms 17s921ms 7s262ms 0ms 1s36ms 33s861ms 19 5 0ms 19s859ms 7s999ms 0ms 0ms 39s997ms 20 4 0ms 18s149ms 8s905ms 0ms 0ms 35s620ms 21 3 0ms 19s994ms 12s688ms 0ms 0ms 38s65ms 22 0 0ms 0ms 0ms 0ms 0ms 0ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jul 17 07 12 0 3s513ms 0ms 1s43ms 4s21ms 08 14 0 5s791ms 0ms 1s8ms 4s504ms 09 9 0 5s365ms 0ms 0ms 2s573ms 10 17 0 3s341ms 0ms 1s344ms 5s853ms 11 8 0 8s671ms 0ms 0ms 2s170ms 12 9 0 4s130ms 0ms 1s8ms 3s18ms 13 4 0 9s427ms 0ms 0ms 1s398ms 14 10 0 4s491ms 0ms 0ms 3s130ms 15 6 0 6s244ms 0ms 0ms 1s179ms 16 5 0 6s975ms 0ms 0ms 1s208ms 17 13 0 4s974ms 0ms 0ms 19s578ms 18 5 0 7s262ms 0ms 0ms 1s411ms 19 5 0 7s999ms 0ms 0ms 0ms 20 4 0 8s905ms 0ms 0ms 0ms 21 3 0 12s688ms 0ms 0ms 0ms 22 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 17 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jul 17 07 0 11 11.00 0.00% 08 0 13 13.00 0.00% 09 0 8 8.00 0.00% 10 0 16 16.00 0.00% 11 0 7 7.00 0.00% 12 0 8 8.00 0.00% 13 0 3 3.00 0.00% 14 0 9 9.00 0.00% 15 0 5 5.00 0.00% 16 0 4 4.00 0.00% 17 0 12 12.00 0.00% 18 0 4 4.00 0.00% 19 0 4 4.00 0.00% 20 0 3 3.00 0.00% 21 0 2 2.00 0.00% 22 0 0 0.00 0.00% Day Hour Count Average / Second Jul 17 07 223 0.06/s 08 220 0.06/s 09 222 0.06/s 10 219 0.06/s 11 218 0.06/s 12 224 0.06/s 13 217 0.06/s 14 222 0.06/s 15 219 0.06/s 16 217 0.06/s 17 221 0.06/s 18 221 0.06/s 19 217 0.06/s 20 217 0.06/s 21 219 0.06/s 22 5 0.00/s Day Hour Count Average Duration Average idle time Jul 17 07 218 124ms 0ms 08 224 3m8s 3m7s 09 223 3m9s 3m9s 10 219 2s759ms 2s500ms 11 219 3m42s 3m41s 12 223 4m8s 4m8s 13 217 142ms 0ms 14 222 30s252ms 30s49ms 15 219 1m39s 1m39s 16 217 131ms 0ms 17 222 2m42s 2m41s 18 220 38s764ms 38s599ms 19 217 142ms 0ms 20 217 125ms 0ms 21 220 2m36s 2m36s 22 0 0ms 0ms -
Connections
Established Connections
Key values
- 5 connections Connection Peak
- 2026-07-17 22:00:00 Date
Connections per database
Key values
- etendo Main Database
- 3,301 connections Total
Connections per user
Key values
- tad Main User
- 3,301 connections Total
-
Sessions
Simultaneous sessions
Key values
- 7 sessions Session Peak
- 2026-07-17 08:00:11 Date
Histogram of session times
Key values
- 3,225 0-500ms duration
Sessions per database
Key values
- etendo Main Database
- 3,297 sessions Total
Sessions per user
Key values
- tad Main User
- 3,297 sessions Total
Sessions per host
Key values
- 127.0.0.1 Main Host
- 3,297 sessions Total
Sessions per application
Key values
- psql Main Application
- 3,297 sessions Total
Application Count Total Duration Average Duration DBeaver 26.0.1 - Main 1 7m28s 7m28s DBeaver 26.0.1 - Main 1 7m30s 7m30s DBeaver 26.0.1 - Metadata 1 7m27s 7m27s DBeaver 26.0.1 - Metadata 1 7m30s 7m30s DBeaver 26.0.1 - Read PostgreSQL database list 1 632ms 632ms DBeaver 26.0.1 - SQLEditor 1 7m28s 7m28s openbravo 36 3d9h41m54s 2h16m9s pg_profile 45 1m39s 2s212ms psql 3,210 6m41s 125ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 6,255 buffers Checkpoint Peak
- 2026-07-17 14:07:28 Date
- 269.627 seconds Highest write time
- 0.003 seconds Sync time
Checkpoints Wal files
Key values
- 2 files Wal files usage Peak
- 2026-07-17 14:07:28 Date
Checkpoints distance
Key values
- 64.03 Mo Distance Peak
- 2026-07-17 14:07:28 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jul 17 07 4,551 452.038s 0.012s 452.061s 08 10,467 1,051.01s 0.015s 1,051.037s 09 8,736 875.68s 0.016s 875.708s 10 8,277 824.781s 0.013s 824.806s 11 6,219 618.369s 0.014s 618.394s 12 5,386 535.887s 0.016s 535.911s 13 3,851 383.199s 0.012s 383.219s 14 9,946 635.899s 0.013s 635.924s 15 5,198 516.472s 0.012s 516.496s 16 4,771 474.27s 0.013s 474.294s 17 5,275 525.223s 0.014s 525.249s 18 5,652 568.342s 0.013s 568.363s 19 2,169 215.458s 0.012s 215.479s 20 2,073 205.53s 0.012s 205.551s 21 1,849 183.205s 0.012s 183.227s 22 0 0s 0s 0s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jul 17 07 0 0 1 1,141 0.001s 0.012s 08 0 0 3 2,181 0.001s 0.012s 09 0 0 3 2,288 0.001s 0.012s 10 0 0 2 1,810 0.001s 0.012s 11 0 0 2 1,693 0.001s 0.012s 12 0 0 1 1,238 0.001s 0.012s 13 0 0 1 938 0.001s 0.012s 14 0 0 3 1,559 0.001s 0.012s 15 0 0 2 1,349 0.001s 0.012s 16 0 0 1 1,193 0.001s 0.012s 17 0 0 2 1,382 0.001s 0.012s 18 0 0 1 1,470 0.001s 0.012s 19 0 0 1 342 0.001s 0.012s 20 0 0 1 328 0.001s 0.012s 21 0 0 0 342 0.001s 0.012s 22 0 0 0 0 0s 0s Day Hour Count Avg time (sec) Jul 17 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s Day Hour Mean distance Mean estimate Jul 17 07 1,811.50 kB 6,162.92 kB 08 4,001.83 kB 10,257.75 kB 09 3,369.58 kB 9,682.00 kB 10 3,370.58 kB 10,951.00 kB 11 2,354.83 kB 8,102.00 kB 12 2,113.58 kB 8,235.17 kB 13 1,542.67 kB 6,626.17 kB 14 3,924.92 kB 20,126.50 kB 15 2,064.92 kB 8,064.75 kB 16 1,826.58 kB 6,845.00 kB 17 2,074.50 kB 8,017.25 kB 18 2,408.50 kB 9,834.25 kB 19 978.92 kB 6,740.83 kB 20 908.50 kB 6,232.08 kB 21 824.83 kB 5,663.92 kB 22 0.00 kB 0.00 kB -
Temporary Files
Size of temporary files
Key values
- 265.19 MiB Temp Files size Peak
- 2026-07-17 19:00:17 Date
Number of temporary files
Key values
- 2 per second Temp Files Peak
- 2026-07-17 15:00:16 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jul 17 07 2 265.10 MiB 132.55 MiB 08 2 265.11 MiB 132.55 MiB 09 2 265.13 MiB 132.57 MiB 10 2 265.15 MiB 132.57 MiB 11 2 265.16 MiB 132.58 MiB 12 2 265.16 MiB 132.58 MiB 13 2 265.16 MiB 132.58 MiB 14 2 265.16 MiB 132.58 MiB 15 2 265.17 MiB 132.59 MiB 16 2 265.18 MiB 132.59 MiB 17 2 265.18 MiB 132.59 MiB 18 2 265.18 MiB 132.59 MiB 19 2 265.19 MiB 132.59 MiB 20 2 265.19 MiB 132.59 MiB 21 2 265.19 MiB 132.59 MiB 22 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 30 3.88 GiB 110.50 MiB 154.66 MiB 132.58 MiB select * from ( select c_invoice_id as referencekey_id, ;-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;
Date: 2026-07-17 07:00:11 Duration: 0ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo
Queries generating the largest temporary files
Rank Size Query 1 154.66 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 19:00:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
2 154.66 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 20:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
3 154.66 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 21:00:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
4 154.66 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 16:00:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
5 154.66 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 17:00:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
6 154.66 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 18:00:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
7 154.65 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 14:00:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
8 154.65 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 15:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
9 154.64 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 11:00:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
10 154.64 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 12:00:13 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
11 154.64 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 13:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
12 154.63 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 10:00:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
13 154.62 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 09:00:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
14 154.60 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 07:00:11 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
15 154.60 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 08:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
16 110.52 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 15:00:16 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
17 110.52 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 16:00:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
18 110.52 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 17:00:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
19 110.52 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 18:00:15 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
20 110.52 MiB SELECT * FROM ( select C_INVOICE_id as referencekey_id, ;[ Date: 2026-07-17 19:00:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 6.20 sec Highest CPU-cost vacuum
Table profile.last_stat_tables_srv1
Database etendo - 2026-07-17 08:01:53 Date
- 0 sec Highest CPU-cost analyze
Table
Database etendo - Date
Average Autovacuum Duration
Key values
- 6.20 sec Highest CPU-cost vacuum
Table profile.last_stat_tables_srv1
Database etendo - 2026-07-17 08:01:53 Date
Analyzes per table
Key values
- public.ad_ep_instance_para (43) Main table analyzed (database etendo)
- 200 analyzes Total
Table Number of analyzes etendo.public.ad_ep_instance_para 43 etendo.public.ad_session 17 etendo.profile.last_stat_user_functions_srv1 15 etendo.profile.last_stat_indexes_srv1 15 etendo.profile.last_stat_tables_srv1 15 etendo.profile.last_stat_statements_srv1 15 etendo.profile.tables_list 14 etendo.profile.last_stat_io 7 etendo.profile.stmt_list 6 etendo.profile.indexes_list 6 etendo.profile.funcs_list 5 etendo.profile.last_stat_activity_count_srv1 4 etendo.public.ad_sequence 4 etendo.profile.last_extension_versions 4 etendo.profile.last_stat_slru 3 etendo.public.ad_preference 3 etendo.public.ad_process_request 2 etendo.public.fin_financial_account 2 etendo.profile.sample_stat_user_functions 2 etendo.profile.sample_stat_tables_total 2 etendo.profile.sample_stat_database 1 etendo.public.ad_audit_trail 1 etendo.profile.sample_stat_indexes_total 1 etendo.profile.last_stat_archiver 1 etendo.public.ad_process_run 1 etendo.public.m_stock_proposed 1 etendo.public.ad_module 1 etendo.profile.sample_stat_indexes 1 etendo.profile.last_stat_wal 1 etendo.profile.sample_stat_tables 1 etendo.public.ad_pinstance 1 etendo.pg_catalog.pg_type 1 etendo.profile.sample_stat_io 1 etendo.profile.sample_stat_slru 1 etendo.profile.last_stat_cluster 1 etendo.profile.sample_statements 1 Total 200 Vacuums per table
Key values
- pg_catalog.pg_statistic (899) Main table vacuumed on database etendo
- 56,524 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples etendo.pg_catalog.pg_statistic 899 0 35,417,133 0 132 0 0 185 58 201,195 0 0 etendo.public.ad_audit_trail 899 0 7,908,720 0 143 0 0 424 66 263,605 0 0 etendo.pg_toast.pg_toast_45833 899 0 302,791 0 43 0 0 161 31 108,505 0 0 etendo.public.c_bpartner 899 0 1,677,543 0 3,651 0 0 6,432 3,212 14,972,456 63 118 etendo.public.m_stock_proposed 899 1 203,018 0 199 0 0 197 127 404,305 0 0 etendo.public.ad_ep_instance_para 899 1 1,940,724 0 373 0 0 370 276 1,130,728 0 0 etendo.profile.sample_stat_indexes 899 0 830,268 0 0 0 0 153 0 36,873 0 0 etendo.profile.last_stat_wal 899 0 44,956 0 45 0 0 152 0 28,576 0 0 etendo.public.ad_session 899 0 3,005,565 0 476 0 0 235 53 177,174 0 0 etendo.public.fin_financial_account 899 0 125,187 0 188 0 0 154 96 279,894 0 0 etendo.profile.sample_statements_total 899 0 86,328 0 45 0 0 152 0 36,632 0 0 template1.pg_catalog.pg_shdepend 899 0 104,195 0 110 0 0 169 100 209,570 0 0 etendo.profile.last_stat_slru 899 0 121,081 0 42 0 0 152 0 28,576 0 0 etendo.public.ad_session_usage_audit 899 0 9,321,608 0 397 0 0 467 101 334,646 0 0 etendo.profile.tables_list 899 0 4,833,356 0 0 0 0 153 0 36,873 0 0 etendo.public.ad_sequence 899 0 373,937 0 320 0 0 159 71 207,963 0 0 etendo.profile.sample_stat_user_func_total 899 0 45,308 0 45 0 0 152 1 38,888 0 0 etendo.public.ad_preference 899 0 2,858,799 0 297 0 0 193 10 61,488 0 0 etendo.profile.sample_stat_archiver 899 0 35,563 0 45 0 0 153 0 36,873 0 0 etendo.profile.sample_stat_io 899 0 130,007 0 38 0 0 153 0 36,873 0 0 etendo.profile.stmt_list 899 0 4,164,955 0 95 0 0 152 95 225,275 0 0 etendo.profile.last_extension_versions 899 0 151,772 0 127 0 0 152 85 234,765 0 0 etendo.profile.sample_stat_tables_total 899 0 208,408 0 36 0 0 152 0 36,632 0 0 etendo.profile.sample_statements 899 0 2,492,524 0 0 0 0 152 0 36,632 0 0 etendo.profile.indexes_list 899 0 1,416,317 0 12 0 0 153 0 36,873 0 0 etendo.profile.funcs_list 899 0 695,357 0 20 0 0 152 0 36,632 0 0 postgres.pg_catalog.pg_shdepend 899 0 104,189 0 116 0 0 172 98 206,510 0 0 etendo.public.ad_pinstance_para 899 0 81,263 0 6 0 0 155 0 29,140 0 0 etendo.profile.sample_stat_database 899 0 151,576 0 42 0 0 152 0 36,632 0 0 etendo.public.ad_process_request 899 0 3,635,860 0 513 0 0 174 0 32,712 0 0 etendo.profile.samples 899 0 55,173 0 45 0 0 152 0 36,632 0 0 etendo.profile.sample_stat_indexes_total 899 0 81,332 0 45 0 0 153 0 36,873 0 0 etendo.public.ad_process_run 899 0 5,029,343 0 591 0 0 288 139 404,628 0 0 etendo.pg_toast.pg_toast_2619 899 0 3,784,073 0 141 0 0 171 103 266,749 0 0 etendo.profile.last_stat_archiver 899 0 38,089 0 141 0 0 152 96 248,894 0 0 etendo.pg_catalog.pg_class 899 0 201,509 0 66 0 0 50 0 12,050 0 0 etendo.profile.last_stat_activity_count_srv1 899 0 270,484 0 134 0 0 153 92 258,509 0 0 etendo.public.m_storage_pending 899 0 1,716,923 0 167 0 0 159 97 264,909 0 0 etendo.profile.sample_stat_wal 899 0 37,257 0 45 0 0 153 0 36,873 0 0 etendo.public.m_storage_detail 899 0 1,652,388 0 85 0 0 312 3 44,885 156 248 etendo.public.ad_module 899 0 1,027,051 0 109 0 0 154 96 274,235 0 0 etendo.profile.sample_stat_tables 899 0 5,449,253 0 0 0 0 153 2 41,401 0 0 etendo.pg_catalog.pg_shdepend 899 0 96,092 0 104 0 0 169 98 229,906 0 0 etendo.profile.servers 899 0 61,019 0 141 0 0 167 96 245,005 15 15 etendo.public.ad_pinstance 899 1 364,064 0 191 0 0 184 19 101,407 0 0 etendo.profile.last_stat_io 899 0 466,479 0 31 0 0 152 0 28,576 0 0 etendo.pg_toast.pg_toast_125223 899 0 91,024 0 101 0 0 153 90 249,182 0 0 etendo.public.c_invoice 899 0 46,408,505 0 183 0 0 230 71 250,761 64 382 etendo.profile.sample_stat_tablespaces 899 0 55,774 0 45 0 0 153 0 36,873 0 0 etendo.pg_catalog.pg_attribute 899 0 1,102,924 0 72 0 0 79 15 58,895 0 0 etendo.profile.sample_stat_user_functions 899 0 370,822 0 21 0 0 152 0 36,632 0 0 etendo.profile.sample_stat_cluster 899 0 41,906 0 45 0 0 153 0 36,873 0 0 etendo.pg_catalog.pg_type 899 0 172,018 0 77 0 0 170 3 49,173 0 0 etendo.pg_toast.pg_toast_46165 899 0 4,463,500 0 28 0 0 152 34 111,679 0 0 etendo.profile.sample_stat_slru 899 0 68,364 0 42 0 0 153 0 36,873 0 0 etendo.profile.last_stat_cluster 899 0 51,944 0 141 0 0 152 96 246,809 0 0 etendo.profile.last_stat_user_functions_srv1 894 0 19,984,987 0 8 0 0 148 11 85,542 0 0 etendo.profile.last_stat_statements_srv1 894 0 39,402,341 0 87 0 0 157 83 194,341 0 0 etendo.profile.last_stat_tables_srv1 894 0 186,529,386 0 77 0 0 157 63 163,280 0 0 etendo.profile.last_stat_tablespaces_srv1 894 0 69,209 0 45 0 0 147 0 69,531 0 0 etendo.profile.last_stat_indexes_srv1 894 0 286,708,187 0 7 0 0 160 15 96,879 0 0 etendo.profile.last_stat_database_srv1 894 0 231,917 0 44 0 0 147 2 72,423 0 0 etendo.public.c_order 816 0 17,974,984 0 1,030 0 0 897 416 857,153 575 4,221 Total 56,524 3 706,526,629 121,786,799 11,645 0 0 18,014 6,220 24,727,927 873 4,984 Vacuum throughput per table
Key values
- profile.last_stat_indexes_srv1 (3483.15) 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.pg_catalog.pg_statistic 0 0 453.719999999997 etendo.public.ad_audit_trail 0 0 278.310000000001 etendo.pg_toast.pg_toast_45833 0 0 0.22 etendo.public.c_bpartner 0 0 21.4799999999997 etendo.public.m_stock_proposed 0 0 0.01 etendo.public.ad_ep_instance_para 0 0 20.6399999999997 etendo.profile.sample_stat_indexes 0 0 23.96 etendo.profile.last_stat_wal 0 0 0 etendo.public.ad_session 0 0 38.5099999999997 etendo.public.fin_financial_account 0 0 0 etendo.profile.sample_statements_total 0 0 0 template1.pg_catalog.pg_shdepend 0 0 0.04 etendo.profile.last_stat_slru 0 0 0 etendo.public.ad_session_usage_audit 0 0 329.700000000003 etendo.profile.tables_list 0 0 54.0600000000005 etendo.public.ad_sequence 0 0 0.01 etendo.profile.sample_stat_user_func_total 0 0 0 etendo.public.ad_preference 0 0 35.6299999999995 etendo.profile.sample_stat_archiver 0 0 0 etendo.profile.sample_stat_io 0 0 0 etendo.profile.stmt_list 0 0 45.0699999999996 etendo.profile.last_extension_versions 0 0 0 etendo.profile.sample_stat_tables_total 0 0 0 etendo.profile.sample_statements 0 0 81.2100000000018 etendo.profile.indexes_list 0 0 9.00999999999985 etendo.profile.funcs_list 0 0 0 postgres.pg_catalog.pg_shdepend 0 0 0 etendo.public.ad_pinstance_para 0 0 0 etendo.profile.sample_stat_database 0 0 0 etendo.public.ad_process_request 0 0 38.9099999999995 etendo.profile.samples 0 0 0 etendo.profile.sample_stat_indexes_total 0 0 0 etendo.public.ad_process_run 0 0 58.5200000000005 etendo.pg_toast.pg_toast_2619 0 0 118.869999999999 etendo.profile.last_stat_archiver 0 0 0 etendo.pg_catalog.pg_class 0 0 0 etendo.profile.last_stat_activity_count_srv1 0 0 0 etendo.public.m_storage_pending 0 0 27.13 etendo.profile.sample_stat_wal 0 0 0 etendo.public.m_storage_detail 0 0 17.9899999999997 etendo.public.ad_module 0 0 10.2499999999998 etendo.profile.sample_stat_tables 0 0 187.190000000001 etendo.pg_catalog.pg_shdepend 0 0 0 etendo.profile.servers 0 0 0 etendo.public.ad_pinstance 0 0 8.99999999999985 etendo.profile.last_stat_io 0 0 0 etendo.pg_toast.pg_toast_125223 0 0 0 etendo.public.c_invoice 0 0 550.960000000004 etendo.profile.sample_stat_tablespaces 0 0 0 etendo.pg_catalog.pg_attribute 0 0 25.5300000000002 etendo.profile.sample_stat_user_functions 0 0 9.01999999999985 etendo.profile.sample_stat_cluster 0 0 0 etendo.pg_catalog.pg_type 0 0 0 etendo.pg_toast.pg_toast_46165 0 0 105.67 etendo.profile.sample_stat_slru 0 0 0 etendo.profile.last_stat_cluster 0 0 0 etendo.profile.last_stat_user_functions_srv1 0 0 240.480000000002 etendo.profile.last_stat_statements_srv1 0 0 1,350.21999999998 etendo.profile.last_stat_tables_srv1 0 0 3,332 etendo.profile.last_stat_tablespaces_srv1 0 0 0 etendo.profile.last_stat_indexes_srv1 0 0 3,483.15 etendo.profile.last_stat_database_srv1 0 0 0 etendo.public.c_order 0 0 243.779999999999 Total 0 0 11,200.25 Tuples removed per table
Key values
- public.c_order (97) Main table with removed tuples on database etendo
- 292 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain etendo.public.c_order 816 0 97 167,443,945 31,585,997 0 16,024,608 etendo.public.ad_ep_instance_para 899 1 77 53,233,791 53,233,791 0 1,036,618 etendo.public.m_storage_pending 899 0 60 32,778,792 20,569,538 0 1,033,600 etendo.public.m_storage_detail 899 0 30 24,021,031 8,390,118 0 769,645 etendo.public.m_stock_proposed 899 1 16 4,768,040 2,823,759 0 151,636 etendo.public.ad_pinstance 899 1 9 10,901,758 8,808,521 0 322,947 etendo.public.ad_sequence 899 0 3 7,251,343 7,106,604 0 176,730 etendo.profile.last_stat_user_functions_srv1 894 0 0 311,153,448 310,762,770 0 10,042,696 etendo.pg_catalog.pg_statistic 899 0 0 274,202,991 269,079,590 0 17,922,277 etendo.public.ad_audit_trail 899 0 0 358,243,317 107,354,085 0 16,398,753 etendo.profile.last_stat_statements_srv1 894 0 0 718,011,218 716,582,629 0 38,336,507 etendo.profile.last_stat_tables_srv1 894 0 0 2,282,061,996 2,280,600,125 0 116,134,416 etendo.pg_toast.pg_toast_45833 899 0 0 1,294,918 1,067,067 0 267,367 etendo.public.c_bpartner 899 0 0 12,600,833 3,279,817 0 711,590 etendo.profile.sample_stat_indexes 899 0 0 47,583,720 36,349,658 0 756,716 etendo.profile.last_stat_wal 899 0 0 653,566 652,667 0 9,889 etendo.public.ad_session 899 0 0 53,665,261 52,767,974 0 1,582,987 etendo.profile.last_stat_tablespaces_srv1 894 0 0 1,299,866 1,298,078 0 20,562 etendo.public.fin_financial_account 899 0 0 1,273,898 1,264,908 0 47,189 etendo.profile.sample_statements_total 899 0 0 1,307,134 1,004,468 0 54,899 template1.pg_catalog.pg_shdepend 899 0 0 2,869,481 1,129,199 0 23,374 etendo.profile.last_stat_slru 899 0 0 3,267,830 3,263,335 0 46,448 etendo.public.ad_session_usage_audit 899 0 0 374,281,925 157,881,481 0 10,585,784 etendo.profile.tables_list 899 0 0 110,056,911 109,105,590 0 2,394,557 etendo.profile.sample_stat_user_func_total 899 0 0 1,307,134 1,004,468 0 11,627 etendo.public.ad_preference 899 0 0 11,572,248 10,896,200 0 1,510,474 etendo.profile.sample_stat_archiver 899 0 0 653,566 502,233 0 6,232 etendo.profile.sample_stat_io 899 0 0 4,301,304 3,233,104 0 93,075 etendo.profile.stmt_list 899 0 0 28,186,356 27,729,357 0 2,082,070 etendo.profile.last_extension_versions 899 0 0 4,574,962 4,568,669 0 62,331 etendo.profile.sample_stat_tables_total 899 0 0 5,882,103 4,520,106 0 154,208 etendo.profile.sample_statements 899 0 0 48,075,566 37,200,973 0 2,404,278 etendo.profile.indexes_list 899 0 0 31,099,867 30,786,118 0 677,600 etendo.profile.funcs_list 899 0 0 12,011,149 11,835,843 0 325,255 postgres.pg_catalog.pg_shdepend 899 0 0 2,869,463 1,129,188 0 23,374 etendo.public.ad_pinstance_para 899 0 0 1,438,536 649,977 0 43,152 etendo.profile.last_stat_indexes_srv1 894 0 0 3,541,553,894 3,539,149,034 0 144,015,675 etendo.profile.sample_stat_database 899 0 0 2,614,268 2,008,936 0 105,003 etendo.public.ad_process_request 899 0 0 17,255,374 15,726,012 0 1,798,990 etendo.profile.samples 899 0 0 653,567 502,234 0 3,596 etendo.profile.sample_stat_indexes_total 899 0 0 2,614,264 2,008,932 0 30,146 etendo.public.ad_process_run 899 0 0 34,452,880 25,631,188 0 2,493,309 etendo.pg_toast.pg_toast_2619 899 0 0 17,499,486 16,177,654 0 3,597,304 etendo.profile.last_stat_archiver 899 0 0 653,566 652,667 0 6,233 etendo.pg_catalog.pg_class 899 0 0 4,637,373 1,285,622 0 118,541 etendo.profile.last_stat_activity_count_srv1 899 0 0 5,318,123 5,318,123 0 129,456 etendo.profile.sample_stat_wal 899 0 0 653,566 502,233 0 8,990 etendo.public.ad_module 899 0 0 6,930,396 6,712,838 0 527,171 etendo.profile.last_stat_database_srv1 894 0 0 2,599,732 2,596,156 0 104,419 etendo.profile.sample_stat_tables 899 0 0 160,207,288 122,479,482 0 5,347,595 etendo.pg_catalog.pg_shdepend 899 0 0 2,869,469 1,129,196 0 23,374 etendo.profile.servers 899 0 0 654,465 653,566 0 12,586 etendo.profile.last_stat_io 899 0 0 9,723,479 9,709,994 0 216,658 etendo.pg_toast.pg_toast_125223 899 0 0 185,792 116,268 0 33,263 etendo.public.c_invoice 899 0 0 283,369,929 178,811,194 0 23,075,382 etendo.profile.sample_stat_tablespaces 899 0 0 1,307,132 1,004,466 0 9,889 etendo.pg_catalog.pg_attribute 899 0 0 39,868,501 11,349,496 0 762,346 etendo.profile.sample_stat_user_functions 899 0 0 33,548,665 25,707,377 0 313,929 etendo.profile.sample_stat_cluster 899 0 0 653,566 502,233 0 13,485 etendo.pg_catalog.pg_type 899 0 0 4,529,783 2,258,388 0 105,779 etendo.pg_toast.pg_toast_46165 899 0 0 14,007,188 13,564,880 0 3,500,898 etendo.profile.sample_stat_slru 899 0 0 2,615,163 2,009,831 0 37,278 etendo.profile.last_stat_cluster 899 0 0 653,566 652,667 0 13,485 Total 56,524 3 292 9,197,829,742 8,308,238,672 0 428,650,251 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed etendo.profile.last_stat_user_functions_srv1 894 0 0 0 etendo.pg_catalog.pg_statistic 899 0 0 0 etendo.public.c_order 816 0 97 0 etendo.public.ad_audit_trail 899 0 0 0 etendo.profile.last_stat_statements_srv1 894 0 0 0 etendo.profile.last_stat_tables_srv1 894 0 0 0 etendo.pg_toast.pg_toast_45833 899 0 0 0 etendo.public.c_bpartner 899 0 0 0 etendo.public.m_stock_proposed 899 1 16 0 etendo.public.ad_ep_instance_para 899 1 77 0 etendo.profile.sample_stat_indexes 899 0 0 0 etendo.profile.last_stat_wal 899 0 0 0 etendo.public.ad_session 899 0 0 0 etendo.profile.last_stat_tablespaces_srv1 894 0 0 0 etendo.public.fin_financial_account 899 0 0 0 etendo.profile.sample_statements_total 899 0 0 0 template1.pg_catalog.pg_shdepend 899 0 0 0 etendo.profile.last_stat_slru 899 0 0 0 etendo.public.ad_session_usage_audit 899 0 0 0 etendo.profile.tables_list 899 0 0 0 etendo.public.ad_sequence 899 0 3 0 etendo.profile.sample_stat_user_func_total 899 0 0 0 etendo.public.ad_preference 899 0 0 0 etendo.profile.sample_stat_archiver 899 0 0 0 etendo.profile.sample_stat_io 899 0 0 0 etendo.profile.stmt_list 899 0 0 0 etendo.profile.last_extension_versions 899 0 0 0 etendo.profile.sample_stat_tables_total 899 0 0 0 etendo.profile.sample_statements 899 0 0 0 etendo.profile.indexes_list 899 0 0 0 etendo.profile.funcs_list 899 0 0 0 postgres.pg_catalog.pg_shdepend 899 0 0 0 etendo.public.ad_pinstance_para 899 0 0 0 etendo.profile.last_stat_indexes_srv1 894 0 0 0 etendo.profile.sample_stat_database 899 0 0 0 etendo.public.ad_process_request 899 0 0 0 etendo.profile.samples 899 0 0 0 etendo.profile.sample_stat_indexes_total 899 0 0 0 etendo.public.ad_process_run 899 0 0 0 etendo.pg_toast.pg_toast_2619 899 0 0 0 etendo.profile.last_stat_archiver 899 0 0 0 etendo.pg_catalog.pg_class 899 0 0 0 etendo.profile.last_stat_activity_count_srv1 899 0 0 0 etendo.public.m_storage_pending 899 0 60 0 etendo.profile.sample_stat_wal 899 0 0 0 etendo.public.m_storage_detail 899 0 30 0 etendo.public.ad_module 899 0 0 0 etendo.profile.last_stat_database_srv1 894 0 0 0 etendo.profile.sample_stat_tables 899 0 0 0 etendo.pg_catalog.pg_shdepend 899 0 0 0 etendo.profile.servers 899 0 0 0 etendo.public.ad_pinstance 899 1 9 0 etendo.profile.last_stat_io 899 0 0 0 etendo.pg_toast.pg_toast_125223 899 0 0 0 etendo.public.c_invoice 899 0 0 0 etendo.profile.sample_stat_tablespaces 899 0 0 0 etendo.pg_catalog.pg_attribute 899 0 0 0 etendo.profile.sample_stat_user_functions 899 0 0 0 etendo.profile.sample_stat_cluster 899 0 0 0 etendo.pg_catalog.pg_type 899 0 0 0 etendo.pg_toast.pg_toast_46165 899 0 0 0 etendo.profile.sample_stat_slru 899 0 0 0 etendo.profile.last_stat_cluster 899 0 0 0 Total 56,524 3 292 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jul 17 07 3,720 12 08 3,751 21 09 3,780 17 10 3,780 16 11 3,774 14 12 3,779 19 13 3,778 10 14 3,755 18 15 3,780 14 16 3,746 14 17 3,774 12 18 3,774 9 19 3,774 8 20 3,779 12 21 3,780 4 22 0 0 - 6.20 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 124 Total read queries
- 0 Total write queries
Queries by database
Key values
- etendo Main database
- 124 Requests
- 11m44s (etendo)
- Main time consuming database
Queries by user
Key values
- tad Main user
- 109 Requests
User Request type Count Duration postgres Total 15 5m40s select 15 5m40s tad Total 109 6m4s select 109 6m4s Duration by user
Key values
- 6m4s (tad) Main time consuming user
User Request type Count Duration postgres Total 15 5m40s select 15 5m40s tad Total 109 6m4s select 109 6m4s Queries by host
Key values
- 127.0.0.1 Main host
- 109 Requests
- 6m4s (127.0.0.1)
- Main time consuming host
Queries by application
Key values
- openbravo Main application
- 109 Requests
- 6m4s (openbravo)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-07-17 10:39:47 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 94 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 49s344ms SELECT profile.take_sample ();[ Date: 2026-07-17 11:00:50 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
2 49s148ms SELECT profile.take_sample ();[ Date: 2026-07-17 08:00:51 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
3 21s48ms SELECT profile.take_sample ();[ Date: 2026-07-17 17:00:22 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
4 19s994ms SELECT profile.take_sample ();[ Date: 2026-07-17 21:00:21 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
5 19s866ms SELECT profile.take_sample ();[ Date: 2026-07-17 10:00:21 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
6 19s859ms SELECT profile.take_sample ();[ Date: 2026-07-17 19:00:21 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
7 19s704ms SELECT profile.take_sample ();[ Date: 2026-07-17 09:00:21 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
8 19s24ms SELECT profile.take_sample ();[ Date: 2026-07-17 13:00:20 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
9 18s261ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 10:00:19 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
10 18s149ms SELECT profile.take_sample ();[ Date: 2026-07-17 20:00:19 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
11 17s941ms SELECT profile.take_sample ();[ Date: 2026-07-17 15:00:19 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
12 17s921ms SELECT profile.take_sample ();[ Date: 2026-07-17 18:00:19 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
13 17s865ms SELECT profile.take_sample ();[ Date: 2026-07-17 14:00:19 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
14 17s782ms SELECT profile.take_sample ();[ Date: 2026-07-17 07:00:19 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
15 17s135ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 17:00:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
16 17s39ms SELECT profile.take_sample ();[ Date: 2026-07-17 16:00:18 - Database: etendo - User: postgres - Remote: [local] - Application: psql ]
17 16s462ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 14:00:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
18 16s349ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 21:00:17 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
19 15s842ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 09:00:18 - Database: etendo - User: tad - Remote: 127.0.0.1 - Application: openbravo - Bind query: yes ]
20 15s637ms SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');[ Date: 2026-07-17 08:00:16 - 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 5m40s 15 15s459ms 49s344ms 22s676ms select profile.take_sample ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 07 1 17s782ms 17s782ms 08 1 49s148ms 49s148ms 09 1 19s704ms 19s704ms 10 1 19s866ms 19s866ms 11 1 49s344ms 49s344ms 12 1 15s459ms 15s459ms 13 1 19s24ms 19s24ms 14 1 17s865ms 17s865ms 15 1 17s941ms 17s941ms 16 1 17s39ms 17s39ms 17 1 21s48ms 21s48ms 18 1 17s921ms 17s921ms 19 1 19s859ms 19s859ms 20 1 18s149ms 18s149ms 21 1 19s994ms 19s994ms [ User: postgres - Total duration: 5m40s - Times executed: 15 ]
[ Application: psql - Total duration: 5m40s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 11:00:50 Duration: 49s344ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 08:00:51 Duration: 49s148ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 17:00:22 Duration: 21s48ms Database: etendo User: postgres Remote: [local] Application: psql
2 3m43s 15 10s16ms 18s261ms 14s894ms select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 07 1 10s16ms 10s16ms 08 1 15s637ms 15s637ms 09 1 15s842ms 15s842ms 10 1 18s261ms 18s261ms 11 1 12s437ms 12s437ms 12 1 12s536ms 12s536ms 13 1 15s288ms 15s288ms 14 1 16s462ms 16s462ms 15 1 14s860ms 14s860ms 16 1 14s111ms 14s111ms 17 1 17s135ms 17s135ms 18 1 14s256ms 14s256ms 19 1 15s581ms 15s581ms 20 1 14s643ms 14s643ms 21 1 16s349ms 16s349ms [ User: tad - Total duration: 3m43s - Times executed: 15 ]
[ Application: openbravo - Total duration: 3m43s - Times executed: 15 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 10:00:19 Duration: 18s261ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:00:18 Duration: 17s135ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 14:00:17 Duration: 16s462ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 1m1s 51 1s 2s905ms 1s198ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ left outer join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro4_ cross join m_pricelist_version pricingpri5_ cross join m_pricelist pricingpri9_ where productbyp0_.m_productprice_id = pricingpro4_.m_productprice_id and pricingpro4_.m_pricelist_version_id = pricingpri5_.m_pricelist_version_id and pricingpri5_.m_pricelist_id = pricingpri9_.m_pricelist_id and (upper(product1_.value) like upper(?) escape ? or upper(product1_.name) like upper(?) escape ? or upper((coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?) || ?| | product1_.value)) like upper(?) escape ? or upper((coalesce(to_char(( select producttrl3_.name from m_product_trl producttrl3_ where producttrl3_.m_product_id = product1_.m_product_id and producttrl3_.ad_language = ?)), to_char(product1_.name), ?) || ?| | product1_.value)) like upper(?) escape ?) and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri5_.isactive = ? and ad_org_isinnaturaltree (pricingpro4_.ad_org_id, ?, ?) = ? and pricingpri9_.issopricelist = ? and pricingpri9_.c_currency_id = ? and pricingpro4_.m_pricelist_version_id = ? and productbyp0_.m_warehouse_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 07 7 8s233ms 1s176ms 08 9 11s649ms 1s294ms 09 3 4s661ms 1s553ms 10 12 14s725ms 1s227ms 11 3 3s316ms 1s105ms 12 6 7s118ms 1s186ms 14 5 5s174ms 1s34ms 15 2 2s66ms 1s33ms 16 1 1s13ms 1s13ms 17 2 2s125ms 1s62ms 18 1 1s36ms 1s36ms [ User: tad - Total duration: 1m1s - Times executed: 51 ]
[ Application: openbravo - Total duration: 1m1s - Times executed: 51 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%A%') escape '|' or upper(product1_.Name) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000113' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 08:00:11 Duration: 2s905ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%gr%') escape '|' or upper(product1_.Name) like upper('%gr%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%gr%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%gr%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000112' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 09:00:11 Duration: 1s909ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%A%') escape '|' or upper(product1_.Name) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000113' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 10:28:59 Duration: 1s845ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 29s255ms 18 1s56ms 2s250ms 1s625ms select * from ( select c_invoice.c_invoice_id as referencekey_id, c_invoice.documentno as record_id, ? as ad_role_id, null as ad_user_id, ?| | c_invoice.documentno || ?| | c_invoice.grandtotal || ?| | (( select round(sum(linenetamt), ?) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), ?), ?) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, ? as isactive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice where c_invoice.issotrx = ? and c_invoice.grandtotal <> round((( select round(sum(linenetamt), ?) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), ?), ?) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), ?)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 07 1 1s580ms 1s580ms 08 1 1s509ms 1s509ms 09 2 3s901ms 1s950ms 10 2 2s701ms 1s350ms 11 1 1s56ms 1s56ms 12 1 2s57ms 2s57ms 13 1 1s997ms 1s997ms 14 1 1s71ms 1s71ms 15 1 1s418ms 1s418ms 16 1 1s505ms 1s505ms 17 1 1s846ms 1s846ms 18 1 1s683ms 1s683ms 19 2 3s409ms 1s704ms 20 1 1s793ms 1s793ms 21 1 1s721ms 1s721ms [ User: tad - Total duration: 29s255ms - Times executed: 18 ]
[ Application: openbravo - Total duration: 29s255ms - Times executed: 18 ]
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'Y' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'D385EC7B4B9F428093AF4EBA38AF5821' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:00:21 Duration: 2s250ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'Y' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'D385EC7B4B9F428093AF4EBA38AF5821' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:00:20 Duration: 2s57ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'N' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '64986CDE8CEA4AA1BA98CD9FEEEE3553' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:21 Duration: 2s51ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 14s749ms 9 1s179ms 2s996ms 1s638ms select * from c_order_post (?);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 07 1 2s996ms 2s996ms 08 1 1s876ms 1s876ms 10 1 1s254ms 1s254ms 13 1 1s398ms 1s398ms 14 1 1s510ms 1s510ms 15 1 1s179ms 1s179ms 16 1 1s208ms 1s208ms 17 1 1s912ms 1s912ms 18 1 1s411ms 1s411ms [ User: tad - Total duration: 14s749ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 14s749ms - Times executed: 9 ]
-
SELECT * FROM C_ORDER_POST ('F94A42171B614C5ABB9EDFB4A9A37071');
Date: 2026-07-17 07:49:05 Duration: 2s996ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('000CCF6F834D40979CB521B786EB5DDD');
Date: 2026-07-17 17:32:14 Duration: 1s912ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('40DD5AF434784F20B88530F5FD20532B');
Date: 2026-07-17 08:08:58 Duration: 1s876ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 12s541ms 4 1s249ms 5s993ms 3s135ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ inner join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro3_ cross join m_pricelist_version pricingpri4_ cross join m_pricelist pricingpri8_ where productbyp0_.m_productprice_id = pricingpro3_.m_productprice_id and pricingpro3_.m_pricelist_version_id = pricingpri4_.m_pricelist_version_id and pricingpri4_.m_pricelist_id = pricingpri8_.m_pricelist_id and (upper(product1_.name) like upper(?) escape ?) and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri4_.isactive = ? and ad_org_isinnaturaltree (pricingpro3_.ad_org_id, ?, ?) = ? and pricingpri8_.issopricelist = ? and pricingpri8_.c_currency_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 17 4 12s541ms 3s135ms [ User: tad - Total duration: 12s541ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 12s541ms - Times executed: 4 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%pa%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:30 Duration: 5s993ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%p%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:28 Duration: 3s996ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%pal%%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:26 Duration: 1s300ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 7s36ms 2 3s436ms 3s600ms 3s518ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ inner join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro2_ cross join m_pricelist_version pricingpri3_ cross join m_pricelist pricingpri7_ where productbyp0_.m_productprice_id = pricingpro2_.m_productprice_id and pricingpro2_.m_pricelist_version_id = pricingpri3_.m_pricelist_version_id and pricingpri3_.m_pricelist_id = pricingpri7_.m_pricelist_id and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri3_.isactive = ? and ad_org_isinnaturaltree (pricingpro2_.ad_org_id, ?, ?) = ? and pricingpri7_.issopricelist = ? and pricingpri7_.c_currency_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 17 2 7s36ms 3s518ms [ User: tad - Total duration: 7s36ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 7s36ms - Times executed: 2 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro2_ cross join M_PriceList_Version pricingpri3_ cross join M_PriceList pricingpri7_ where productbyp0_.M_Productprice_ID = pricingpro2_.M_ProductPrice_ID and pricingpro2_.M_PriceList_Version_ID = pricingpri3_.M_PriceList_Version_ID and pricingpri3_.M_PriceList_ID = pricingpri7_.M_PriceList_ID and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri3_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro2_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri7_.IsSOPriceList = 'Y' and pricingpri7_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:25 Duration: 3s600ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro2_ cross join M_PriceList_Version pricingpri3_ cross join M_PriceList pricingpri7_ where productbyp0_.M_Productprice_ID = pricingpro2_.M_ProductPrice_ID and pricingpro2_.M_PriceList_Version_ID = pricingpri3_.M_PriceList_Version_ID and pricingpri3_.M_PriceList_ID = pricingpri7_.M_PriceList_ID and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri3_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro2_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri7_.IsSOPriceList = 'Y' and pricingpri7_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:08 Duration: 3s436ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 4s800ms 4 1s16ms 1s602ms 1s200ms select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id, posted from c_invoice, c_doctype where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and not exists ( select ? from c_period where c_period.startdate <= trunc(dateacct) and trunc(dateacct) <= c_period.enddate) group by c_invoice_id, posted, c_invoice.ad_org_id, c_invoice.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 09 1 1s602ms 1s602ms 17 1 1s16ms 1s16ms 19 1 1s147ms 1s147ms 20 1 1s34ms 1s34ms [ User: tad - Total duration: 4s800ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 4s800ms - Times executed: 4 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:02 Duration: 1s602ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:00:01 Duration: 1s147ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:00:01 Duration: 1s34ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 4s126ms 2 1s552ms 2s573ms 2s63ms select materialmg0_.m_inoutline_id as col_0_0_, materialmg0_.ad_org_id as col_1_0_, materialmg0_.ad_client_id as col_2_0_, materialmg0_.m_product_id as col_3_0_, materialmg0_.c_uom_id as col_4_0_, materialmg0_.m_inoutline_id as col_5_0_, materialmg0_.movementqty as col_6_0_, materialmg2_.c_bpartner_id as col_7_0_, materialmg2_.documentno as col_8_0_, materialmg2_.movementdate as col_9_0_, attributes1_.m_attributesetinstance_id as col_10_0_, (select orderline9_.c_orderline_id from c_orderline orderline9_ where orderline9_.c_order_id=? and orderline9_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_11_0_, (select uom10_.name from c_uom uom10_ where uom10_.c_uom_id in (case when (select ? from c_orderline orderline11_ where orderline11_.c_order_id=? and orderline11_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when coalesce(materialmg0_.c_aum, ?)<>? then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end else coalesce((select orderline12_.c_aum from c_orderline orderline12_ where orderline12_.c_order_id=? and orderline12_.m_inoutline_id=materialmg0_.m_inoutline_id), ?) end)) as col_12_0_, case when materialmg0_.aumqty is not null then materialmg0_.aumqty else m_get_converted_aumqty(materialmg0_.m_product_id,materialmg0_.movementqty,m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id)) end as col_13_0_, case when (select ? from c_orderline orderline13_ where orderline13_.c_order_id=? and orderline13_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when materialmg0_.c_aum is not null then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end else coalesce((select orderline14_.c_aum from c_orderline orderline14_ where orderline14_.c_order_id=? and orderline14_.m_inoutline_id=materialmg0_.m_inoutline_id), ?) end as col_14_0_, (select uom15_.c_uom_id from c_uom uom15_ where uom15_.c_uom_id in (case when coalesce(materialmg0_.c_aum, ?)<>? then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end)) as col_15_0_, case when (select ? from c_orderline orderline16_ where orderline16_.c_order_id=? and orderline16_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when coalesce(materialmg0_.c_aum, ?)=? then to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id))) else to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,materialmg0_.c_aum)) end else to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,coalesce((select orderline17_.c_aum from c_orderline orderline17_ where orderline17_.c_order_id=? and orderline17_.m_inoutline_id=materialmg0_.m_inoutline_id), ?))) end as col_16_0_, coalesce((select sum(orderline18_.qtyordered) from c_orderline orderline18_ inner join c_order order19_ on orderline18_.c_order_id=order19_.c_order_id where orderline18_.m_inoutline_id=materialmg0_.m_inoutline_id and order19_.processed=? and order19_.docstatus<>?), ?)*? as col_17_0_, case when (select ? from c_orderline orderline20_ where orderline20_.c_order_id=? and orderline20_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then false else true end as col_18_0_, coalesce((select orderline21_.qtyordered from c_orderline orderline21_ where orderline21_.c_order_id=? and orderline21_.m_inoutline_id=materialmg0_.m_inoutline_id), ?)*? as col_19_0_, (select orderline22_.c_return_reason_id from c_orderline orderline22_ cross join c_return_reason returnreas23_ where orderline22_.c_return_reason_id=returnreas23_.c_return_reason_id and orderline22_.c_order_id=? and orderline22_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_20_0_, coalesce((select orderline24_.c_tax_id from c_orderline orderline24_ where orderline24_.c_order_id=? and orderline24_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline26_.c_tax_id from m_inoutline materialmg25_ cross join c_orderline orderline26_ where materialmg25_.c_orderline_id=orderline26_.c_orderline_id and materialmg25_.m_inoutline_id=materialmg0_.m_inoutline_id)) as col_21_0_, case when (select pricingpri28_.istaxincluded from c_order order27_ cross join m_pricelist pricingpri28_ where order27_.m_pricelist_id=pricingpri28_.m_pricelist_id and order27_.c_order_id=?)=? then coalesce((select orderline29_.priceactual from c_orderline orderline29_ where orderline29_.c_order_id=? and orderline29_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline31_.gross_unit_price from m_inoutline materialmg30_ cross join c_orderline orderline31_ where materialmg30_.c_orderline_id=orderline31_.c_orderline_id and materialmg30_.m_inoutline_id=materialmg0_.m_inoutline_id)) else coalesce((select orderline32_.priceactual from c_orderline orderline32_ where orderline32_.c_order_id=? and orderline32_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline34_.priceactual from m_inoutline materialmg33_ cross join c_orderline orderline34_ where materialmg33_.c_orderline_id=orderline34_.c_orderline_id and materialmg33_.m_inoutline_id=materialmg0_.m_inoutline_id)) end as col_22_0_, (select order37_.documentno from m_inoutline materialmg35_ cross join c_orderline orderline36_ cross join c_order order37_ where materialmg35_.c_orderline_id=orderline36_.c_orderline_id and orderline36_.c_order_id=order37_.c_order_id and materialmg35_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_23_0_, organizati4_.ad_org_id as ad_org_i1_71_0_, adclient5_.ad_client_id as ad_clien1_18_1_, product6_.m_product_id as m_produc1_482_2_, uom7_.c_uom_id as c_uom_id1_322_3_, businesspa8_.c_bpartner_id as c_bpartn1_188_4_, attributes1_.m_attributesetinstance_id as m_attrib1_418_5_, organizati4_.ad_client_id as ad_clien2_71_0_, organizati4_.isactive as isactive3_71_0_, organizati4_.created as created4_71_0_, organizati4_.createdby as createdb5_71_0_, organizati4_.updated as updated6_71_0_, organizati4_.updatedby as updatedb7_71_0_, organizati4_.value as value8_71_0_, organizati4_.name as name9_71_0_, organizati4_.description as descrip10_71_0_, organizati4_.issummary as issumma11_71_0_, organizati4_.ad_orgtype_id as ad_orgt12_71_0_, organizati4_.isperiodcontrolallowed as isperio13_71_0_, organizati4_.c_calendar_id as c_calen14_71_0_, organizati4_.isready as isready15_71_0_, organizati4_.em_intr_c_calendar_id as em_intr16_71_0_, organizati4_.social_name as social_17_71_0_, organizati4_.c_currency_id as c_curre18_71_0_, organizati4_.c_acctschema_id as c_accts19_71_0_, organizati4_.em_aprm_glitem_id as em_aprm20_71_0_, organizati4_.em_obmfm_product_id as em_obmf21_71_0_, organizati4_.ad_periodcontrolallowed_org_id as ad_peri22_71_0_, organizati4_.ad_calendarowner_org_id as ad_cale23_71_0_, organizati4_.em_obwpack_uom_id as em_obwp24_71_0_, organizati4_.ad_legalentity_org_id as ad_lega25_71_0_, organizati4_.ad_inheritedcalendar_id as ad_inhe26_71_0_, organizati4_.ad_businessunit_org_id as ad_busi27_71_0_, organizati4_.em_etsg_add_certificate as em_etsg28_71_0_, organizati4_.em_prupc_ad_sequence_id as em_prup29_71_0_, organizati4_.em_prupc_locator_sequence_id as em_prup30_71_0_, organizati4_.c_extbp_enabled as c_extbp31_71_0_, organizati4_.c_extbp_config_id as c_extbp32_71_0_, organizati4_.em_pruti_planningmethod_id as em_prut33_71_0_, organizati4_.em_obmobc_credential_timeout as em_obmo34_71_0_, adclient5_.ad_org_id as ad_org_i2_18_1_, adclient5_.isactive as isactive3_18_1_, adclient5_.created as created4_18_1_, adclient5_.createdby as createdb5_18_1_, adclient5_.updated as updated6_18_1_, adclient5_.updatedby as updatedb7_18_1_, adclient5_.value as value8_18_1_, adclient5_.name as name9_18_1_, adclient5_.description as descrip10_18_1_, adclient5_.smtphost as smtphos11_18_1_, adclient5_.requestemail as request12_18_1_, adclient5_.requestuser as request13_18_1_, adclient5_.requestuserpw as request14_18_1_, adclient5_.requestfolder as request15_18_1_, adclient5_.ad_language as ad_lang16_18_1_, adclient5_.ismultilingualdocument as ismulti17_18_1_, adclient5_.issmtpauthorization as issmtpa18_18_1_, adclient5_.c_currency_id as c_curre19_18_1_, adclient5_.acctdim_centrally_maintained as acctdim20_18_1_, adclient5_.project_acctdim_isenable as project21_18_1_, adclient5_.project_acctdim_header as project22_18_1_, adclient5_.project_acctdim_lines as project23_18_1_, adclient5_.project_acctdim_breakdown as project24_18_1_, adclient5_.bpartner_acctdim_isenable as bpartne25_18_1_, adclient5_.bpartner_acctdim_header as bpartne26_18_1_, adclient5_.bpartner_acctdim_lines as bpartne27_18_1_, adclient5_.bpartner_acctdim_breakdown as bpartne28_18_1_, adclient5_.product_acctdim_isenable as product29_18_1_, adclient5_.product_acctdim_header as product30_18_1_, adclient5_.product_acctdim_lines as product31_18_1_, adclient5_.product_acctdim_breakdown as product32_18_1_, adclient5_.costcenter_acctdim_header as costcen33_18_1_, adclient5_.costcenter_acctdim_lines as costcen34_18_1_, adclient5_.costcenter_acctdim_breakdown as costcen35_18_1_, adclient5_.user1_acctdim_isenable as user36_18_1_, adclient5_.user1_acctdim_header as user37_18_1_, adclient5_.user1_acctdim_lines as user38_18_1_, adclient5_.user1_acctdim_breakdown as user39_18_1_, adclient5_.user2_acctdim_isenable as user40_18_1_, adclient5_.user2_acctdim_header as user41_18_1_, adclient5_.user2_acctdim_lines as user42_18_1_, adclient5_.user2_acctdim_breakdown as user43_18_1_, adclient5_.costcenter_acctdim_isenable as costcen44_18_1_, adclient5_.org_acctdim_isenable as org_acc45_18_1_, adclient5_.org_acctdim_header as org_acc46_18_1_, adclient5_.org_acctdim_lines as org_acc47_18_1_, adclient5_.org_acctdim_breakdown as org_acc48_18_1_, adclient5_.daystopasswordexpiration as daystop49_18_1_, adclient5_.em_jr_ftp_image_url as em_jr_f50_18_1_, adclient5_.em_pruti_periodnotifications as em_prut51_18_1_, adclient5_.em_jr_ftp_image_username as em_jr_f52_18_1_, adclient5_.em_jr_ftp_image_password as em_jr_f53_18_1_, adclient5_.em_prupc_upc_password as em_prup54_18_1_, adclient5_.em_prsc_tree_prodcat_id as em_prsc55_18_1_, adclient5_.em_pruti_cleancache as em_prut56_18_1_, adclient5_.em_priuti_openbravo_url as em_priu57_18_1_, product6_.ad_client_id as ad_clien2_482_2_, product6_.ad_org_id as ad_org_i3_482_2_, product6_.isactive as isactive4_482_2_, product6_.created as created5_482_2_, product6_.createdby as createdb6_482_2_, product6_.updated as updated7_482_2_, product6_.updatedby as updatedb8_482_2_, product6_.value as value9_482_2_, product6_.name as name10_482_2_, product6_.description as descrip11_482_2_, product6_.documentnote as documen12_482_2_, product6_.help as help13_482_2_, product6_.upc as upc14_482_2_, product6_.sku as sku15_482_2_, product6_.c_uom_id as c_uom_i16_482_2_, product6_.salesrep_id as salesre17_482_2_, product6_.issummary as issumma18_482_2_, product6_.isstocked as isstock19_482_2_, product6_.ispurchased as ispurch20_482_2_, product6_.issold as issold21_482_2_, product6_.isbom as isbom22_482_2_, product6_.isinvoiceprintdetails as isinvoi23_482_2_, product6_.ispicklistprintdetails as ispickl24_482_2_, product6_.isverified as isverif25_482_2_, product6_.m_product_category_id as m_produ26_482_2_, product6_.classification as classif27_482_2_, product6_.volume as volume28_482_2_, product6_.weight as weight29_482_2_, product6_.shelfwidth as shelfwi30_482_2_, product6_.shelfheight as shelfhe31_482_2_, product6_.shelfdepth as shelfde32_482_2_, product6_.unitsperpallet as unitspe33_482_2_, product6_.c_taxcategory_id as c_taxca34_482_2_, product6_.s_resource_id as s_resou35_482_2_, product6_.discontinued as discont36_482_2_, product6_.discontinuedby as discont37_482_2_, product6_.processing as process38_482_2_, product6_.s_expensetype_id as s_expen39_482_2_, product6_.producttype as product40_482_2_, product6_.imageurl as imageur41_482_2_, product6_.descriptionurl as descrip42_482_2_, product6_.guaranteedays as guarant43_482_2_, product6_.versionno as version44_482_2_, product6_.m_attributeset_id as m_attri45_482_2_, product6_.m_attributesetinstance_id as m_attri46_482_2_, product6_.downloadurl as downloa47_482_2_, product6_.m_freightcategory_id as m_freig48_482_2_, product6_.m_locator_id as m_locat49_482_2_, product6_.ad_image_id as ad_imag50_482_2_, product6_.c_bpartner_id as c_bpart51_482_2_, product6_.ispriceprinted as isprice52_482_2_, product6_.name2 as name53_482_2_, product6_.stock_min as stock_m54_482_2_, product6_.enforce_attribute as enforce55_482_2_, product6_.calculated as calcula56_482_2_, product6_.ma_processplan_id as ma_proc57_482_2_, product6_.production as product58_482_2_, product6_.capacity as capacit59_482_2_, product6_.delaymin as delaymi60_482_2_, product6_.mrp_planner_id as mrp_pla61_482_2_, product6_.mrp_planningmethod_id as mrp_pla62_482_2_, product6_.qtymax as qtymax63_482_2_, product6_.qtymin as qtymin64_482_2_, product6_.qtystd as qtystd65_482_2_, product6_.qtytype as qtytype66_482_2_, product6_.stockmin as stockmi67_482_2_, product6_.em_aeat347_isleasebusiness as em_aeat68_482_2_, product6_.attrsetvaluetype as attrset69_482_2_, product6_.em_aeat347_situation as em_aeat70_482_2_, product6_.isquantityvariable as isquant71_482_2_, product6_.isdeferredrevenue as isdefer72_482_2_, product6_.em_aeat347_referenceid as em_aeat73_482_2_, product6_.em_aeat347_locationtype as em_aeat74_482_2_, product6_.revplantype as revplan75_482_2_, product6_.em_aeat347_streetname as em_aeat76_482_2_, product6_.periodnumber as periodn77_482_2_, product6_.em_aeat347_streetnumbertype as em_aeat78_482_2_, product6_.isdeferredexpense as isdefer79_482_2_, product6_.em_aeat347_streetnumber as em_aeat80_482_2_, product6_.expplantype as expplan81_482_2_, product6_.em_aeat347_streetnumberqua as em_aeat82_482_2_, product6_.periodnumber_exp as periodn83_482_2_, product6_.defaultperiod as default84_482_2_, product6_.em_aeat347_building as em_aeat85_482_2_, product6_.defaultperiod_exp as default86_482_2_, product6_.em_aeat347_hall as em_aeat87_482_2_, product6_.bookusingpoprice as bookusi88_482_2_, product6_.em_aeat347_hallway as em_aeat89_482_2_, product6_.em_aeat347_floor as em_aeat90_482_2_, product6_.c_uom_weight_id as c_uom_w91_482_2_, product6_.m_brand_id as m_brand92_482_2_, product6_.em_aeat347_apartment as em_aeat93_482_2_, product6_.em_aeat347_complement as em_aeat94_482_2_, product6_.isgeneric as isgener95_482_2_, product6_.em_aeat347_location as em_aeat96_482_2_, product6_.generic_product_id as generic97_482_2_, product6_.createvariants as createv98_482_2_, product6_.em_aeat347_county as em_aeat99_482_2_, product6_.characteristic_desc as charac100_482_2_, product6_.em_aeat347_countycode as em_aea101_482_2_, product6_.em_aeat347_regioncode as em_aea102_482_2_, product6_.updateinvariants as update103_482_2_, product6_.em_aeat347_zipcode as em_aea104_482_2_, product6_.managevariants as manage105_482_2_, product6_.prod_cat_selection as prod_c106_482_2_, product6_.product_selection as produc107_482_2_, product6_.print_description as print_108_482_2_, product6_.returnable as return109_482_2_, product6_.overdue_return_days as overdu110_482_2_, product6_.ispricerulebased as ispric111_482_2_, product6_.unique_per_document as unique112_482_2_, product6_.relateprodcattoservice as relate113_482_2_, product6_.relateprodtoservice as relate114_482_2_, product6_.islinkedtoproduct as islink115_482_2_, product6_.quantity_rule as quanti116_482_2_, product6_.allow_deferred_sell as allow_117_482_2_, product6_.deferred_sell_max_days as deferr118_482_2_, product6_.m_product_status_id as m_prod119_482_2_, product6_.ismodifytax as ismodi120_482_2_, product6_.relateprodcattaxtoservice as relate121_482_2_, product6_.copyservicemodifytaxconfig as copyse122_482_2_, product6_.em_jr_stocktype as em_jr_123_482_2_, product6_.em_obmupc_multiupc_desc as em_obm124_482_2_, product6_.em_prupc_generate_ean as em_pru125_482_2_, product6_.em_prsc_isdeliverycosts as em_prs126_482_2_, product6_.em_pruti_addmodifycharact as em_pru127_482_2_, uom7_.ad_client_id as ad_clien2_322_3_, uom7_.ad_org_id as ad_org_i3_322_3_, uom7_.isactive as isactive4_322_3_, uom7_.created as created5_322_3_, uom7_.updated as updated6_322_3_, uom7_.createdby as createdb7_322_3_, uom7_.updatedby as updatedb8_322_3_, uom7_.x12de355 as x9_322_3_, uom7_.uomsymbol as uomsymb10_322_3_, uom7_.name as name11_322_3_, uom7_.description as descrip12_322_3_, uom7_.stdprecision as stdprec13_322_3_, uom7_.costingprecision as costing14_322_3_, uom7_.isdefault as isdefau15_322_3_, uom7_.breakdown as breakdo16_322_3_, uom7_.uom_type as uom_typ17_322_3_, uom7_.em_obwpack_isweight as em_obwp18_322_3_, uom7_.useinproduction as useinpr19_322_3_, businesspa8_.ad_client_id as ad_clien2_188_4_, businesspa8_.ad_org_id as ad_org_i3_188_4_, businesspa8_.isactive as isactive4_188_4_, businesspa8_.created as created5_188_4_, businesspa8_.createdby as createdb6_188_4_, businesspa8_.updated as updated7_188_4_, businesspa8_.updatedby as updatedb8_188_4_, businesspa8_.value as value9_188_4_, businesspa8_.name as name10_188_4_, businesspa8_.name2 as name11_188_4_, businesspa8_.description as descrip12_188_4_, businesspa8_.issummary as issumma13_188_4_, businesspa8_.c_bp_group_id as c_bp_gr14_188_4_, businesspa8_.isonetime as isoneti15_188_4_, businesspa8_.isprospect as isprosp16_188_4_, businesspa8_.isvendor as isvendo17_188_4_, businesspa8_.iscustomer as iscusto18_188_4_, businesspa8_.isemployee as isemplo19_188_4_, businesspa8_.issalesrep as issales20_188_4_, businesspa8_.referenceno as referen21_188_4_, businesspa8_.duns as duns22_188_4_, businesspa8_.url as url23_188_4_, businesspa8_.ad_language as ad_lang24_188_4_, businesspa8_.taxid as taxid25_188_4_, businesspa8_.istaxexempt as istaxex26_188_4_, businesspa8_.c_invoiceschedule_id as c_invoi27_188_4_, businesspa8_.rating as rating28_188_4_, businesspa8_.salesvolume as salesvo29_188_4_, businesspa8_.numberemployees as numbere30_188_4_, businesspa8_.naics as naics31_188_4_, businesspa8_.firstsale as firstsa32_188_4_, businesspa8_.acqusitioncost as acqusit33_188_4_, businesspa8_.potentiallifetimevalue as potenti34_188_4_, businesspa8_.actuallifetimevalue as actuall35_188_4_, businesspa8_.shareofcustomer as shareof36_188_4_, businesspa8_.paymentrule as payment37_188_4_, businesspa8_.so_creditlimit as so_cred38_188_4_, businesspa8_.so_creditused as so_cred39_188_4_, businesspa8_.c_paymentterm_id as c_payme40_188_4_, businesspa8_.m_pricelist_id as m_price41_188_4_, businesspa8_.isdiscountprinted as isdisco42_188_4_, businesspa8_.so_description as so_desc43_188_4_, businesspa8_.poreference as porefer44_188_4_, businesspa8_.paymentrulepo as payment45_188_4_, businesspa8_.po_pricelist_id as po_pric46_188_4_, businesspa8_.po_paymentterm_id as po_paym47_188_4_, businesspa8_.documentcopies as documen48_188_4_, businesspa8_.c_greeting_id as c_greet49_188_4_, businesspa8_.invoicerule as invoice50_188_4_, businesspa8_.deliveryrule as deliver51_188_4_, businesspa8_.deliveryviarule as deliver52_188_4_, businesspa8_.salesrep_id as salesre53_188_4_, businesspa8_.bpartner_parent_id as bpartne54_188_4_, businesspa8_.socreditstatus as socredi55_188_4_, businesspa8_.ad_forced_org_id as ad_forc56_188_4_, businesspa8_.showpriceinorder as showpri57_188_4_, businesspa8_.invoicegrouping as invoice58_188_4_, businesspa8_.fixmonthday as fixmont59_188_4_, businesspa8_.fixmonthday2 as fixmont60_188_4_, businesspa8_.fixmonthday3 as fixmont61_188_4_, businesspa8_.isworker as isworke62_188_4_, businesspa8_.upc as upc63_188_4_, businesspa8_.c_salary_category_id as c_salar64_188_4_, businesspa8_.invoice_printformat as invoice65_188_4_, businesspa8_.last_days as last_da66_188_4_, businesspa8_.po_bankaccount_id as po_bank67_188_4_, businesspa8_.po_bp_taxcategory_id as po_bp_t68_188_4_, businesspa8_.po_fixmonthday as po_fixm69_188_4_, businesspa8_.po_fixmonthday2 as po_fixm70_188_4_, businesspa8_.po_fixmonthday3 as po_fixm71_188_4_, businesspa8_.so_bankaccount_id as so_bank72_188_4_, businesspa8_.so_bp_taxcategory_id as so_bp_t73_188_4_, businesspa8_.fiscalcode as fiscalc74_188_4_, businesspa8_.isofiscalcode as isofisc75_188_4_, businesspa8_.em_einv_einvoice as em_einv76_188_4_, businesspa8_.po_c_incoterms_id as po_c_in77_188_4_, businesspa8_.em_einv_format_id as em_einv78_188_4_, businesspa8_.so_c_incoterms_id as so_c_in79_188_4_, businesspa8_.em_einv_platform_id as em_einv80_188_4_, businesspa8_.fin_paymentmethod_id as fin_pay81_188_4_, businesspa8_.em_einv_email as em_einv82_188_4_, businesspa8_.po_paymentmethod_id as po_paym83_188_4_, businesspa8_.fin_financial_account_id as fin_fin84_188_4_, businesspa8_.em_einv_deliverymode as em_einv85_188_4_, businesspa8_.po_financial_account_id as po_fina86_188_4_, businesspa8_.customer_blocking as custome87_188_4_, businesspa8_.vendor_blocking as vendor_88_188_4_, businesspa8_.so_payment_blocking as so_paym89_188_4_, businesspa8_.po_payment_blocking as po_paym90_188_4_, businesspa8_.so_invoice_blocking as so_invo91_188_4_, businesspa8_.po_invoice_blocking as po_invo92_188_4_, businesspa8_.so_order_blocking as so_orde93_188_4_, businesspa8_.po_order_blocking as po_orde94_188_4_, businesspa8_.so_goods_blocking as so_good95_188_4_, businesspa8_.po_goods_blocking as po_good96_188_4_, businesspa8_.iscashvat as iscashv97_188_4_, businesspa8_.update_currency as update_98_188_4_, businesspa8_.bp_currency_id as bp_curr99_188_4_, businesspa8_.birthplace as birthp100_188_4_, businesspa8_.birthday as birthd101_188_4_, businesspa8_.is_customer_consent as is_cus102_188_4_, businesspa8_.em_obsepad_mandate_identifier as em_obs103_188_4_, businesspa8_.em_obsepad_mandate_date as em_obs104_188_4_, businesspa8_.em_aeatsii_rep_taxid as em_aea105_188_4_, businesspa8_.em_jr_inoutval as em_jr_106_188_4_, businesspa8_.em_aeatsii_menor as em_aea107_188_4_, businesspa8_.em_jr_isgeneric as em_jr_108_188_4_, businesspa8_.em_pruti_addbp as em_pru109_188_4_, businesspa8_.em_prei_iseinvoice as em_pre110_188_4_, businesspa8_.em_prei_format_id as em_pre111_188_4_, businesspa8_.em_pruti_unlock_date as em_pru112_188_4_, businesspa8_.em_prei_platform_id as em_pre113_188_4_, businesspa8_.em_pruti_unlock_order_date as em_pru114_188_4_, businesspa8_.em_prei_send_method as em_pre115_188_4_, businesspa8_.em_pruti_annexes_bp_so_id as em_pru116_188_4_, businesspa8_.em_prei_email as em_pre117_188_4_, businesspa8_.em_pruti_annexes_bp_po_id as em_pru118_188_4_, businesspa8_.em_prei_need_expedient as em_pre119_188_4_, businesspa8_.em_aeatsii_defaultsiikey as em_aea120_188_4_, businesspa8_.em_aeatsii_siikeylist as em_aea121_188_4_, businesspa8_.em_tbai_issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.em_pruti_notsendinvoice as em_pru124_188_4_, businesspa8_.em_obtik_tax_id_key as em_obt125_188_4_, attributes1_.ad_client_id as ad_clien2_418_5_, attributes1_.ad_org_id as ad_org_i3_418_5_, attributes1_.isactive as isactive4_418_5_, attributes1_.created as created5_418_5_, attributes1_.createdby as createdb6_418_5_, attributes1_.updated as updated7_418_5_, attributes1_.updatedby as updatedb8_418_5_, attributes1_.m_attributeset_id as m_attrib9_418_5_, attributes1_.serno as serno10_418_5_, attributes1_.lot as lot11_418_5_, attributes1_.guaranteedate as guarant12_418_5_, attributes1_.description as descrip13_418_5_, attributes1_.m_lot_id as m_lot_i14_418_5_, attributes1_.islocked as islocke15_418_5_, attributes1_.lock_description as lock_de16_418_5_, attributes1_.m_refinventory_id as m_refin17_418_5_, attributes1_.parent_attributesetinstance_id as parent_18_418_5_ from m_inoutline materialmg0_ left outer join m_attributesetinstance attributes1_ on materialmg0_.m_attributesetinstance_id=attributes1_.m_attributesetinstance_id inner join m_inout materialmg2_ on materialmg0_.m_inout_id=materialmg2_.m_inout_id inner join c_doctype documentty3_ on materialmg2_.c_doctype_id=documentty3_.c_doctype_id inner join c_bpartner businesspa8_ on materialmg2_.c_bpartner_id=businesspa8_.c_bpartner_id inner join ad_org organizati4_ on materialmg0_.ad_org_id=organizati4_.ad_org_id inner join ad_client adclient5_ on materialmg0_.ad_client_id=adclient5_.ad_client_id inner join m_product product6_ on materialmg0_.m_product_id=product6_.m_product_id inner join c_uom uom7_ on materialmg0_.c_uom_id=uom7_.c_uom_id where materialmg2_.c_bpartner_id=? and documentty3_.isreturn=? and materialmg2_.processed=? and materialmg2_.docstatus<>? and materialmg2_.issotrx=? and materialmg2_.isnettingshipment=? and materialmg0_.movementqty+coalesce((select sum(orderline38_.qtyordered) from c_orderline orderline38_ inner join c_order order39_ on orderline38_.c_order_id=order39_.c_order_id where orderline38_.m_inoutline_id=materialmg0_.m_inoutline_id and order39_.processed=? and order39_.docstatus<>?), ?)<>? and ?=? and (materialmg0_.ad_client_id in (...)) and (materialmg0_.ad_org_id in (...)) and (materialmg2_.movementdate>=now()? or case when (select ? from c_orderline orderline40_ where orderline40_.c_order_id=? and orderline40_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.movementdate desc, materialmg2_.documentno desc, materialmg0_.line limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 07 1 1s552ms 1s552ms 09 1 2s573ms 2s573ms [ User: tad - Total duration: 4s126ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s126ms - Times executed: 2 ]
-
select materialmg0_.M_InOutLine_ID as col_0_0_, materialmg0_.AD_Org_ID as col_1_0_, materialmg0_.AD_Client_ID as col_2_0_, materialmg0_.M_Product_ID as col_3_0_, materialmg0_.C_UOM_ID as col_4_0_, materialmg0_.M_InOutLine_ID as col_5_0_, materialmg0_.MovementQty as col_6_0_, materialmg2_.C_BPartner_ID as col_7_0_, materialmg2_.DocumentNo as col_8_0_, materialmg2_.MovementDate as col_9_0_, attributes1_.M_AttributeSetInstance_ID as col_10_0_, (select orderline9_.C_OrderLine_ID from C_OrderLine orderline9_ where orderline9_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline9_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_11_0_, (select uom10_.Name from C_UOM uom10_ where uom10_.C_UOM_ID in (case when (select 'Y' from C_OrderLine orderline11_ where orderline11_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline11_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline12_.C_Aum from C_OrderLine orderline12_ where orderline12_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline12_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 'Y') end)) as col_12_0_, case when materialmg0_.Aumqty is not null then materialmg0_.Aumqty else m_get_converted_aumqty(materialmg0_.M_Product_ID,materialmg0_.MovementQty,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID)) end as col_13_0_, case when (select 'Y' from C_OrderLine orderline13_ where orderline13_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline13_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when materialmg0_.C_Aum is not null then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline14_.C_Aum from C_OrderLine orderline14_ where orderline14_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline14_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), '') end as col_14_0_, (select uom15_.C_UOM_ID from C_UOM uom15_ where uom15_.C_UOM_ID in (case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end)) as col_15_0_, case when (select 'Y' from C_OrderLine orderline16_ where orderline16_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline16_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')='0' then to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID))) else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,materialmg0_.C_Aum)) end else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,coalesce((select orderline17_.C_Aum from C_OrderLine orderline17_ where orderline17_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline17_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), ''))) end as col_16_0_, coalesce((select sum(orderline18_.QtyOrdered) from C_OrderLine orderline18_ inner join C_Order order19_ on orderline18_.C_Order_ID=order19_.C_Order_ID where orderline18_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order19_.Processed='Y' and order19_.DocStatus<>'VO'), 0)*-1 as col_17_0_, case when (select 'Y' from C_OrderLine orderline20_ where orderline20_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline20_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end as col_18_0_, coalesce((select orderline21_.QtyOrdered from C_OrderLine orderline21_ where orderline21_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline21_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 0)*-1 as col_19_0_, (select orderline22_.C_Return_Reason_ID from C_OrderLine orderline22_ cross join C_Return_Reason returnreas23_ where orderline22_.C_Return_Reason_ID=returnreas23_.C_Return_Reason_ID and orderline22_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline22_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_20_0_, coalesce((select orderline24_.C_Tax_ID from C_OrderLine orderline24_ where orderline24_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline24_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline26_.C_Tax_ID from M_InOutLine materialmg25_ cross join C_OrderLine orderline26_ where materialmg25_.C_OrderLine_ID=orderline26_.C_OrderLine_ID and materialmg25_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) as col_21_0_, case when (select pricingpri28_.IsTaxIncluded from C_Order order27_ cross join M_PriceList pricingpri28_ where order27_.M_PriceList_ID=pricingpri28_.M_PriceList_ID and order27_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19')='Y' then coalesce((select orderline29_.PriceActual from C_OrderLine orderline29_ where orderline29_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline29_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline31_.Gross_Unit_Price from M_InOutLine materialmg30_ cross join C_OrderLine orderline31_ where materialmg30_.C_OrderLine_ID=orderline31_.C_OrderLine_ID and materialmg30_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) else coalesce((select orderline32_.PriceActual from C_OrderLine orderline32_ where orderline32_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline32_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline34_.PriceActual from M_InOutLine materialmg33_ cross join C_OrderLine orderline34_ where materialmg33_.C_OrderLine_ID=orderline34_.C_OrderLine_ID and materialmg33_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) end as col_22_0_, (select order37_.DocumentNo from M_InOutLine materialmg35_ cross join C_OrderLine orderline36_ cross join C_Order order37_ where materialmg35_.C_OrderLine_ID=orderline36_.C_OrderLine_ID and orderline36_.C_Order_ID=order37_.C_Order_ID and materialmg35_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID) as col_23_0_, organizati4_.AD_Org_ID as ad_org_i1_71_0_, adclient5_.AD_Client_ID as ad_clien1_18_1_, product6_.M_Product_ID as m_produc1_482_2_, uom7_.C_UOM_ID as c_uom_id1_322_3_, businesspa8_.C_BPartner_ID as c_bpartn1_188_4_, attributes1_.M_AttributeSetInstance_ID as m_attrib1_418_5_, organizati4_.AD_Client_ID as ad_clien2_71_0_, organizati4_.IsActive as isactive3_71_0_, organizati4_.Created as created4_71_0_, organizati4_.CreatedBy as createdb5_71_0_, organizati4_.Updated as updated6_71_0_, organizati4_.UpdatedBy as updatedb7_71_0_, organizati4_.Value as value8_71_0_, organizati4_.Name as name9_71_0_, organizati4_.Description as descrip10_71_0_, organizati4_.IsSummary as issumma11_71_0_, organizati4_.AD_Orgtype_ID as ad_orgt12_71_0_, organizati4_.IsPeriodControlAllowed as isperio13_71_0_, organizati4_.C_Calendar_ID as c_calen14_71_0_, organizati4_.IsReady as isready15_71_0_, organizati4_.EM_Intr_C_Calendar_ID as em_intr16_71_0_, organizati4_.Social_Name as social_17_71_0_, organizati4_.C_Currency_ID as c_curre18_71_0_, organizati4_.C_Acctschema_ID as c_accts19_71_0_, organizati4_.EM_APRM_Glitem_ID as em_aprm20_71_0_, organizati4_.EM_OBMFM_Product_ID as em_obmf21_71_0_, organizati4_.AD_Periodcontrolallowed_Org_ID as ad_peri22_71_0_, organizati4_.AD_Calendarowner_Org_ID as ad_cale23_71_0_, organizati4_.EM_Obwpack_Uom_ID as em_obwp24_71_0_, organizati4_.AD_Legalentity_Org_ID as ad_lega25_71_0_, organizati4_.AD_Inheritedcalendar_ID as ad_inhe26_71_0_, organizati4_.AD_Businessunit_Org_ID as ad_busi27_71_0_, organizati4_.EM_Etsg_Add_Certificate as em_etsg28_71_0_, organizati4_.EM_Prupc_Ad_Sequence_ID as em_prup29_71_0_, organizati4_.EM_Prupc_Locator_Sequence_ID as em_prup30_71_0_, organizati4_.C_Extbp_Enabled as c_extbp31_71_0_, organizati4_.C_Extbp_Config_ID as c_extbp32_71_0_, organizati4_.EM_Pruti_Planningmethod_ID as em_prut33_71_0_, organizati4_.EM_Obmobc_Credential_Timeout as em_obmo34_71_0_, adclient5_.AD_Org_ID as ad_org_i2_18_1_, adclient5_.IsActive as isactive3_18_1_, adclient5_.Created as created4_18_1_, adclient5_.CreatedBy as createdb5_18_1_, adclient5_.Updated as updated6_18_1_, adclient5_.UpdatedBy as updatedb7_18_1_, adclient5_.Value as value8_18_1_, adclient5_.Name as name9_18_1_, adclient5_.Description as descrip10_18_1_, adclient5_.SMTPHost as smtphos11_18_1_, adclient5_.RequestEMail as request12_18_1_, adclient5_.RequestUser as request13_18_1_, adclient5_.RequestUserPW as request14_18_1_, adclient5_.RequestFolder as request15_18_1_, adclient5_.AD_Language as ad_lang16_18_1_, adclient5_.IsMultiLingualDocument as ismulti17_18_1_, adclient5_.IsSmtpAuthorization as issmtpa18_18_1_, adclient5_.C_Currency_ID as c_curre19_18_1_, adclient5_.Acctdim_Centrally_Maintained as acctdim20_18_1_, adclient5_.Project_Acctdim_Isenable as project21_18_1_, adclient5_.Project_Acctdim_Header as project22_18_1_, adclient5_.Project_Acctdim_Lines as project23_18_1_, adclient5_.Project_Acctdim_Breakdown as project24_18_1_, adclient5_.Bpartner_Acctdim_Isenable as bpartne25_18_1_, adclient5_.Bpartner_Acctdim_Header as bpartne26_18_1_, adclient5_.Bpartner_Acctdim_Lines as bpartne27_18_1_, adclient5_.Bpartner_Acctdim_Breakdown as bpartne28_18_1_, adclient5_.Product_Acctdim_Isenable as product29_18_1_, adclient5_.Product_Acctdim_Header as product30_18_1_, adclient5_.Product_Acctdim_Lines as product31_18_1_, adclient5_.Product_Acctdim_Breakdown as product32_18_1_, adclient5_.Costcenter_Acctdim_Header as costcen33_18_1_, adclient5_.Costcenter_Acctdim_Lines as costcen34_18_1_, adclient5_.Costcenter_Acctdim_Breakdown as costcen35_18_1_, adclient5_.User1_Acctdim_Isenable as user36_18_1_, adclient5_.User1_Acctdim_Header as user37_18_1_, adclient5_.User1_Acctdim_Lines as user38_18_1_, adclient5_.User1_Acctdim_Breakdown as user39_18_1_, adclient5_.User2_Acctdim_Isenable as user40_18_1_, adclient5_.User2_Acctdim_Header as user41_18_1_, adclient5_.User2_Acctdim_Lines as user42_18_1_, adclient5_.User2_Acctdim_Breakdown as user43_18_1_, adclient5_.Costcenter_Acctdim_Isenable as costcen44_18_1_, adclient5_.Org_Acctdim_Isenable as org_acc45_18_1_, adclient5_.Org_Acctdim_Header as org_acc46_18_1_, adclient5_.Org_Acctdim_Lines as org_acc47_18_1_, adclient5_.Org_Acctdim_Breakdown as org_acc48_18_1_, adclient5_.DaysToPasswordExpiration as daystop49_18_1_, adclient5_.EM_Jr_Ftp_Image_Url as em_jr_f50_18_1_, adclient5_.EM_Pruti_Periodnotifications as em_prut51_18_1_, adclient5_.EM_Jr_Ftp_Image_Username as em_jr_f52_18_1_, adclient5_.EM_Jr_Ftp_Image_Password as em_jr_f53_18_1_, adclient5_.EM_Prupc_Upc_Password as em_prup54_18_1_, adclient5_.EM_Prsc_Tree_Prodcat_ID as em_prsc55_18_1_, adclient5_.EM_Pruti_Cleancache as em_prut56_18_1_, adclient5_.EM_Priuti_Openbravo_Url as em_priu57_18_1_, product6_.AD_Client_ID as ad_clien2_482_2_, product6_.AD_Org_ID as ad_org_i3_482_2_, product6_.IsActive as isactive4_482_2_, product6_.Created as created5_482_2_, product6_.CreatedBy as createdb6_482_2_, product6_.Updated as updated7_482_2_, product6_.UpdatedBy as updatedb8_482_2_, product6_.Value as value9_482_2_, product6_.Name as name10_482_2_, product6_.Description as descrip11_482_2_, product6_.DocumentNote as documen12_482_2_, product6_.Help as help13_482_2_, product6_.UPC as upc14_482_2_, product6_.SKU as sku15_482_2_, product6_.C_UOM_ID as c_uom_i16_482_2_, product6_.SalesRep_ID as salesre17_482_2_, product6_.IsSummary as issumma18_482_2_, product6_.IsStocked as isstock19_482_2_, product6_.IsPurchased as ispurch20_482_2_, product6_.IsSold as issold21_482_2_, product6_.IsBOM as isbom22_482_2_, product6_.IsInvoicePrintDetails as isinvoi23_482_2_, product6_.IsPickListPrintDetails as ispickl24_482_2_, product6_.IsVerified as isverif25_482_2_, product6_.M_Product_Category_ID as m_produ26_482_2_, product6_.Classification as classif27_482_2_, product6_.Volume as volume28_482_2_, product6_.Weight as weight29_482_2_, product6_.ShelfWidth as shelfwi30_482_2_, product6_.ShelfHeight as shelfhe31_482_2_, product6_.ShelfDepth as shelfde32_482_2_, product6_.UnitsPerPallet as unitspe33_482_2_, product6_.C_TaxCategory_ID as c_taxca34_482_2_, product6_.S_Resource_ID as s_resou35_482_2_, product6_.Discontinued as discont36_482_2_, product6_.DiscontinuedBy as discont37_482_2_, product6_.Processing as process38_482_2_, product6_.S_ExpenseType_ID as s_expen39_482_2_, product6_.ProductType as product40_482_2_, product6_.ImageURL as imageur41_482_2_, product6_.DescriptionURL as descrip42_482_2_, product6_.GuaranteeDays as guarant43_482_2_, product6_.VersionNo as version44_482_2_, product6_.M_AttributeSet_ID as m_attri45_482_2_, product6_.M_AttributeSetInstance_ID as m_attri46_482_2_, product6_.DownloadURL as downloa47_482_2_, product6_.M_FreightCategory_ID as m_freig48_482_2_, product6_.M_Locator_ID as m_locat49_482_2_, product6_.AD_Image_ID as ad_imag50_482_2_, product6_.C_BPartner_ID as c_bpart51_482_2_, product6_.Ispriceprinted as isprice52_482_2_, product6_.Name2 as name53_482_2_, product6_.Stock_Min as stock_m54_482_2_, product6_.Enforce_Attribute as enforce55_482_2_, product6_.Calculated as calcula56_482_2_, product6_.MA_Processplan_ID as ma_proc57_482_2_, product6_.Production as product58_482_2_, product6_.Capacity as capacit59_482_2_, product6_.Delaymin as delaymi60_482_2_, product6_.MRP_Planner_ID as mrp_pla61_482_2_, product6_.MRP_Planningmethod_ID as mrp_pla62_482_2_, product6_.Qtymax as qtymax63_482_2_, product6_.Qtymin as qtymin64_482_2_, product6_.Qtystd as qtystd65_482_2_, product6_.Qtytype as qtytype66_482_2_, product6_.Stockmin as stockmi67_482_2_, product6_.EM_Aeat347_Isleasebusiness as em_aeat68_482_2_, product6_.Attrsetvaluetype as attrset69_482_2_, product6_.EM_Aeat347_Situation as em_aeat70_482_2_, product6_.Isquantityvariable as isquant71_482_2_, product6_.Isdeferredrevenue as isdefer72_482_2_, product6_.EM_Aeat347_Referenceid as em_aeat73_482_2_, product6_.EM_Aeat347_Locationtype as em_aeat74_482_2_, product6_.Revplantype as revplan75_482_2_, product6_.EM_Aeat347_Streetname as em_aeat76_482_2_, product6_.Periodnumber as periodn77_482_2_, product6_.EM_Aeat347_Streetnumbertype as em_aeat78_482_2_, product6_.Isdeferredexpense as isdefer79_482_2_, product6_.EM_Aeat347_Streetnumber as em_aeat80_482_2_, product6_.Expplantype as expplan81_482_2_, product6_.EM_Aeat347_Streetnumberqua as em_aeat82_482_2_, product6_.Periodnumber_Exp as periodn83_482_2_, product6_.DefaultPeriod as default84_482_2_, product6_.EM_Aeat347_Building as em_aeat85_482_2_, product6_.DefaultPeriod_Exp as default86_482_2_, product6_.EM_Aeat347_Hall as em_aeat87_482_2_, product6_.Bookusingpoprice as bookusi88_482_2_, product6_.EM_Aeat347_Hallway as em_aeat89_482_2_, product6_.EM_Aeat347_Floor as em_aeat90_482_2_, product6_.C_Uom_Weight_ID as c_uom_w91_482_2_, product6_.M_Brand_ID as m_brand92_482_2_, product6_.EM_Aeat347_Apartment as em_aeat93_482_2_, product6_.EM_Aeat347_Complement as em_aeat94_482_2_, product6_.IsGeneric as isgener95_482_2_, product6_.EM_Aeat347_Location as em_aeat96_482_2_, product6_.Generic_Product_ID as generic97_482_2_, product6_.CreateVariants as createv98_482_2_, product6_.EM_Aeat347_County as em_aeat99_482_2_, product6_.Characteristic_Desc as charac100_482_2_, product6_.EM_Aeat347_Countycode as em_aea101_482_2_, product6_.EM_Aeat347_Regioncode as em_aea102_482_2_, product6_.Updateinvariants as update103_482_2_, product6_.EM_Aeat347_Zipcode as em_aea104_482_2_, product6_.ManageVariants as manage105_482_2_, product6_.Prod_Cat_Selection as prod_c106_482_2_, product6_.Product_Selection as produc107_482_2_, product6_.Print_Description as print_108_482_2_, product6_.Returnable as return109_482_2_, product6_.Overdue_Return_Days as overdu110_482_2_, product6_.Ispricerulebased as ispric111_482_2_, product6_.Unique_Per_Document as unique112_482_2_, product6_.Relateprodcattoservice as relate113_482_2_, product6_.Relateprodtoservice as relate114_482_2_, product6_.Islinkedtoproduct as islink115_482_2_, product6_.Quantity_Rule as quanti116_482_2_, product6_.Allow_Deferred_Sell as allow_117_482_2_, product6_.Deferred_Sell_Max_Days as deferr118_482_2_, product6_.M_Product_Status_ID as m_prod119_482_2_, product6_.Ismodifytax as ismodi120_482_2_, product6_.Relateprodcattaxtoservice as relate121_482_2_, product6_.Copyservicemodifytaxconfig as copyse122_482_2_, product6_.EM_Jr_Stocktype as em_jr_123_482_2_, product6_.EM_Obmupc_Multiupc_Desc as em_obm124_482_2_, product6_.EM_Prupc_Generate_Ean as em_pru125_482_2_, product6_.EM_Prsc_Isdeliverycosts as em_prs126_482_2_, product6_.EM_Pruti_Addmodifycharact as em_pru127_482_2_, uom7_.AD_Client_ID as ad_clien2_322_3_, uom7_.AD_Org_ID as ad_org_i3_322_3_, uom7_.IsActive as isactive4_322_3_, uom7_.Created as created5_322_3_, uom7_.Updated as updated6_322_3_, uom7_.CreatedBy as createdb7_322_3_, uom7_.UpdatedBy as updatedb8_322_3_, uom7_.X12DE355 as x9_322_3_, uom7_.UOMSymbol as uomsymb10_322_3_, uom7_.Name as name11_322_3_, uom7_.Description as descrip12_322_3_, uom7_.StdPrecision as stdprec13_322_3_, uom7_.CostingPrecision as costing14_322_3_, uom7_.IsDefault as isdefau15_322_3_, uom7_.Breakdown as breakdo16_322_3_, uom7_.UOM_Type as uom_typ17_322_3_, uom7_.EM_Obwpack_Isweight as em_obwp18_322_3_, uom7_.Useinproduction as useinpr19_322_3_, businesspa8_.AD_Client_ID as ad_clien2_188_4_, businesspa8_.AD_Org_ID as ad_org_i3_188_4_, businesspa8_.IsActive as isactive4_188_4_, businesspa8_.Created as created5_188_4_, businesspa8_.CreatedBy as createdb6_188_4_, businesspa8_.Updated as updated7_188_4_, businesspa8_.UpdatedBy as updatedb8_188_4_, businesspa8_.Value as value9_188_4_, businesspa8_.Name as name10_188_4_, businesspa8_.Name2 as name11_188_4_, businesspa8_.Description as descrip12_188_4_, businesspa8_.IsSummary as issumma13_188_4_, businesspa8_.C_BP_Group_ID as c_bp_gr14_188_4_, businesspa8_.IsOneTime as isoneti15_188_4_, businesspa8_.IsProspect as isprosp16_188_4_, businesspa8_.IsVendor as isvendo17_188_4_, businesspa8_.IsCustomer as iscusto18_188_4_, businesspa8_.IsEmployee as isemplo19_188_4_, businesspa8_.IsSalesRep as issales20_188_4_, businesspa8_.ReferenceNo as referen21_188_4_, businesspa8_.DUNS as duns22_188_4_, businesspa8_.URL as url23_188_4_, businesspa8_.AD_Language as ad_lang24_188_4_, businesspa8_.TaxID as taxid25_188_4_, businesspa8_.IsTaxExempt as istaxex26_188_4_, businesspa8_.C_InvoiceSchedule_ID as c_invoi27_188_4_, businesspa8_.Rating as rating28_188_4_, businesspa8_.SalesVolume as salesvo29_188_4_, businesspa8_.NumberEmployees as numbere30_188_4_, businesspa8_.NAICS as naics31_188_4_, businesspa8_.FirstSale as firstsa32_188_4_, businesspa8_.AcqusitionCost as acqusit33_188_4_, businesspa8_.PotentialLifeTimeValue as potenti34_188_4_, businesspa8_.ActualLifeTimeValue as actuall35_188_4_, businesspa8_.ShareOfCustomer as shareof36_188_4_, businesspa8_.PaymentRule as payment37_188_4_, businesspa8_.SO_CreditLimit as so_cred38_188_4_, businesspa8_.SO_CreditUsed as so_cred39_188_4_, businesspa8_.C_PaymentTerm_ID as c_payme40_188_4_, businesspa8_.M_PriceList_ID as m_price41_188_4_, businesspa8_.IsDiscountPrinted as isdisco42_188_4_, businesspa8_.SO_Description as so_desc43_188_4_, businesspa8_.POReference as porefer44_188_4_, businesspa8_.PaymentRulePO as payment45_188_4_, businesspa8_.PO_PriceList_ID as po_pric46_188_4_, businesspa8_.PO_PaymentTerm_ID as po_paym47_188_4_, businesspa8_.DocumentCopies as documen48_188_4_, businesspa8_.C_Greeting_ID as c_greet49_188_4_, businesspa8_.InvoiceRule as invoice50_188_4_, businesspa8_.DeliveryRule as deliver51_188_4_, businesspa8_.DeliveryViaRule as deliver52_188_4_, businesspa8_.SalesRep_ID as salesre53_188_4_, businesspa8_.BPartner_Parent_ID as bpartne54_188_4_, businesspa8_.SOCreditStatus as socredi55_188_4_, businesspa8_.AD_Forced_Org_ID as ad_forc56_188_4_, businesspa8_.ShowPriceInOrder as showpri57_188_4_, businesspa8_.Invoicegrouping as invoice58_188_4_, businesspa8_.FixMonthDay as fixmont59_188_4_, businesspa8_.FixMonthDay2 as fixmont60_188_4_, businesspa8_.Fixmonthday3 as fixmont61_188_4_, businesspa8_.Isworker as isworke62_188_4_, businesspa8_.UPC as upc63_188_4_, businesspa8_.C_Salary_Category_ID as c_salar64_188_4_, businesspa8_.Invoice_Printformat as invoice65_188_4_, businesspa8_.Last_Days as last_da66_188_4_, businesspa8_.PO_Bankaccount_ID as po_bank67_188_4_, businesspa8_.PO_BP_TaxCategory_ID as po_bp_t68_188_4_, businesspa8_.PO_Fixmonthday as po_fixm69_188_4_, businesspa8_.PO_Fixmonthday2 as po_fixm70_188_4_, businesspa8_.PO_Fixmonthday3 as po_fixm71_188_4_, businesspa8_.SO_Bankaccount_ID as so_bank72_188_4_, businesspa8_.SO_Bp_Taxcategory_ID as so_bp_t73_188_4_, businesspa8_.Fiscalcode as fiscalc74_188_4_, businesspa8_.Isofiscalcode as isofisc75_188_4_, businesspa8_.EM_Einv_Einvoice as em_einv76_188_4_, businesspa8_.PO_C_Incoterms_ID as po_c_in77_188_4_, businesspa8_.EM_Einv_Format_Id as em_einv78_188_4_, businesspa8_.SO_C_Incoterms_ID as so_c_in79_188_4_, businesspa8_.EM_Einv_Platform_Id as em_einv80_188_4_, businesspa8_.FIN_Paymentmethod_ID as fin_pay81_188_4_, businesspa8_.EM_Einv_Email as em_einv82_188_4_, businesspa8_.PO_Paymentmethod_ID as po_paym83_188_4_, businesspa8_.FIN_Financial_Account_ID as fin_fin84_188_4_, businesspa8_.EM_Einv_Deliverymode as em_einv85_188_4_, businesspa8_.PO_Financial_Account_ID as po_fina86_188_4_, businesspa8_.Customer_Blocking as custome87_188_4_, businesspa8_.Vendor_Blocking as vendor_88_188_4_, businesspa8_.SO_Payment_Blocking as so_paym89_188_4_, businesspa8_.PO_Payment_Blocking as po_paym90_188_4_, businesspa8_.SO_Invoice_Blocking as so_invo91_188_4_, businesspa8_.PO_Invoice_Blocking as po_invo92_188_4_, businesspa8_.SO_Order_Blocking as so_orde93_188_4_, businesspa8_.PO_Order_Blocking as po_orde94_188_4_, businesspa8_.SO_Goods_Blocking as so_good95_188_4_, businesspa8_.PO_Goods_Blocking as po_good96_188_4_, businesspa8_.Iscashvat as iscashv97_188_4_, businesspa8_.Update_Currency as update_98_188_4_, businesspa8_.BP_Currency_ID as bp_curr99_188_4_, businesspa8_.Birthplace as birthp100_188_4_, businesspa8_.Birthday as birthd101_188_4_, businesspa8_.Is_Customer_Consent as is_cus102_188_4_, businesspa8_.EM_Obsepad_Mandate_Identifier as em_obs103_188_4_, businesspa8_.EM_Obsepad_Mandate_Date as em_obs104_188_4_, businesspa8_.EM_Aeatsii_Rep_Taxid as em_aea105_188_4_, businesspa8_.EM_Jr_Inoutval as em_jr_106_188_4_, businesspa8_.EM_Aeatsii_Menor as em_aea107_188_4_, businesspa8_.EM_Jr_Isgeneric as em_jr_108_188_4_, businesspa8_.EM_Pruti_Addbp as em_pru109_188_4_, businesspa8_.EM_Prei_Iseinvoice as em_pre110_188_4_, businesspa8_.EM_Prei_Format_ID as em_pre111_188_4_, businesspa8_.EM_Pruti_Unlock_Date as em_pru112_188_4_, businesspa8_.EM_Prei_Platform_ID as em_pre113_188_4_, businesspa8_.EM_Pruti_Unlock_Order_Date as em_pru114_188_4_, businesspa8_.EM_Prei_Send_Method as em_pre115_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_So_ID as em_pru116_188_4_, businesspa8_.EM_Prei_Email as em_pre117_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_Po_ID as em_pru118_188_4_, businesspa8_.EM_Prei_Need_Expedient as em_pre119_188_4_, businesspa8_.EM_Aeatsii_Defaultsiikey as em_aea120_188_4_, businesspa8_.EM_Aeatsii_Siikeylist as em_aea121_188_4_, businesspa8_.EM_Tbai_Issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.EM_Pruti_Notsendinvoice as em_pru124_188_4_, businesspa8_.EM_OBTIK_Tax_ID_Key as em_obt125_188_4_, attributes1_.AD_Client_ID as ad_clien2_418_5_, attributes1_.AD_Org_ID as ad_org_i3_418_5_, attributes1_.IsActive as isactive4_418_5_, attributes1_.Created as created5_418_5_, attributes1_.CreatedBy as createdb6_418_5_, attributes1_.Updated as updated7_418_5_, attributes1_.UpdatedBy as updatedb8_418_5_, attributes1_.M_AttributeSet_ID as m_attrib9_418_5_, attributes1_.SerNo as serno10_418_5_, attributes1_.Lot as lot11_418_5_, attributes1_.GuaranteeDate as guarant12_418_5_, attributes1_.Description as descrip13_418_5_, attributes1_.M_Lot_ID as m_lot_i14_418_5_, attributes1_.Islocked as islocke15_418_5_, attributes1_.Lock_Description as lock_de16_418_5_, attributes1_.M_RefInventory_ID as m_refin17_418_5_, attributes1_.Parent_AttributeSetInstance_ID as parent_18_418_5_ from M_InOutLine materialmg0_ left outer join M_AttributeSetInstance attributes1_ on materialmg0_.M_AttributeSetInstance_ID=attributes1_.M_AttributeSetInstance_ID inner join M_InOut materialmg2_ on materialmg0_.M_InOut_ID=materialmg2_.M_InOut_ID inner join C_DocType documentty3_ on materialmg2_.C_DocType_ID=documentty3_.C_DocType_ID inner join C_BPartner businesspa8_ on materialmg2_.C_BPartner_ID=businesspa8_.C_BPartner_ID inner join AD_Org organizati4_ on materialmg0_.AD_Org_ID=organizati4_.AD_Org_ID inner join AD_Client adclient5_ on materialmg0_.AD_Client_ID=adclient5_.AD_Client_ID inner join M_Product product6_ on materialmg0_.M_Product_ID=product6_.M_Product_ID inner join C_UOM uom7_ on materialmg0_.C_UOM_ID=uom7_.C_UOM_ID where materialmg2_.C_BPartner_ID='1010332' and documentty3_.IsReturn='N' and materialmg2_.Processed='Y' and materialmg2_.DocStatus<>'VO' and materialmg2_.IsSOTrx='Y' and materialmg2_.Isnettingshipment='N' and materialmg0_.MovementQty+coalesce((select sum(orderline38_.QtyOrdered) from C_OrderLine orderline38_ inner join C_Order order39_ on orderline38_.C_Order_ID=order39_.C_Order_ID where orderline38_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order39_.Processed='Y' and order39_.DocStatus<>'VO'), 0)<>0 and 1=1 and (materialmg0_.AD_Client_ID in ('0' , '4E7785E633254999A6D7545B0BE57A46')) and (materialmg0_.AD_Org_ID in ('0' , 'C34A537D1464452783C0A7C7C913FC86' , '4A2127624482427B8B0BE0DD8ABF92D4' , '3724B485FEC444038C28CAEE0F24E7E6' , 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (materialmg2_.MovementDate>=now()-90 or case when (select 'Y' from C_OrderLine orderline40_ where orderline40_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline40_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.MovementDate desc, materialmg2_.DocumentNo desc, materialmg0_.Line limit '101';
Date: 2026-07-17 09:54:51 Duration: 2s573ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOutLine_ID as col_0_0_, materialmg0_.AD_Org_ID as col_1_0_, materialmg0_.AD_Client_ID as col_2_0_, materialmg0_.M_Product_ID as col_3_0_, materialmg0_.C_UOM_ID as col_4_0_, materialmg0_.M_InOutLine_ID as col_5_0_, materialmg0_.MovementQty as col_6_0_, materialmg2_.C_BPartner_ID as col_7_0_, materialmg2_.DocumentNo as col_8_0_, materialmg2_.MovementDate as col_9_0_, attributes1_.M_AttributeSetInstance_ID as col_10_0_, (select orderline9_.C_OrderLine_ID from C_OrderLine orderline9_ where orderline9_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline9_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_11_0_, (select uom10_.Name from C_UOM uom10_ where uom10_.C_UOM_ID in (case when (select 'Y' from C_OrderLine orderline11_ where orderline11_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline11_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline12_.C_Aum from C_OrderLine orderline12_ where orderline12_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline12_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 'Y') end)) as col_12_0_, case when materialmg0_.Aumqty is not null then materialmg0_.Aumqty else m_get_converted_aumqty(materialmg0_.M_Product_ID,materialmg0_.MovementQty,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID)) end as col_13_0_, case when (select 'Y' from C_OrderLine orderline13_ where orderline13_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline13_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when materialmg0_.C_Aum is not null then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline14_.C_Aum from C_OrderLine orderline14_ where orderline14_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline14_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), '') end as col_14_0_, (select uom15_.C_UOM_ID from C_UOM uom15_ where uom15_.C_UOM_ID in (case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end)) as col_15_0_, case when (select 'Y' from C_OrderLine orderline16_ where orderline16_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline16_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')='0' then to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID))) else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,materialmg0_.C_Aum)) end else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,coalesce((select orderline17_.C_Aum from C_OrderLine orderline17_ where orderline17_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline17_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), ''))) end as col_16_0_, coalesce((select sum(orderline18_.QtyOrdered) from C_OrderLine orderline18_ inner join C_Order order19_ on orderline18_.C_Order_ID=order19_.C_Order_ID where orderline18_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order19_.Processed='Y' and order19_.DocStatus<>'VO'), 0)*-1 as col_17_0_, case when (select 'Y' from C_OrderLine orderline20_ where orderline20_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline20_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end as col_18_0_, coalesce((select orderline21_.QtyOrdered from C_OrderLine orderline21_ where orderline21_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline21_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 0)*-1 as col_19_0_, (select orderline22_.C_Return_Reason_ID from C_OrderLine orderline22_ cross join C_Return_Reason returnreas23_ where orderline22_.C_Return_Reason_ID=returnreas23_.C_Return_Reason_ID and orderline22_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline22_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_20_0_, coalesce((select orderline24_.C_Tax_ID from C_OrderLine orderline24_ where orderline24_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline24_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline26_.C_Tax_ID from M_InOutLine materialmg25_ cross join C_OrderLine orderline26_ where materialmg25_.C_OrderLine_ID=orderline26_.C_OrderLine_ID and materialmg25_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) as col_21_0_, case when (select pricingpri28_.IsTaxIncluded from C_Order order27_ cross join M_PriceList pricingpri28_ where order27_.M_PriceList_ID=pricingpri28_.M_PriceList_ID and order27_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30')='Y' then coalesce((select orderline29_.PriceActual from C_OrderLine orderline29_ where orderline29_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline29_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline31_.Gross_Unit_Price from M_InOutLine materialmg30_ cross join C_OrderLine orderline31_ where materialmg30_.C_OrderLine_ID=orderline31_.C_OrderLine_ID and materialmg30_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) else coalesce((select orderline32_.PriceActual from C_OrderLine orderline32_ where orderline32_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline32_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline34_.PriceActual from M_InOutLine materialmg33_ cross join C_OrderLine orderline34_ where materialmg33_.C_OrderLine_ID=orderline34_.C_OrderLine_ID and materialmg33_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) end as col_22_0_, (select order37_.DocumentNo from M_InOutLine materialmg35_ cross join C_OrderLine orderline36_ cross join C_Order order37_ where materialmg35_.C_OrderLine_ID=orderline36_.C_OrderLine_ID and orderline36_.C_Order_ID=order37_.C_Order_ID and materialmg35_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID) as col_23_0_, organizati4_.AD_Org_ID as ad_org_i1_71_0_, adclient5_.AD_Client_ID as ad_clien1_18_1_, product6_.M_Product_ID as m_produc1_482_2_, uom7_.C_UOM_ID as c_uom_id1_322_3_, businesspa8_.C_BPartner_ID as c_bpartn1_188_4_, attributes1_.M_AttributeSetInstance_ID as m_attrib1_418_5_, organizati4_.AD_Client_ID as ad_clien2_71_0_, organizati4_.IsActive as isactive3_71_0_, organizati4_.Created as created4_71_0_, organizati4_.CreatedBy as createdb5_71_0_, organizati4_.Updated as updated6_71_0_, organizati4_.UpdatedBy as updatedb7_71_0_, organizati4_.Value as value8_71_0_, organizati4_.Name as name9_71_0_, organizati4_.Description as descrip10_71_0_, organizati4_.IsSummary as issumma11_71_0_, organizati4_.AD_Orgtype_ID as ad_orgt12_71_0_, organizati4_.IsPeriodControlAllowed as isperio13_71_0_, organizati4_.C_Calendar_ID as c_calen14_71_0_, organizati4_.IsReady as isready15_71_0_, organizati4_.EM_Intr_C_Calendar_ID as em_intr16_71_0_, organizati4_.Social_Name as social_17_71_0_, organizati4_.C_Currency_ID as c_curre18_71_0_, organizati4_.C_Acctschema_ID as c_accts19_71_0_, organizati4_.EM_APRM_Glitem_ID as em_aprm20_71_0_, organizati4_.EM_OBMFM_Product_ID as em_obmf21_71_0_, organizati4_.AD_Periodcontrolallowed_Org_ID as ad_peri22_71_0_, organizati4_.AD_Calendarowner_Org_ID as ad_cale23_71_0_, organizati4_.EM_Obwpack_Uom_ID as em_obwp24_71_0_, organizati4_.AD_Legalentity_Org_ID as ad_lega25_71_0_, organizati4_.AD_Inheritedcalendar_ID as ad_inhe26_71_0_, organizati4_.AD_Businessunit_Org_ID as ad_busi27_71_0_, organizati4_.EM_Etsg_Add_Certificate as em_etsg28_71_0_, organizati4_.EM_Prupc_Ad_Sequence_ID as em_prup29_71_0_, organizati4_.EM_Prupc_Locator_Sequence_ID as em_prup30_71_0_, organizati4_.C_Extbp_Enabled as c_extbp31_71_0_, organizati4_.C_Extbp_Config_ID as c_extbp32_71_0_, organizati4_.EM_Pruti_Planningmethod_ID as em_prut33_71_0_, organizati4_.EM_Obmobc_Credential_Timeout as em_obmo34_71_0_, adclient5_.AD_Org_ID as ad_org_i2_18_1_, adclient5_.IsActive as isactive3_18_1_, adclient5_.Created as created4_18_1_, adclient5_.CreatedBy as createdb5_18_1_, adclient5_.Updated as updated6_18_1_, adclient5_.UpdatedBy as updatedb7_18_1_, adclient5_.Value as value8_18_1_, adclient5_.Name as name9_18_1_, adclient5_.Description as descrip10_18_1_, adclient5_.SMTPHost as smtphos11_18_1_, adclient5_.RequestEMail as request12_18_1_, adclient5_.RequestUser as request13_18_1_, adclient5_.RequestUserPW as request14_18_1_, adclient5_.RequestFolder as request15_18_1_, adclient5_.AD_Language as ad_lang16_18_1_, adclient5_.IsMultiLingualDocument as ismulti17_18_1_, adclient5_.IsSmtpAuthorization as issmtpa18_18_1_, adclient5_.C_Currency_ID as c_curre19_18_1_, adclient5_.Acctdim_Centrally_Maintained as acctdim20_18_1_, adclient5_.Project_Acctdim_Isenable as project21_18_1_, adclient5_.Project_Acctdim_Header as project22_18_1_, adclient5_.Project_Acctdim_Lines as project23_18_1_, adclient5_.Project_Acctdim_Breakdown as project24_18_1_, adclient5_.Bpartner_Acctdim_Isenable as bpartne25_18_1_, adclient5_.Bpartner_Acctdim_Header as bpartne26_18_1_, adclient5_.Bpartner_Acctdim_Lines as bpartne27_18_1_, adclient5_.Bpartner_Acctdim_Breakdown as bpartne28_18_1_, adclient5_.Product_Acctdim_Isenable as product29_18_1_, adclient5_.Product_Acctdim_Header as product30_18_1_, adclient5_.Product_Acctdim_Lines as product31_18_1_, adclient5_.Product_Acctdim_Breakdown as product32_18_1_, adclient5_.Costcenter_Acctdim_Header as costcen33_18_1_, adclient5_.Costcenter_Acctdim_Lines as costcen34_18_1_, adclient5_.Costcenter_Acctdim_Breakdown as costcen35_18_1_, adclient5_.User1_Acctdim_Isenable as user36_18_1_, adclient5_.User1_Acctdim_Header as user37_18_1_, adclient5_.User1_Acctdim_Lines as user38_18_1_, adclient5_.User1_Acctdim_Breakdown as user39_18_1_, adclient5_.User2_Acctdim_Isenable as user40_18_1_, adclient5_.User2_Acctdim_Header as user41_18_1_, adclient5_.User2_Acctdim_Lines as user42_18_1_, adclient5_.User2_Acctdim_Breakdown as user43_18_1_, adclient5_.Costcenter_Acctdim_Isenable as costcen44_18_1_, adclient5_.Org_Acctdim_Isenable as org_acc45_18_1_, adclient5_.Org_Acctdim_Header as org_acc46_18_1_, adclient5_.Org_Acctdim_Lines as org_acc47_18_1_, adclient5_.Org_Acctdim_Breakdown as org_acc48_18_1_, adclient5_.DaysToPasswordExpiration as daystop49_18_1_, adclient5_.EM_Jr_Ftp_Image_Url as em_jr_f50_18_1_, adclient5_.EM_Pruti_Periodnotifications as em_prut51_18_1_, adclient5_.EM_Jr_Ftp_Image_Username as em_jr_f52_18_1_, adclient5_.EM_Jr_Ftp_Image_Password as em_jr_f53_18_1_, adclient5_.EM_Prupc_Upc_Password as em_prup54_18_1_, adclient5_.EM_Prsc_Tree_Prodcat_ID as em_prsc55_18_1_, adclient5_.EM_Pruti_Cleancache as em_prut56_18_1_, adclient5_.EM_Priuti_Openbravo_Url as em_priu57_18_1_, product6_.AD_Client_ID as ad_clien2_482_2_, product6_.AD_Org_ID as ad_org_i3_482_2_, product6_.IsActive as isactive4_482_2_, product6_.Created as created5_482_2_, product6_.CreatedBy as createdb6_482_2_, product6_.Updated as updated7_482_2_, product6_.UpdatedBy as updatedb8_482_2_, product6_.Value as value9_482_2_, product6_.Name as name10_482_2_, product6_.Description as descrip11_482_2_, product6_.DocumentNote as documen12_482_2_, product6_.Help as help13_482_2_, product6_.UPC as upc14_482_2_, product6_.SKU as sku15_482_2_, product6_.C_UOM_ID as c_uom_i16_482_2_, product6_.SalesRep_ID as salesre17_482_2_, product6_.IsSummary as issumma18_482_2_, product6_.IsStocked as isstock19_482_2_, product6_.IsPurchased as ispurch20_482_2_, product6_.IsSold as issold21_482_2_, product6_.IsBOM as isbom22_482_2_, product6_.IsInvoicePrintDetails as isinvoi23_482_2_, product6_.IsPickListPrintDetails as ispickl24_482_2_, product6_.IsVerified as isverif25_482_2_, product6_.M_Product_Category_ID as m_produ26_482_2_, product6_.Classification as classif27_482_2_, product6_.Volume as volume28_482_2_, product6_.Weight as weight29_482_2_, product6_.ShelfWidth as shelfwi30_482_2_, product6_.ShelfHeight as shelfhe31_482_2_, product6_.ShelfDepth as shelfde32_482_2_, product6_.UnitsPerPallet as unitspe33_482_2_, product6_.C_TaxCategory_ID as c_taxca34_482_2_, product6_.S_Resource_ID as s_resou35_482_2_, product6_.Discontinued as discont36_482_2_, product6_.DiscontinuedBy as discont37_482_2_, product6_.Processing as process38_482_2_, product6_.S_ExpenseType_ID as s_expen39_482_2_, product6_.ProductType as product40_482_2_, product6_.ImageURL as imageur41_482_2_, product6_.DescriptionURL as descrip42_482_2_, product6_.GuaranteeDays as guarant43_482_2_, product6_.VersionNo as version44_482_2_, product6_.M_AttributeSet_ID as m_attri45_482_2_, product6_.M_AttributeSetInstance_ID as m_attri46_482_2_, product6_.DownloadURL as downloa47_482_2_, product6_.M_FreightCategory_ID as m_freig48_482_2_, product6_.M_Locator_ID as m_locat49_482_2_, product6_.AD_Image_ID as ad_imag50_482_2_, product6_.C_BPartner_ID as c_bpart51_482_2_, product6_.Ispriceprinted as isprice52_482_2_, product6_.Name2 as name53_482_2_, product6_.Stock_Min as stock_m54_482_2_, product6_.Enforce_Attribute as enforce55_482_2_, product6_.Calculated as calcula56_482_2_, product6_.MA_Processplan_ID as ma_proc57_482_2_, product6_.Production as product58_482_2_, product6_.Capacity as capacit59_482_2_, product6_.Delaymin as delaymi60_482_2_, product6_.MRP_Planner_ID as mrp_pla61_482_2_, product6_.MRP_Planningmethod_ID as mrp_pla62_482_2_, product6_.Qtymax as qtymax63_482_2_, product6_.Qtymin as qtymin64_482_2_, product6_.Qtystd as qtystd65_482_2_, product6_.Qtytype as qtytype66_482_2_, product6_.Stockmin as stockmi67_482_2_, product6_.EM_Aeat347_Isleasebusiness as em_aeat68_482_2_, product6_.Attrsetvaluetype as attrset69_482_2_, product6_.EM_Aeat347_Situation as em_aeat70_482_2_, product6_.Isquantityvariable as isquant71_482_2_, product6_.Isdeferredrevenue as isdefer72_482_2_, product6_.EM_Aeat347_Referenceid as em_aeat73_482_2_, product6_.EM_Aeat347_Locationtype as em_aeat74_482_2_, product6_.Revplantype as revplan75_482_2_, product6_.EM_Aeat347_Streetname as em_aeat76_482_2_, product6_.Periodnumber as periodn77_482_2_, product6_.EM_Aeat347_Streetnumbertype as em_aeat78_482_2_, product6_.Isdeferredexpense as isdefer79_482_2_, product6_.EM_Aeat347_Streetnumber as em_aeat80_482_2_, product6_.Expplantype as expplan81_482_2_, product6_.EM_Aeat347_Streetnumberqua as em_aeat82_482_2_, product6_.Periodnumber_Exp as periodn83_482_2_, product6_.DefaultPeriod as default84_482_2_, product6_.EM_Aeat347_Building as em_aeat85_482_2_, product6_.DefaultPeriod_Exp as default86_482_2_, product6_.EM_Aeat347_Hall as em_aeat87_482_2_, product6_.Bookusingpoprice as bookusi88_482_2_, product6_.EM_Aeat347_Hallway as em_aeat89_482_2_, product6_.EM_Aeat347_Floor as em_aeat90_482_2_, product6_.C_Uom_Weight_ID as c_uom_w91_482_2_, product6_.M_Brand_ID as m_brand92_482_2_, product6_.EM_Aeat347_Apartment as em_aeat93_482_2_, product6_.EM_Aeat347_Complement as em_aeat94_482_2_, product6_.IsGeneric as isgener95_482_2_, product6_.EM_Aeat347_Location as em_aeat96_482_2_, product6_.Generic_Product_ID as generic97_482_2_, product6_.CreateVariants as createv98_482_2_, product6_.EM_Aeat347_County as em_aeat99_482_2_, product6_.Characteristic_Desc as charac100_482_2_, product6_.EM_Aeat347_Countycode as em_aea101_482_2_, product6_.EM_Aeat347_Regioncode as em_aea102_482_2_, product6_.Updateinvariants as update103_482_2_, product6_.EM_Aeat347_Zipcode as em_aea104_482_2_, product6_.ManageVariants as manage105_482_2_, product6_.Prod_Cat_Selection as prod_c106_482_2_, product6_.Product_Selection as produc107_482_2_, product6_.Print_Description as print_108_482_2_, product6_.Returnable as return109_482_2_, product6_.Overdue_Return_Days as overdu110_482_2_, product6_.Ispricerulebased as ispric111_482_2_, product6_.Unique_Per_Document as unique112_482_2_, product6_.Relateprodcattoservice as relate113_482_2_, product6_.Relateprodtoservice as relate114_482_2_, product6_.Islinkedtoproduct as islink115_482_2_, product6_.Quantity_Rule as quanti116_482_2_, product6_.Allow_Deferred_Sell as allow_117_482_2_, product6_.Deferred_Sell_Max_Days as deferr118_482_2_, product6_.M_Product_Status_ID as m_prod119_482_2_, product6_.Ismodifytax as ismodi120_482_2_, product6_.Relateprodcattaxtoservice as relate121_482_2_, product6_.Copyservicemodifytaxconfig as copyse122_482_2_, product6_.EM_Jr_Stocktype as em_jr_123_482_2_, product6_.EM_Obmupc_Multiupc_Desc as em_obm124_482_2_, product6_.EM_Prupc_Generate_Ean as em_pru125_482_2_, product6_.EM_Prsc_Isdeliverycosts as em_prs126_482_2_, product6_.EM_Pruti_Addmodifycharact as em_pru127_482_2_, uom7_.AD_Client_ID as ad_clien2_322_3_, uom7_.AD_Org_ID as ad_org_i3_322_3_, uom7_.IsActive as isactive4_322_3_, uom7_.Created as created5_322_3_, uom7_.Updated as updated6_322_3_, uom7_.CreatedBy as createdb7_322_3_, uom7_.UpdatedBy as updatedb8_322_3_, uom7_.X12DE355 as x9_322_3_, uom7_.UOMSymbol as uomsymb10_322_3_, uom7_.Name as name11_322_3_, uom7_.Description as descrip12_322_3_, uom7_.StdPrecision as stdprec13_322_3_, uom7_.CostingPrecision as costing14_322_3_, uom7_.IsDefault as isdefau15_322_3_, uom7_.Breakdown as breakdo16_322_3_, uom7_.UOM_Type as uom_typ17_322_3_, uom7_.EM_Obwpack_Isweight as em_obwp18_322_3_, uom7_.Useinproduction as useinpr19_322_3_, businesspa8_.AD_Client_ID as ad_clien2_188_4_, businesspa8_.AD_Org_ID as ad_org_i3_188_4_, businesspa8_.IsActive as isactive4_188_4_, businesspa8_.Created as created5_188_4_, businesspa8_.CreatedBy as createdb6_188_4_, businesspa8_.Updated as updated7_188_4_, businesspa8_.UpdatedBy as updatedb8_188_4_, businesspa8_.Value as value9_188_4_, businesspa8_.Name as name10_188_4_, businesspa8_.Name2 as name11_188_4_, businesspa8_.Description as descrip12_188_4_, businesspa8_.IsSummary as issumma13_188_4_, businesspa8_.C_BP_Group_ID as c_bp_gr14_188_4_, businesspa8_.IsOneTime as isoneti15_188_4_, businesspa8_.IsProspect as isprosp16_188_4_, businesspa8_.IsVendor as isvendo17_188_4_, businesspa8_.IsCustomer as iscusto18_188_4_, businesspa8_.IsEmployee as isemplo19_188_4_, businesspa8_.IsSalesRep as issales20_188_4_, businesspa8_.ReferenceNo as referen21_188_4_, businesspa8_.DUNS as duns22_188_4_, businesspa8_.URL as url23_188_4_, businesspa8_.AD_Language as ad_lang24_188_4_, businesspa8_.TaxID as taxid25_188_4_, businesspa8_.IsTaxExempt as istaxex26_188_4_, businesspa8_.C_InvoiceSchedule_ID as c_invoi27_188_4_, businesspa8_.Rating as rating28_188_4_, businesspa8_.SalesVolume as salesvo29_188_4_, businesspa8_.NumberEmployees as numbere30_188_4_, businesspa8_.NAICS as naics31_188_4_, businesspa8_.FirstSale as firstsa32_188_4_, businesspa8_.AcqusitionCost as acqusit33_188_4_, businesspa8_.PotentialLifeTimeValue as potenti34_188_4_, businesspa8_.ActualLifeTimeValue as actuall35_188_4_, businesspa8_.ShareOfCustomer as shareof36_188_4_, businesspa8_.PaymentRule as payment37_188_4_, businesspa8_.SO_CreditLimit as so_cred38_188_4_, businesspa8_.SO_CreditUsed as so_cred39_188_4_, businesspa8_.C_PaymentTerm_ID as c_payme40_188_4_, businesspa8_.M_PriceList_ID as m_price41_188_4_, businesspa8_.IsDiscountPrinted as isdisco42_188_4_, businesspa8_.SO_Description as so_desc43_188_4_, businesspa8_.POReference as porefer44_188_4_, businesspa8_.PaymentRulePO as payment45_188_4_, businesspa8_.PO_PriceList_ID as po_pric46_188_4_, businesspa8_.PO_PaymentTerm_ID as po_paym47_188_4_, businesspa8_.DocumentCopies as documen48_188_4_, businesspa8_.C_Greeting_ID as c_greet49_188_4_, businesspa8_.InvoiceRule as invoice50_188_4_, businesspa8_.DeliveryRule as deliver51_188_4_, businesspa8_.DeliveryViaRule as deliver52_188_4_, businesspa8_.SalesRep_ID as salesre53_188_4_, businesspa8_.BPartner_Parent_ID as bpartne54_188_4_, businesspa8_.SOCreditStatus as socredi55_188_4_, businesspa8_.AD_Forced_Org_ID as ad_forc56_188_4_, businesspa8_.ShowPriceInOrder as showpri57_188_4_, businesspa8_.Invoicegrouping as invoice58_188_4_, businesspa8_.FixMonthDay as fixmont59_188_4_, businesspa8_.FixMonthDay2 as fixmont60_188_4_, businesspa8_.Fixmonthday3 as fixmont61_188_4_, businesspa8_.Isworker as isworke62_188_4_, businesspa8_.UPC as upc63_188_4_, businesspa8_.C_Salary_Category_ID as c_salar64_188_4_, businesspa8_.Invoice_Printformat as invoice65_188_4_, businesspa8_.Last_Days as last_da66_188_4_, businesspa8_.PO_Bankaccount_ID as po_bank67_188_4_, businesspa8_.PO_BP_TaxCategory_ID as po_bp_t68_188_4_, businesspa8_.PO_Fixmonthday as po_fixm69_188_4_, businesspa8_.PO_Fixmonthday2 as po_fixm70_188_4_, businesspa8_.PO_Fixmonthday3 as po_fixm71_188_4_, businesspa8_.SO_Bankaccount_ID as so_bank72_188_4_, businesspa8_.SO_Bp_Taxcategory_ID as so_bp_t73_188_4_, businesspa8_.Fiscalcode as fiscalc74_188_4_, businesspa8_.Isofiscalcode as isofisc75_188_4_, businesspa8_.EM_Einv_Einvoice as em_einv76_188_4_, businesspa8_.PO_C_Incoterms_ID as po_c_in77_188_4_, businesspa8_.EM_Einv_Format_Id as em_einv78_188_4_, businesspa8_.SO_C_Incoterms_ID as so_c_in79_188_4_, businesspa8_.EM_Einv_Platform_Id as em_einv80_188_4_, businesspa8_.FIN_Paymentmethod_ID as fin_pay81_188_4_, businesspa8_.EM_Einv_Email as em_einv82_188_4_, businesspa8_.PO_Paymentmethod_ID as po_paym83_188_4_, businesspa8_.FIN_Financial_Account_ID as fin_fin84_188_4_, businesspa8_.EM_Einv_Deliverymode as em_einv85_188_4_, businesspa8_.PO_Financial_Account_ID as po_fina86_188_4_, businesspa8_.Customer_Blocking as custome87_188_4_, businesspa8_.Vendor_Blocking as vendor_88_188_4_, businesspa8_.SO_Payment_Blocking as so_paym89_188_4_, businesspa8_.PO_Payment_Blocking as po_paym90_188_4_, businesspa8_.SO_Invoice_Blocking as so_invo91_188_4_, businesspa8_.PO_Invoice_Blocking as po_invo92_188_4_, businesspa8_.SO_Order_Blocking as so_orde93_188_4_, businesspa8_.PO_Order_Blocking as po_orde94_188_4_, businesspa8_.SO_Goods_Blocking as so_good95_188_4_, businesspa8_.PO_Goods_Blocking as po_good96_188_4_, businesspa8_.Iscashvat as iscashv97_188_4_, businesspa8_.Update_Currency as update_98_188_4_, businesspa8_.BP_Currency_ID as bp_curr99_188_4_, businesspa8_.Birthplace as birthp100_188_4_, businesspa8_.Birthday as birthd101_188_4_, businesspa8_.Is_Customer_Consent as is_cus102_188_4_, businesspa8_.EM_Obsepad_Mandate_Identifier as em_obs103_188_4_, businesspa8_.EM_Obsepad_Mandate_Date as em_obs104_188_4_, businesspa8_.EM_Aeatsii_Rep_Taxid as em_aea105_188_4_, businesspa8_.EM_Jr_Inoutval as em_jr_106_188_4_, businesspa8_.EM_Aeatsii_Menor as em_aea107_188_4_, businesspa8_.EM_Jr_Isgeneric as em_jr_108_188_4_, businesspa8_.EM_Pruti_Addbp as em_pru109_188_4_, businesspa8_.EM_Prei_Iseinvoice as em_pre110_188_4_, businesspa8_.EM_Prei_Format_ID as em_pre111_188_4_, businesspa8_.EM_Pruti_Unlock_Date as em_pru112_188_4_, businesspa8_.EM_Prei_Platform_ID as em_pre113_188_4_, businesspa8_.EM_Pruti_Unlock_Order_Date as em_pru114_188_4_, businesspa8_.EM_Prei_Send_Method as em_pre115_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_So_ID as em_pru116_188_4_, businesspa8_.EM_Prei_Email as em_pre117_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_Po_ID as em_pru118_188_4_, businesspa8_.EM_Prei_Need_Expedient as em_pre119_188_4_, businesspa8_.EM_Aeatsii_Defaultsiikey as em_aea120_188_4_, businesspa8_.EM_Aeatsii_Siikeylist as em_aea121_188_4_, businesspa8_.EM_Tbai_Issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.EM_Pruti_Notsendinvoice as em_pru124_188_4_, businesspa8_.EM_OBTIK_Tax_ID_Key as em_obt125_188_4_, attributes1_.AD_Client_ID as ad_clien2_418_5_, attributes1_.AD_Org_ID as ad_org_i3_418_5_, attributes1_.IsActive as isactive4_418_5_, attributes1_.Created as created5_418_5_, attributes1_.CreatedBy as createdb6_418_5_, attributes1_.Updated as updated7_418_5_, attributes1_.UpdatedBy as updatedb8_418_5_, attributes1_.M_AttributeSet_ID as m_attrib9_418_5_, attributes1_.SerNo as serno10_418_5_, attributes1_.Lot as lot11_418_5_, attributes1_.GuaranteeDate as guarant12_418_5_, attributes1_.Description as descrip13_418_5_, attributes1_.M_Lot_ID as m_lot_i14_418_5_, attributes1_.Islocked as islocke15_418_5_, attributes1_.Lock_Description as lock_de16_418_5_, attributes1_.M_RefInventory_ID as m_refin17_418_5_, attributes1_.Parent_AttributeSetInstance_ID as parent_18_418_5_ from M_InOutLine materialmg0_ left outer join M_AttributeSetInstance attributes1_ on materialmg0_.M_AttributeSetInstance_ID=attributes1_.M_AttributeSetInstance_ID inner join M_InOut materialmg2_ on materialmg0_.M_InOut_ID=materialmg2_.M_InOut_ID inner join C_DocType documentty3_ on materialmg2_.C_DocType_ID=documentty3_.C_DocType_ID inner join C_BPartner businesspa8_ on materialmg2_.C_BPartner_ID=businesspa8_.C_BPartner_ID inner join AD_Org organizati4_ on materialmg0_.AD_Org_ID=organizati4_.AD_Org_ID inner join AD_Client adclient5_ on materialmg0_.AD_Client_ID=adclient5_.AD_Client_ID inner join M_Product product6_ on materialmg0_.M_Product_ID=product6_.M_Product_ID inner join C_UOM uom7_ on materialmg0_.C_UOM_ID=uom7_.C_UOM_ID where materialmg2_.C_BPartner_ID='B52887A42D024FEB898F473500E02606' and documentty3_.IsReturn='N' and materialmg2_.Processed='Y' and materialmg2_.DocStatus<>'VO' and materialmg2_.IsSOTrx='Y' and materialmg2_.Isnettingshipment='N' and materialmg0_.MovementQty+coalesce((select sum(orderline38_.QtyOrdered) from C_OrderLine orderline38_ inner join C_Order order39_ on orderline38_.C_Order_ID=order39_.C_Order_ID where orderline38_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order39_.Processed='Y' and order39_.DocStatus<>'VO'), 0)<>0 and 1=1 and (materialmg0_.AD_Client_ID in ('0' , '4E7785E633254999A6D7545B0BE57A46')) and (materialmg0_.AD_Org_ID in ('0' , 'C34A537D1464452783C0A7C7C913FC86' , '4A2127624482427B8B0BE0DD8ABF92D4' , '3724B485FEC444038C28CAEE0F24E7E6' , 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (materialmg2_.MovementDate>=now()-90 or case when (select 'Y' from C_OrderLine orderline40_ where orderline40_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline40_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.MovementDate desc, materialmg2_.DocumentNo desc, materialmg0_.Line limit '101';
Date: 2026-07-17 07:51:01 Duration: 1s552ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 3s214ms 2 1s340ms 1s873ms 1s607ms select * from c_invoice_post0 (?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 11 2 3s214ms 1s607ms [ User: tad - Total duration: 3s214ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 3s214ms - Times executed: 2 ]
-
SELECT * FROM C_Invoice_Post0 ('2DEBEC6634F44757BDE48CE86ACDE4E4');
Date: 2026-07-17 11:24:41 Duration: 1s873ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_Invoice_Post0 ('CDAA9C8F647B43599AE12D3528E358F6');
Date: 2026-07-17 11:33:19 Duration: 1s340ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 2s828ms 1 2s828ms 2s828ms 2s828ms select invoice0_.c_invoice_id as c_invoic1_247_, invoice0_.ad_client_id as ad_clien2_247_, invoice0_.ad_org_id as ad_org_i3_247_, invoice0_.isactive as isactive4_247_, invoice0_.created as created5_247_, invoice0_.createdby as createdb6_247_, invoice0_.updated as updated7_247_, invoice0_.updatedby as updatedb8_247_, invoice0_.issotrx as issotrx9_247_, invoice0_.documentno as documen10_247_, invoice0_.docstatus as docstat11_247_, invoice0_.docaction as docacti12_247_, invoice0_.processing as process13_247_, invoice0_.processed as process14_247_, invoice0_.posted as posted15_247_, invoice0_.c_doctype_id as c_docty16_247_, invoice0_.c_doctypetarget_id as c_docty17_247_, invoice0_.c_order_id as c_order18_247_, invoice0_.description as descrip19_247_, invoice0_.isprinted as isprint20_247_, invoice0_.salesrep_id as salesre21_247_, invoice0_.dateinvoiced as dateinv22_247_, invoice0_.dateprinted as datepri23_247_, invoice0_.dateacct as dateacc24_247_, invoice0_.c_bpartner_id as c_bpart25_247_, invoice0_.c_bpartner_location_id as c_bpart26_247_, invoice0_.poreference as porefer27_247_, invoice0_.isdiscountprinted as isdisco28_247_, invoice0_.dateordered as dateord29_247_, invoice0_.c_currency_id as c_curre30_247_, invoice0_.c_paymentterm_id as c_payme31_247_, invoice0_.c_charge_id as c_charg32_247_, invoice0_.chargeamt as chargea33_247_, invoice0_.totallines as totalli34_247_, invoice0_.grandtotal as grandto35_247_, invoice0_.m_pricelist_id as m_price36_247_, invoice0_.istaxincluded as istaxin37_247_, invoice0_.c_campaign_id as c_campa38_247_, invoice0_.c_project_id as c_proje39_247_, invoice0_.c_activity_id as c_activ40_247_, invoice0_.createfrom as createf41_247_, invoice0_.generateto as generat42_247_, invoice0_.ad_user_id as ad_user43_247_, invoice0_.copyfrom as copyfro44_247_, invoice0_.isselfservice as isselfs45_247_, invoice0_.ad_orgtrx_id as ad_orgt46_247_, invoice0_.user1_id as user47_247_, invoice0_.user2_id as user48_247_, invoice0_.withholdingamount as withhol49_247_, invoice0_.taxdate as taxdate50_247_, invoice0_.c_withholding_id as c_withh51_247_, invoice0_.ispaid as ispaid52_247_, invoice0_.em_einv_generated as em_einv53_247_, invoice0_.totalpaid as totalpa54_247_, invoice0_.em_einv_sent as em_einv55_247_, invoice0_.outstandingamt as outstan56_247_, invoice0_.daystilldue as daystil57_247_, invoice0_.dueamt as dueamt58_247_, invoice0_.lastcalculatedondate as lastcal59_247_, invoice0_.fin_paymentmethod_id as fin_pay60_247_, invoice0_.fin_payment_priority_id as fin_pay61_247_, invoice0_.finalsettlement as finalse62_247_, invoice0_.daysoutstanding as daysout63_247_, invoice0_.percentageoverdue as percent64_247_, invoice0_.c_costcenter_id as c_costc65_247_, invoice0_.calculate_promotions as calcula66_247_, invoice0_.a_asset_id as a_asset67_247_, invoice0_.em_aprm_addpayment as em_aprm68_247_, invoice0_.iscashvat as iscashv69_247_, invoice0_.em_aprm_processinvoice as em_aprm70_247_, invoice0_.em_obcma_c_poc_email_id as em_obcm71_247_, invoice0_.prepaymentamt as prepaym72_247_, invoice0_.createfromorders as createf73_247_, invoice0_.createfrominouts as createf74_247_, invoice0_.em_prei_iseinvoiced as em_prei75_247_, invoice0_.paidamtatinvoicing as paidamt76_247_, invoice0_.em_prei_generateeinvoice as em_prei77_247_, invoice0_.bpartner_extref as bpartne78_247_, invoice0_.em_prei_gen_and_send_e_inv as em_prei79_247_, invoice0_.em_aeatsii_send as em_aeat80_247_, invoice0_.em_etblkp_accountingstatus as em_etbl81_247_, invoice0_.em_aeatsii_issent as em_aeat82_247_, invoice0_.em_etabam_bankaccount_id as em_etab83_247_, invoice0_.em_etafdp_unvoid as em_etaf84_247_, invoice0_.em_etblkp_bulkposting as em_etbl85_247_, invoice0_.em_etpr_remove_payment as em_etpr86_247_, invoice0_.em_jr_amount as em_jr_a87_247_, invoice0_.em_prei_sended as em_prei88_247_, invoice0_.em_prsc_iscommissionable as em_prsc89_247_, invoice0_.em_aeatsii_fecha_operacion as em_aeat90_247_, invoice0_.em_etblkc_bulkcompletion as em_etbl91_247_, invoice0_.em_aeatsii_clave_tipo as em_aeat92_247_, invoice0_.em_etinter_interco_orig as em_etin93_247_, invoice0_.em_aeatsii_motivo_rectif as em_aeat94_247_, invoice0_.em_prouti_recalculate_price as em_prou95_247_, invoice0_.em_aeatsii_clave_tipo_fc as em_aeat96_247_, invoice0_.em_ml_select_product as em_ml_s97_247_, invoice0_.em_prouti_pricecalculatetdate as em_prou98_247_, invoice0_.em_tbai_qrcode as em_tbai99_247_, invoice0_.em_aeatsii_tipo_rectif as em_aea100_247_, invoice0_.em_prouti_totalizations as em_pro101_247_, invoice0_.em_tbai_url as em_tba102_247_, invoice0_.em_aeatsii_dua as em_aea103_247_, invoice0_.em_tbai_xmlgenerator as em_tba104_247_, invoice0_.em_aeatsii_fecha_dua as em_aea105_247_, invoice0_.em_tbai_signaturevalue as em_tba106_247_, invoice0_.em_aeatsii_estado as em_aea107_247_, invoice0_.em_tbai_sequence as em_tba108_247_, invoice0_.em_aeatsii_error_registral as em_aea109_247_, invoice0_.em_prsc_commissiontype as em_prs110_247_, invoice0_.em_tbai_idtbai as em_tba111_247_, invoice0_.em_aeatsii_modif as em_aea112_247_, invoice0_.em_etvfac_date_issue as em_etv113_247_, invoice0_.em_prsc_allowcommission as em_prs114_247_, invoice0_.em_tbai_reverseinvoicecode as em_tba115_247_, invoice0_.em_aeatsii_modified as em_aea116_247_, invoice0_.em_etvfac_issue as em_etv117_247_, invoice0_.em_tbai_issent as em_tba118_247_, invoice0_.em_aeatsii_description_id as em_aea119_247_, invoice0_.em_etvfac_issue_description as em_etv120_247_, invoice0_.em_tbai_reverseinvoicetype as em_tba121_247_, invoice0_.em_aeatsii_descripcion_sii as em_aea122_247_, invoice0_.em_tbai_isreverseinvoice as em_tba123_247_, invoice0_.em_aeatsii_fecha_reg_cont as em_aea124_247_, invoice0_.em_tbai_invoiceseq as em_tba125_247_, invoice0_.em_aeatsii_dup as em_aea126_247_, invoice0_.em_tbai_invoicenum as em_tba127_247_, invoice0_.em_aeatsii_error_code as em_aea128_247_, invoice0_.em_aeatsii_error_msg as em_aea129_247_, invoice0_.em_priuti_createpurchinv as em_pri130_247_, invoice0_.em_aeatsii_unsubscribe as em_aea131_247_, invoice0_.em_priuti_generated as em_pri132_247_, invoice0_.em_aeatsii_pur_description_id as em_aea133_247_, invoice0_.em_priuti_date_complete as em_pri134_247_, invoice0_.em_priuti_user_complete_id as em_pri135_247_, invoice0_.em_aeatsii_multi_dua as em_aea136_247_, invoice0_.em_priuti_status_of_review as em_pri137_247_, invoice0_.em_aeatsii_ejercicio as em_aea138_247_, invoice0_.em_priuti_validate as em_pri139_247_, invoice0_.em_aeatsii_periodo as em_aea140_247_, invoice0_.em_priuti_start_review as em_pri141_247_, invoice0_.em_aeatsii_autofactura as em_aea142_247_, invoice0_.em_aeatsii_invoice_id as em_aea143_247_, invoice0_.em_aeatsii_insiidate as em_aea144_247_, invoice0_.em_aeatsii_cause_exemption_id as em_aea145_247_, invoice0_.em_aeatsii_isauthorization as em_aea146_247_, invoice0_.em_aeatsii_authorizationno as em_aea147_247_, invoice0_.em_etvfac_invoice_status as em_etv148_247_, invoice0_.em_etvfac_senttoverifac as em_etv149_247_, invoice0_.em_etvfac_inv_type as em_etv150_247_, invoice0_.em_etvfac_invnoidart61d as em_etv151_247_, invoice0_.em_etvfac_verifac_desc as em_etv152_247_, invoice0_.em_etvfac_date_operation as em_etv153_247_, invoice0_.em_etvfac_reverseinvtype as em_etv154_247_, invoice0_.em_tbai_issue_date as em_tba155_247_, invoice0_.em_etvfac_external_ref as em_etv156_247_, invoice0_.em_etvfac_hash as em_etv157_247_, invoice0_.em_tbai_date_operation as em_tba158_247_, invoice0_.em_etvfac_issubsanation as em_etv159_247_, invoice0_.em_etvfac_void as em_etv160_247_, invoice0_.em_tbai_voidxmlgenerator as em_tba161_247_, invoice0_.em_pruti_notsendinvoice as em_pru162_247_, invoice0_.em_etvfac_simpinvart7273 as em_etv163_247_ from c_invoice invoice0_ left outer join fin_payment_schedule finpayment1_ on invoice0_.c_invoice_id = finpayment1_.c_invoice_id where invoice0_.processed = ? and (invoice0_.ispaid = ? or finpayment1_.updated >= invoice0_.lastcalculatedondate or invoice0_.outstandingamt <> ? or invoice0_.finalsettlement is null) and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) and invoice0_.isactive = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 14 1 2s828ms 2s828ms [ User: tad - Total duration: 2s828ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s828ms - Times executed: 1 ]
-
select invoice0_.C_Invoice_ID as c_invoic1_247_, invoice0_.AD_Client_ID as ad_clien2_247_, invoice0_.AD_Org_ID as ad_org_i3_247_, invoice0_.IsActive as isactive4_247_, invoice0_.Created as created5_247_, invoice0_.CreatedBy as createdb6_247_, invoice0_.Updated as updated7_247_, invoice0_.UpdatedBy as updatedb8_247_, invoice0_.IsSOTrx as issotrx9_247_, invoice0_.DocumentNo as documen10_247_, invoice0_.DocStatus as docstat11_247_, invoice0_.DocAction as docacti12_247_, invoice0_.Processing as process13_247_, invoice0_.Processed as process14_247_, invoice0_.Posted as posted15_247_, invoice0_.C_DocType_ID as c_docty16_247_, invoice0_.C_DocTypeTarget_ID as c_docty17_247_, invoice0_.C_Order_ID as c_order18_247_, invoice0_.Description as descrip19_247_, invoice0_.IsPrinted as isprint20_247_, invoice0_.SalesRep_ID as salesre21_247_, invoice0_.DateInvoiced as dateinv22_247_, invoice0_.DatePrinted as datepri23_247_, invoice0_.DateAcct as dateacc24_247_, invoice0_.C_BPartner_ID as c_bpart25_247_, invoice0_.C_BPartner_Location_ID as c_bpart26_247_, invoice0_.POReference as porefer27_247_, invoice0_.IsDiscountPrinted as isdisco28_247_, invoice0_.DateOrdered as dateord29_247_, invoice0_.C_Currency_ID as c_curre30_247_, invoice0_.C_PaymentTerm_ID as c_payme31_247_, invoice0_.C_Charge_ID as c_charg32_247_, invoice0_.ChargeAmt as chargea33_247_, invoice0_.TotalLines as totalli34_247_, invoice0_.GrandTotal as grandto35_247_, invoice0_.M_PriceList_ID as m_price36_247_, invoice0_.IsTaxIncluded as istaxin37_247_, invoice0_.C_Campaign_ID as c_campa38_247_, invoice0_.C_Project_ID as c_proje39_247_, invoice0_.C_Activity_ID as c_activ40_247_, invoice0_.CreateFrom as createf41_247_, invoice0_.GenerateTo as generat42_247_, invoice0_.AD_User_ID as ad_user43_247_, invoice0_.CopyFrom as copyfro44_247_, invoice0_.IsSelfService as isselfs45_247_, invoice0_.AD_OrgTrx_ID as ad_orgt46_247_, invoice0_.User1_ID as user47_247_, invoice0_.User2_ID as user48_247_, invoice0_.Withholdingamount as withhol49_247_, invoice0_.Taxdate as taxdate50_247_, invoice0_.C_Withholding_ID as c_withh51_247_, invoice0_.Ispaid as ispaid52_247_, invoice0_.EM_Einv_Generated as em_einv53_247_, invoice0_.Totalpaid as totalpa54_247_, invoice0_.EM_Einv_Sent as em_einv55_247_, invoice0_.OutstandingAmt as outstan56_247_, invoice0_.DaysTillDue as daystil57_247_, invoice0_.DueAmt as dueamt58_247_, invoice0_.LastCalculatedOnDate as lastcal59_247_, invoice0_.FIN_Paymentmethod_ID as fin_pay60_247_, invoice0_.FIN_Payment_Priority_ID as fin_pay61_247_, invoice0_.Finalsettlement as finalse62_247_, invoice0_.Daysoutstanding as daysout63_247_, invoice0_.Percentageoverdue as percent64_247_, invoice0_.C_Costcenter_ID as c_costc65_247_, invoice0_.Calculate_Promotions as calcula66_247_, invoice0_.A_Asset_ID as a_asset67_247_, invoice0_.EM_APRM_Addpayment as em_aprm68_247_, invoice0_.Iscashvat as iscashv69_247_, invoice0_.EM_APRM_Processinvoice as em_aprm70_247_, invoice0_.EM_Obcma_C_Poc_Email_ID as em_obcm71_247_, invoice0_.Prepaymentamt as prepaym72_247_, invoice0_.Createfromorders as createf73_247_, invoice0_.Createfrominouts as createf74_247_, invoice0_.EM_Prei_Iseinvoiced as em_prei75_247_, invoice0_.Paidamtatinvoicing as paidamt76_247_, invoice0_.EM_Prei_Generateeinvoice as em_prei77_247_, invoice0_.BPartner_ExtRef as bpartne78_247_, invoice0_.EM_Prei_Gen_And_Send_E_Inv as em_prei79_247_, invoice0_.EM_Aeatsii_Send as em_aeat80_247_, invoice0_.EM_Etblkp_Accountingstatus as em_etbl81_247_, invoice0_.EM_Aeatsii_Issent as em_aeat82_247_, invoice0_.EM_Etabam_Bankaccount_ID as em_etab83_247_, invoice0_.EM_Etafdp_Unvoid as em_etaf84_247_, invoice0_.EM_Etblkp_Bulkposting as em_etbl85_247_, invoice0_.EM_Etpr_Remove_Payment as em_etpr86_247_, invoice0_.EM_Jr_Amount as em_jr_a87_247_, invoice0_.EM_Prei_Sended as em_prei88_247_, invoice0_.EM_Prsc_Iscommissionable as em_prsc89_247_, invoice0_.EM_Aeatsii_Fecha_Operacion as em_aeat90_247_, invoice0_.EM_Etblkc_Bulkcompletion as em_etbl91_247_, invoice0_.EM_Aeatsii_Clave_Tipo as em_aeat92_247_, invoice0_.EM_Etinter_Interco_Orig as em_etin93_247_, invoice0_.EM_Aeatsii_Motivo_Rectif as em_aeat94_247_, invoice0_.EM_Prouti_Recalculate_Price as em_prou95_247_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as em_aeat96_247_, invoice0_.EM_Ml_Select_Product as em_ml_s97_247_, invoice0_.EM_Prouti_Pricecalculatetdate as em_prou98_247_, invoice0_.em_tbai_qrcode as em_tbai99_247_, invoice0_.EM_Aeatsii_Tipo_Rectif as em_aea100_247_, invoice0_.EM_Prouti_Totalizations as em_pro101_247_, invoice0_.EM_Tbai_Url as em_tba102_247_, invoice0_.EM_Aeatsii_Dua as em_aea103_247_, invoice0_.EM_Tbai_Xmlgenerator as em_tba104_247_, invoice0_.EM_Aeatsii_Fecha_Dua as em_aea105_247_, invoice0_.EM_Tbai_Signaturevalue as em_tba106_247_, invoice0_.EM_Aeatsii_Estado as em_aea107_247_, invoice0_.EM_Tbai_Sequence as em_tba108_247_, invoice0_.EM_Aeatsii_Error_Registral as em_aea109_247_, invoice0_.EM_Prsc_Commissiontype as em_prs110_247_, invoice0_.EM_Tbai_Idtbai as em_tba111_247_, invoice0_.EM_Aeatsii_Modif as em_aea112_247_, invoice0_.EM_Etvfac_Date_Issue as em_etv113_247_, invoice0_.EM_Prsc_Allowcommission as em_prs114_247_, invoice0_.EM_Tbai_Reverseinvoicecode as em_tba115_247_, invoice0_.EM_Aeatsii_Modified as em_aea116_247_, invoice0_.EM_Etvfac_Issue as em_etv117_247_, invoice0_.EM_Tbai_Issent as em_tba118_247_, invoice0_.EM_Aeatsii_Description_ID as em_aea119_247_, invoice0_.EM_Etvfac_Issue_Description as em_etv120_247_, invoice0_.EM_Tbai_Reverseinvoicetype as em_tba121_247_, invoice0_.EM_Aeatsii_Descripcion_Sii as em_aea122_247_, invoice0_.EM_Tbai_Isreverseinvoice as em_tba123_247_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as em_aea124_247_, invoice0_.EM_Tbai_Invoiceseq as em_tba125_247_, invoice0_.EM_Aeatsii_Dup as em_aea126_247_, invoice0_.EM_Tbai_Invoicenum as em_tba127_247_, invoice0_.EM_Aeatsii_Error_Code as em_aea128_247_, invoice0_.EM_Aeatsii_Error_Msg as em_aea129_247_, invoice0_.EM_Priuti_Createpurchinv as em_pri130_247_, invoice0_.EM_Aeatsii_Unsubscribe as em_aea131_247_, invoice0_.EM_Priuti_Generated as em_pri132_247_, invoice0_.EM_Aeatsii_Pur_Description_ID as em_aea133_247_, invoice0_.EM_Priuti_Date_Complete as em_pri134_247_, invoice0_.EM_Priuti_User_Complete_ID as em_pri135_247_, invoice0_.EM_Aeatsii_Multi_Dua as em_aea136_247_, invoice0_.EM_Priuti_Status_Of_Review as em_pri137_247_, invoice0_.EM_Aeatsii_Ejercicio as em_aea138_247_, invoice0_.EM_Priuti_Validate as em_pri139_247_, invoice0_.EM_Aeatsii_Periodo as em_aea140_247_, invoice0_.EM_Priuti_Start_Review as em_pri141_247_, invoice0_.EM_Aeatsii_Autofactura as em_aea142_247_, invoice0_.EM_Aeatsii_Invoice_ID as em_aea143_247_, invoice0_.EM_Aeatsii_Insiidate as em_aea144_247_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as em_aea145_247_, invoice0_.EM_Aeatsii_Isauthorization as em_aea146_247_, invoice0_.EM_Aeatsii_Authorizationno as em_aea147_247_, invoice0_.EM_Etvfac_Invoice_Status as em_etv148_247_, invoice0_.EM_Etvfac_Senttoverifac as em_etv149_247_, invoice0_.EM_Etvfac_Inv_Type as em_etv150_247_, invoice0_.EM_Etvfac_Invnoidart61d as em_etv151_247_, invoice0_.EM_Etvfac_Verifac_Desc as em_etv152_247_, invoice0_.EM_Etvfac_Date_Operation as em_etv153_247_, invoice0_.EM_Etvfac_Reverseinvtype as em_etv154_247_, invoice0_.EM_Tbai_Issue_Date as em_tba155_247_, invoice0_.EM_Etvfac_External_Ref as em_etv156_247_, invoice0_.EM_Etvfac_Hash as em_etv157_247_, invoice0_.EM_Tbai_Date_Operation as em_tba158_247_, invoice0_.EM_Etvfac_Issubsanation as em_etv159_247_, invoice0_.EM_Etvfac_Void as em_etv160_247_, invoice0_.EM_Tbai_Voidxmlgenerator as em_tba161_247_, invoice0_.EM_Pruti_Notsendinvoice as em_pru162_247_, invoice0_.EM_Etvfac_Simpinvart7273 as em_etv163_247_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('0', '203E608E4BEC43F8BC282264DF075FCC', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (invoice0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 14:00:05 Duration: 2s828ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1s264ms 1 1s264ms 1s264ms 1s264ms select i.c_invoice_id as id, ad_column_identifier (to_char(?), to_char(i.c_invoice_id), to_char(?)) as name from c_invoice i join c_doctype dt on i.c_doctype_id = dt.c_doctype_id where i.docstatus in (...) and i.ad_client_id in (...) and i.ad_org_id in (...) and i.issotrx = ? and i.c_bpartner_id = ? and dt.isreturn = ? and exists ( select ? from c_invoiceline il where il.c_invoice_id = i.c_invoice_id and ((il.m_inoutline_id is null and il.qtyinvoiced <> ?) or (il.m_inoutline_id is not null and exists ( select ? from m_inoutline iol where iol.m_inoutline_id = il.m_inoutline_id and (il.qtyinvoiced - iol.movementqty) <> ?)))) order by name;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 08 1 1s264ms 1s264ms [ User: tad - Total duration: 1s264ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 1s264ms - Times executed: 1 ]
-
SELECT i.C_Invoice_ID AS ID, Ad_Column_Identifier (TO_CHAR('C_Invoice'), TO_CHAR(i.C_Invoice_ID), TO_CHAR('es_ES')) AS NAME FROM C_INVOICE i JOIN C_DOCTYPE dt ON i.c_doctype_id = dt.c_doctype_id WHERE i.DocStatus IN ('CL', 'CO') AND i.AD_Client_ID IN ('0', '4E7785E633254999A6D7545B0BE57A46') AND i.AD_Org_ID IN ('0', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F', 'C34A537D1464452783C0A7C7C913FC86') AND i.IsSOTrx = 'Y' AND i.C_BPartner_ID = '1000108' AND dt.isreturn = 'N' AND EXISTS ( SELECT 1 FROM C_INVOICELINE il WHERE il.C_INVOICE_ID = i.C_INVOICE_ID AND ((il.M_INOUTLINE_ID IS NULL AND il.QtyInvoiced <> 0) OR (il.M_INOUTLINE_ID IS NOT NULL AND EXISTS ( SELECT 1 FROM M_INOUTLINE iol WHERE iol.M_INOUTLINE_ID = il.M_INOUTLINE_ID AND (il.QtyInvoiced - iol.MOVEMENTQTY) <> 0)))) ORDER BY NAME;
Date: 2026-07-17 08:01:12 Duration: 1s264ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 51 1m1s 1s 2s905ms 1s198ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ left outer join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro4_ cross join m_pricelist_version pricingpri5_ cross join m_pricelist pricingpri9_ where productbyp0_.m_productprice_id = pricingpro4_.m_productprice_id and pricingpro4_.m_pricelist_version_id = pricingpri5_.m_pricelist_version_id and pricingpri5_.m_pricelist_id = pricingpri9_.m_pricelist_id and (upper(product1_.value) like upper(?) escape ? or upper(product1_.name) like upper(?) escape ? or upper((coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?) || ?| | product1_.value)) like upper(?) escape ? or upper((coalesce(to_char(( select producttrl3_.name from m_product_trl producttrl3_ where producttrl3_.m_product_id = product1_.m_product_id and producttrl3_.ad_language = ?)), to_char(product1_.name), ?) || ?| | product1_.value)) like upper(?) escape ?) and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri5_.isactive = ? and ad_org_isinnaturaltree (pricingpro4_.ad_org_id, ?, ?) = ? and pricingpri9_.issopricelist = ? and pricingpri9_.c_currency_id = ? and pricingpro4_.m_pricelist_version_id = ? and productbyp0_.m_warehouse_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 07 7 8s233ms 1s176ms 08 9 11s649ms 1s294ms 09 3 4s661ms 1s553ms 10 12 14s725ms 1s227ms 11 3 3s316ms 1s105ms 12 6 7s118ms 1s186ms 14 5 5s174ms 1s34ms 15 2 2s66ms 1s33ms 16 1 1s13ms 1s13ms 17 2 2s125ms 1s62ms 18 1 1s36ms 1s36ms [ User: tad - Total duration: 1m1s - Times executed: 51 ]
[ Application: openbravo - Total duration: 1m1s - Times executed: 51 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%A%') escape '|' or upper(product1_.Name) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000113' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 08:00:11 Duration: 2s905ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%gr%') escape '|' or upper(product1_.Name) like upper('%gr%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%gr%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%gr%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000112' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 09:00:11 Duration: 1s909ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%A%') escape '|' or upper(product1_.Name) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000113' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 10:28:59 Duration: 1s845ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
2 18 29s255ms 1s56ms 2s250ms 1s625ms select * from ( select c_invoice.c_invoice_id as referencekey_id, c_invoice.documentno as record_id, ? as ad_role_id, null as ad_user_id, ?| | c_invoice.documentno || ?| | c_invoice.grandtotal || ?| | (( select round(sum(linenetamt), ?) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), ?), ?) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, ? as isactive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice where c_invoice.issotrx = ? and c_invoice.grandtotal <> round((( select round(sum(linenetamt), ?) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), ?), ?) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), ?)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 07 1 1s580ms 1s580ms 08 1 1s509ms 1s509ms 09 2 3s901ms 1s950ms 10 2 2s701ms 1s350ms 11 1 1s56ms 1s56ms 12 1 2s57ms 2s57ms 13 1 1s997ms 1s997ms 14 1 1s71ms 1s71ms 15 1 1s418ms 1s418ms 16 1 1s505ms 1s505ms 17 1 1s846ms 1s846ms 18 1 1s683ms 1s683ms 19 2 3s409ms 1s704ms 20 1 1s793ms 1s793ms 21 1 1s721ms 1s721ms [ User: tad - Total duration: 29s255ms - Times executed: 18 ]
[ Application: openbravo - Total duration: 29s255ms - Times executed: 18 ]
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'Y' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'D385EC7B4B9F428093AF4EBA38AF5821' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:00:21 Duration: 2s250ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'Y' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'D385EC7B4B9F428093AF4EBA38AF5821' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:00:20 Duration: 2s57ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'N' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '64986CDE8CEA4AA1BA98CD9FEEEE3553' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:21 Duration: 2s51ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 15 5m40s 15s459ms 49s344ms 22s676ms select profile.take_sample ();Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 07 1 17s782ms 17s782ms 08 1 49s148ms 49s148ms 09 1 19s704ms 19s704ms 10 1 19s866ms 19s866ms 11 1 49s344ms 49s344ms 12 1 15s459ms 15s459ms 13 1 19s24ms 19s24ms 14 1 17s865ms 17s865ms 15 1 17s941ms 17s941ms 16 1 17s39ms 17s39ms 17 1 21s48ms 21s48ms 18 1 17s921ms 17s921ms 19 1 19s859ms 19s859ms 20 1 18s149ms 18s149ms 21 1 19s994ms 19s994ms [ User: postgres - Total duration: 5m40s - Times executed: 15 ]
[ Application: psql - Total duration: 5m40s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 11:00:50 Duration: 49s344ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 08:00:51 Duration: 49s148ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 17:00:22 Duration: 21s48ms Database: etendo User: postgres Remote: [local] Application: psql
4 15 3m43s 10s16ms 18s261ms 14s894ms select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 07 1 10s16ms 10s16ms 08 1 15s637ms 15s637ms 09 1 15s842ms 15s842ms 10 1 18s261ms 18s261ms 11 1 12s437ms 12s437ms 12 1 12s536ms 12s536ms 13 1 15s288ms 15s288ms 14 1 16s462ms 16s462ms 15 1 14s860ms 14s860ms 16 1 14s111ms 14s111ms 17 1 17s135ms 17s135ms 18 1 14s256ms 14s256ms 19 1 15s581ms 15s581ms 20 1 14s643ms 14s643ms 21 1 16s349ms 16s349ms [ User: tad - Total duration: 3m43s - Times executed: 15 ]
[ Application: openbravo - Total duration: 3m43s - Times executed: 15 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 10:00:19 Duration: 18s261ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:00:18 Duration: 17s135ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 14:00:17 Duration: 16s462ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 9 14s749ms 1s179ms 2s996ms 1s638ms select * from c_order_post (?);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 07 1 2s996ms 2s996ms 08 1 1s876ms 1s876ms 10 1 1s254ms 1s254ms 13 1 1s398ms 1s398ms 14 1 1s510ms 1s510ms 15 1 1s179ms 1s179ms 16 1 1s208ms 1s208ms 17 1 1s912ms 1s912ms 18 1 1s411ms 1s411ms [ User: tad - Total duration: 14s749ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 14s749ms - Times executed: 9 ]
-
SELECT * FROM C_ORDER_POST ('F94A42171B614C5ABB9EDFB4A9A37071');
Date: 2026-07-17 07:49:05 Duration: 2s996ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('000CCF6F834D40979CB521B786EB5DDD');
Date: 2026-07-17 17:32:14 Duration: 1s912ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('40DD5AF434784F20B88530F5FD20532B');
Date: 2026-07-17 08:08:58 Duration: 1s876ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 4 12s541ms 1s249ms 5s993ms 3s135ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ inner join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro3_ cross join m_pricelist_version pricingpri4_ cross join m_pricelist pricingpri8_ where productbyp0_.m_productprice_id = pricingpro3_.m_productprice_id and pricingpro3_.m_pricelist_version_id = pricingpri4_.m_pricelist_version_id and pricingpri4_.m_pricelist_id = pricingpri8_.m_pricelist_id and (upper(product1_.name) like upper(?) escape ?) and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri4_.isactive = ? and ad_org_isinnaturaltree (pricingpro3_.ad_org_id, ?, ?) = ? and pricingpri8_.issopricelist = ? and pricingpri8_.c_currency_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 17 4 12s541ms 3s135ms [ User: tad - Total duration: 12s541ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 12s541ms - Times executed: 4 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%pa%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:30 Duration: 5s993ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%p%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:28 Duration: 3s996ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%pal%%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:26 Duration: 1s300ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 4 4s800ms 1s16ms 1s602ms 1s200ms select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id, posted from c_invoice, c_doctype where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and not exists ( select ? from c_period where c_period.startdate <= trunc(dateacct) and trunc(dateacct) <= c_period.enddate) group by c_invoice_id, posted, c_invoice.ad_org_id, c_invoice.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 09 1 1s602ms 1s602ms 17 1 1s16ms 1s16ms 19 1 1s147ms 1s147ms 20 1 1s34ms 1s34ms [ User: tad - Total duration: 4s800ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 4s800ms - Times executed: 4 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:02 Duration: 1s602ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:00:01 Duration: 1s147ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:00:01 Duration: 1s34ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 2 7s36ms 3s436ms 3s600ms 3s518ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ inner join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro2_ cross join m_pricelist_version pricingpri3_ cross join m_pricelist pricingpri7_ where productbyp0_.m_productprice_id = pricingpro2_.m_productprice_id and pricingpro2_.m_pricelist_version_id = pricingpri3_.m_pricelist_version_id and pricingpri3_.m_pricelist_id = pricingpri7_.m_pricelist_id and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri3_.isactive = ? and ad_org_isinnaturaltree (pricingpro2_.ad_org_id, ?, ?) = ? and pricingpri7_.issopricelist = ? and pricingpri7_.c_currency_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 17 2 7s36ms 3s518ms [ User: tad - Total duration: 7s36ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 7s36ms - Times executed: 2 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro2_ cross join M_PriceList_Version pricingpri3_ cross join M_PriceList pricingpri7_ where productbyp0_.M_Productprice_ID = pricingpro2_.M_ProductPrice_ID and pricingpro2_.M_PriceList_Version_ID = pricingpri3_.M_PriceList_Version_ID and pricingpri3_.M_PriceList_ID = pricingpri7_.M_PriceList_ID and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri3_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro2_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri7_.IsSOPriceList = 'Y' and pricingpri7_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:25 Duration: 3s600ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro2_ cross join M_PriceList_Version pricingpri3_ cross join M_PriceList pricingpri7_ where productbyp0_.M_Productprice_ID = pricingpro2_.M_ProductPrice_ID and pricingpro2_.M_PriceList_Version_ID = pricingpri3_.M_PriceList_Version_ID and pricingpri3_.M_PriceList_ID = pricingpri7_.M_PriceList_ID and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri3_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro2_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri7_.IsSOPriceList = 'Y' and pricingpri7_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:08 Duration: 3s436ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 2 4s126ms 1s552ms 2s573ms 2s63ms select materialmg0_.m_inoutline_id as col_0_0_, materialmg0_.ad_org_id as col_1_0_, materialmg0_.ad_client_id as col_2_0_, materialmg0_.m_product_id as col_3_0_, materialmg0_.c_uom_id as col_4_0_, materialmg0_.m_inoutline_id as col_5_0_, materialmg0_.movementqty as col_6_0_, materialmg2_.c_bpartner_id as col_7_0_, materialmg2_.documentno as col_8_0_, materialmg2_.movementdate as col_9_0_, attributes1_.m_attributesetinstance_id as col_10_0_, (select orderline9_.c_orderline_id from c_orderline orderline9_ where orderline9_.c_order_id=? and orderline9_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_11_0_, (select uom10_.name from c_uom uom10_ where uom10_.c_uom_id in (case when (select ? from c_orderline orderline11_ where orderline11_.c_order_id=? and orderline11_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when coalesce(materialmg0_.c_aum, ?)<>? then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end else coalesce((select orderline12_.c_aum from c_orderline orderline12_ where orderline12_.c_order_id=? and orderline12_.m_inoutline_id=materialmg0_.m_inoutline_id), ?) end)) as col_12_0_, case when materialmg0_.aumqty is not null then materialmg0_.aumqty else m_get_converted_aumqty(materialmg0_.m_product_id,materialmg0_.movementqty,m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id)) end as col_13_0_, case when (select ? from c_orderline orderline13_ where orderline13_.c_order_id=? and orderline13_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when materialmg0_.c_aum is not null then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end else coalesce((select orderline14_.c_aum from c_orderline orderline14_ where orderline14_.c_order_id=? and orderline14_.m_inoutline_id=materialmg0_.m_inoutline_id), ?) end as col_14_0_, (select uom15_.c_uom_id from c_uom uom15_ where uom15_.c_uom_id in (case when coalesce(materialmg0_.c_aum, ?)<>? then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end)) as col_15_0_, case when (select ? from c_orderline orderline16_ where orderline16_.c_order_id=? and orderline16_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when coalesce(materialmg0_.c_aum, ?)=? then to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id))) else to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,materialmg0_.c_aum)) end else to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,coalesce((select orderline17_.c_aum from c_orderline orderline17_ where orderline17_.c_order_id=? and orderline17_.m_inoutline_id=materialmg0_.m_inoutline_id), ?))) end as col_16_0_, coalesce((select sum(orderline18_.qtyordered) from c_orderline orderline18_ inner join c_order order19_ on orderline18_.c_order_id=order19_.c_order_id where orderline18_.m_inoutline_id=materialmg0_.m_inoutline_id and order19_.processed=? and order19_.docstatus<>?), ?)*? as col_17_0_, case when (select ? from c_orderline orderline20_ where orderline20_.c_order_id=? and orderline20_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then false else true end as col_18_0_, coalesce((select orderline21_.qtyordered from c_orderline orderline21_ where orderline21_.c_order_id=? and orderline21_.m_inoutline_id=materialmg0_.m_inoutline_id), ?)*? as col_19_0_, (select orderline22_.c_return_reason_id from c_orderline orderline22_ cross join c_return_reason returnreas23_ where orderline22_.c_return_reason_id=returnreas23_.c_return_reason_id and orderline22_.c_order_id=? and orderline22_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_20_0_, coalesce((select orderline24_.c_tax_id from c_orderline orderline24_ where orderline24_.c_order_id=? and orderline24_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline26_.c_tax_id from m_inoutline materialmg25_ cross join c_orderline orderline26_ where materialmg25_.c_orderline_id=orderline26_.c_orderline_id and materialmg25_.m_inoutline_id=materialmg0_.m_inoutline_id)) as col_21_0_, case when (select pricingpri28_.istaxincluded from c_order order27_ cross join m_pricelist pricingpri28_ where order27_.m_pricelist_id=pricingpri28_.m_pricelist_id and order27_.c_order_id=?)=? then coalesce((select orderline29_.priceactual from c_orderline orderline29_ where orderline29_.c_order_id=? and orderline29_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline31_.gross_unit_price from m_inoutline materialmg30_ cross join c_orderline orderline31_ where materialmg30_.c_orderline_id=orderline31_.c_orderline_id and materialmg30_.m_inoutline_id=materialmg0_.m_inoutline_id)) else coalesce((select orderline32_.priceactual from c_orderline orderline32_ where orderline32_.c_order_id=? and orderline32_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline34_.priceactual from m_inoutline materialmg33_ cross join c_orderline orderline34_ where materialmg33_.c_orderline_id=orderline34_.c_orderline_id and materialmg33_.m_inoutline_id=materialmg0_.m_inoutline_id)) end as col_22_0_, (select order37_.documentno from m_inoutline materialmg35_ cross join c_orderline orderline36_ cross join c_order order37_ where materialmg35_.c_orderline_id=orderline36_.c_orderline_id and orderline36_.c_order_id=order37_.c_order_id and materialmg35_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_23_0_, organizati4_.ad_org_id as ad_org_i1_71_0_, adclient5_.ad_client_id as ad_clien1_18_1_, product6_.m_product_id as m_produc1_482_2_, uom7_.c_uom_id as c_uom_id1_322_3_, businesspa8_.c_bpartner_id as c_bpartn1_188_4_, attributes1_.m_attributesetinstance_id as m_attrib1_418_5_, organizati4_.ad_client_id as ad_clien2_71_0_, organizati4_.isactive as isactive3_71_0_, organizati4_.created as created4_71_0_, organizati4_.createdby as createdb5_71_0_, organizati4_.updated as updated6_71_0_, organizati4_.updatedby as updatedb7_71_0_, organizati4_.value as value8_71_0_, organizati4_.name as name9_71_0_, organizati4_.description as descrip10_71_0_, organizati4_.issummary as issumma11_71_0_, organizati4_.ad_orgtype_id as ad_orgt12_71_0_, organizati4_.isperiodcontrolallowed as isperio13_71_0_, organizati4_.c_calendar_id as c_calen14_71_0_, organizati4_.isready as isready15_71_0_, organizati4_.em_intr_c_calendar_id as em_intr16_71_0_, organizati4_.social_name as social_17_71_0_, organizati4_.c_currency_id as c_curre18_71_0_, organizati4_.c_acctschema_id as c_accts19_71_0_, organizati4_.em_aprm_glitem_id as em_aprm20_71_0_, organizati4_.em_obmfm_product_id as em_obmf21_71_0_, organizati4_.ad_periodcontrolallowed_org_id as ad_peri22_71_0_, organizati4_.ad_calendarowner_org_id as ad_cale23_71_0_, organizati4_.em_obwpack_uom_id as em_obwp24_71_0_, organizati4_.ad_legalentity_org_id as ad_lega25_71_0_, organizati4_.ad_inheritedcalendar_id as ad_inhe26_71_0_, organizati4_.ad_businessunit_org_id as ad_busi27_71_0_, organizati4_.em_etsg_add_certificate as em_etsg28_71_0_, organizati4_.em_prupc_ad_sequence_id as em_prup29_71_0_, organizati4_.em_prupc_locator_sequence_id as em_prup30_71_0_, organizati4_.c_extbp_enabled as c_extbp31_71_0_, organizati4_.c_extbp_config_id as c_extbp32_71_0_, organizati4_.em_pruti_planningmethod_id as em_prut33_71_0_, organizati4_.em_obmobc_credential_timeout as em_obmo34_71_0_, adclient5_.ad_org_id as ad_org_i2_18_1_, adclient5_.isactive as isactive3_18_1_, adclient5_.created as created4_18_1_, adclient5_.createdby as createdb5_18_1_, adclient5_.updated as updated6_18_1_, adclient5_.updatedby as updatedb7_18_1_, adclient5_.value as value8_18_1_, adclient5_.name as name9_18_1_, adclient5_.description as descrip10_18_1_, adclient5_.smtphost as smtphos11_18_1_, adclient5_.requestemail as request12_18_1_, adclient5_.requestuser as request13_18_1_, adclient5_.requestuserpw as request14_18_1_, adclient5_.requestfolder as request15_18_1_, adclient5_.ad_language as ad_lang16_18_1_, adclient5_.ismultilingualdocument as ismulti17_18_1_, adclient5_.issmtpauthorization as issmtpa18_18_1_, adclient5_.c_currency_id as c_curre19_18_1_, adclient5_.acctdim_centrally_maintained as acctdim20_18_1_, adclient5_.project_acctdim_isenable as project21_18_1_, adclient5_.project_acctdim_header as project22_18_1_, adclient5_.project_acctdim_lines as project23_18_1_, adclient5_.project_acctdim_breakdown as project24_18_1_, adclient5_.bpartner_acctdim_isenable as bpartne25_18_1_, adclient5_.bpartner_acctdim_header as bpartne26_18_1_, adclient5_.bpartner_acctdim_lines as bpartne27_18_1_, adclient5_.bpartner_acctdim_breakdown as bpartne28_18_1_, adclient5_.product_acctdim_isenable as product29_18_1_, adclient5_.product_acctdim_header as product30_18_1_, adclient5_.product_acctdim_lines as product31_18_1_, adclient5_.product_acctdim_breakdown as product32_18_1_, adclient5_.costcenter_acctdim_header as costcen33_18_1_, adclient5_.costcenter_acctdim_lines as costcen34_18_1_, adclient5_.costcenter_acctdim_breakdown as costcen35_18_1_, adclient5_.user1_acctdim_isenable as user36_18_1_, adclient5_.user1_acctdim_header as user37_18_1_, adclient5_.user1_acctdim_lines as user38_18_1_, adclient5_.user1_acctdim_breakdown as user39_18_1_, adclient5_.user2_acctdim_isenable as user40_18_1_, adclient5_.user2_acctdim_header as user41_18_1_, adclient5_.user2_acctdim_lines as user42_18_1_, adclient5_.user2_acctdim_breakdown as user43_18_1_, adclient5_.costcenter_acctdim_isenable as costcen44_18_1_, adclient5_.org_acctdim_isenable as org_acc45_18_1_, adclient5_.org_acctdim_header as org_acc46_18_1_, adclient5_.org_acctdim_lines as org_acc47_18_1_, adclient5_.org_acctdim_breakdown as org_acc48_18_1_, adclient5_.daystopasswordexpiration as daystop49_18_1_, adclient5_.em_jr_ftp_image_url as em_jr_f50_18_1_, adclient5_.em_pruti_periodnotifications as em_prut51_18_1_, adclient5_.em_jr_ftp_image_username as em_jr_f52_18_1_, adclient5_.em_jr_ftp_image_password as em_jr_f53_18_1_, adclient5_.em_prupc_upc_password as em_prup54_18_1_, adclient5_.em_prsc_tree_prodcat_id as em_prsc55_18_1_, adclient5_.em_pruti_cleancache as em_prut56_18_1_, adclient5_.em_priuti_openbravo_url as em_priu57_18_1_, product6_.ad_client_id as ad_clien2_482_2_, product6_.ad_org_id as ad_org_i3_482_2_, product6_.isactive as isactive4_482_2_, product6_.created as created5_482_2_, product6_.createdby as createdb6_482_2_, product6_.updated as updated7_482_2_, product6_.updatedby as updatedb8_482_2_, product6_.value as value9_482_2_, product6_.name as name10_482_2_, product6_.description as descrip11_482_2_, product6_.documentnote as documen12_482_2_, product6_.help as help13_482_2_, product6_.upc as upc14_482_2_, product6_.sku as sku15_482_2_, product6_.c_uom_id as c_uom_i16_482_2_, product6_.salesrep_id as salesre17_482_2_, product6_.issummary as issumma18_482_2_, product6_.isstocked as isstock19_482_2_, product6_.ispurchased as ispurch20_482_2_, product6_.issold as issold21_482_2_, product6_.isbom as isbom22_482_2_, product6_.isinvoiceprintdetails as isinvoi23_482_2_, product6_.ispicklistprintdetails as ispickl24_482_2_, product6_.isverified as isverif25_482_2_, product6_.m_product_category_id as m_produ26_482_2_, product6_.classification as classif27_482_2_, product6_.volume as volume28_482_2_, product6_.weight as weight29_482_2_, product6_.shelfwidth as shelfwi30_482_2_, product6_.shelfheight as shelfhe31_482_2_, product6_.shelfdepth as shelfde32_482_2_, product6_.unitsperpallet as unitspe33_482_2_, product6_.c_taxcategory_id as c_taxca34_482_2_, product6_.s_resource_id as s_resou35_482_2_, product6_.discontinued as discont36_482_2_, product6_.discontinuedby as discont37_482_2_, product6_.processing as process38_482_2_, product6_.s_expensetype_id as s_expen39_482_2_, product6_.producttype as product40_482_2_, product6_.imageurl as imageur41_482_2_, product6_.descriptionurl as descrip42_482_2_, product6_.guaranteedays as guarant43_482_2_, product6_.versionno as version44_482_2_, product6_.m_attributeset_id as m_attri45_482_2_, product6_.m_attributesetinstance_id as m_attri46_482_2_, product6_.downloadurl as downloa47_482_2_, product6_.m_freightcategory_id as m_freig48_482_2_, product6_.m_locator_id as m_locat49_482_2_, product6_.ad_image_id as ad_imag50_482_2_, product6_.c_bpartner_id as c_bpart51_482_2_, product6_.ispriceprinted as isprice52_482_2_, product6_.name2 as name53_482_2_, product6_.stock_min as stock_m54_482_2_, product6_.enforce_attribute as enforce55_482_2_, product6_.calculated as calcula56_482_2_, product6_.ma_processplan_id as ma_proc57_482_2_, product6_.production as product58_482_2_, product6_.capacity as capacit59_482_2_, product6_.delaymin as delaymi60_482_2_, product6_.mrp_planner_id as mrp_pla61_482_2_, product6_.mrp_planningmethod_id as mrp_pla62_482_2_, product6_.qtymax as qtymax63_482_2_, product6_.qtymin as qtymin64_482_2_, product6_.qtystd as qtystd65_482_2_, product6_.qtytype as qtytype66_482_2_, product6_.stockmin as stockmi67_482_2_, product6_.em_aeat347_isleasebusiness as em_aeat68_482_2_, product6_.attrsetvaluetype as attrset69_482_2_, product6_.em_aeat347_situation as em_aeat70_482_2_, product6_.isquantityvariable as isquant71_482_2_, product6_.isdeferredrevenue as isdefer72_482_2_, product6_.em_aeat347_referenceid as em_aeat73_482_2_, product6_.em_aeat347_locationtype as em_aeat74_482_2_, product6_.revplantype as revplan75_482_2_, product6_.em_aeat347_streetname as em_aeat76_482_2_, product6_.periodnumber as periodn77_482_2_, product6_.em_aeat347_streetnumbertype as em_aeat78_482_2_, product6_.isdeferredexpense as isdefer79_482_2_, product6_.em_aeat347_streetnumber as em_aeat80_482_2_, product6_.expplantype as expplan81_482_2_, product6_.em_aeat347_streetnumberqua as em_aeat82_482_2_, product6_.periodnumber_exp as periodn83_482_2_, product6_.defaultperiod as default84_482_2_, product6_.em_aeat347_building as em_aeat85_482_2_, product6_.defaultperiod_exp as default86_482_2_, product6_.em_aeat347_hall as em_aeat87_482_2_, product6_.bookusingpoprice as bookusi88_482_2_, product6_.em_aeat347_hallway as em_aeat89_482_2_, product6_.em_aeat347_floor as em_aeat90_482_2_, product6_.c_uom_weight_id as c_uom_w91_482_2_, product6_.m_brand_id as m_brand92_482_2_, product6_.em_aeat347_apartment as em_aeat93_482_2_, product6_.em_aeat347_complement as em_aeat94_482_2_, product6_.isgeneric as isgener95_482_2_, product6_.em_aeat347_location as em_aeat96_482_2_, product6_.generic_product_id as generic97_482_2_, product6_.createvariants as createv98_482_2_, product6_.em_aeat347_county as em_aeat99_482_2_, product6_.characteristic_desc as charac100_482_2_, product6_.em_aeat347_countycode as em_aea101_482_2_, product6_.em_aeat347_regioncode as em_aea102_482_2_, product6_.updateinvariants as update103_482_2_, product6_.em_aeat347_zipcode as em_aea104_482_2_, product6_.managevariants as manage105_482_2_, product6_.prod_cat_selection as prod_c106_482_2_, product6_.product_selection as produc107_482_2_, product6_.print_description as print_108_482_2_, product6_.returnable as return109_482_2_, product6_.overdue_return_days as overdu110_482_2_, product6_.ispricerulebased as ispric111_482_2_, product6_.unique_per_document as unique112_482_2_, product6_.relateprodcattoservice as relate113_482_2_, product6_.relateprodtoservice as relate114_482_2_, product6_.islinkedtoproduct as islink115_482_2_, product6_.quantity_rule as quanti116_482_2_, product6_.allow_deferred_sell as allow_117_482_2_, product6_.deferred_sell_max_days as deferr118_482_2_, product6_.m_product_status_id as m_prod119_482_2_, product6_.ismodifytax as ismodi120_482_2_, product6_.relateprodcattaxtoservice as relate121_482_2_, product6_.copyservicemodifytaxconfig as copyse122_482_2_, product6_.em_jr_stocktype as em_jr_123_482_2_, product6_.em_obmupc_multiupc_desc as em_obm124_482_2_, product6_.em_prupc_generate_ean as em_pru125_482_2_, product6_.em_prsc_isdeliverycosts as em_prs126_482_2_, product6_.em_pruti_addmodifycharact as em_pru127_482_2_, uom7_.ad_client_id as ad_clien2_322_3_, uom7_.ad_org_id as ad_org_i3_322_3_, uom7_.isactive as isactive4_322_3_, uom7_.created as created5_322_3_, uom7_.updated as updated6_322_3_, uom7_.createdby as createdb7_322_3_, uom7_.updatedby as updatedb8_322_3_, uom7_.x12de355 as x9_322_3_, uom7_.uomsymbol as uomsymb10_322_3_, uom7_.name as name11_322_3_, uom7_.description as descrip12_322_3_, uom7_.stdprecision as stdprec13_322_3_, uom7_.costingprecision as costing14_322_3_, uom7_.isdefault as isdefau15_322_3_, uom7_.breakdown as breakdo16_322_3_, uom7_.uom_type as uom_typ17_322_3_, uom7_.em_obwpack_isweight as em_obwp18_322_3_, uom7_.useinproduction as useinpr19_322_3_, businesspa8_.ad_client_id as ad_clien2_188_4_, businesspa8_.ad_org_id as ad_org_i3_188_4_, businesspa8_.isactive as isactive4_188_4_, businesspa8_.created as created5_188_4_, businesspa8_.createdby as createdb6_188_4_, businesspa8_.updated as updated7_188_4_, businesspa8_.updatedby as updatedb8_188_4_, businesspa8_.value as value9_188_4_, businesspa8_.name as name10_188_4_, businesspa8_.name2 as name11_188_4_, businesspa8_.description as descrip12_188_4_, businesspa8_.issummary as issumma13_188_4_, businesspa8_.c_bp_group_id as c_bp_gr14_188_4_, businesspa8_.isonetime as isoneti15_188_4_, businesspa8_.isprospect as isprosp16_188_4_, businesspa8_.isvendor as isvendo17_188_4_, businesspa8_.iscustomer as iscusto18_188_4_, businesspa8_.isemployee as isemplo19_188_4_, businesspa8_.issalesrep as issales20_188_4_, businesspa8_.referenceno as referen21_188_4_, businesspa8_.duns as duns22_188_4_, businesspa8_.url as url23_188_4_, businesspa8_.ad_language as ad_lang24_188_4_, businesspa8_.taxid as taxid25_188_4_, businesspa8_.istaxexempt as istaxex26_188_4_, businesspa8_.c_invoiceschedule_id as c_invoi27_188_4_, businesspa8_.rating as rating28_188_4_, businesspa8_.salesvolume as salesvo29_188_4_, businesspa8_.numberemployees as numbere30_188_4_, businesspa8_.naics as naics31_188_4_, businesspa8_.firstsale as firstsa32_188_4_, businesspa8_.acqusitioncost as acqusit33_188_4_, businesspa8_.potentiallifetimevalue as potenti34_188_4_, businesspa8_.actuallifetimevalue as actuall35_188_4_, businesspa8_.shareofcustomer as shareof36_188_4_, businesspa8_.paymentrule as payment37_188_4_, businesspa8_.so_creditlimit as so_cred38_188_4_, businesspa8_.so_creditused as so_cred39_188_4_, businesspa8_.c_paymentterm_id as c_payme40_188_4_, businesspa8_.m_pricelist_id as m_price41_188_4_, businesspa8_.isdiscountprinted as isdisco42_188_4_, businesspa8_.so_description as so_desc43_188_4_, businesspa8_.poreference as porefer44_188_4_, businesspa8_.paymentrulepo as payment45_188_4_, businesspa8_.po_pricelist_id as po_pric46_188_4_, businesspa8_.po_paymentterm_id as po_paym47_188_4_, businesspa8_.documentcopies as documen48_188_4_, businesspa8_.c_greeting_id as c_greet49_188_4_, businesspa8_.invoicerule as invoice50_188_4_, businesspa8_.deliveryrule as deliver51_188_4_, businesspa8_.deliveryviarule as deliver52_188_4_, businesspa8_.salesrep_id as salesre53_188_4_, businesspa8_.bpartner_parent_id as bpartne54_188_4_, businesspa8_.socreditstatus as socredi55_188_4_, businesspa8_.ad_forced_org_id as ad_forc56_188_4_, businesspa8_.showpriceinorder as showpri57_188_4_, businesspa8_.invoicegrouping as invoice58_188_4_, businesspa8_.fixmonthday as fixmont59_188_4_, businesspa8_.fixmonthday2 as fixmont60_188_4_, businesspa8_.fixmonthday3 as fixmont61_188_4_, businesspa8_.isworker as isworke62_188_4_, businesspa8_.upc as upc63_188_4_, businesspa8_.c_salary_category_id as c_salar64_188_4_, businesspa8_.invoice_printformat as invoice65_188_4_, businesspa8_.last_days as last_da66_188_4_, businesspa8_.po_bankaccount_id as po_bank67_188_4_, businesspa8_.po_bp_taxcategory_id as po_bp_t68_188_4_, businesspa8_.po_fixmonthday as po_fixm69_188_4_, businesspa8_.po_fixmonthday2 as po_fixm70_188_4_, businesspa8_.po_fixmonthday3 as po_fixm71_188_4_, businesspa8_.so_bankaccount_id as so_bank72_188_4_, businesspa8_.so_bp_taxcategory_id as so_bp_t73_188_4_, businesspa8_.fiscalcode as fiscalc74_188_4_, businesspa8_.isofiscalcode as isofisc75_188_4_, businesspa8_.em_einv_einvoice as em_einv76_188_4_, businesspa8_.po_c_incoterms_id as po_c_in77_188_4_, businesspa8_.em_einv_format_id as em_einv78_188_4_, businesspa8_.so_c_incoterms_id as so_c_in79_188_4_, businesspa8_.em_einv_platform_id as em_einv80_188_4_, businesspa8_.fin_paymentmethod_id as fin_pay81_188_4_, businesspa8_.em_einv_email as em_einv82_188_4_, businesspa8_.po_paymentmethod_id as po_paym83_188_4_, businesspa8_.fin_financial_account_id as fin_fin84_188_4_, businesspa8_.em_einv_deliverymode as em_einv85_188_4_, businesspa8_.po_financial_account_id as po_fina86_188_4_, businesspa8_.customer_blocking as custome87_188_4_, businesspa8_.vendor_blocking as vendor_88_188_4_, businesspa8_.so_payment_blocking as so_paym89_188_4_, businesspa8_.po_payment_blocking as po_paym90_188_4_, businesspa8_.so_invoice_blocking as so_invo91_188_4_, businesspa8_.po_invoice_blocking as po_invo92_188_4_, businesspa8_.so_order_blocking as so_orde93_188_4_, businesspa8_.po_order_blocking as po_orde94_188_4_, businesspa8_.so_goods_blocking as so_good95_188_4_, businesspa8_.po_goods_blocking as po_good96_188_4_, businesspa8_.iscashvat as iscashv97_188_4_, businesspa8_.update_currency as update_98_188_4_, businesspa8_.bp_currency_id as bp_curr99_188_4_, businesspa8_.birthplace as birthp100_188_4_, businesspa8_.birthday as birthd101_188_4_, businesspa8_.is_customer_consent as is_cus102_188_4_, businesspa8_.em_obsepad_mandate_identifier as em_obs103_188_4_, businesspa8_.em_obsepad_mandate_date as em_obs104_188_4_, businesspa8_.em_aeatsii_rep_taxid as em_aea105_188_4_, businesspa8_.em_jr_inoutval as em_jr_106_188_4_, businesspa8_.em_aeatsii_menor as em_aea107_188_4_, businesspa8_.em_jr_isgeneric as em_jr_108_188_4_, businesspa8_.em_pruti_addbp as em_pru109_188_4_, businesspa8_.em_prei_iseinvoice as em_pre110_188_4_, businesspa8_.em_prei_format_id as em_pre111_188_4_, businesspa8_.em_pruti_unlock_date as em_pru112_188_4_, businesspa8_.em_prei_platform_id as em_pre113_188_4_, businesspa8_.em_pruti_unlock_order_date as em_pru114_188_4_, businesspa8_.em_prei_send_method as em_pre115_188_4_, businesspa8_.em_pruti_annexes_bp_so_id as em_pru116_188_4_, businesspa8_.em_prei_email as em_pre117_188_4_, businesspa8_.em_pruti_annexes_bp_po_id as em_pru118_188_4_, businesspa8_.em_prei_need_expedient as em_pre119_188_4_, businesspa8_.em_aeatsii_defaultsiikey as em_aea120_188_4_, businesspa8_.em_aeatsii_siikeylist as em_aea121_188_4_, businesspa8_.em_tbai_issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.em_pruti_notsendinvoice as em_pru124_188_4_, businesspa8_.em_obtik_tax_id_key as em_obt125_188_4_, attributes1_.ad_client_id as ad_clien2_418_5_, attributes1_.ad_org_id as ad_org_i3_418_5_, attributes1_.isactive as isactive4_418_5_, attributes1_.created as created5_418_5_, attributes1_.createdby as createdb6_418_5_, attributes1_.updated as updated7_418_5_, attributes1_.updatedby as updatedb8_418_5_, attributes1_.m_attributeset_id as m_attrib9_418_5_, attributes1_.serno as serno10_418_5_, attributes1_.lot as lot11_418_5_, attributes1_.guaranteedate as guarant12_418_5_, attributes1_.description as descrip13_418_5_, attributes1_.m_lot_id as m_lot_i14_418_5_, attributes1_.islocked as islocke15_418_5_, attributes1_.lock_description as lock_de16_418_5_, attributes1_.m_refinventory_id as m_refin17_418_5_, attributes1_.parent_attributesetinstance_id as parent_18_418_5_ from m_inoutline materialmg0_ left outer join m_attributesetinstance attributes1_ on materialmg0_.m_attributesetinstance_id=attributes1_.m_attributesetinstance_id inner join m_inout materialmg2_ on materialmg0_.m_inout_id=materialmg2_.m_inout_id inner join c_doctype documentty3_ on materialmg2_.c_doctype_id=documentty3_.c_doctype_id inner join c_bpartner businesspa8_ on materialmg2_.c_bpartner_id=businesspa8_.c_bpartner_id inner join ad_org organizati4_ on materialmg0_.ad_org_id=organizati4_.ad_org_id inner join ad_client adclient5_ on materialmg0_.ad_client_id=adclient5_.ad_client_id inner join m_product product6_ on materialmg0_.m_product_id=product6_.m_product_id inner join c_uom uom7_ on materialmg0_.c_uom_id=uom7_.c_uom_id where materialmg2_.c_bpartner_id=? and documentty3_.isreturn=? and materialmg2_.processed=? and materialmg2_.docstatus<>? and materialmg2_.issotrx=? and materialmg2_.isnettingshipment=? and materialmg0_.movementqty+coalesce((select sum(orderline38_.qtyordered) from c_orderline orderline38_ inner join c_order order39_ on orderline38_.c_order_id=order39_.c_order_id where orderline38_.m_inoutline_id=materialmg0_.m_inoutline_id and order39_.processed=? and order39_.docstatus<>?), ?)<>? and ?=? and (materialmg0_.ad_client_id in (...)) and (materialmg0_.ad_org_id in (...)) and (materialmg2_.movementdate>=now()? or case when (select ? from c_orderline orderline40_ where orderline40_.c_order_id=? and orderline40_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.movementdate desc, materialmg2_.documentno desc, materialmg0_.line limit ?;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 07 1 1s552ms 1s552ms 09 1 2s573ms 2s573ms [ User: tad - Total duration: 4s126ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s126ms - Times executed: 2 ]
-
select materialmg0_.M_InOutLine_ID as col_0_0_, materialmg0_.AD_Org_ID as col_1_0_, materialmg0_.AD_Client_ID as col_2_0_, materialmg0_.M_Product_ID as col_3_0_, materialmg0_.C_UOM_ID as col_4_0_, materialmg0_.M_InOutLine_ID as col_5_0_, materialmg0_.MovementQty as col_6_0_, materialmg2_.C_BPartner_ID as col_7_0_, materialmg2_.DocumentNo as col_8_0_, materialmg2_.MovementDate as col_9_0_, attributes1_.M_AttributeSetInstance_ID as col_10_0_, (select orderline9_.C_OrderLine_ID from C_OrderLine orderline9_ where orderline9_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline9_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_11_0_, (select uom10_.Name from C_UOM uom10_ where uom10_.C_UOM_ID in (case when (select 'Y' from C_OrderLine orderline11_ where orderline11_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline11_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline12_.C_Aum from C_OrderLine orderline12_ where orderline12_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline12_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 'Y') end)) as col_12_0_, case when materialmg0_.Aumqty is not null then materialmg0_.Aumqty else m_get_converted_aumqty(materialmg0_.M_Product_ID,materialmg0_.MovementQty,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID)) end as col_13_0_, case when (select 'Y' from C_OrderLine orderline13_ where orderline13_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline13_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when materialmg0_.C_Aum is not null then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline14_.C_Aum from C_OrderLine orderline14_ where orderline14_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline14_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), '') end as col_14_0_, (select uom15_.C_UOM_ID from C_UOM uom15_ where uom15_.C_UOM_ID in (case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end)) as col_15_0_, case when (select 'Y' from C_OrderLine orderline16_ where orderline16_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline16_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')='0' then to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID))) else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,materialmg0_.C_Aum)) end else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,coalesce((select orderline17_.C_Aum from C_OrderLine orderline17_ where orderline17_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline17_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), ''))) end as col_16_0_, coalesce((select sum(orderline18_.QtyOrdered) from C_OrderLine orderline18_ inner join C_Order order19_ on orderline18_.C_Order_ID=order19_.C_Order_ID where orderline18_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order19_.Processed='Y' and order19_.DocStatus<>'VO'), 0)*-1 as col_17_0_, case when (select 'Y' from C_OrderLine orderline20_ where orderline20_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline20_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end as col_18_0_, coalesce((select orderline21_.QtyOrdered from C_OrderLine orderline21_ where orderline21_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline21_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 0)*-1 as col_19_0_, (select orderline22_.C_Return_Reason_ID from C_OrderLine orderline22_ cross join C_Return_Reason returnreas23_ where orderline22_.C_Return_Reason_ID=returnreas23_.C_Return_Reason_ID and orderline22_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline22_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_20_0_, coalesce((select orderline24_.C_Tax_ID from C_OrderLine orderline24_ where orderline24_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline24_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline26_.C_Tax_ID from M_InOutLine materialmg25_ cross join C_OrderLine orderline26_ where materialmg25_.C_OrderLine_ID=orderline26_.C_OrderLine_ID and materialmg25_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) as col_21_0_, case when (select pricingpri28_.IsTaxIncluded from C_Order order27_ cross join M_PriceList pricingpri28_ where order27_.M_PriceList_ID=pricingpri28_.M_PriceList_ID and order27_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19')='Y' then coalesce((select orderline29_.PriceActual from C_OrderLine orderline29_ where orderline29_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline29_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline31_.Gross_Unit_Price from M_InOutLine materialmg30_ cross join C_OrderLine orderline31_ where materialmg30_.C_OrderLine_ID=orderline31_.C_OrderLine_ID and materialmg30_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) else coalesce((select orderline32_.PriceActual from C_OrderLine orderline32_ where orderline32_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline32_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline34_.PriceActual from M_InOutLine materialmg33_ cross join C_OrderLine orderline34_ where materialmg33_.C_OrderLine_ID=orderline34_.C_OrderLine_ID and materialmg33_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) end as col_22_0_, (select order37_.DocumentNo from M_InOutLine materialmg35_ cross join C_OrderLine orderline36_ cross join C_Order order37_ where materialmg35_.C_OrderLine_ID=orderline36_.C_OrderLine_ID and orderline36_.C_Order_ID=order37_.C_Order_ID and materialmg35_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID) as col_23_0_, organizati4_.AD_Org_ID as ad_org_i1_71_0_, adclient5_.AD_Client_ID as ad_clien1_18_1_, product6_.M_Product_ID as m_produc1_482_2_, uom7_.C_UOM_ID as c_uom_id1_322_3_, businesspa8_.C_BPartner_ID as c_bpartn1_188_4_, attributes1_.M_AttributeSetInstance_ID as m_attrib1_418_5_, organizati4_.AD_Client_ID as ad_clien2_71_0_, organizati4_.IsActive as isactive3_71_0_, organizati4_.Created as created4_71_0_, organizati4_.CreatedBy as createdb5_71_0_, organizati4_.Updated as updated6_71_0_, organizati4_.UpdatedBy as updatedb7_71_0_, organizati4_.Value as value8_71_0_, organizati4_.Name as name9_71_0_, organizati4_.Description as descrip10_71_0_, organizati4_.IsSummary as issumma11_71_0_, organizati4_.AD_Orgtype_ID as ad_orgt12_71_0_, organizati4_.IsPeriodControlAllowed as isperio13_71_0_, organizati4_.C_Calendar_ID as c_calen14_71_0_, organizati4_.IsReady as isready15_71_0_, organizati4_.EM_Intr_C_Calendar_ID as em_intr16_71_0_, organizati4_.Social_Name as social_17_71_0_, organizati4_.C_Currency_ID as c_curre18_71_0_, organizati4_.C_Acctschema_ID as c_accts19_71_0_, organizati4_.EM_APRM_Glitem_ID as em_aprm20_71_0_, organizati4_.EM_OBMFM_Product_ID as em_obmf21_71_0_, organizati4_.AD_Periodcontrolallowed_Org_ID as ad_peri22_71_0_, organizati4_.AD_Calendarowner_Org_ID as ad_cale23_71_0_, organizati4_.EM_Obwpack_Uom_ID as em_obwp24_71_0_, organizati4_.AD_Legalentity_Org_ID as ad_lega25_71_0_, organizati4_.AD_Inheritedcalendar_ID as ad_inhe26_71_0_, organizati4_.AD_Businessunit_Org_ID as ad_busi27_71_0_, organizati4_.EM_Etsg_Add_Certificate as em_etsg28_71_0_, organizati4_.EM_Prupc_Ad_Sequence_ID as em_prup29_71_0_, organizati4_.EM_Prupc_Locator_Sequence_ID as em_prup30_71_0_, organizati4_.C_Extbp_Enabled as c_extbp31_71_0_, organizati4_.C_Extbp_Config_ID as c_extbp32_71_0_, organizati4_.EM_Pruti_Planningmethod_ID as em_prut33_71_0_, organizati4_.EM_Obmobc_Credential_Timeout as em_obmo34_71_0_, adclient5_.AD_Org_ID as ad_org_i2_18_1_, adclient5_.IsActive as isactive3_18_1_, adclient5_.Created as created4_18_1_, adclient5_.CreatedBy as createdb5_18_1_, adclient5_.Updated as updated6_18_1_, adclient5_.UpdatedBy as updatedb7_18_1_, adclient5_.Value as value8_18_1_, adclient5_.Name as name9_18_1_, adclient5_.Description as descrip10_18_1_, adclient5_.SMTPHost as smtphos11_18_1_, adclient5_.RequestEMail as request12_18_1_, adclient5_.RequestUser as request13_18_1_, adclient5_.RequestUserPW as request14_18_1_, adclient5_.RequestFolder as request15_18_1_, adclient5_.AD_Language as ad_lang16_18_1_, adclient5_.IsMultiLingualDocument as ismulti17_18_1_, adclient5_.IsSmtpAuthorization as issmtpa18_18_1_, adclient5_.C_Currency_ID as c_curre19_18_1_, adclient5_.Acctdim_Centrally_Maintained as acctdim20_18_1_, adclient5_.Project_Acctdim_Isenable as project21_18_1_, adclient5_.Project_Acctdim_Header as project22_18_1_, adclient5_.Project_Acctdim_Lines as project23_18_1_, adclient5_.Project_Acctdim_Breakdown as project24_18_1_, adclient5_.Bpartner_Acctdim_Isenable as bpartne25_18_1_, adclient5_.Bpartner_Acctdim_Header as bpartne26_18_1_, adclient5_.Bpartner_Acctdim_Lines as bpartne27_18_1_, adclient5_.Bpartner_Acctdim_Breakdown as bpartne28_18_1_, adclient5_.Product_Acctdim_Isenable as product29_18_1_, adclient5_.Product_Acctdim_Header as product30_18_1_, adclient5_.Product_Acctdim_Lines as product31_18_1_, adclient5_.Product_Acctdim_Breakdown as product32_18_1_, adclient5_.Costcenter_Acctdim_Header as costcen33_18_1_, adclient5_.Costcenter_Acctdim_Lines as costcen34_18_1_, adclient5_.Costcenter_Acctdim_Breakdown as costcen35_18_1_, adclient5_.User1_Acctdim_Isenable as user36_18_1_, adclient5_.User1_Acctdim_Header as user37_18_1_, adclient5_.User1_Acctdim_Lines as user38_18_1_, adclient5_.User1_Acctdim_Breakdown as user39_18_1_, adclient5_.User2_Acctdim_Isenable as user40_18_1_, adclient5_.User2_Acctdim_Header as user41_18_1_, adclient5_.User2_Acctdim_Lines as user42_18_1_, adclient5_.User2_Acctdim_Breakdown as user43_18_1_, adclient5_.Costcenter_Acctdim_Isenable as costcen44_18_1_, adclient5_.Org_Acctdim_Isenable as org_acc45_18_1_, adclient5_.Org_Acctdim_Header as org_acc46_18_1_, adclient5_.Org_Acctdim_Lines as org_acc47_18_1_, adclient5_.Org_Acctdim_Breakdown as org_acc48_18_1_, adclient5_.DaysToPasswordExpiration as daystop49_18_1_, adclient5_.EM_Jr_Ftp_Image_Url as em_jr_f50_18_1_, adclient5_.EM_Pruti_Periodnotifications as em_prut51_18_1_, adclient5_.EM_Jr_Ftp_Image_Username as em_jr_f52_18_1_, adclient5_.EM_Jr_Ftp_Image_Password as em_jr_f53_18_1_, adclient5_.EM_Prupc_Upc_Password as em_prup54_18_1_, adclient5_.EM_Prsc_Tree_Prodcat_ID as em_prsc55_18_1_, adclient5_.EM_Pruti_Cleancache as em_prut56_18_1_, adclient5_.EM_Priuti_Openbravo_Url as em_priu57_18_1_, product6_.AD_Client_ID as ad_clien2_482_2_, product6_.AD_Org_ID as ad_org_i3_482_2_, product6_.IsActive as isactive4_482_2_, product6_.Created as created5_482_2_, product6_.CreatedBy as createdb6_482_2_, product6_.Updated as updated7_482_2_, product6_.UpdatedBy as updatedb8_482_2_, product6_.Value as value9_482_2_, product6_.Name as name10_482_2_, product6_.Description as descrip11_482_2_, product6_.DocumentNote as documen12_482_2_, product6_.Help as help13_482_2_, product6_.UPC as upc14_482_2_, product6_.SKU as sku15_482_2_, product6_.C_UOM_ID as c_uom_i16_482_2_, product6_.SalesRep_ID as salesre17_482_2_, product6_.IsSummary as issumma18_482_2_, product6_.IsStocked as isstock19_482_2_, product6_.IsPurchased as ispurch20_482_2_, product6_.IsSold as issold21_482_2_, product6_.IsBOM as isbom22_482_2_, product6_.IsInvoicePrintDetails as isinvoi23_482_2_, product6_.IsPickListPrintDetails as ispickl24_482_2_, product6_.IsVerified as isverif25_482_2_, product6_.M_Product_Category_ID as m_produ26_482_2_, product6_.Classification as classif27_482_2_, product6_.Volume as volume28_482_2_, product6_.Weight as weight29_482_2_, product6_.ShelfWidth as shelfwi30_482_2_, product6_.ShelfHeight as shelfhe31_482_2_, product6_.ShelfDepth as shelfde32_482_2_, product6_.UnitsPerPallet as unitspe33_482_2_, product6_.C_TaxCategory_ID as c_taxca34_482_2_, product6_.S_Resource_ID as s_resou35_482_2_, product6_.Discontinued as discont36_482_2_, product6_.DiscontinuedBy as discont37_482_2_, product6_.Processing as process38_482_2_, product6_.S_ExpenseType_ID as s_expen39_482_2_, product6_.ProductType as product40_482_2_, product6_.ImageURL as imageur41_482_2_, product6_.DescriptionURL as descrip42_482_2_, product6_.GuaranteeDays as guarant43_482_2_, product6_.VersionNo as version44_482_2_, product6_.M_AttributeSet_ID as m_attri45_482_2_, product6_.M_AttributeSetInstance_ID as m_attri46_482_2_, product6_.DownloadURL as downloa47_482_2_, product6_.M_FreightCategory_ID as m_freig48_482_2_, product6_.M_Locator_ID as m_locat49_482_2_, product6_.AD_Image_ID as ad_imag50_482_2_, product6_.C_BPartner_ID as c_bpart51_482_2_, product6_.Ispriceprinted as isprice52_482_2_, product6_.Name2 as name53_482_2_, product6_.Stock_Min as stock_m54_482_2_, product6_.Enforce_Attribute as enforce55_482_2_, product6_.Calculated as calcula56_482_2_, product6_.MA_Processplan_ID as ma_proc57_482_2_, product6_.Production as product58_482_2_, product6_.Capacity as capacit59_482_2_, product6_.Delaymin as delaymi60_482_2_, product6_.MRP_Planner_ID as mrp_pla61_482_2_, product6_.MRP_Planningmethod_ID as mrp_pla62_482_2_, product6_.Qtymax as qtymax63_482_2_, product6_.Qtymin as qtymin64_482_2_, product6_.Qtystd as qtystd65_482_2_, product6_.Qtytype as qtytype66_482_2_, product6_.Stockmin as stockmi67_482_2_, product6_.EM_Aeat347_Isleasebusiness as em_aeat68_482_2_, product6_.Attrsetvaluetype as attrset69_482_2_, product6_.EM_Aeat347_Situation as em_aeat70_482_2_, product6_.Isquantityvariable as isquant71_482_2_, product6_.Isdeferredrevenue as isdefer72_482_2_, product6_.EM_Aeat347_Referenceid as em_aeat73_482_2_, product6_.EM_Aeat347_Locationtype as em_aeat74_482_2_, product6_.Revplantype as revplan75_482_2_, product6_.EM_Aeat347_Streetname as em_aeat76_482_2_, product6_.Periodnumber as periodn77_482_2_, product6_.EM_Aeat347_Streetnumbertype as em_aeat78_482_2_, product6_.Isdeferredexpense as isdefer79_482_2_, product6_.EM_Aeat347_Streetnumber as em_aeat80_482_2_, product6_.Expplantype as expplan81_482_2_, product6_.EM_Aeat347_Streetnumberqua as em_aeat82_482_2_, product6_.Periodnumber_Exp as periodn83_482_2_, product6_.DefaultPeriod as default84_482_2_, product6_.EM_Aeat347_Building as em_aeat85_482_2_, product6_.DefaultPeriod_Exp as default86_482_2_, product6_.EM_Aeat347_Hall as em_aeat87_482_2_, product6_.Bookusingpoprice as bookusi88_482_2_, product6_.EM_Aeat347_Hallway as em_aeat89_482_2_, product6_.EM_Aeat347_Floor as em_aeat90_482_2_, product6_.C_Uom_Weight_ID as c_uom_w91_482_2_, product6_.M_Brand_ID as m_brand92_482_2_, product6_.EM_Aeat347_Apartment as em_aeat93_482_2_, product6_.EM_Aeat347_Complement as em_aeat94_482_2_, product6_.IsGeneric as isgener95_482_2_, product6_.EM_Aeat347_Location as em_aeat96_482_2_, product6_.Generic_Product_ID as generic97_482_2_, product6_.CreateVariants as createv98_482_2_, product6_.EM_Aeat347_County as em_aeat99_482_2_, product6_.Characteristic_Desc as charac100_482_2_, product6_.EM_Aeat347_Countycode as em_aea101_482_2_, product6_.EM_Aeat347_Regioncode as em_aea102_482_2_, product6_.Updateinvariants as update103_482_2_, product6_.EM_Aeat347_Zipcode as em_aea104_482_2_, product6_.ManageVariants as manage105_482_2_, product6_.Prod_Cat_Selection as prod_c106_482_2_, product6_.Product_Selection as produc107_482_2_, product6_.Print_Description as print_108_482_2_, product6_.Returnable as return109_482_2_, product6_.Overdue_Return_Days as overdu110_482_2_, product6_.Ispricerulebased as ispric111_482_2_, product6_.Unique_Per_Document as unique112_482_2_, product6_.Relateprodcattoservice as relate113_482_2_, product6_.Relateprodtoservice as relate114_482_2_, product6_.Islinkedtoproduct as islink115_482_2_, product6_.Quantity_Rule as quanti116_482_2_, product6_.Allow_Deferred_Sell as allow_117_482_2_, product6_.Deferred_Sell_Max_Days as deferr118_482_2_, product6_.M_Product_Status_ID as m_prod119_482_2_, product6_.Ismodifytax as ismodi120_482_2_, product6_.Relateprodcattaxtoservice as relate121_482_2_, product6_.Copyservicemodifytaxconfig as copyse122_482_2_, product6_.EM_Jr_Stocktype as em_jr_123_482_2_, product6_.EM_Obmupc_Multiupc_Desc as em_obm124_482_2_, product6_.EM_Prupc_Generate_Ean as em_pru125_482_2_, product6_.EM_Prsc_Isdeliverycosts as em_prs126_482_2_, product6_.EM_Pruti_Addmodifycharact as em_pru127_482_2_, uom7_.AD_Client_ID as ad_clien2_322_3_, uom7_.AD_Org_ID as ad_org_i3_322_3_, uom7_.IsActive as isactive4_322_3_, uom7_.Created as created5_322_3_, uom7_.Updated as updated6_322_3_, uom7_.CreatedBy as createdb7_322_3_, uom7_.UpdatedBy as updatedb8_322_3_, uom7_.X12DE355 as x9_322_3_, uom7_.UOMSymbol as uomsymb10_322_3_, uom7_.Name as name11_322_3_, uom7_.Description as descrip12_322_3_, uom7_.StdPrecision as stdprec13_322_3_, uom7_.CostingPrecision as costing14_322_3_, uom7_.IsDefault as isdefau15_322_3_, uom7_.Breakdown as breakdo16_322_3_, uom7_.UOM_Type as uom_typ17_322_3_, uom7_.EM_Obwpack_Isweight as em_obwp18_322_3_, uom7_.Useinproduction as useinpr19_322_3_, businesspa8_.AD_Client_ID as ad_clien2_188_4_, businesspa8_.AD_Org_ID as ad_org_i3_188_4_, businesspa8_.IsActive as isactive4_188_4_, businesspa8_.Created as created5_188_4_, businesspa8_.CreatedBy as createdb6_188_4_, businesspa8_.Updated as updated7_188_4_, businesspa8_.UpdatedBy as updatedb8_188_4_, businesspa8_.Value as value9_188_4_, businesspa8_.Name as name10_188_4_, businesspa8_.Name2 as name11_188_4_, businesspa8_.Description as descrip12_188_4_, businesspa8_.IsSummary as issumma13_188_4_, businesspa8_.C_BP_Group_ID as c_bp_gr14_188_4_, businesspa8_.IsOneTime as isoneti15_188_4_, businesspa8_.IsProspect as isprosp16_188_4_, businesspa8_.IsVendor as isvendo17_188_4_, businesspa8_.IsCustomer as iscusto18_188_4_, businesspa8_.IsEmployee as isemplo19_188_4_, businesspa8_.IsSalesRep as issales20_188_4_, businesspa8_.ReferenceNo as referen21_188_4_, businesspa8_.DUNS as duns22_188_4_, businesspa8_.URL as url23_188_4_, businesspa8_.AD_Language as ad_lang24_188_4_, businesspa8_.TaxID as taxid25_188_4_, businesspa8_.IsTaxExempt as istaxex26_188_4_, businesspa8_.C_InvoiceSchedule_ID as c_invoi27_188_4_, businesspa8_.Rating as rating28_188_4_, businesspa8_.SalesVolume as salesvo29_188_4_, businesspa8_.NumberEmployees as numbere30_188_4_, businesspa8_.NAICS as naics31_188_4_, businesspa8_.FirstSale as firstsa32_188_4_, businesspa8_.AcqusitionCost as acqusit33_188_4_, businesspa8_.PotentialLifeTimeValue as potenti34_188_4_, businesspa8_.ActualLifeTimeValue as actuall35_188_4_, businesspa8_.ShareOfCustomer as shareof36_188_4_, businesspa8_.PaymentRule as payment37_188_4_, businesspa8_.SO_CreditLimit as so_cred38_188_4_, businesspa8_.SO_CreditUsed as so_cred39_188_4_, businesspa8_.C_PaymentTerm_ID as c_payme40_188_4_, businesspa8_.M_PriceList_ID as m_price41_188_4_, businesspa8_.IsDiscountPrinted as isdisco42_188_4_, businesspa8_.SO_Description as so_desc43_188_4_, businesspa8_.POReference as porefer44_188_4_, businesspa8_.PaymentRulePO as payment45_188_4_, businesspa8_.PO_PriceList_ID as po_pric46_188_4_, businesspa8_.PO_PaymentTerm_ID as po_paym47_188_4_, businesspa8_.DocumentCopies as documen48_188_4_, businesspa8_.C_Greeting_ID as c_greet49_188_4_, businesspa8_.InvoiceRule as invoice50_188_4_, businesspa8_.DeliveryRule as deliver51_188_4_, businesspa8_.DeliveryViaRule as deliver52_188_4_, businesspa8_.SalesRep_ID as salesre53_188_4_, businesspa8_.BPartner_Parent_ID as bpartne54_188_4_, businesspa8_.SOCreditStatus as socredi55_188_4_, businesspa8_.AD_Forced_Org_ID as ad_forc56_188_4_, businesspa8_.ShowPriceInOrder as showpri57_188_4_, businesspa8_.Invoicegrouping as invoice58_188_4_, businesspa8_.FixMonthDay as fixmont59_188_4_, businesspa8_.FixMonthDay2 as fixmont60_188_4_, businesspa8_.Fixmonthday3 as fixmont61_188_4_, businesspa8_.Isworker as isworke62_188_4_, businesspa8_.UPC as upc63_188_4_, businesspa8_.C_Salary_Category_ID as c_salar64_188_4_, businesspa8_.Invoice_Printformat as invoice65_188_4_, businesspa8_.Last_Days as last_da66_188_4_, businesspa8_.PO_Bankaccount_ID as po_bank67_188_4_, businesspa8_.PO_BP_TaxCategory_ID as po_bp_t68_188_4_, businesspa8_.PO_Fixmonthday as po_fixm69_188_4_, businesspa8_.PO_Fixmonthday2 as po_fixm70_188_4_, businesspa8_.PO_Fixmonthday3 as po_fixm71_188_4_, businesspa8_.SO_Bankaccount_ID as so_bank72_188_4_, businesspa8_.SO_Bp_Taxcategory_ID as so_bp_t73_188_4_, businesspa8_.Fiscalcode as fiscalc74_188_4_, businesspa8_.Isofiscalcode as isofisc75_188_4_, businesspa8_.EM_Einv_Einvoice as em_einv76_188_4_, businesspa8_.PO_C_Incoterms_ID as po_c_in77_188_4_, businesspa8_.EM_Einv_Format_Id as em_einv78_188_4_, businesspa8_.SO_C_Incoterms_ID as so_c_in79_188_4_, businesspa8_.EM_Einv_Platform_Id as em_einv80_188_4_, businesspa8_.FIN_Paymentmethod_ID as fin_pay81_188_4_, businesspa8_.EM_Einv_Email as em_einv82_188_4_, businesspa8_.PO_Paymentmethod_ID as po_paym83_188_4_, businesspa8_.FIN_Financial_Account_ID as fin_fin84_188_4_, businesspa8_.EM_Einv_Deliverymode as em_einv85_188_4_, businesspa8_.PO_Financial_Account_ID as po_fina86_188_4_, businesspa8_.Customer_Blocking as custome87_188_4_, businesspa8_.Vendor_Blocking as vendor_88_188_4_, businesspa8_.SO_Payment_Blocking as so_paym89_188_4_, businesspa8_.PO_Payment_Blocking as po_paym90_188_4_, businesspa8_.SO_Invoice_Blocking as so_invo91_188_4_, businesspa8_.PO_Invoice_Blocking as po_invo92_188_4_, businesspa8_.SO_Order_Blocking as so_orde93_188_4_, businesspa8_.PO_Order_Blocking as po_orde94_188_4_, businesspa8_.SO_Goods_Blocking as so_good95_188_4_, businesspa8_.PO_Goods_Blocking as po_good96_188_4_, businesspa8_.Iscashvat as iscashv97_188_4_, businesspa8_.Update_Currency as update_98_188_4_, businesspa8_.BP_Currency_ID as bp_curr99_188_4_, businesspa8_.Birthplace as birthp100_188_4_, businesspa8_.Birthday as birthd101_188_4_, businesspa8_.Is_Customer_Consent as is_cus102_188_4_, businesspa8_.EM_Obsepad_Mandate_Identifier as em_obs103_188_4_, businesspa8_.EM_Obsepad_Mandate_Date as em_obs104_188_4_, businesspa8_.EM_Aeatsii_Rep_Taxid as em_aea105_188_4_, businesspa8_.EM_Jr_Inoutval as em_jr_106_188_4_, businesspa8_.EM_Aeatsii_Menor as em_aea107_188_4_, businesspa8_.EM_Jr_Isgeneric as em_jr_108_188_4_, businesspa8_.EM_Pruti_Addbp as em_pru109_188_4_, businesspa8_.EM_Prei_Iseinvoice as em_pre110_188_4_, businesspa8_.EM_Prei_Format_ID as em_pre111_188_4_, businesspa8_.EM_Pruti_Unlock_Date as em_pru112_188_4_, businesspa8_.EM_Prei_Platform_ID as em_pre113_188_4_, businesspa8_.EM_Pruti_Unlock_Order_Date as em_pru114_188_4_, businesspa8_.EM_Prei_Send_Method as em_pre115_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_So_ID as em_pru116_188_4_, businesspa8_.EM_Prei_Email as em_pre117_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_Po_ID as em_pru118_188_4_, businesspa8_.EM_Prei_Need_Expedient as em_pre119_188_4_, businesspa8_.EM_Aeatsii_Defaultsiikey as em_aea120_188_4_, businesspa8_.EM_Aeatsii_Siikeylist as em_aea121_188_4_, businesspa8_.EM_Tbai_Issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.EM_Pruti_Notsendinvoice as em_pru124_188_4_, businesspa8_.EM_OBTIK_Tax_ID_Key as em_obt125_188_4_, attributes1_.AD_Client_ID as ad_clien2_418_5_, attributes1_.AD_Org_ID as ad_org_i3_418_5_, attributes1_.IsActive as isactive4_418_5_, attributes1_.Created as created5_418_5_, attributes1_.CreatedBy as createdb6_418_5_, attributes1_.Updated as updated7_418_5_, attributes1_.UpdatedBy as updatedb8_418_5_, attributes1_.M_AttributeSet_ID as m_attrib9_418_5_, attributes1_.SerNo as serno10_418_5_, attributes1_.Lot as lot11_418_5_, attributes1_.GuaranteeDate as guarant12_418_5_, attributes1_.Description as descrip13_418_5_, attributes1_.M_Lot_ID as m_lot_i14_418_5_, attributes1_.Islocked as islocke15_418_5_, attributes1_.Lock_Description as lock_de16_418_5_, attributes1_.M_RefInventory_ID as m_refin17_418_5_, attributes1_.Parent_AttributeSetInstance_ID as parent_18_418_5_ from M_InOutLine materialmg0_ left outer join M_AttributeSetInstance attributes1_ on materialmg0_.M_AttributeSetInstance_ID=attributes1_.M_AttributeSetInstance_ID inner join M_InOut materialmg2_ on materialmg0_.M_InOut_ID=materialmg2_.M_InOut_ID inner join C_DocType documentty3_ on materialmg2_.C_DocType_ID=documentty3_.C_DocType_ID inner join C_BPartner businesspa8_ on materialmg2_.C_BPartner_ID=businesspa8_.C_BPartner_ID inner join AD_Org organizati4_ on materialmg0_.AD_Org_ID=organizati4_.AD_Org_ID inner join AD_Client adclient5_ on materialmg0_.AD_Client_ID=adclient5_.AD_Client_ID inner join M_Product product6_ on materialmg0_.M_Product_ID=product6_.M_Product_ID inner join C_UOM uom7_ on materialmg0_.C_UOM_ID=uom7_.C_UOM_ID where materialmg2_.C_BPartner_ID='1010332' and documentty3_.IsReturn='N' and materialmg2_.Processed='Y' and materialmg2_.DocStatus<>'VO' and materialmg2_.IsSOTrx='Y' and materialmg2_.Isnettingshipment='N' and materialmg0_.MovementQty+coalesce((select sum(orderline38_.QtyOrdered) from C_OrderLine orderline38_ inner join C_Order order39_ on orderline38_.C_Order_ID=order39_.C_Order_ID where orderline38_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order39_.Processed='Y' and order39_.DocStatus<>'VO'), 0)<>0 and 1=1 and (materialmg0_.AD_Client_ID in ('0' , '4E7785E633254999A6D7545B0BE57A46')) and (materialmg0_.AD_Org_ID in ('0' , 'C34A537D1464452783C0A7C7C913FC86' , '4A2127624482427B8B0BE0DD8ABF92D4' , '3724B485FEC444038C28CAEE0F24E7E6' , 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (materialmg2_.MovementDate>=now()-90 or case when (select 'Y' from C_OrderLine orderline40_ where orderline40_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline40_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.MovementDate desc, materialmg2_.DocumentNo desc, materialmg0_.Line limit '101';
Date: 2026-07-17 09:54:51 Duration: 2s573ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOutLine_ID as col_0_0_, materialmg0_.AD_Org_ID as col_1_0_, materialmg0_.AD_Client_ID as col_2_0_, materialmg0_.M_Product_ID as col_3_0_, materialmg0_.C_UOM_ID as col_4_0_, materialmg0_.M_InOutLine_ID as col_5_0_, materialmg0_.MovementQty as col_6_0_, materialmg2_.C_BPartner_ID as col_7_0_, materialmg2_.DocumentNo as col_8_0_, materialmg2_.MovementDate as col_9_0_, attributes1_.M_AttributeSetInstance_ID as col_10_0_, (select orderline9_.C_OrderLine_ID from C_OrderLine orderline9_ where orderline9_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline9_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_11_0_, (select uom10_.Name from C_UOM uom10_ where uom10_.C_UOM_ID in (case when (select 'Y' from C_OrderLine orderline11_ where orderline11_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline11_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline12_.C_Aum from C_OrderLine orderline12_ where orderline12_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline12_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 'Y') end)) as col_12_0_, case when materialmg0_.Aumqty is not null then materialmg0_.Aumqty else m_get_converted_aumqty(materialmg0_.M_Product_ID,materialmg0_.MovementQty,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID)) end as col_13_0_, case when (select 'Y' from C_OrderLine orderline13_ where orderline13_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline13_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when materialmg0_.C_Aum is not null then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline14_.C_Aum from C_OrderLine orderline14_ where orderline14_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline14_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), '') end as col_14_0_, (select uom15_.C_UOM_ID from C_UOM uom15_ where uom15_.C_UOM_ID in (case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end)) as col_15_0_, case when (select 'Y' from C_OrderLine orderline16_ where orderline16_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline16_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')='0' then to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID))) else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,materialmg0_.C_Aum)) end else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,coalesce((select orderline17_.C_Aum from C_OrderLine orderline17_ where orderline17_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline17_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), ''))) end as col_16_0_, coalesce((select sum(orderline18_.QtyOrdered) from C_OrderLine orderline18_ inner join C_Order order19_ on orderline18_.C_Order_ID=order19_.C_Order_ID where orderline18_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order19_.Processed='Y' and order19_.DocStatus<>'VO'), 0)*-1 as col_17_0_, case when (select 'Y' from C_OrderLine orderline20_ where orderline20_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline20_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end as col_18_0_, coalesce((select orderline21_.QtyOrdered from C_OrderLine orderline21_ where orderline21_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline21_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 0)*-1 as col_19_0_, (select orderline22_.C_Return_Reason_ID from C_OrderLine orderline22_ cross join C_Return_Reason returnreas23_ where orderline22_.C_Return_Reason_ID=returnreas23_.C_Return_Reason_ID and orderline22_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline22_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_20_0_, coalesce((select orderline24_.C_Tax_ID from C_OrderLine orderline24_ where orderline24_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline24_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline26_.C_Tax_ID from M_InOutLine materialmg25_ cross join C_OrderLine orderline26_ where materialmg25_.C_OrderLine_ID=orderline26_.C_OrderLine_ID and materialmg25_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) as col_21_0_, case when (select pricingpri28_.IsTaxIncluded from C_Order order27_ cross join M_PriceList pricingpri28_ where order27_.M_PriceList_ID=pricingpri28_.M_PriceList_ID and order27_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30')='Y' then coalesce((select orderline29_.PriceActual from C_OrderLine orderline29_ where orderline29_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline29_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline31_.Gross_Unit_Price from M_InOutLine materialmg30_ cross join C_OrderLine orderline31_ where materialmg30_.C_OrderLine_ID=orderline31_.C_OrderLine_ID and materialmg30_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) else coalesce((select orderline32_.PriceActual from C_OrderLine orderline32_ where orderline32_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline32_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline34_.PriceActual from M_InOutLine materialmg33_ cross join C_OrderLine orderline34_ where materialmg33_.C_OrderLine_ID=orderline34_.C_OrderLine_ID and materialmg33_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) end as col_22_0_, (select order37_.DocumentNo from M_InOutLine materialmg35_ cross join C_OrderLine orderline36_ cross join C_Order order37_ where materialmg35_.C_OrderLine_ID=orderline36_.C_OrderLine_ID and orderline36_.C_Order_ID=order37_.C_Order_ID and materialmg35_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID) as col_23_0_, organizati4_.AD_Org_ID as ad_org_i1_71_0_, adclient5_.AD_Client_ID as ad_clien1_18_1_, product6_.M_Product_ID as m_produc1_482_2_, uom7_.C_UOM_ID as c_uom_id1_322_3_, businesspa8_.C_BPartner_ID as c_bpartn1_188_4_, attributes1_.M_AttributeSetInstance_ID as m_attrib1_418_5_, organizati4_.AD_Client_ID as ad_clien2_71_0_, organizati4_.IsActive as isactive3_71_0_, organizati4_.Created as created4_71_0_, organizati4_.CreatedBy as createdb5_71_0_, organizati4_.Updated as updated6_71_0_, organizati4_.UpdatedBy as updatedb7_71_0_, organizati4_.Value as value8_71_0_, organizati4_.Name as name9_71_0_, organizati4_.Description as descrip10_71_0_, organizati4_.IsSummary as issumma11_71_0_, organizati4_.AD_Orgtype_ID as ad_orgt12_71_0_, organizati4_.IsPeriodControlAllowed as isperio13_71_0_, organizati4_.C_Calendar_ID as c_calen14_71_0_, organizati4_.IsReady as isready15_71_0_, organizati4_.EM_Intr_C_Calendar_ID as em_intr16_71_0_, organizati4_.Social_Name as social_17_71_0_, organizati4_.C_Currency_ID as c_curre18_71_0_, organizati4_.C_Acctschema_ID as c_accts19_71_0_, organizati4_.EM_APRM_Glitem_ID as em_aprm20_71_0_, organizati4_.EM_OBMFM_Product_ID as em_obmf21_71_0_, organizati4_.AD_Periodcontrolallowed_Org_ID as ad_peri22_71_0_, organizati4_.AD_Calendarowner_Org_ID as ad_cale23_71_0_, organizati4_.EM_Obwpack_Uom_ID as em_obwp24_71_0_, organizati4_.AD_Legalentity_Org_ID as ad_lega25_71_0_, organizati4_.AD_Inheritedcalendar_ID as ad_inhe26_71_0_, organizati4_.AD_Businessunit_Org_ID as ad_busi27_71_0_, organizati4_.EM_Etsg_Add_Certificate as em_etsg28_71_0_, organizati4_.EM_Prupc_Ad_Sequence_ID as em_prup29_71_0_, organizati4_.EM_Prupc_Locator_Sequence_ID as em_prup30_71_0_, organizati4_.C_Extbp_Enabled as c_extbp31_71_0_, organizati4_.C_Extbp_Config_ID as c_extbp32_71_0_, organizati4_.EM_Pruti_Planningmethod_ID as em_prut33_71_0_, organizati4_.EM_Obmobc_Credential_Timeout as em_obmo34_71_0_, adclient5_.AD_Org_ID as ad_org_i2_18_1_, adclient5_.IsActive as isactive3_18_1_, adclient5_.Created as created4_18_1_, adclient5_.CreatedBy as createdb5_18_1_, adclient5_.Updated as updated6_18_1_, adclient5_.UpdatedBy as updatedb7_18_1_, adclient5_.Value as value8_18_1_, adclient5_.Name as name9_18_1_, adclient5_.Description as descrip10_18_1_, adclient5_.SMTPHost as smtphos11_18_1_, adclient5_.RequestEMail as request12_18_1_, adclient5_.RequestUser as request13_18_1_, adclient5_.RequestUserPW as request14_18_1_, adclient5_.RequestFolder as request15_18_1_, adclient5_.AD_Language as ad_lang16_18_1_, adclient5_.IsMultiLingualDocument as ismulti17_18_1_, adclient5_.IsSmtpAuthorization as issmtpa18_18_1_, adclient5_.C_Currency_ID as c_curre19_18_1_, adclient5_.Acctdim_Centrally_Maintained as acctdim20_18_1_, adclient5_.Project_Acctdim_Isenable as project21_18_1_, adclient5_.Project_Acctdim_Header as project22_18_1_, adclient5_.Project_Acctdim_Lines as project23_18_1_, adclient5_.Project_Acctdim_Breakdown as project24_18_1_, adclient5_.Bpartner_Acctdim_Isenable as bpartne25_18_1_, adclient5_.Bpartner_Acctdim_Header as bpartne26_18_1_, adclient5_.Bpartner_Acctdim_Lines as bpartne27_18_1_, adclient5_.Bpartner_Acctdim_Breakdown as bpartne28_18_1_, adclient5_.Product_Acctdim_Isenable as product29_18_1_, adclient5_.Product_Acctdim_Header as product30_18_1_, adclient5_.Product_Acctdim_Lines as product31_18_1_, adclient5_.Product_Acctdim_Breakdown as product32_18_1_, adclient5_.Costcenter_Acctdim_Header as costcen33_18_1_, adclient5_.Costcenter_Acctdim_Lines as costcen34_18_1_, adclient5_.Costcenter_Acctdim_Breakdown as costcen35_18_1_, adclient5_.User1_Acctdim_Isenable as user36_18_1_, adclient5_.User1_Acctdim_Header as user37_18_1_, adclient5_.User1_Acctdim_Lines as user38_18_1_, adclient5_.User1_Acctdim_Breakdown as user39_18_1_, adclient5_.User2_Acctdim_Isenable as user40_18_1_, adclient5_.User2_Acctdim_Header as user41_18_1_, adclient5_.User2_Acctdim_Lines as user42_18_1_, adclient5_.User2_Acctdim_Breakdown as user43_18_1_, adclient5_.Costcenter_Acctdim_Isenable as costcen44_18_1_, adclient5_.Org_Acctdim_Isenable as org_acc45_18_1_, adclient5_.Org_Acctdim_Header as org_acc46_18_1_, adclient5_.Org_Acctdim_Lines as org_acc47_18_1_, adclient5_.Org_Acctdim_Breakdown as org_acc48_18_1_, adclient5_.DaysToPasswordExpiration as daystop49_18_1_, adclient5_.EM_Jr_Ftp_Image_Url as em_jr_f50_18_1_, adclient5_.EM_Pruti_Periodnotifications as em_prut51_18_1_, adclient5_.EM_Jr_Ftp_Image_Username as em_jr_f52_18_1_, adclient5_.EM_Jr_Ftp_Image_Password as em_jr_f53_18_1_, adclient5_.EM_Prupc_Upc_Password as em_prup54_18_1_, adclient5_.EM_Prsc_Tree_Prodcat_ID as em_prsc55_18_1_, adclient5_.EM_Pruti_Cleancache as em_prut56_18_1_, adclient5_.EM_Priuti_Openbravo_Url as em_priu57_18_1_, product6_.AD_Client_ID as ad_clien2_482_2_, product6_.AD_Org_ID as ad_org_i3_482_2_, product6_.IsActive as isactive4_482_2_, product6_.Created as created5_482_2_, product6_.CreatedBy as createdb6_482_2_, product6_.Updated as updated7_482_2_, product6_.UpdatedBy as updatedb8_482_2_, product6_.Value as value9_482_2_, product6_.Name as name10_482_2_, product6_.Description as descrip11_482_2_, product6_.DocumentNote as documen12_482_2_, product6_.Help as help13_482_2_, product6_.UPC as upc14_482_2_, product6_.SKU as sku15_482_2_, product6_.C_UOM_ID as c_uom_i16_482_2_, product6_.SalesRep_ID as salesre17_482_2_, product6_.IsSummary as issumma18_482_2_, product6_.IsStocked as isstock19_482_2_, product6_.IsPurchased as ispurch20_482_2_, product6_.IsSold as issold21_482_2_, product6_.IsBOM as isbom22_482_2_, product6_.IsInvoicePrintDetails as isinvoi23_482_2_, product6_.IsPickListPrintDetails as ispickl24_482_2_, product6_.IsVerified as isverif25_482_2_, product6_.M_Product_Category_ID as m_produ26_482_2_, product6_.Classification as classif27_482_2_, product6_.Volume as volume28_482_2_, product6_.Weight as weight29_482_2_, product6_.ShelfWidth as shelfwi30_482_2_, product6_.ShelfHeight as shelfhe31_482_2_, product6_.ShelfDepth as shelfde32_482_2_, product6_.UnitsPerPallet as unitspe33_482_2_, product6_.C_TaxCategory_ID as c_taxca34_482_2_, product6_.S_Resource_ID as s_resou35_482_2_, product6_.Discontinued as discont36_482_2_, product6_.DiscontinuedBy as discont37_482_2_, product6_.Processing as process38_482_2_, product6_.S_ExpenseType_ID as s_expen39_482_2_, product6_.ProductType as product40_482_2_, product6_.ImageURL as imageur41_482_2_, product6_.DescriptionURL as descrip42_482_2_, product6_.GuaranteeDays as guarant43_482_2_, product6_.VersionNo as version44_482_2_, product6_.M_AttributeSet_ID as m_attri45_482_2_, product6_.M_AttributeSetInstance_ID as m_attri46_482_2_, product6_.DownloadURL as downloa47_482_2_, product6_.M_FreightCategory_ID as m_freig48_482_2_, product6_.M_Locator_ID as m_locat49_482_2_, product6_.AD_Image_ID as ad_imag50_482_2_, product6_.C_BPartner_ID as c_bpart51_482_2_, product6_.Ispriceprinted as isprice52_482_2_, product6_.Name2 as name53_482_2_, product6_.Stock_Min as stock_m54_482_2_, product6_.Enforce_Attribute as enforce55_482_2_, product6_.Calculated as calcula56_482_2_, product6_.MA_Processplan_ID as ma_proc57_482_2_, product6_.Production as product58_482_2_, product6_.Capacity as capacit59_482_2_, product6_.Delaymin as delaymi60_482_2_, product6_.MRP_Planner_ID as mrp_pla61_482_2_, product6_.MRP_Planningmethod_ID as mrp_pla62_482_2_, product6_.Qtymax as qtymax63_482_2_, product6_.Qtymin as qtymin64_482_2_, product6_.Qtystd as qtystd65_482_2_, product6_.Qtytype as qtytype66_482_2_, product6_.Stockmin as stockmi67_482_2_, product6_.EM_Aeat347_Isleasebusiness as em_aeat68_482_2_, product6_.Attrsetvaluetype as attrset69_482_2_, product6_.EM_Aeat347_Situation as em_aeat70_482_2_, product6_.Isquantityvariable as isquant71_482_2_, product6_.Isdeferredrevenue as isdefer72_482_2_, product6_.EM_Aeat347_Referenceid as em_aeat73_482_2_, product6_.EM_Aeat347_Locationtype as em_aeat74_482_2_, product6_.Revplantype as revplan75_482_2_, product6_.EM_Aeat347_Streetname as em_aeat76_482_2_, product6_.Periodnumber as periodn77_482_2_, product6_.EM_Aeat347_Streetnumbertype as em_aeat78_482_2_, product6_.Isdeferredexpense as isdefer79_482_2_, product6_.EM_Aeat347_Streetnumber as em_aeat80_482_2_, product6_.Expplantype as expplan81_482_2_, product6_.EM_Aeat347_Streetnumberqua as em_aeat82_482_2_, product6_.Periodnumber_Exp as periodn83_482_2_, product6_.DefaultPeriod as default84_482_2_, product6_.EM_Aeat347_Building as em_aeat85_482_2_, product6_.DefaultPeriod_Exp as default86_482_2_, product6_.EM_Aeat347_Hall as em_aeat87_482_2_, product6_.Bookusingpoprice as bookusi88_482_2_, product6_.EM_Aeat347_Hallway as em_aeat89_482_2_, product6_.EM_Aeat347_Floor as em_aeat90_482_2_, product6_.C_Uom_Weight_ID as c_uom_w91_482_2_, product6_.M_Brand_ID as m_brand92_482_2_, product6_.EM_Aeat347_Apartment as em_aeat93_482_2_, product6_.EM_Aeat347_Complement as em_aeat94_482_2_, product6_.IsGeneric as isgener95_482_2_, product6_.EM_Aeat347_Location as em_aeat96_482_2_, product6_.Generic_Product_ID as generic97_482_2_, product6_.CreateVariants as createv98_482_2_, product6_.EM_Aeat347_County as em_aeat99_482_2_, product6_.Characteristic_Desc as charac100_482_2_, product6_.EM_Aeat347_Countycode as em_aea101_482_2_, product6_.EM_Aeat347_Regioncode as em_aea102_482_2_, product6_.Updateinvariants as update103_482_2_, product6_.EM_Aeat347_Zipcode as em_aea104_482_2_, product6_.ManageVariants as manage105_482_2_, product6_.Prod_Cat_Selection as prod_c106_482_2_, product6_.Product_Selection as produc107_482_2_, product6_.Print_Description as print_108_482_2_, product6_.Returnable as return109_482_2_, product6_.Overdue_Return_Days as overdu110_482_2_, product6_.Ispricerulebased as ispric111_482_2_, product6_.Unique_Per_Document as unique112_482_2_, product6_.Relateprodcattoservice as relate113_482_2_, product6_.Relateprodtoservice as relate114_482_2_, product6_.Islinkedtoproduct as islink115_482_2_, product6_.Quantity_Rule as quanti116_482_2_, product6_.Allow_Deferred_Sell as allow_117_482_2_, product6_.Deferred_Sell_Max_Days as deferr118_482_2_, product6_.M_Product_Status_ID as m_prod119_482_2_, product6_.Ismodifytax as ismodi120_482_2_, product6_.Relateprodcattaxtoservice as relate121_482_2_, product6_.Copyservicemodifytaxconfig as copyse122_482_2_, product6_.EM_Jr_Stocktype as em_jr_123_482_2_, product6_.EM_Obmupc_Multiupc_Desc as em_obm124_482_2_, product6_.EM_Prupc_Generate_Ean as em_pru125_482_2_, product6_.EM_Prsc_Isdeliverycosts as em_prs126_482_2_, product6_.EM_Pruti_Addmodifycharact as em_pru127_482_2_, uom7_.AD_Client_ID as ad_clien2_322_3_, uom7_.AD_Org_ID as ad_org_i3_322_3_, uom7_.IsActive as isactive4_322_3_, uom7_.Created as created5_322_3_, uom7_.Updated as updated6_322_3_, uom7_.CreatedBy as createdb7_322_3_, uom7_.UpdatedBy as updatedb8_322_3_, uom7_.X12DE355 as x9_322_3_, uom7_.UOMSymbol as uomsymb10_322_3_, uom7_.Name as name11_322_3_, uom7_.Description as descrip12_322_3_, uom7_.StdPrecision as stdprec13_322_3_, uom7_.CostingPrecision as costing14_322_3_, uom7_.IsDefault as isdefau15_322_3_, uom7_.Breakdown as breakdo16_322_3_, uom7_.UOM_Type as uom_typ17_322_3_, uom7_.EM_Obwpack_Isweight as em_obwp18_322_3_, uom7_.Useinproduction as useinpr19_322_3_, businesspa8_.AD_Client_ID as ad_clien2_188_4_, businesspa8_.AD_Org_ID as ad_org_i3_188_4_, businesspa8_.IsActive as isactive4_188_4_, businesspa8_.Created as created5_188_4_, businesspa8_.CreatedBy as createdb6_188_4_, businesspa8_.Updated as updated7_188_4_, businesspa8_.UpdatedBy as updatedb8_188_4_, businesspa8_.Value as value9_188_4_, businesspa8_.Name as name10_188_4_, businesspa8_.Name2 as name11_188_4_, businesspa8_.Description as descrip12_188_4_, businesspa8_.IsSummary as issumma13_188_4_, businesspa8_.C_BP_Group_ID as c_bp_gr14_188_4_, businesspa8_.IsOneTime as isoneti15_188_4_, businesspa8_.IsProspect as isprosp16_188_4_, businesspa8_.IsVendor as isvendo17_188_4_, businesspa8_.IsCustomer as iscusto18_188_4_, businesspa8_.IsEmployee as isemplo19_188_4_, businesspa8_.IsSalesRep as issales20_188_4_, businesspa8_.ReferenceNo as referen21_188_4_, businesspa8_.DUNS as duns22_188_4_, businesspa8_.URL as url23_188_4_, businesspa8_.AD_Language as ad_lang24_188_4_, businesspa8_.TaxID as taxid25_188_4_, businesspa8_.IsTaxExempt as istaxex26_188_4_, businesspa8_.C_InvoiceSchedule_ID as c_invoi27_188_4_, businesspa8_.Rating as rating28_188_4_, businesspa8_.SalesVolume as salesvo29_188_4_, businesspa8_.NumberEmployees as numbere30_188_4_, businesspa8_.NAICS as naics31_188_4_, businesspa8_.FirstSale as firstsa32_188_4_, businesspa8_.AcqusitionCost as acqusit33_188_4_, businesspa8_.PotentialLifeTimeValue as potenti34_188_4_, businesspa8_.ActualLifeTimeValue as actuall35_188_4_, businesspa8_.ShareOfCustomer as shareof36_188_4_, businesspa8_.PaymentRule as payment37_188_4_, businesspa8_.SO_CreditLimit as so_cred38_188_4_, businesspa8_.SO_CreditUsed as so_cred39_188_4_, businesspa8_.C_PaymentTerm_ID as c_payme40_188_4_, businesspa8_.M_PriceList_ID as m_price41_188_4_, businesspa8_.IsDiscountPrinted as isdisco42_188_4_, businesspa8_.SO_Description as so_desc43_188_4_, businesspa8_.POReference as porefer44_188_4_, businesspa8_.PaymentRulePO as payment45_188_4_, businesspa8_.PO_PriceList_ID as po_pric46_188_4_, businesspa8_.PO_PaymentTerm_ID as po_paym47_188_4_, businesspa8_.DocumentCopies as documen48_188_4_, businesspa8_.C_Greeting_ID as c_greet49_188_4_, businesspa8_.InvoiceRule as invoice50_188_4_, businesspa8_.DeliveryRule as deliver51_188_4_, businesspa8_.DeliveryViaRule as deliver52_188_4_, businesspa8_.SalesRep_ID as salesre53_188_4_, businesspa8_.BPartner_Parent_ID as bpartne54_188_4_, businesspa8_.SOCreditStatus as socredi55_188_4_, businesspa8_.AD_Forced_Org_ID as ad_forc56_188_4_, businesspa8_.ShowPriceInOrder as showpri57_188_4_, businesspa8_.Invoicegrouping as invoice58_188_4_, businesspa8_.FixMonthDay as fixmont59_188_4_, businesspa8_.FixMonthDay2 as fixmont60_188_4_, businesspa8_.Fixmonthday3 as fixmont61_188_4_, businesspa8_.Isworker as isworke62_188_4_, businesspa8_.UPC as upc63_188_4_, businesspa8_.C_Salary_Category_ID as c_salar64_188_4_, businesspa8_.Invoice_Printformat as invoice65_188_4_, businesspa8_.Last_Days as last_da66_188_4_, businesspa8_.PO_Bankaccount_ID as po_bank67_188_4_, businesspa8_.PO_BP_TaxCategory_ID as po_bp_t68_188_4_, businesspa8_.PO_Fixmonthday as po_fixm69_188_4_, businesspa8_.PO_Fixmonthday2 as po_fixm70_188_4_, businesspa8_.PO_Fixmonthday3 as po_fixm71_188_4_, businesspa8_.SO_Bankaccount_ID as so_bank72_188_4_, businesspa8_.SO_Bp_Taxcategory_ID as so_bp_t73_188_4_, businesspa8_.Fiscalcode as fiscalc74_188_4_, businesspa8_.Isofiscalcode as isofisc75_188_4_, businesspa8_.EM_Einv_Einvoice as em_einv76_188_4_, businesspa8_.PO_C_Incoterms_ID as po_c_in77_188_4_, businesspa8_.EM_Einv_Format_Id as em_einv78_188_4_, businesspa8_.SO_C_Incoterms_ID as so_c_in79_188_4_, businesspa8_.EM_Einv_Platform_Id as em_einv80_188_4_, businesspa8_.FIN_Paymentmethod_ID as fin_pay81_188_4_, businesspa8_.EM_Einv_Email as em_einv82_188_4_, businesspa8_.PO_Paymentmethod_ID as po_paym83_188_4_, businesspa8_.FIN_Financial_Account_ID as fin_fin84_188_4_, businesspa8_.EM_Einv_Deliverymode as em_einv85_188_4_, businesspa8_.PO_Financial_Account_ID as po_fina86_188_4_, businesspa8_.Customer_Blocking as custome87_188_4_, businesspa8_.Vendor_Blocking as vendor_88_188_4_, businesspa8_.SO_Payment_Blocking as so_paym89_188_4_, businesspa8_.PO_Payment_Blocking as po_paym90_188_4_, businesspa8_.SO_Invoice_Blocking as so_invo91_188_4_, businesspa8_.PO_Invoice_Blocking as po_invo92_188_4_, businesspa8_.SO_Order_Blocking as so_orde93_188_4_, businesspa8_.PO_Order_Blocking as po_orde94_188_4_, businesspa8_.SO_Goods_Blocking as so_good95_188_4_, businesspa8_.PO_Goods_Blocking as po_good96_188_4_, businesspa8_.Iscashvat as iscashv97_188_4_, businesspa8_.Update_Currency as update_98_188_4_, businesspa8_.BP_Currency_ID as bp_curr99_188_4_, businesspa8_.Birthplace as birthp100_188_4_, businesspa8_.Birthday as birthd101_188_4_, businesspa8_.Is_Customer_Consent as is_cus102_188_4_, businesspa8_.EM_Obsepad_Mandate_Identifier as em_obs103_188_4_, businesspa8_.EM_Obsepad_Mandate_Date as em_obs104_188_4_, businesspa8_.EM_Aeatsii_Rep_Taxid as em_aea105_188_4_, businesspa8_.EM_Jr_Inoutval as em_jr_106_188_4_, businesspa8_.EM_Aeatsii_Menor as em_aea107_188_4_, businesspa8_.EM_Jr_Isgeneric as em_jr_108_188_4_, businesspa8_.EM_Pruti_Addbp as em_pru109_188_4_, businesspa8_.EM_Prei_Iseinvoice as em_pre110_188_4_, businesspa8_.EM_Prei_Format_ID as em_pre111_188_4_, businesspa8_.EM_Pruti_Unlock_Date as em_pru112_188_4_, businesspa8_.EM_Prei_Platform_ID as em_pre113_188_4_, businesspa8_.EM_Pruti_Unlock_Order_Date as em_pru114_188_4_, businesspa8_.EM_Prei_Send_Method as em_pre115_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_So_ID as em_pru116_188_4_, businesspa8_.EM_Prei_Email as em_pre117_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_Po_ID as em_pru118_188_4_, businesspa8_.EM_Prei_Need_Expedient as em_pre119_188_4_, businesspa8_.EM_Aeatsii_Defaultsiikey as em_aea120_188_4_, businesspa8_.EM_Aeatsii_Siikeylist as em_aea121_188_4_, businesspa8_.EM_Tbai_Issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.EM_Pruti_Notsendinvoice as em_pru124_188_4_, businesspa8_.EM_OBTIK_Tax_ID_Key as em_obt125_188_4_, attributes1_.AD_Client_ID as ad_clien2_418_5_, attributes1_.AD_Org_ID as ad_org_i3_418_5_, attributes1_.IsActive as isactive4_418_5_, attributes1_.Created as created5_418_5_, attributes1_.CreatedBy as createdb6_418_5_, attributes1_.Updated as updated7_418_5_, attributes1_.UpdatedBy as updatedb8_418_5_, attributes1_.M_AttributeSet_ID as m_attrib9_418_5_, attributes1_.SerNo as serno10_418_5_, attributes1_.Lot as lot11_418_5_, attributes1_.GuaranteeDate as guarant12_418_5_, attributes1_.Description as descrip13_418_5_, attributes1_.M_Lot_ID as m_lot_i14_418_5_, attributes1_.Islocked as islocke15_418_5_, attributes1_.Lock_Description as lock_de16_418_5_, attributes1_.M_RefInventory_ID as m_refin17_418_5_, attributes1_.Parent_AttributeSetInstance_ID as parent_18_418_5_ from M_InOutLine materialmg0_ left outer join M_AttributeSetInstance attributes1_ on materialmg0_.M_AttributeSetInstance_ID=attributes1_.M_AttributeSetInstance_ID inner join M_InOut materialmg2_ on materialmg0_.M_InOut_ID=materialmg2_.M_InOut_ID inner join C_DocType documentty3_ on materialmg2_.C_DocType_ID=documentty3_.C_DocType_ID inner join C_BPartner businesspa8_ on materialmg2_.C_BPartner_ID=businesspa8_.C_BPartner_ID inner join AD_Org organizati4_ on materialmg0_.AD_Org_ID=organizati4_.AD_Org_ID inner join AD_Client adclient5_ on materialmg0_.AD_Client_ID=adclient5_.AD_Client_ID inner join M_Product product6_ on materialmg0_.M_Product_ID=product6_.M_Product_ID inner join C_UOM uom7_ on materialmg0_.C_UOM_ID=uom7_.C_UOM_ID where materialmg2_.C_BPartner_ID='B52887A42D024FEB898F473500E02606' and documentty3_.IsReturn='N' and materialmg2_.Processed='Y' and materialmg2_.DocStatus<>'VO' and materialmg2_.IsSOTrx='Y' and materialmg2_.Isnettingshipment='N' and materialmg0_.MovementQty+coalesce((select sum(orderline38_.QtyOrdered) from C_OrderLine orderline38_ inner join C_Order order39_ on orderline38_.C_Order_ID=order39_.C_Order_ID where orderline38_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order39_.Processed='Y' and order39_.DocStatus<>'VO'), 0)<>0 and 1=1 and (materialmg0_.AD_Client_ID in ('0' , '4E7785E633254999A6D7545B0BE57A46')) and (materialmg0_.AD_Org_ID in ('0' , 'C34A537D1464452783C0A7C7C913FC86' , '4A2127624482427B8B0BE0DD8ABF92D4' , '3724B485FEC444038C28CAEE0F24E7E6' , 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (materialmg2_.MovementDate>=now()-90 or case when (select 'Y' from C_OrderLine orderline40_ where orderline40_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline40_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.MovementDate desc, materialmg2_.DocumentNo desc, materialmg0_.Line limit '101';
Date: 2026-07-17 07:51:01 Duration: 1s552ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 2 3s214ms 1s340ms 1s873ms 1s607ms select * from c_invoice_post0 (?);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 11 2 3s214ms 1s607ms [ User: tad - Total duration: 3s214ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 3s214ms - Times executed: 2 ]
-
SELECT * FROM C_Invoice_Post0 ('2DEBEC6634F44757BDE48CE86ACDE4E4');
Date: 2026-07-17 11:24:41 Duration: 1s873ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_Invoice_Post0 ('CDAA9C8F647B43599AE12D3528E358F6');
Date: 2026-07-17 11:33:19 Duration: 1s340ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1 2s828ms 2s828ms 2s828ms 2s828ms select invoice0_.c_invoice_id as c_invoic1_247_, invoice0_.ad_client_id as ad_clien2_247_, invoice0_.ad_org_id as ad_org_i3_247_, invoice0_.isactive as isactive4_247_, invoice0_.created as created5_247_, invoice0_.createdby as createdb6_247_, invoice0_.updated as updated7_247_, invoice0_.updatedby as updatedb8_247_, invoice0_.issotrx as issotrx9_247_, invoice0_.documentno as documen10_247_, invoice0_.docstatus as docstat11_247_, invoice0_.docaction as docacti12_247_, invoice0_.processing as process13_247_, invoice0_.processed as process14_247_, invoice0_.posted as posted15_247_, invoice0_.c_doctype_id as c_docty16_247_, invoice0_.c_doctypetarget_id as c_docty17_247_, invoice0_.c_order_id as c_order18_247_, invoice0_.description as descrip19_247_, invoice0_.isprinted as isprint20_247_, invoice0_.salesrep_id as salesre21_247_, invoice0_.dateinvoiced as dateinv22_247_, invoice0_.dateprinted as datepri23_247_, invoice0_.dateacct as dateacc24_247_, invoice0_.c_bpartner_id as c_bpart25_247_, invoice0_.c_bpartner_location_id as c_bpart26_247_, invoice0_.poreference as porefer27_247_, invoice0_.isdiscountprinted as isdisco28_247_, invoice0_.dateordered as dateord29_247_, invoice0_.c_currency_id as c_curre30_247_, invoice0_.c_paymentterm_id as c_payme31_247_, invoice0_.c_charge_id as c_charg32_247_, invoice0_.chargeamt as chargea33_247_, invoice0_.totallines as totalli34_247_, invoice0_.grandtotal as grandto35_247_, invoice0_.m_pricelist_id as m_price36_247_, invoice0_.istaxincluded as istaxin37_247_, invoice0_.c_campaign_id as c_campa38_247_, invoice0_.c_project_id as c_proje39_247_, invoice0_.c_activity_id as c_activ40_247_, invoice0_.createfrom as createf41_247_, invoice0_.generateto as generat42_247_, invoice0_.ad_user_id as ad_user43_247_, invoice0_.copyfrom as copyfro44_247_, invoice0_.isselfservice as isselfs45_247_, invoice0_.ad_orgtrx_id as ad_orgt46_247_, invoice0_.user1_id as user47_247_, invoice0_.user2_id as user48_247_, invoice0_.withholdingamount as withhol49_247_, invoice0_.taxdate as taxdate50_247_, invoice0_.c_withholding_id as c_withh51_247_, invoice0_.ispaid as ispaid52_247_, invoice0_.em_einv_generated as em_einv53_247_, invoice0_.totalpaid as totalpa54_247_, invoice0_.em_einv_sent as em_einv55_247_, invoice0_.outstandingamt as outstan56_247_, invoice0_.daystilldue as daystil57_247_, invoice0_.dueamt as dueamt58_247_, invoice0_.lastcalculatedondate as lastcal59_247_, invoice0_.fin_paymentmethod_id as fin_pay60_247_, invoice0_.fin_payment_priority_id as fin_pay61_247_, invoice0_.finalsettlement as finalse62_247_, invoice0_.daysoutstanding as daysout63_247_, invoice0_.percentageoverdue as percent64_247_, invoice0_.c_costcenter_id as c_costc65_247_, invoice0_.calculate_promotions as calcula66_247_, invoice0_.a_asset_id as a_asset67_247_, invoice0_.em_aprm_addpayment as em_aprm68_247_, invoice0_.iscashvat as iscashv69_247_, invoice0_.em_aprm_processinvoice as em_aprm70_247_, invoice0_.em_obcma_c_poc_email_id as em_obcm71_247_, invoice0_.prepaymentamt as prepaym72_247_, invoice0_.createfromorders as createf73_247_, invoice0_.createfrominouts as createf74_247_, invoice0_.em_prei_iseinvoiced as em_prei75_247_, invoice0_.paidamtatinvoicing as paidamt76_247_, invoice0_.em_prei_generateeinvoice as em_prei77_247_, invoice0_.bpartner_extref as bpartne78_247_, invoice0_.em_prei_gen_and_send_e_inv as em_prei79_247_, invoice0_.em_aeatsii_send as em_aeat80_247_, invoice0_.em_etblkp_accountingstatus as em_etbl81_247_, invoice0_.em_aeatsii_issent as em_aeat82_247_, invoice0_.em_etabam_bankaccount_id as em_etab83_247_, invoice0_.em_etafdp_unvoid as em_etaf84_247_, invoice0_.em_etblkp_bulkposting as em_etbl85_247_, invoice0_.em_etpr_remove_payment as em_etpr86_247_, invoice0_.em_jr_amount as em_jr_a87_247_, invoice0_.em_prei_sended as em_prei88_247_, invoice0_.em_prsc_iscommissionable as em_prsc89_247_, invoice0_.em_aeatsii_fecha_operacion as em_aeat90_247_, invoice0_.em_etblkc_bulkcompletion as em_etbl91_247_, invoice0_.em_aeatsii_clave_tipo as em_aeat92_247_, invoice0_.em_etinter_interco_orig as em_etin93_247_, invoice0_.em_aeatsii_motivo_rectif as em_aeat94_247_, invoice0_.em_prouti_recalculate_price as em_prou95_247_, invoice0_.em_aeatsii_clave_tipo_fc as em_aeat96_247_, invoice0_.em_ml_select_product as em_ml_s97_247_, invoice0_.em_prouti_pricecalculatetdate as em_prou98_247_, invoice0_.em_tbai_qrcode as em_tbai99_247_, invoice0_.em_aeatsii_tipo_rectif as em_aea100_247_, invoice0_.em_prouti_totalizations as em_pro101_247_, invoice0_.em_tbai_url as em_tba102_247_, invoice0_.em_aeatsii_dua as em_aea103_247_, invoice0_.em_tbai_xmlgenerator as em_tba104_247_, invoice0_.em_aeatsii_fecha_dua as em_aea105_247_, invoice0_.em_tbai_signaturevalue as em_tba106_247_, invoice0_.em_aeatsii_estado as em_aea107_247_, invoice0_.em_tbai_sequence as em_tba108_247_, invoice0_.em_aeatsii_error_registral as em_aea109_247_, invoice0_.em_prsc_commissiontype as em_prs110_247_, invoice0_.em_tbai_idtbai as em_tba111_247_, invoice0_.em_aeatsii_modif as em_aea112_247_, invoice0_.em_etvfac_date_issue as em_etv113_247_, invoice0_.em_prsc_allowcommission as em_prs114_247_, invoice0_.em_tbai_reverseinvoicecode as em_tba115_247_, invoice0_.em_aeatsii_modified as em_aea116_247_, invoice0_.em_etvfac_issue as em_etv117_247_, invoice0_.em_tbai_issent as em_tba118_247_, invoice0_.em_aeatsii_description_id as em_aea119_247_, invoice0_.em_etvfac_issue_description as em_etv120_247_, invoice0_.em_tbai_reverseinvoicetype as em_tba121_247_, invoice0_.em_aeatsii_descripcion_sii as em_aea122_247_, invoice0_.em_tbai_isreverseinvoice as em_tba123_247_, invoice0_.em_aeatsii_fecha_reg_cont as em_aea124_247_, invoice0_.em_tbai_invoiceseq as em_tba125_247_, invoice0_.em_aeatsii_dup as em_aea126_247_, invoice0_.em_tbai_invoicenum as em_tba127_247_, invoice0_.em_aeatsii_error_code as em_aea128_247_, invoice0_.em_aeatsii_error_msg as em_aea129_247_, invoice0_.em_priuti_createpurchinv as em_pri130_247_, invoice0_.em_aeatsii_unsubscribe as em_aea131_247_, invoice0_.em_priuti_generated as em_pri132_247_, invoice0_.em_aeatsii_pur_description_id as em_aea133_247_, invoice0_.em_priuti_date_complete as em_pri134_247_, invoice0_.em_priuti_user_complete_id as em_pri135_247_, invoice0_.em_aeatsii_multi_dua as em_aea136_247_, invoice0_.em_priuti_status_of_review as em_pri137_247_, invoice0_.em_aeatsii_ejercicio as em_aea138_247_, invoice0_.em_priuti_validate as em_pri139_247_, invoice0_.em_aeatsii_periodo as em_aea140_247_, invoice0_.em_priuti_start_review as em_pri141_247_, invoice0_.em_aeatsii_autofactura as em_aea142_247_, invoice0_.em_aeatsii_invoice_id as em_aea143_247_, invoice0_.em_aeatsii_insiidate as em_aea144_247_, invoice0_.em_aeatsii_cause_exemption_id as em_aea145_247_, invoice0_.em_aeatsii_isauthorization as em_aea146_247_, invoice0_.em_aeatsii_authorizationno as em_aea147_247_, invoice0_.em_etvfac_invoice_status as em_etv148_247_, invoice0_.em_etvfac_senttoverifac as em_etv149_247_, invoice0_.em_etvfac_inv_type as em_etv150_247_, invoice0_.em_etvfac_invnoidart61d as em_etv151_247_, invoice0_.em_etvfac_verifac_desc as em_etv152_247_, invoice0_.em_etvfac_date_operation as em_etv153_247_, invoice0_.em_etvfac_reverseinvtype as em_etv154_247_, invoice0_.em_tbai_issue_date as em_tba155_247_, invoice0_.em_etvfac_external_ref as em_etv156_247_, invoice0_.em_etvfac_hash as em_etv157_247_, invoice0_.em_tbai_date_operation as em_tba158_247_, invoice0_.em_etvfac_issubsanation as em_etv159_247_, invoice0_.em_etvfac_void as em_etv160_247_, invoice0_.em_tbai_voidxmlgenerator as em_tba161_247_, invoice0_.em_pruti_notsendinvoice as em_pru162_247_, invoice0_.em_etvfac_simpinvart7273 as em_etv163_247_ from c_invoice invoice0_ left outer join fin_payment_schedule finpayment1_ on invoice0_.c_invoice_id = finpayment1_.c_invoice_id where invoice0_.processed = ? and (invoice0_.ispaid = ? or finpayment1_.updated >= invoice0_.lastcalculatedondate or invoice0_.outstandingamt <> ? or invoice0_.finalsettlement is null) and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) and invoice0_.isactive = ?;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 14 1 2s828ms 2s828ms [ User: tad - Total duration: 2s828ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s828ms - Times executed: 1 ]
-
select invoice0_.C_Invoice_ID as c_invoic1_247_, invoice0_.AD_Client_ID as ad_clien2_247_, invoice0_.AD_Org_ID as ad_org_i3_247_, invoice0_.IsActive as isactive4_247_, invoice0_.Created as created5_247_, invoice0_.CreatedBy as createdb6_247_, invoice0_.Updated as updated7_247_, invoice0_.UpdatedBy as updatedb8_247_, invoice0_.IsSOTrx as issotrx9_247_, invoice0_.DocumentNo as documen10_247_, invoice0_.DocStatus as docstat11_247_, invoice0_.DocAction as docacti12_247_, invoice0_.Processing as process13_247_, invoice0_.Processed as process14_247_, invoice0_.Posted as posted15_247_, invoice0_.C_DocType_ID as c_docty16_247_, invoice0_.C_DocTypeTarget_ID as c_docty17_247_, invoice0_.C_Order_ID as c_order18_247_, invoice0_.Description as descrip19_247_, invoice0_.IsPrinted as isprint20_247_, invoice0_.SalesRep_ID as salesre21_247_, invoice0_.DateInvoiced as dateinv22_247_, invoice0_.DatePrinted as datepri23_247_, invoice0_.DateAcct as dateacc24_247_, invoice0_.C_BPartner_ID as c_bpart25_247_, invoice0_.C_BPartner_Location_ID as c_bpart26_247_, invoice0_.POReference as porefer27_247_, invoice0_.IsDiscountPrinted as isdisco28_247_, invoice0_.DateOrdered as dateord29_247_, invoice0_.C_Currency_ID as c_curre30_247_, invoice0_.C_PaymentTerm_ID as c_payme31_247_, invoice0_.C_Charge_ID as c_charg32_247_, invoice0_.ChargeAmt as chargea33_247_, invoice0_.TotalLines as totalli34_247_, invoice0_.GrandTotal as grandto35_247_, invoice0_.M_PriceList_ID as m_price36_247_, invoice0_.IsTaxIncluded as istaxin37_247_, invoice0_.C_Campaign_ID as c_campa38_247_, invoice0_.C_Project_ID as c_proje39_247_, invoice0_.C_Activity_ID as c_activ40_247_, invoice0_.CreateFrom as createf41_247_, invoice0_.GenerateTo as generat42_247_, invoice0_.AD_User_ID as ad_user43_247_, invoice0_.CopyFrom as copyfro44_247_, invoice0_.IsSelfService as isselfs45_247_, invoice0_.AD_OrgTrx_ID as ad_orgt46_247_, invoice0_.User1_ID as user47_247_, invoice0_.User2_ID as user48_247_, invoice0_.Withholdingamount as withhol49_247_, invoice0_.Taxdate as taxdate50_247_, invoice0_.C_Withholding_ID as c_withh51_247_, invoice0_.Ispaid as ispaid52_247_, invoice0_.EM_Einv_Generated as em_einv53_247_, invoice0_.Totalpaid as totalpa54_247_, invoice0_.EM_Einv_Sent as em_einv55_247_, invoice0_.OutstandingAmt as outstan56_247_, invoice0_.DaysTillDue as daystil57_247_, invoice0_.DueAmt as dueamt58_247_, invoice0_.LastCalculatedOnDate as lastcal59_247_, invoice0_.FIN_Paymentmethod_ID as fin_pay60_247_, invoice0_.FIN_Payment_Priority_ID as fin_pay61_247_, invoice0_.Finalsettlement as finalse62_247_, invoice0_.Daysoutstanding as daysout63_247_, invoice0_.Percentageoverdue as percent64_247_, invoice0_.C_Costcenter_ID as c_costc65_247_, invoice0_.Calculate_Promotions as calcula66_247_, invoice0_.A_Asset_ID as a_asset67_247_, invoice0_.EM_APRM_Addpayment as em_aprm68_247_, invoice0_.Iscashvat as iscashv69_247_, invoice0_.EM_APRM_Processinvoice as em_aprm70_247_, invoice0_.EM_Obcma_C_Poc_Email_ID as em_obcm71_247_, invoice0_.Prepaymentamt as prepaym72_247_, invoice0_.Createfromorders as createf73_247_, invoice0_.Createfrominouts as createf74_247_, invoice0_.EM_Prei_Iseinvoiced as em_prei75_247_, invoice0_.Paidamtatinvoicing as paidamt76_247_, invoice0_.EM_Prei_Generateeinvoice as em_prei77_247_, invoice0_.BPartner_ExtRef as bpartne78_247_, invoice0_.EM_Prei_Gen_And_Send_E_Inv as em_prei79_247_, invoice0_.EM_Aeatsii_Send as em_aeat80_247_, invoice0_.EM_Etblkp_Accountingstatus as em_etbl81_247_, invoice0_.EM_Aeatsii_Issent as em_aeat82_247_, invoice0_.EM_Etabam_Bankaccount_ID as em_etab83_247_, invoice0_.EM_Etafdp_Unvoid as em_etaf84_247_, invoice0_.EM_Etblkp_Bulkposting as em_etbl85_247_, invoice0_.EM_Etpr_Remove_Payment as em_etpr86_247_, invoice0_.EM_Jr_Amount as em_jr_a87_247_, invoice0_.EM_Prei_Sended as em_prei88_247_, invoice0_.EM_Prsc_Iscommissionable as em_prsc89_247_, invoice0_.EM_Aeatsii_Fecha_Operacion as em_aeat90_247_, invoice0_.EM_Etblkc_Bulkcompletion as em_etbl91_247_, invoice0_.EM_Aeatsii_Clave_Tipo as em_aeat92_247_, invoice0_.EM_Etinter_Interco_Orig as em_etin93_247_, invoice0_.EM_Aeatsii_Motivo_Rectif as em_aeat94_247_, invoice0_.EM_Prouti_Recalculate_Price as em_prou95_247_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as em_aeat96_247_, invoice0_.EM_Ml_Select_Product as em_ml_s97_247_, invoice0_.EM_Prouti_Pricecalculatetdate as em_prou98_247_, invoice0_.em_tbai_qrcode as em_tbai99_247_, invoice0_.EM_Aeatsii_Tipo_Rectif as em_aea100_247_, invoice0_.EM_Prouti_Totalizations as em_pro101_247_, invoice0_.EM_Tbai_Url as em_tba102_247_, invoice0_.EM_Aeatsii_Dua as em_aea103_247_, invoice0_.EM_Tbai_Xmlgenerator as em_tba104_247_, invoice0_.EM_Aeatsii_Fecha_Dua as em_aea105_247_, invoice0_.EM_Tbai_Signaturevalue as em_tba106_247_, invoice0_.EM_Aeatsii_Estado as em_aea107_247_, invoice0_.EM_Tbai_Sequence as em_tba108_247_, invoice0_.EM_Aeatsii_Error_Registral as em_aea109_247_, invoice0_.EM_Prsc_Commissiontype as em_prs110_247_, invoice0_.EM_Tbai_Idtbai as em_tba111_247_, invoice0_.EM_Aeatsii_Modif as em_aea112_247_, invoice0_.EM_Etvfac_Date_Issue as em_etv113_247_, invoice0_.EM_Prsc_Allowcommission as em_prs114_247_, invoice0_.EM_Tbai_Reverseinvoicecode as em_tba115_247_, invoice0_.EM_Aeatsii_Modified as em_aea116_247_, invoice0_.EM_Etvfac_Issue as em_etv117_247_, invoice0_.EM_Tbai_Issent as em_tba118_247_, invoice0_.EM_Aeatsii_Description_ID as em_aea119_247_, invoice0_.EM_Etvfac_Issue_Description as em_etv120_247_, invoice0_.EM_Tbai_Reverseinvoicetype as em_tba121_247_, invoice0_.EM_Aeatsii_Descripcion_Sii as em_aea122_247_, invoice0_.EM_Tbai_Isreverseinvoice as em_tba123_247_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as em_aea124_247_, invoice0_.EM_Tbai_Invoiceseq as em_tba125_247_, invoice0_.EM_Aeatsii_Dup as em_aea126_247_, invoice0_.EM_Tbai_Invoicenum as em_tba127_247_, invoice0_.EM_Aeatsii_Error_Code as em_aea128_247_, invoice0_.EM_Aeatsii_Error_Msg as em_aea129_247_, invoice0_.EM_Priuti_Createpurchinv as em_pri130_247_, invoice0_.EM_Aeatsii_Unsubscribe as em_aea131_247_, invoice0_.EM_Priuti_Generated as em_pri132_247_, invoice0_.EM_Aeatsii_Pur_Description_ID as em_aea133_247_, invoice0_.EM_Priuti_Date_Complete as em_pri134_247_, invoice0_.EM_Priuti_User_Complete_ID as em_pri135_247_, invoice0_.EM_Aeatsii_Multi_Dua as em_aea136_247_, invoice0_.EM_Priuti_Status_Of_Review as em_pri137_247_, invoice0_.EM_Aeatsii_Ejercicio as em_aea138_247_, invoice0_.EM_Priuti_Validate as em_pri139_247_, invoice0_.EM_Aeatsii_Periodo as em_aea140_247_, invoice0_.EM_Priuti_Start_Review as em_pri141_247_, invoice0_.EM_Aeatsii_Autofactura as em_aea142_247_, invoice0_.EM_Aeatsii_Invoice_ID as em_aea143_247_, invoice0_.EM_Aeatsii_Insiidate as em_aea144_247_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as em_aea145_247_, invoice0_.EM_Aeatsii_Isauthorization as em_aea146_247_, invoice0_.EM_Aeatsii_Authorizationno as em_aea147_247_, invoice0_.EM_Etvfac_Invoice_Status as em_etv148_247_, invoice0_.EM_Etvfac_Senttoverifac as em_etv149_247_, invoice0_.EM_Etvfac_Inv_Type as em_etv150_247_, invoice0_.EM_Etvfac_Invnoidart61d as em_etv151_247_, invoice0_.EM_Etvfac_Verifac_Desc as em_etv152_247_, invoice0_.EM_Etvfac_Date_Operation as em_etv153_247_, invoice0_.EM_Etvfac_Reverseinvtype as em_etv154_247_, invoice0_.EM_Tbai_Issue_Date as em_tba155_247_, invoice0_.EM_Etvfac_External_Ref as em_etv156_247_, invoice0_.EM_Etvfac_Hash as em_etv157_247_, invoice0_.EM_Tbai_Date_Operation as em_tba158_247_, invoice0_.EM_Etvfac_Issubsanation as em_etv159_247_, invoice0_.EM_Etvfac_Void as em_etv160_247_, invoice0_.EM_Tbai_Voidxmlgenerator as em_tba161_247_, invoice0_.EM_Pruti_Notsendinvoice as em_pru162_247_, invoice0_.EM_Etvfac_Simpinvart7273 as em_etv163_247_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('0', '203E608E4BEC43F8BC282264DF075FCC', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (invoice0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 14:00:05 Duration: 2s828ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1 1s264ms 1s264ms 1s264ms 1s264ms select i.c_invoice_id as id, ad_column_identifier (to_char(?), to_char(i.c_invoice_id), to_char(?)) as name from c_invoice i join c_doctype dt on i.c_doctype_id = dt.c_doctype_id where i.docstatus in (...) and i.ad_client_id in (...) and i.ad_org_id in (...) and i.issotrx = ? and i.c_bpartner_id = ? and dt.isreturn = ? and exists ( select ? from c_invoiceline il where il.c_invoice_id = i.c_invoice_id and ((il.m_inoutline_id is null and il.qtyinvoiced <> ?) or (il.m_inoutline_id is not null and exists ( select ? from m_inoutline iol where iol.m_inoutline_id = il.m_inoutline_id and (il.qtyinvoiced - iol.movementqty) <> ?)))) order by name;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 08 1 1s264ms 1s264ms [ User: tad - Total duration: 1s264ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 1s264ms - Times executed: 1 ]
-
SELECT i.C_Invoice_ID AS ID, Ad_Column_Identifier (TO_CHAR('C_Invoice'), TO_CHAR(i.C_Invoice_ID), TO_CHAR('es_ES')) AS NAME FROM C_INVOICE i JOIN C_DOCTYPE dt ON i.c_doctype_id = dt.c_doctype_id WHERE i.DocStatus IN ('CL', 'CO') AND i.AD_Client_ID IN ('0', '4E7785E633254999A6D7545B0BE57A46') AND i.AD_Org_ID IN ('0', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F', 'C34A537D1464452783C0A7C7C913FC86') AND i.IsSOTrx = 'Y' AND i.C_BPartner_ID = '1000108' AND dt.isreturn = 'N' AND EXISTS ( SELECT 1 FROM C_INVOICELINE il WHERE il.C_INVOICE_ID = i.C_INVOICE_ID AND ((il.M_INOUTLINE_ID IS NULL AND il.QtyInvoiced <> 0) OR (il.M_INOUTLINE_ID IS NOT NULL AND EXISTS ( SELECT 1 FROM M_INOUTLINE iol WHERE iol.M_INOUTLINE_ID = il.M_INOUTLINE_ID AND (il.QtyInvoiced - iol.MOVEMENTQTY) <> 0)))) ORDER BY NAME;
Date: 2026-07-17 08:01:12 Duration: 1s264ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 15s459ms 49s344ms 22s676ms 15 5m40s select profile.take_sample ();Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jul 17 07 1 17s782ms 17s782ms 08 1 49s148ms 49s148ms 09 1 19s704ms 19s704ms 10 1 19s866ms 19s866ms 11 1 49s344ms 49s344ms 12 1 15s459ms 15s459ms 13 1 19s24ms 19s24ms 14 1 17s865ms 17s865ms 15 1 17s941ms 17s941ms 16 1 17s39ms 17s39ms 17 1 21s48ms 21s48ms 18 1 17s921ms 17s921ms 19 1 19s859ms 19s859ms 20 1 18s149ms 18s149ms 21 1 19s994ms 19s994ms [ User: postgres - Total duration: 5m40s - Times executed: 15 ]
[ Application: psql - Total duration: 5m40s - Times executed: 15 ]
-
SELECT profile.take_sample ();
Date: 2026-07-17 11:00:50 Duration: 49s344ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 08:00:51 Duration: 49s148ms Database: etendo User: postgres Remote: [local] Application: psql
-
SELECT profile.take_sample ();
Date: 2026-07-17 17:00:22 Duration: 21s48ms Database: etendo User: postgres Remote: [local] Application: psql
2 10s16ms 18s261ms 14s894ms 15 3m43s select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id from c_invoice, c_doctype, fact_acct f1, fact_acct f2 where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id group by c_invoice_id, posted, c_invoice.ad_client_id, c_invoice.ad_org_id, f1.ad_table_id, f1.record_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jul 17 07 1 10s16ms 10s16ms 08 1 15s637ms 15s637ms 09 1 15s842ms 15s842ms 10 1 18s261ms 18s261ms 11 1 12s437ms 12s437ms 12 1 12s536ms 12s536ms 13 1 15s288ms 15s288ms 14 1 16s462ms 16s462ms 15 1 14s860ms 14s860ms 16 1 14s111ms 14s111ms 17 1 17s135ms 17s135ms 18 1 14s256ms 14s256ms 19 1 15s581ms 15s581ms 20 1 14s643ms 14s643ms 21 1 16s349ms 16s349ms [ User: tad - Total duration: 3m43s - Times executed: 15 ]
[ Application: openbravo - Total duration: 3m43s - Times executed: 15 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 10:00:19 Duration: 18s261ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 17:00:18 Duration: 17s135ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE POSTED MORE THAN ONCE' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID FROM C_INVOICE, c_doctype, fact_acct f1, fact_acct f2 WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and f1.record_id = c_invoice.c_invoice_id and f1.record_id = f2.record_id and f1.ad_table_id = f2.ad_table_id and f1.fact_acct_group_id <> f2.fact_acct_group_id and f1.c_acctschema_id = f2.c_acctschema_id GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_client_id, C_INVOICE.ad_org_id, f1.ad_table_id, f1.record_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '67AC26DEBEC1455D9510182FB973BC34' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 14:00:17 Duration: 16s462ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
3 3s436ms 3s600ms 3s518ms 2 7s36ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ inner join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro2_ cross join m_pricelist_version pricingpri3_ cross join m_pricelist pricingpri7_ where productbyp0_.m_productprice_id = pricingpro2_.m_productprice_id and pricingpro2_.m_pricelist_version_id = pricingpri3_.m_pricelist_version_id and pricingpri3_.m_pricelist_id = pricingpri7_.m_pricelist_id and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri3_.isactive = ? and ad_org_isinnaturaltree (pricingpro2_.ad_org_id, ?, ?) = ? and pricingpri7_.issopricelist = ? and pricingpri7_.c_currency_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jul 17 17 2 7s36ms 3s518ms [ User: tad - Total duration: 7s36ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 7s36ms - Times executed: 2 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro2_ cross join M_PriceList_Version pricingpri3_ cross join M_PriceList pricingpri7_ where productbyp0_.M_Productprice_ID = pricingpro2_.M_ProductPrice_ID and pricingpro2_.M_PriceList_Version_ID = pricingpri3_.M_PriceList_Version_ID and pricingpri3_.M_PriceList_ID = pricingpri7_.M_PriceList_ID and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri3_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro2_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri7_.IsSOPriceList = 'Y' and pricingpri7_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:25 Duration: 3s600ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro2_ cross join M_PriceList_Version pricingpri3_ cross join M_PriceList pricingpri7_ where productbyp0_.M_Productprice_ID = pricingpro2_.M_ProductPrice_ID and pricingpro2_.M_PriceList_Version_ID = pricingpri3_.M_PriceList_Version_ID and pricingpri3_.M_PriceList_ID = pricingpri7_.M_PriceList_ID and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri3_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro2_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri7_.IsSOPriceList = 'Y' and pricingpri7_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:08 Duration: 3s436ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
4 1s249ms 5s993ms 3s135ms 4 12s541ms select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ inner join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro3_ cross join m_pricelist_version pricingpri4_ cross join m_pricelist pricingpri8_ where productbyp0_.m_productprice_id = pricingpro3_.m_productprice_id and pricingpro3_.m_pricelist_version_id = pricingpri4_.m_pricelist_version_id and pricingpri4_.m_pricelist_id = pricingpri8_.m_pricelist_id and (upper(product1_.name) like upper(?) escape ?) and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri4_.isactive = ? and ad_org_isinnaturaltree (pricingpro3_.ad_org_id, ?, ?) = ? and pricingpri8_.issopricelist = ? and pricingpri8_.c_currency_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jul 17 17 4 12s541ms 3s135ms [ User: tad - Total duration: 12s541ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 12s541ms - Times executed: 4 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%pa%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:30 Duration: 5s993ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%p%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:28 Duration: 3s996ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ inner join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro3_ cross join M_PriceList_Version pricingpri4_ cross join M_PriceList pricingpri8_ where productbyp0_.M_Productprice_ID = pricingpro3_.M_ProductPrice_ID and pricingpro3_.M_PriceList_Version_ID = pricingpri4_.M_PriceList_Version_ID and pricingpri4_.M_PriceList_ID = pricingpri8_.M_PriceList_ID and (upper(product1_.Name) like upper('%pal%%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri4_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro3_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri8_.IsSOPriceList = 'Y' and pricingpri8_.C_Currency_ID = '102' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 17:19:26 Duration: 1s300ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
5 2s828ms 2s828ms 2s828ms 1 2s828ms select invoice0_.c_invoice_id as c_invoic1_247_, invoice0_.ad_client_id as ad_clien2_247_, invoice0_.ad_org_id as ad_org_i3_247_, invoice0_.isactive as isactive4_247_, invoice0_.created as created5_247_, invoice0_.createdby as createdb6_247_, invoice0_.updated as updated7_247_, invoice0_.updatedby as updatedb8_247_, invoice0_.issotrx as issotrx9_247_, invoice0_.documentno as documen10_247_, invoice0_.docstatus as docstat11_247_, invoice0_.docaction as docacti12_247_, invoice0_.processing as process13_247_, invoice0_.processed as process14_247_, invoice0_.posted as posted15_247_, invoice0_.c_doctype_id as c_docty16_247_, invoice0_.c_doctypetarget_id as c_docty17_247_, invoice0_.c_order_id as c_order18_247_, invoice0_.description as descrip19_247_, invoice0_.isprinted as isprint20_247_, invoice0_.salesrep_id as salesre21_247_, invoice0_.dateinvoiced as dateinv22_247_, invoice0_.dateprinted as datepri23_247_, invoice0_.dateacct as dateacc24_247_, invoice0_.c_bpartner_id as c_bpart25_247_, invoice0_.c_bpartner_location_id as c_bpart26_247_, invoice0_.poreference as porefer27_247_, invoice0_.isdiscountprinted as isdisco28_247_, invoice0_.dateordered as dateord29_247_, invoice0_.c_currency_id as c_curre30_247_, invoice0_.c_paymentterm_id as c_payme31_247_, invoice0_.c_charge_id as c_charg32_247_, invoice0_.chargeamt as chargea33_247_, invoice0_.totallines as totalli34_247_, invoice0_.grandtotal as grandto35_247_, invoice0_.m_pricelist_id as m_price36_247_, invoice0_.istaxincluded as istaxin37_247_, invoice0_.c_campaign_id as c_campa38_247_, invoice0_.c_project_id as c_proje39_247_, invoice0_.c_activity_id as c_activ40_247_, invoice0_.createfrom as createf41_247_, invoice0_.generateto as generat42_247_, invoice0_.ad_user_id as ad_user43_247_, invoice0_.copyfrom as copyfro44_247_, invoice0_.isselfservice as isselfs45_247_, invoice0_.ad_orgtrx_id as ad_orgt46_247_, invoice0_.user1_id as user47_247_, invoice0_.user2_id as user48_247_, invoice0_.withholdingamount as withhol49_247_, invoice0_.taxdate as taxdate50_247_, invoice0_.c_withholding_id as c_withh51_247_, invoice0_.ispaid as ispaid52_247_, invoice0_.em_einv_generated as em_einv53_247_, invoice0_.totalpaid as totalpa54_247_, invoice0_.em_einv_sent as em_einv55_247_, invoice0_.outstandingamt as outstan56_247_, invoice0_.daystilldue as daystil57_247_, invoice0_.dueamt as dueamt58_247_, invoice0_.lastcalculatedondate as lastcal59_247_, invoice0_.fin_paymentmethod_id as fin_pay60_247_, invoice0_.fin_payment_priority_id as fin_pay61_247_, invoice0_.finalsettlement as finalse62_247_, invoice0_.daysoutstanding as daysout63_247_, invoice0_.percentageoverdue as percent64_247_, invoice0_.c_costcenter_id as c_costc65_247_, invoice0_.calculate_promotions as calcula66_247_, invoice0_.a_asset_id as a_asset67_247_, invoice0_.em_aprm_addpayment as em_aprm68_247_, invoice0_.iscashvat as iscashv69_247_, invoice0_.em_aprm_processinvoice as em_aprm70_247_, invoice0_.em_obcma_c_poc_email_id as em_obcm71_247_, invoice0_.prepaymentamt as prepaym72_247_, invoice0_.createfromorders as createf73_247_, invoice0_.createfrominouts as createf74_247_, invoice0_.em_prei_iseinvoiced as em_prei75_247_, invoice0_.paidamtatinvoicing as paidamt76_247_, invoice0_.em_prei_generateeinvoice as em_prei77_247_, invoice0_.bpartner_extref as bpartne78_247_, invoice0_.em_prei_gen_and_send_e_inv as em_prei79_247_, invoice0_.em_aeatsii_send as em_aeat80_247_, invoice0_.em_etblkp_accountingstatus as em_etbl81_247_, invoice0_.em_aeatsii_issent as em_aeat82_247_, invoice0_.em_etabam_bankaccount_id as em_etab83_247_, invoice0_.em_etafdp_unvoid as em_etaf84_247_, invoice0_.em_etblkp_bulkposting as em_etbl85_247_, invoice0_.em_etpr_remove_payment as em_etpr86_247_, invoice0_.em_jr_amount as em_jr_a87_247_, invoice0_.em_prei_sended as em_prei88_247_, invoice0_.em_prsc_iscommissionable as em_prsc89_247_, invoice0_.em_aeatsii_fecha_operacion as em_aeat90_247_, invoice0_.em_etblkc_bulkcompletion as em_etbl91_247_, invoice0_.em_aeatsii_clave_tipo as em_aeat92_247_, invoice0_.em_etinter_interco_orig as em_etin93_247_, invoice0_.em_aeatsii_motivo_rectif as em_aeat94_247_, invoice0_.em_prouti_recalculate_price as em_prou95_247_, invoice0_.em_aeatsii_clave_tipo_fc as em_aeat96_247_, invoice0_.em_ml_select_product as em_ml_s97_247_, invoice0_.em_prouti_pricecalculatetdate as em_prou98_247_, invoice0_.em_tbai_qrcode as em_tbai99_247_, invoice0_.em_aeatsii_tipo_rectif as em_aea100_247_, invoice0_.em_prouti_totalizations as em_pro101_247_, invoice0_.em_tbai_url as em_tba102_247_, invoice0_.em_aeatsii_dua as em_aea103_247_, invoice0_.em_tbai_xmlgenerator as em_tba104_247_, invoice0_.em_aeatsii_fecha_dua as em_aea105_247_, invoice0_.em_tbai_signaturevalue as em_tba106_247_, invoice0_.em_aeatsii_estado as em_aea107_247_, invoice0_.em_tbai_sequence as em_tba108_247_, invoice0_.em_aeatsii_error_registral as em_aea109_247_, invoice0_.em_prsc_commissiontype as em_prs110_247_, invoice0_.em_tbai_idtbai as em_tba111_247_, invoice0_.em_aeatsii_modif as em_aea112_247_, invoice0_.em_etvfac_date_issue as em_etv113_247_, invoice0_.em_prsc_allowcommission as em_prs114_247_, invoice0_.em_tbai_reverseinvoicecode as em_tba115_247_, invoice0_.em_aeatsii_modified as em_aea116_247_, invoice0_.em_etvfac_issue as em_etv117_247_, invoice0_.em_tbai_issent as em_tba118_247_, invoice0_.em_aeatsii_description_id as em_aea119_247_, invoice0_.em_etvfac_issue_description as em_etv120_247_, invoice0_.em_tbai_reverseinvoicetype as em_tba121_247_, invoice0_.em_aeatsii_descripcion_sii as em_aea122_247_, invoice0_.em_tbai_isreverseinvoice as em_tba123_247_, invoice0_.em_aeatsii_fecha_reg_cont as em_aea124_247_, invoice0_.em_tbai_invoiceseq as em_tba125_247_, invoice0_.em_aeatsii_dup as em_aea126_247_, invoice0_.em_tbai_invoicenum as em_tba127_247_, invoice0_.em_aeatsii_error_code as em_aea128_247_, invoice0_.em_aeatsii_error_msg as em_aea129_247_, invoice0_.em_priuti_createpurchinv as em_pri130_247_, invoice0_.em_aeatsii_unsubscribe as em_aea131_247_, invoice0_.em_priuti_generated as em_pri132_247_, invoice0_.em_aeatsii_pur_description_id as em_aea133_247_, invoice0_.em_priuti_date_complete as em_pri134_247_, invoice0_.em_priuti_user_complete_id as em_pri135_247_, invoice0_.em_aeatsii_multi_dua as em_aea136_247_, invoice0_.em_priuti_status_of_review as em_pri137_247_, invoice0_.em_aeatsii_ejercicio as em_aea138_247_, invoice0_.em_priuti_validate as em_pri139_247_, invoice0_.em_aeatsii_periodo as em_aea140_247_, invoice0_.em_priuti_start_review as em_pri141_247_, invoice0_.em_aeatsii_autofactura as em_aea142_247_, invoice0_.em_aeatsii_invoice_id as em_aea143_247_, invoice0_.em_aeatsii_insiidate as em_aea144_247_, invoice0_.em_aeatsii_cause_exemption_id as em_aea145_247_, invoice0_.em_aeatsii_isauthorization as em_aea146_247_, invoice0_.em_aeatsii_authorizationno as em_aea147_247_, invoice0_.em_etvfac_invoice_status as em_etv148_247_, invoice0_.em_etvfac_senttoverifac as em_etv149_247_, invoice0_.em_etvfac_inv_type as em_etv150_247_, invoice0_.em_etvfac_invnoidart61d as em_etv151_247_, invoice0_.em_etvfac_verifac_desc as em_etv152_247_, invoice0_.em_etvfac_date_operation as em_etv153_247_, invoice0_.em_etvfac_reverseinvtype as em_etv154_247_, invoice0_.em_tbai_issue_date as em_tba155_247_, invoice0_.em_etvfac_external_ref as em_etv156_247_, invoice0_.em_etvfac_hash as em_etv157_247_, invoice0_.em_tbai_date_operation as em_tba158_247_, invoice0_.em_etvfac_issubsanation as em_etv159_247_, invoice0_.em_etvfac_void as em_etv160_247_, invoice0_.em_tbai_voidxmlgenerator as em_tba161_247_, invoice0_.em_pruti_notsendinvoice as em_pru162_247_, invoice0_.em_etvfac_simpinvart7273 as em_etv163_247_ from c_invoice invoice0_ left outer join fin_payment_schedule finpayment1_ on invoice0_.c_invoice_id = finpayment1_.c_invoice_id where invoice0_.processed = ? and (invoice0_.ispaid = ? or finpayment1_.updated >= invoice0_.lastcalculatedondate or invoice0_.outstandingamt <> ? or invoice0_.finalsettlement is null) and (invoice0_.ad_org_id in (...)) and (invoice0_.ad_client_id in (...)) and invoice0_.isactive = ?;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jul 17 14 1 2s828ms 2s828ms [ User: tad - Total duration: 2s828ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 2s828ms - Times executed: 1 ]
-
select invoice0_.C_Invoice_ID as c_invoic1_247_, invoice0_.AD_Client_ID as ad_clien2_247_, invoice0_.AD_Org_ID as ad_org_i3_247_, invoice0_.IsActive as isactive4_247_, invoice0_.Created as created5_247_, invoice0_.CreatedBy as createdb6_247_, invoice0_.Updated as updated7_247_, invoice0_.UpdatedBy as updatedb8_247_, invoice0_.IsSOTrx as issotrx9_247_, invoice0_.DocumentNo as documen10_247_, invoice0_.DocStatus as docstat11_247_, invoice0_.DocAction as docacti12_247_, invoice0_.Processing as process13_247_, invoice0_.Processed as process14_247_, invoice0_.Posted as posted15_247_, invoice0_.C_DocType_ID as c_docty16_247_, invoice0_.C_DocTypeTarget_ID as c_docty17_247_, invoice0_.C_Order_ID as c_order18_247_, invoice0_.Description as descrip19_247_, invoice0_.IsPrinted as isprint20_247_, invoice0_.SalesRep_ID as salesre21_247_, invoice0_.DateInvoiced as dateinv22_247_, invoice0_.DatePrinted as datepri23_247_, invoice0_.DateAcct as dateacc24_247_, invoice0_.C_BPartner_ID as c_bpart25_247_, invoice0_.C_BPartner_Location_ID as c_bpart26_247_, invoice0_.POReference as porefer27_247_, invoice0_.IsDiscountPrinted as isdisco28_247_, invoice0_.DateOrdered as dateord29_247_, invoice0_.C_Currency_ID as c_curre30_247_, invoice0_.C_PaymentTerm_ID as c_payme31_247_, invoice0_.C_Charge_ID as c_charg32_247_, invoice0_.ChargeAmt as chargea33_247_, invoice0_.TotalLines as totalli34_247_, invoice0_.GrandTotal as grandto35_247_, invoice0_.M_PriceList_ID as m_price36_247_, invoice0_.IsTaxIncluded as istaxin37_247_, invoice0_.C_Campaign_ID as c_campa38_247_, invoice0_.C_Project_ID as c_proje39_247_, invoice0_.C_Activity_ID as c_activ40_247_, invoice0_.CreateFrom as createf41_247_, invoice0_.GenerateTo as generat42_247_, invoice0_.AD_User_ID as ad_user43_247_, invoice0_.CopyFrom as copyfro44_247_, invoice0_.IsSelfService as isselfs45_247_, invoice0_.AD_OrgTrx_ID as ad_orgt46_247_, invoice0_.User1_ID as user47_247_, invoice0_.User2_ID as user48_247_, invoice0_.Withholdingamount as withhol49_247_, invoice0_.Taxdate as taxdate50_247_, invoice0_.C_Withholding_ID as c_withh51_247_, invoice0_.Ispaid as ispaid52_247_, invoice0_.EM_Einv_Generated as em_einv53_247_, invoice0_.Totalpaid as totalpa54_247_, invoice0_.EM_Einv_Sent as em_einv55_247_, invoice0_.OutstandingAmt as outstan56_247_, invoice0_.DaysTillDue as daystil57_247_, invoice0_.DueAmt as dueamt58_247_, invoice0_.LastCalculatedOnDate as lastcal59_247_, invoice0_.FIN_Paymentmethod_ID as fin_pay60_247_, invoice0_.FIN_Payment_Priority_ID as fin_pay61_247_, invoice0_.Finalsettlement as finalse62_247_, invoice0_.Daysoutstanding as daysout63_247_, invoice0_.Percentageoverdue as percent64_247_, invoice0_.C_Costcenter_ID as c_costc65_247_, invoice0_.Calculate_Promotions as calcula66_247_, invoice0_.A_Asset_ID as a_asset67_247_, invoice0_.EM_APRM_Addpayment as em_aprm68_247_, invoice0_.Iscashvat as iscashv69_247_, invoice0_.EM_APRM_Processinvoice as em_aprm70_247_, invoice0_.EM_Obcma_C_Poc_Email_ID as em_obcm71_247_, invoice0_.Prepaymentamt as prepaym72_247_, invoice0_.Createfromorders as createf73_247_, invoice0_.Createfrominouts as createf74_247_, invoice0_.EM_Prei_Iseinvoiced as em_prei75_247_, invoice0_.Paidamtatinvoicing as paidamt76_247_, invoice0_.EM_Prei_Generateeinvoice as em_prei77_247_, invoice0_.BPartner_ExtRef as bpartne78_247_, invoice0_.EM_Prei_Gen_And_Send_E_Inv as em_prei79_247_, invoice0_.EM_Aeatsii_Send as em_aeat80_247_, invoice0_.EM_Etblkp_Accountingstatus as em_etbl81_247_, invoice0_.EM_Aeatsii_Issent as em_aeat82_247_, invoice0_.EM_Etabam_Bankaccount_ID as em_etab83_247_, invoice0_.EM_Etafdp_Unvoid as em_etaf84_247_, invoice0_.EM_Etblkp_Bulkposting as em_etbl85_247_, invoice0_.EM_Etpr_Remove_Payment as em_etpr86_247_, invoice0_.EM_Jr_Amount as em_jr_a87_247_, invoice0_.EM_Prei_Sended as em_prei88_247_, invoice0_.EM_Prsc_Iscommissionable as em_prsc89_247_, invoice0_.EM_Aeatsii_Fecha_Operacion as em_aeat90_247_, invoice0_.EM_Etblkc_Bulkcompletion as em_etbl91_247_, invoice0_.EM_Aeatsii_Clave_Tipo as em_aeat92_247_, invoice0_.EM_Etinter_Interco_Orig as em_etin93_247_, invoice0_.EM_Aeatsii_Motivo_Rectif as em_aeat94_247_, invoice0_.EM_Prouti_Recalculate_Price as em_prou95_247_, invoice0_.EM_Aeatsii_Clave_Tipo_Fc as em_aeat96_247_, invoice0_.EM_Ml_Select_Product as em_ml_s97_247_, invoice0_.EM_Prouti_Pricecalculatetdate as em_prou98_247_, invoice0_.em_tbai_qrcode as em_tbai99_247_, invoice0_.EM_Aeatsii_Tipo_Rectif as em_aea100_247_, invoice0_.EM_Prouti_Totalizations as em_pro101_247_, invoice0_.EM_Tbai_Url as em_tba102_247_, invoice0_.EM_Aeatsii_Dua as em_aea103_247_, invoice0_.EM_Tbai_Xmlgenerator as em_tba104_247_, invoice0_.EM_Aeatsii_Fecha_Dua as em_aea105_247_, invoice0_.EM_Tbai_Signaturevalue as em_tba106_247_, invoice0_.EM_Aeatsii_Estado as em_aea107_247_, invoice0_.EM_Tbai_Sequence as em_tba108_247_, invoice0_.EM_Aeatsii_Error_Registral as em_aea109_247_, invoice0_.EM_Prsc_Commissiontype as em_prs110_247_, invoice0_.EM_Tbai_Idtbai as em_tba111_247_, invoice0_.EM_Aeatsii_Modif as em_aea112_247_, invoice0_.EM_Etvfac_Date_Issue as em_etv113_247_, invoice0_.EM_Prsc_Allowcommission as em_prs114_247_, invoice0_.EM_Tbai_Reverseinvoicecode as em_tba115_247_, invoice0_.EM_Aeatsii_Modified as em_aea116_247_, invoice0_.EM_Etvfac_Issue as em_etv117_247_, invoice0_.EM_Tbai_Issent as em_tba118_247_, invoice0_.EM_Aeatsii_Description_ID as em_aea119_247_, invoice0_.EM_Etvfac_Issue_Description as em_etv120_247_, invoice0_.EM_Tbai_Reverseinvoicetype as em_tba121_247_, invoice0_.EM_Aeatsii_Descripcion_Sii as em_aea122_247_, invoice0_.EM_Tbai_Isreverseinvoice as em_tba123_247_, invoice0_.EM_Aeatsii_Fecha_Reg_Cont as em_aea124_247_, invoice0_.EM_Tbai_Invoiceseq as em_tba125_247_, invoice0_.EM_Aeatsii_Dup as em_aea126_247_, invoice0_.EM_Tbai_Invoicenum as em_tba127_247_, invoice0_.EM_Aeatsii_Error_Code as em_aea128_247_, invoice0_.EM_Aeatsii_Error_Msg as em_aea129_247_, invoice0_.EM_Priuti_Createpurchinv as em_pri130_247_, invoice0_.EM_Aeatsii_Unsubscribe as em_aea131_247_, invoice0_.EM_Priuti_Generated as em_pri132_247_, invoice0_.EM_Aeatsii_Pur_Description_ID as em_aea133_247_, invoice0_.EM_Priuti_Date_Complete as em_pri134_247_, invoice0_.EM_Priuti_User_Complete_ID as em_pri135_247_, invoice0_.EM_Aeatsii_Multi_Dua as em_aea136_247_, invoice0_.EM_Priuti_Status_Of_Review as em_pri137_247_, invoice0_.EM_Aeatsii_Ejercicio as em_aea138_247_, invoice0_.EM_Priuti_Validate as em_pri139_247_, invoice0_.EM_Aeatsii_Periodo as em_aea140_247_, invoice0_.EM_Priuti_Start_Review as em_pri141_247_, invoice0_.EM_Aeatsii_Autofactura as em_aea142_247_, invoice0_.EM_Aeatsii_Invoice_ID as em_aea143_247_, invoice0_.EM_Aeatsii_Insiidate as em_aea144_247_, invoice0_.EM_Aeatsii_Cause_Exemption_ID as em_aea145_247_, invoice0_.EM_Aeatsii_Isauthorization as em_aea146_247_, invoice0_.EM_Aeatsii_Authorizationno as em_aea147_247_, invoice0_.EM_Etvfac_Invoice_Status as em_etv148_247_, invoice0_.EM_Etvfac_Senttoverifac as em_etv149_247_, invoice0_.EM_Etvfac_Inv_Type as em_etv150_247_, invoice0_.EM_Etvfac_Invnoidart61d as em_etv151_247_, invoice0_.EM_Etvfac_Verifac_Desc as em_etv152_247_, invoice0_.EM_Etvfac_Date_Operation as em_etv153_247_, invoice0_.EM_Etvfac_Reverseinvtype as em_etv154_247_, invoice0_.EM_Tbai_Issue_Date as em_tba155_247_, invoice0_.EM_Etvfac_External_Ref as em_etv156_247_, invoice0_.EM_Etvfac_Hash as em_etv157_247_, invoice0_.EM_Tbai_Date_Operation as em_tba158_247_, invoice0_.EM_Etvfac_Issubsanation as em_etv159_247_, invoice0_.EM_Etvfac_Void as em_etv160_247_, invoice0_.EM_Tbai_Voidxmlgenerator as em_tba161_247_, invoice0_.EM_Pruti_Notsendinvoice as em_pru162_247_, invoice0_.EM_Etvfac_Simpinvart7273 as em_etv163_247_ from C_Invoice invoice0_ left outer join FIN_Payment_Schedule finpayment1_ on invoice0_.C_Invoice_ID = finpayment1_.C_Invoice_ID where invoice0_.Processed = 'Y' and (invoice0_.Ispaid = 'N' or finpayment1_.Updated >= invoice0_.LastCalculatedOnDate or invoice0_.OutstandingAmt <> 0 or invoice0_.Finalsettlement is null) and (invoice0_.AD_Org_ID in ('0', '203E608E4BEC43F8BC282264DF075FCC', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (invoice0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and invoice0_.IsActive = 'Y';
Date: 2026-07-17 14:00:05 Duration: 2s828ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
6 1s552ms 2s573ms 2s63ms 2 4s126ms select materialmg0_.m_inoutline_id as col_0_0_, materialmg0_.ad_org_id as col_1_0_, materialmg0_.ad_client_id as col_2_0_, materialmg0_.m_product_id as col_3_0_, materialmg0_.c_uom_id as col_4_0_, materialmg0_.m_inoutline_id as col_5_0_, materialmg0_.movementqty as col_6_0_, materialmg2_.c_bpartner_id as col_7_0_, materialmg2_.documentno as col_8_0_, materialmg2_.movementdate as col_9_0_, attributes1_.m_attributesetinstance_id as col_10_0_, (select orderline9_.c_orderline_id from c_orderline orderline9_ where orderline9_.c_order_id=? and orderline9_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_11_0_, (select uom10_.name from c_uom uom10_ where uom10_.c_uom_id in (case when (select ? from c_orderline orderline11_ where orderline11_.c_order_id=? and orderline11_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when coalesce(materialmg0_.c_aum, ?)<>? then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end else coalesce((select orderline12_.c_aum from c_orderline orderline12_ where orderline12_.c_order_id=? and orderline12_.m_inoutline_id=materialmg0_.m_inoutline_id), ?) end)) as col_12_0_, case when materialmg0_.aumqty is not null then materialmg0_.aumqty else m_get_converted_aumqty(materialmg0_.m_product_id,materialmg0_.movementqty,m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id)) end as col_13_0_, case when (select ? from c_orderline orderline13_ where orderline13_.c_order_id=? and orderline13_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when materialmg0_.c_aum is not null then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end else coalesce((select orderline14_.c_aum from c_orderline orderline14_ where orderline14_.c_order_id=? and orderline14_.m_inoutline_id=materialmg0_.m_inoutline_id), ?) end as col_14_0_, (select uom15_.c_uom_id from c_uom uom15_ where uom15_.c_uom_id in (case when coalesce(materialmg0_.c_aum, ?)<>? then materialmg0_.c_aum else m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id) end)) as col_15_0_, case when (select ? from c_orderline orderline16_ where orderline16_.c_order_id=? and orderline16_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then case when coalesce(materialmg0_.c_aum, ?)=? then to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,m_get_default_aum_for_document(materialmg0_.m_product_id,documentty3_.c_doctype_id))) else to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,materialmg0_.c_aum)) end else to_number(m_get_converted_qty(materialmg0_.m_product_id,?.?,coalesce((select orderline17_.c_aum from c_orderline orderline17_ where orderline17_.c_order_id=? and orderline17_.m_inoutline_id=materialmg0_.m_inoutline_id), ?))) end as col_16_0_, coalesce((select sum(orderline18_.qtyordered) from c_orderline orderline18_ inner join c_order order19_ on orderline18_.c_order_id=order19_.c_order_id where orderline18_.m_inoutline_id=materialmg0_.m_inoutline_id and order19_.processed=? and order19_.docstatus<>?), ?)*? as col_17_0_, case when (select ? from c_orderline orderline20_ where orderline20_.c_order_id=? and orderline20_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then false else true end as col_18_0_, coalesce((select orderline21_.qtyordered from c_orderline orderline21_ where orderline21_.c_order_id=? and orderline21_.m_inoutline_id=materialmg0_.m_inoutline_id), ?)*? as col_19_0_, (select orderline22_.c_return_reason_id from c_orderline orderline22_ cross join c_return_reason returnreas23_ where orderline22_.c_return_reason_id=returnreas23_.c_return_reason_id and orderline22_.c_order_id=? and orderline22_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_20_0_, coalesce((select orderline24_.c_tax_id from c_orderline orderline24_ where orderline24_.c_order_id=? and orderline24_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline26_.c_tax_id from m_inoutline materialmg25_ cross join c_orderline orderline26_ where materialmg25_.c_orderline_id=orderline26_.c_orderline_id and materialmg25_.m_inoutline_id=materialmg0_.m_inoutline_id)) as col_21_0_, case when (select pricingpri28_.istaxincluded from c_order order27_ cross join m_pricelist pricingpri28_ where order27_.m_pricelist_id=pricingpri28_.m_pricelist_id and order27_.c_order_id=?)=? then coalesce((select orderline29_.priceactual from c_orderline orderline29_ where orderline29_.c_order_id=? and orderline29_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline31_.gross_unit_price from m_inoutline materialmg30_ cross join c_orderline orderline31_ where materialmg30_.c_orderline_id=orderline31_.c_orderline_id and materialmg30_.m_inoutline_id=materialmg0_.m_inoutline_id)) else coalesce((select orderline32_.priceactual from c_orderline orderline32_ where orderline32_.c_order_id=? and orderline32_.m_inoutline_id=materialmg0_.m_inoutline_id), (select orderline34_.priceactual from m_inoutline materialmg33_ cross join c_orderline orderline34_ where materialmg33_.c_orderline_id=orderline34_.c_orderline_id and materialmg33_.m_inoutline_id=materialmg0_.m_inoutline_id)) end as col_22_0_, (select order37_.documentno from m_inoutline materialmg35_ cross join c_orderline orderline36_ cross join c_order order37_ where materialmg35_.c_orderline_id=orderline36_.c_orderline_id and orderline36_.c_order_id=order37_.c_order_id and materialmg35_.m_inoutline_id=materialmg0_.m_inoutline_id) as col_23_0_, organizati4_.ad_org_id as ad_org_i1_71_0_, adclient5_.ad_client_id as ad_clien1_18_1_, product6_.m_product_id as m_produc1_482_2_, uom7_.c_uom_id as c_uom_id1_322_3_, businesspa8_.c_bpartner_id as c_bpartn1_188_4_, attributes1_.m_attributesetinstance_id as m_attrib1_418_5_, organizati4_.ad_client_id as ad_clien2_71_0_, organizati4_.isactive as isactive3_71_0_, organizati4_.created as created4_71_0_, organizati4_.createdby as createdb5_71_0_, organizati4_.updated as updated6_71_0_, organizati4_.updatedby as updatedb7_71_0_, organizati4_.value as value8_71_0_, organizati4_.name as name9_71_0_, organizati4_.description as descrip10_71_0_, organizati4_.issummary as issumma11_71_0_, organizati4_.ad_orgtype_id as ad_orgt12_71_0_, organizati4_.isperiodcontrolallowed as isperio13_71_0_, organizati4_.c_calendar_id as c_calen14_71_0_, organizati4_.isready as isready15_71_0_, organizati4_.em_intr_c_calendar_id as em_intr16_71_0_, organizati4_.social_name as social_17_71_0_, organizati4_.c_currency_id as c_curre18_71_0_, organizati4_.c_acctschema_id as c_accts19_71_0_, organizati4_.em_aprm_glitem_id as em_aprm20_71_0_, organizati4_.em_obmfm_product_id as em_obmf21_71_0_, organizati4_.ad_periodcontrolallowed_org_id as ad_peri22_71_0_, organizati4_.ad_calendarowner_org_id as ad_cale23_71_0_, organizati4_.em_obwpack_uom_id as em_obwp24_71_0_, organizati4_.ad_legalentity_org_id as ad_lega25_71_0_, organizati4_.ad_inheritedcalendar_id as ad_inhe26_71_0_, organizati4_.ad_businessunit_org_id as ad_busi27_71_0_, organizati4_.em_etsg_add_certificate as em_etsg28_71_0_, organizati4_.em_prupc_ad_sequence_id as em_prup29_71_0_, organizati4_.em_prupc_locator_sequence_id as em_prup30_71_0_, organizati4_.c_extbp_enabled as c_extbp31_71_0_, organizati4_.c_extbp_config_id as c_extbp32_71_0_, organizati4_.em_pruti_planningmethod_id as em_prut33_71_0_, organizati4_.em_obmobc_credential_timeout as em_obmo34_71_0_, adclient5_.ad_org_id as ad_org_i2_18_1_, adclient5_.isactive as isactive3_18_1_, adclient5_.created as created4_18_1_, adclient5_.createdby as createdb5_18_1_, adclient5_.updated as updated6_18_1_, adclient5_.updatedby as updatedb7_18_1_, adclient5_.value as value8_18_1_, adclient5_.name as name9_18_1_, adclient5_.description as descrip10_18_1_, adclient5_.smtphost as smtphos11_18_1_, adclient5_.requestemail as request12_18_1_, adclient5_.requestuser as request13_18_1_, adclient5_.requestuserpw as request14_18_1_, adclient5_.requestfolder as request15_18_1_, adclient5_.ad_language as ad_lang16_18_1_, adclient5_.ismultilingualdocument as ismulti17_18_1_, adclient5_.issmtpauthorization as issmtpa18_18_1_, adclient5_.c_currency_id as c_curre19_18_1_, adclient5_.acctdim_centrally_maintained as acctdim20_18_1_, adclient5_.project_acctdim_isenable as project21_18_1_, adclient5_.project_acctdim_header as project22_18_1_, adclient5_.project_acctdim_lines as project23_18_1_, adclient5_.project_acctdim_breakdown as project24_18_1_, adclient5_.bpartner_acctdim_isenable as bpartne25_18_1_, adclient5_.bpartner_acctdim_header as bpartne26_18_1_, adclient5_.bpartner_acctdim_lines as bpartne27_18_1_, adclient5_.bpartner_acctdim_breakdown as bpartne28_18_1_, adclient5_.product_acctdim_isenable as product29_18_1_, adclient5_.product_acctdim_header as product30_18_1_, adclient5_.product_acctdim_lines as product31_18_1_, adclient5_.product_acctdim_breakdown as product32_18_1_, adclient5_.costcenter_acctdim_header as costcen33_18_1_, adclient5_.costcenter_acctdim_lines as costcen34_18_1_, adclient5_.costcenter_acctdim_breakdown as costcen35_18_1_, adclient5_.user1_acctdim_isenable as user36_18_1_, adclient5_.user1_acctdim_header as user37_18_1_, adclient5_.user1_acctdim_lines as user38_18_1_, adclient5_.user1_acctdim_breakdown as user39_18_1_, adclient5_.user2_acctdim_isenable as user40_18_1_, adclient5_.user2_acctdim_header as user41_18_1_, adclient5_.user2_acctdim_lines as user42_18_1_, adclient5_.user2_acctdim_breakdown as user43_18_1_, adclient5_.costcenter_acctdim_isenable as costcen44_18_1_, adclient5_.org_acctdim_isenable as org_acc45_18_1_, adclient5_.org_acctdim_header as org_acc46_18_1_, adclient5_.org_acctdim_lines as org_acc47_18_1_, adclient5_.org_acctdim_breakdown as org_acc48_18_1_, adclient5_.daystopasswordexpiration as daystop49_18_1_, adclient5_.em_jr_ftp_image_url as em_jr_f50_18_1_, adclient5_.em_pruti_periodnotifications as em_prut51_18_1_, adclient5_.em_jr_ftp_image_username as em_jr_f52_18_1_, adclient5_.em_jr_ftp_image_password as em_jr_f53_18_1_, adclient5_.em_prupc_upc_password as em_prup54_18_1_, adclient5_.em_prsc_tree_prodcat_id as em_prsc55_18_1_, adclient5_.em_pruti_cleancache as em_prut56_18_1_, adclient5_.em_priuti_openbravo_url as em_priu57_18_1_, product6_.ad_client_id as ad_clien2_482_2_, product6_.ad_org_id as ad_org_i3_482_2_, product6_.isactive as isactive4_482_2_, product6_.created as created5_482_2_, product6_.createdby as createdb6_482_2_, product6_.updated as updated7_482_2_, product6_.updatedby as updatedb8_482_2_, product6_.value as value9_482_2_, product6_.name as name10_482_2_, product6_.description as descrip11_482_2_, product6_.documentnote as documen12_482_2_, product6_.help as help13_482_2_, product6_.upc as upc14_482_2_, product6_.sku as sku15_482_2_, product6_.c_uom_id as c_uom_i16_482_2_, product6_.salesrep_id as salesre17_482_2_, product6_.issummary as issumma18_482_2_, product6_.isstocked as isstock19_482_2_, product6_.ispurchased as ispurch20_482_2_, product6_.issold as issold21_482_2_, product6_.isbom as isbom22_482_2_, product6_.isinvoiceprintdetails as isinvoi23_482_2_, product6_.ispicklistprintdetails as ispickl24_482_2_, product6_.isverified as isverif25_482_2_, product6_.m_product_category_id as m_produ26_482_2_, product6_.classification as classif27_482_2_, product6_.volume as volume28_482_2_, product6_.weight as weight29_482_2_, product6_.shelfwidth as shelfwi30_482_2_, product6_.shelfheight as shelfhe31_482_2_, product6_.shelfdepth as shelfde32_482_2_, product6_.unitsperpallet as unitspe33_482_2_, product6_.c_taxcategory_id as c_taxca34_482_2_, product6_.s_resource_id as s_resou35_482_2_, product6_.discontinued as discont36_482_2_, product6_.discontinuedby as discont37_482_2_, product6_.processing as process38_482_2_, product6_.s_expensetype_id as s_expen39_482_2_, product6_.producttype as product40_482_2_, product6_.imageurl as imageur41_482_2_, product6_.descriptionurl as descrip42_482_2_, product6_.guaranteedays as guarant43_482_2_, product6_.versionno as version44_482_2_, product6_.m_attributeset_id as m_attri45_482_2_, product6_.m_attributesetinstance_id as m_attri46_482_2_, product6_.downloadurl as downloa47_482_2_, product6_.m_freightcategory_id as m_freig48_482_2_, product6_.m_locator_id as m_locat49_482_2_, product6_.ad_image_id as ad_imag50_482_2_, product6_.c_bpartner_id as c_bpart51_482_2_, product6_.ispriceprinted as isprice52_482_2_, product6_.name2 as name53_482_2_, product6_.stock_min as stock_m54_482_2_, product6_.enforce_attribute as enforce55_482_2_, product6_.calculated as calcula56_482_2_, product6_.ma_processplan_id as ma_proc57_482_2_, product6_.production as product58_482_2_, product6_.capacity as capacit59_482_2_, product6_.delaymin as delaymi60_482_2_, product6_.mrp_planner_id as mrp_pla61_482_2_, product6_.mrp_planningmethod_id as mrp_pla62_482_2_, product6_.qtymax as qtymax63_482_2_, product6_.qtymin as qtymin64_482_2_, product6_.qtystd as qtystd65_482_2_, product6_.qtytype as qtytype66_482_2_, product6_.stockmin as stockmi67_482_2_, product6_.em_aeat347_isleasebusiness as em_aeat68_482_2_, product6_.attrsetvaluetype as attrset69_482_2_, product6_.em_aeat347_situation as em_aeat70_482_2_, product6_.isquantityvariable as isquant71_482_2_, product6_.isdeferredrevenue as isdefer72_482_2_, product6_.em_aeat347_referenceid as em_aeat73_482_2_, product6_.em_aeat347_locationtype as em_aeat74_482_2_, product6_.revplantype as revplan75_482_2_, product6_.em_aeat347_streetname as em_aeat76_482_2_, product6_.periodnumber as periodn77_482_2_, product6_.em_aeat347_streetnumbertype as em_aeat78_482_2_, product6_.isdeferredexpense as isdefer79_482_2_, product6_.em_aeat347_streetnumber as em_aeat80_482_2_, product6_.expplantype as expplan81_482_2_, product6_.em_aeat347_streetnumberqua as em_aeat82_482_2_, product6_.periodnumber_exp as periodn83_482_2_, product6_.defaultperiod as default84_482_2_, product6_.em_aeat347_building as em_aeat85_482_2_, product6_.defaultperiod_exp as default86_482_2_, product6_.em_aeat347_hall as em_aeat87_482_2_, product6_.bookusingpoprice as bookusi88_482_2_, product6_.em_aeat347_hallway as em_aeat89_482_2_, product6_.em_aeat347_floor as em_aeat90_482_2_, product6_.c_uom_weight_id as c_uom_w91_482_2_, product6_.m_brand_id as m_brand92_482_2_, product6_.em_aeat347_apartment as em_aeat93_482_2_, product6_.em_aeat347_complement as em_aeat94_482_2_, product6_.isgeneric as isgener95_482_2_, product6_.em_aeat347_location as em_aeat96_482_2_, product6_.generic_product_id as generic97_482_2_, product6_.createvariants as createv98_482_2_, product6_.em_aeat347_county as em_aeat99_482_2_, product6_.characteristic_desc as charac100_482_2_, product6_.em_aeat347_countycode as em_aea101_482_2_, product6_.em_aeat347_regioncode as em_aea102_482_2_, product6_.updateinvariants as update103_482_2_, product6_.em_aeat347_zipcode as em_aea104_482_2_, product6_.managevariants as manage105_482_2_, product6_.prod_cat_selection as prod_c106_482_2_, product6_.product_selection as produc107_482_2_, product6_.print_description as print_108_482_2_, product6_.returnable as return109_482_2_, product6_.overdue_return_days as overdu110_482_2_, product6_.ispricerulebased as ispric111_482_2_, product6_.unique_per_document as unique112_482_2_, product6_.relateprodcattoservice as relate113_482_2_, product6_.relateprodtoservice as relate114_482_2_, product6_.islinkedtoproduct as islink115_482_2_, product6_.quantity_rule as quanti116_482_2_, product6_.allow_deferred_sell as allow_117_482_2_, product6_.deferred_sell_max_days as deferr118_482_2_, product6_.m_product_status_id as m_prod119_482_2_, product6_.ismodifytax as ismodi120_482_2_, product6_.relateprodcattaxtoservice as relate121_482_2_, product6_.copyservicemodifytaxconfig as copyse122_482_2_, product6_.em_jr_stocktype as em_jr_123_482_2_, product6_.em_obmupc_multiupc_desc as em_obm124_482_2_, product6_.em_prupc_generate_ean as em_pru125_482_2_, product6_.em_prsc_isdeliverycosts as em_prs126_482_2_, product6_.em_pruti_addmodifycharact as em_pru127_482_2_, uom7_.ad_client_id as ad_clien2_322_3_, uom7_.ad_org_id as ad_org_i3_322_3_, uom7_.isactive as isactive4_322_3_, uom7_.created as created5_322_3_, uom7_.updated as updated6_322_3_, uom7_.createdby as createdb7_322_3_, uom7_.updatedby as updatedb8_322_3_, uom7_.x12de355 as x9_322_3_, uom7_.uomsymbol as uomsymb10_322_3_, uom7_.name as name11_322_3_, uom7_.description as descrip12_322_3_, uom7_.stdprecision as stdprec13_322_3_, uom7_.costingprecision as costing14_322_3_, uom7_.isdefault as isdefau15_322_3_, uom7_.breakdown as breakdo16_322_3_, uom7_.uom_type as uom_typ17_322_3_, uom7_.em_obwpack_isweight as em_obwp18_322_3_, uom7_.useinproduction as useinpr19_322_3_, businesspa8_.ad_client_id as ad_clien2_188_4_, businesspa8_.ad_org_id as ad_org_i3_188_4_, businesspa8_.isactive as isactive4_188_4_, businesspa8_.created as created5_188_4_, businesspa8_.createdby as createdb6_188_4_, businesspa8_.updated as updated7_188_4_, businesspa8_.updatedby as updatedb8_188_4_, businesspa8_.value as value9_188_4_, businesspa8_.name as name10_188_4_, businesspa8_.name2 as name11_188_4_, businesspa8_.description as descrip12_188_4_, businesspa8_.issummary as issumma13_188_4_, businesspa8_.c_bp_group_id as c_bp_gr14_188_4_, businesspa8_.isonetime as isoneti15_188_4_, businesspa8_.isprospect as isprosp16_188_4_, businesspa8_.isvendor as isvendo17_188_4_, businesspa8_.iscustomer as iscusto18_188_4_, businesspa8_.isemployee as isemplo19_188_4_, businesspa8_.issalesrep as issales20_188_4_, businesspa8_.referenceno as referen21_188_4_, businesspa8_.duns as duns22_188_4_, businesspa8_.url as url23_188_4_, businesspa8_.ad_language as ad_lang24_188_4_, businesspa8_.taxid as taxid25_188_4_, businesspa8_.istaxexempt as istaxex26_188_4_, businesspa8_.c_invoiceschedule_id as c_invoi27_188_4_, businesspa8_.rating as rating28_188_4_, businesspa8_.salesvolume as salesvo29_188_4_, businesspa8_.numberemployees as numbere30_188_4_, businesspa8_.naics as naics31_188_4_, businesspa8_.firstsale as firstsa32_188_4_, businesspa8_.acqusitioncost as acqusit33_188_4_, businesspa8_.potentiallifetimevalue as potenti34_188_4_, businesspa8_.actuallifetimevalue as actuall35_188_4_, businesspa8_.shareofcustomer as shareof36_188_4_, businesspa8_.paymentrule as payment37_188_4_, businesspa8_.so_creditlimit as so_cred38_188_4_, businesspa8_.so_creditused as so_cred39_188_4_, businesspa8_.c_paymentterm_id as c_payme40_188_4_, businesspa8_.m_pricelist_id as m_price41_188_4_, businesspa8_.isdiscountprinted as isdisco42_188_4_, businesspa8_.so_description as so_desc43_188_4_, businesspa8_.poreference as porefer44_188_4_, businesspa8_.paymentrulepo as payment45_188_4_, businesspa8_.po_pricelist_id as po_pric46_188_4_, businesspa8_.po_paymentterm_id as po_paym47_188_4_, businesspa8_.documentcopies as documen48_188_4_, businesspa8_.c_greeting_id as c_greet49_188_4_, businesspa8_.invoicerule as invoice50_188_4_, businesspa8_.deliveryrule as deliver51_188_4_, businesspa8_.deliveryviarule as deliver52_188_4_, businesspa8_.salesrep_id as salesre53_188_4_, businesspa8_.bpartner_parent_id as bpartne54_188_4_, businesspa8_.socreditstatus as socredi55_188_4_, businesspa8_.ad_forced_org_id as ad_forc56_188_4_, businesspa8_.showpriceinorder as showpri57_188_4_, businesspa8_.invoicegrouping as invoice58_188_4_, businesspa8_.fixmonthday as fixmont59_188_4_, businesspa8_.fixmonthday2 as fixmont60_188_4_, businesspa8_.fixmonthday3 as fixmont61_188_4_, businesspa8_.isworker as isworke62_188_4_, businesspa8_.upc as upc63_188_4_, businesspa8_.c_salary_category_id as c_salar64_188_4_, businesspa8_.invoice_printformat as invoice65_188_4_, businesspa8_.last_days as last_da66_188_4_, businesspa8_.po_bankaccount_id as po_bank67_188_4_, businesspa8_.po_bp_taxcategory_id as po_bp_t68_188_4_, businesspa8_.po_fixmonthday as po_fixm69_188_4_, businesspa8_.po_fixmonthday2 as po_fixm70_188_4_, businesspa8_.po_fixmonthday3 as po_fixm71_188_4_, businesspa8_.so_bankaccount_id as so_bank72_188_4_, businesspa8_.so_bp_taxcategory_id as so_bp_t73_188_4_, businesspa8_.fiscalcode as fiscalc74_188_4_, businesspa8_.isofiscalcode as isofisc75_188_4_, businesspa8_.em_einv_einvoice as em_einv76_188_4_, businesspa8_.po_c_incoterms_id as po_c_in77_188_4_, businesspa8_.em_einv_format_id as em_einv78_188_4_, businesspa8_.so_c_incoterms_id as so_c_in79_188_4_, businesspa8_.em_einv_platform_id as em_einv80_188_4_, businesspa8_.fin_paymentmethod_id as fin_pay81_188_4_, businesspa8_.em_einv_email as em_einv82_188_4_, businesspa8_.po_paymentmethod_id as po_paym83_188_4_, businesspa8_.fin_financial_account_id as fin_fin84_188_4_, businesspa8_.em_einv_deliverymode as em_einv85_188_4_, businesspa8_.po_financial_account_id as po_fina86_188_4_, businesspa8_.customer_blocking as custome87_188_4_, businesspa8_.vendor_blocking as vendor_88_188_4_, businesspa8_.so_payment_blocking as so_paym89_188_4_, businesspa8_.po_payment_blocking as po_paym90_188_4_, businesspa8_.so_invoice_blocking as so_invo91_188_4_, businesspa8_.po_invoice_blocking as po_invo92_188_4_, businesspa8_.so_order_blocking as so_orde93_188_4_, businesspa8_.po_order_blocking as po_orde94_188_4_, businesspa8_.so_goods_blocking as so_good95_188_4_, businesspa8_.po_goods_blocking as po_good96_188_4_, businesspa8_.iscashvat as iscashv97_188_4_, businesspa8_.update_currency as update_98_188_4_, businesspa8_.bp_currency_id as bp_curr99_188_4_, businesspa8_.birthplace as birthp100_188_4_, businesspa8_.birthday as birthd101_188_4_, businesspa8_.is_customer_consent as is_cus102_188_4_, businesspa8_.em_obsepad_mandate_identifier as em_obs103_188_4_, businesspa8_.em_obsepad_mandate_date as em_obs104_188_4_, businesspa8_.em_aeatsii_rep_taxid as em_aea105_188_4_, businesspa8_.em_jr_inoutval as em_jr_106_188_4_, businesspa8_.em_aeatsii_menor as em_aea107_188_4_, businesspa8_.em_jr_isgeneric as em_jr_108_188_4_, businesspa8_.em_pruti_addbp as em_pru109_188_4_, businesspa8_.em_prei_iseinvoice as em_pre110_188_4_, businesspa8_.em_prei_format_id as em_pre111_188_4_, businesspa8_.em_pruti_unlock_date as em_pru112_188_4_, businesspa8_.em_prei_platform_id as em_pre113_188_4_, businesspa8_.em_pruti_unlock_order_date as em_pru114_188_4_, businesspa8_.em_prei_send_method as em_pre115_188_4_, businesspa8_.em_pruti_annexes_bp_so_id as em_pru116_188_4_, businesspa8_.em_prei_email as em_pre117_188_4_, businesspa8_.em_pruti_annexes_bp_po_id as em_pru118_188_4_, businesspa8_.em_prei_need_expedient as em_pre119_188_4_, businesspa8_.em_aeatsii_defaultsiikey as em_aea120_188_4_, businesspa8_.em_aeatsii_siikeylist as em_aea121_188_4_, businesspa8_.em_tbai_issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.em_pruti_notsendinvoice as em_pru124_188_4_, businesspa8_.em_obtik_tax_id_key as em_obt125_188_4_, attributes1_.ad_client_id as ad_clien2_418_5_, attributes1_.ad_org_id as ad_org_i3_418_5_, attributes1_.isactive as isactive4_418_5_, attributes1_.created as created5_418_5_, attributes1_.createdby as createdb6_418_5_, attributes1_.updated as updated7_418_5_, attributes1_.updatedby as updatedb8_418_5_, attributes1_.m_attributeset_id as m_attrib9_418_5_, attributes1_.serno as serno10_418_5_, attributes1_.lot as lot11_418_5_, attributes1_.guaranteedate as guarant12_418_5_, attributes1_.description as descrip13_418_5_, attributes1_.m_lot_id as m_lot_i14_418_5_, attributes1_.islocked as islocke15_418_5_, attributes1_.lock_description as lock_de16_418_5_, attributes1_.m_refinventory_id as m_refin17_418_5_, attributes1_.parent_attributesetinstance_id as parent_18_418_5_ from m_inoutline materialmg0_ left outer join m_attributesetinstance attributes1_ on materialmg0_.m_attributesetinstance_id=attributes1_.m_attributesetinstance_id inner join m_inout materialmg2_ on materialmg0_.m_inout_id=materialmg2_.m_inout_id inner join c_doctype documentty3_ on materialmg2_.c_doctype_id=documentty3_.c_doctype_id inner join c_bpartner businesspa8_ on materialmg2_.c_bpartner_id=businesspa8_.c_bpartner_id inner join ad_org organizati4_ on materialmg0_.ad_org_id=organizati4_.ad_org_id inner join ad_client adclient5_ on materialmg0_.ad_client_id=adclient5_.ad_client_id inner join m_product product6_ on materialmg0_.m_product_id=product6_.m_product_id inner join c_uom uom7_ on materialmg0_.c_uom_id=uom7_.c_uom_id where materialmg2_.c_bpartner_id=? and documentty3_.isreturn=? and materialmg2_.processed=? and materialmg2_.docstatus<>? and materialmg2_.issotrx=? and materialmg2_.isnettingshipment=? and materialmg0_.movementqty+coalesce((select sum(orderline38_.qtyordered) from c_orderline orderline38_ inner join c_order order39_ on orderline38_.c_order_id=order39_.c_order_id where orderline38_.m_inoutline_id=materialmg0_.m_inoutline_id and order39_.processed=? and order39_.docstatus<>?), ?)<>? and ?=? and (materialmg0_.ad_client_id in (...)) and (materialmg0_.ad_org_id in (...)) and (materialmg2_.movementdate>=now()? or case when (select ? from c_orderline orderline40_ where orderline40_.c_order_id=? and orderline40_.m_inoutline_id=materialmg0_.m_inoutline_id) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.movementdate desc, materialmg2_.documentno desc, materialmg0_.line limit ?;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jul 17 07 1 1s552ms 1s552ms 09 1 2s573ms 2s573ms [ User: tad - Total duration: 4s126ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 4s126ms - Times executed: 2 ]
-
select materialmg0_.M_InOutLine_ID as col_0_0_, materialmg0_.AD_Org_ID as col_1_0_, materialmg0_.AD_Client_ID as col_2_0_, materialmg0_.M_Product_ID as col_3_0_, materialmg0_.C_UOM_ID as col_4_0_, materialmg0_.M_InOutLine_ID as col_5_0_, materialmg0_.MovementQty as col_6_0_, materialmg2_.C_BPartner_ID as col_7_0_, materialmg2_.DocumentNo as col_8_0_, materialmg2_.MovementDate as col_9_0_, attributes1_.M_AttributeSetInstance_ID as col_10_0_, (select orderline9_.C_OrderLine_ID from C_OrderLine orderline9_ where orderline9_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline9_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_11_0_, (select uom10_.Name from C_UOM uom10_ where uom10_.C_UOM_ID in (case when (select 'Y' from C_OrderLine orderline11_ where orderline11_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline11_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline12_.C_Aum from C_OrderLine orderline12_ where orderline12_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline12_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 'Y') end)) as col_12_0_, case when materialmg0_.Aumqty is not null then materialmg0_.Aumqty else m_get_converted_aumqty(materialmg0_.M_Product_ID,materialmg0_.MovementQty,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID)) end as col_13_0_, case when (select 'Y' from C_OrderLine orderline13_ where orderline13_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline13_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when materialmg0_.C_Aum is not null then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline14_.C_Aum from C_OrderLine orderline14_ where orderline14_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline14_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), '') end as col_14_0_, (select uom15_.C_UOM_ID from C_UOM uom15_ where uom15_.C_UOM_ID in (case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end)) as col_15_0_, case when (select 'Y' from C_OrderLine orderline16_ where orderline16_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline16_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')='0' then to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID))) else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,materialmg0_.C_Aum)) end else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,coalesce((select orderline17_.C_Aum from C_OrderLine orderline17_ where orderline17_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline17_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), ''))) end as col_16_0_, coalesce((select sum(orderline18_.QtyOrdered) from C_OrderLine orderline18_ inner join C_Order order19_ on orderline18_.C_Order_ID=order19_.C_Order_ID where orderline18_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order19_.Processed='Y' and order19_.DocStatus<>'VO'), 0)*-1 as col_17_0_, case when (select 'Y' from C_OrderLine orderline20_ where orderline20_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline20_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end as col_18_0_, coalesce((select orderline21_.QtyOrdered from C_OrderLine orderline21_ where orderline21_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline21_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 0)*-1 as col_19_0_, (select orderline22_.C_Return_Reason_ID from C_OrderLine orderline22_ cross join C_Return_Reason returnreas23_ where orderline22_.C_Return_Reason_ID=returnreas23_.C_Return_Reason_ID and orderline22_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline22_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_20_0_, coalesce((select orderline24_.C_Tax_ID from C_OrderLine orderline24_ where orderline24_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline24_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline26_.C_Tax_ID from M_InOutLine materialmg25_ cross join C_OrderLine orderline26_ where materialmg25_.C_OrderLine_ID=orderline26_.C_OrderLine_ID and materialmg25_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) as col_21_0_, case when (select pricingpri28_.IsTaxIncluded from C_Order order27_ cross join M_PriceList pricingpri28_ where order27_.M_PriceList_ID=pricingpri28_.M_PriceList_ID and order27_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19')='Y' then coalesce((select orderline29_.PriceActual from C_OrderLine orderline29_ where orderline29_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline29_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline31_.Gross_Unit_Price from M_InOutLine materialmg30_ cross join C_OrderLine orderline31_ where materialmg30_.C_OrderLine_ID=orderline31_.C_OrderLine_ID and materialmg30_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) else coalesce((select orderline32_.PriceActual from C_OrderLine orderline32_ where orderline32_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline32_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline34_.PriceActual from M_InOutLine materialmg33_ cross join C_OrderLine orderline34_ where materialmg33_.C_OrderLine_ID=orderline34_.C_OrderLine_ID and materialmg33_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) end as col_22_0_, (select order37_.DocumentNo from M_InOutLine materialmg35_ cross join C_OrderLine orderline36_ cross join C_Order order37_ where materialmg35_.C_OrderLine_ID=orderline36_.C_OrderLine_ID and orderline36_.C_Order_ID=order37_.C_Order_ID and materialmg35_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID) as col_23_0_, organizati4_.AD_Org_ID as ad_org_i1_71_0_, adclient5_.AD_Client_ID as ad_clien1_18_1_, product6_.M_Product_ID as m_produc1_482_2_, uom7_.C_UOM_ID as c_uom_id1_322_3_, businesspa8_.C_BPartner_ID as c_bpartn1_188_4_, attributes1_.M_AttributeSetInstance_ID as m_attrib1_418_5_, organizati4_.AD_Client_ID as ad_clien2_71_0_, organizati4_.IsActive as isactive3_71_0_, organizati4_.Created as created4_71_0_, organizati4_.CreatedBy as createdb5_71_0_, organizati4_.Updated as updated6_71_0_, organizati4_.UpdatedBy as updatedb7_71_0_, organizati4_.Value as value8_71_0_, organizati4_.Name as name9_71_0_, organizati4_.Description as descrip10_71_0_, organizati4_.IsSummary as issumma11_71_0_, organizati4_.AD_Orgtype_ID as ad_orgt12_71_0_, organizati4_.IsPeriodControlAllowed as isperio13_71_0_, organizati4_.C_Calendar_ID as c_calen14_71_0_, organizati4_.IsReady as isready15_71_0_, organizati4_.EM_Intr_C_Calendar_ID as em_intr16_71_0_, organizati4_.Social_Name as social_17_71_0_, organizati4_.C_Currency_ID as c_curre18_71_0_, organizati4_.C_Acctschema_ID as c_accts19_71_0_, organizati4_.EM_APRM_Glitem_ID as em_aprm20_71_0_, organizati4_.EM_OBMFM_Product_ID as em_obmf21_71_0_, organizati4_.AD_Periodcontrolallowed_Org_ID as ad_peri22_71_0_, organizati4_.AD_Calendarowner_Org_ID as ad_cale23_71_0_, organizati4_.EM_Obwpack_Uom_ID as em_obwp24_71_0_, organizati4_.AD_Legalentity_Org_ID as ad_lega25_71_0_, organizati4_.AD_Inheritedcalendar_ID as ad_inhe26_71_0_, organizati4_.AD_Businessunit_Org_ID as ad_busi27_71_0_, organizati4_.EM_Etsg_Add_Certificate as em_etsg28_71_0_, organizati4_.EM_Prupc_Ad_Sequence_ID as em_prup29_71_0_, organizati4_.EM_Prupc_Locator_Sequence_ID as em_prup30_71_0_, organizati4_.C_Extbp_Enabled as c_extbp31_71_0_, organizati4_.C_Extbp_Config_ID as c_extbp32_71_0_, organizati4_.EM_Pruti_Planningmethod_ID as em_prut33_71_0_, organizati4_.EM_Obmobc_Credential_Timeout as em_obmo34_71_0_, adclient5_.AD_Org_ID as ad_org_i2_18_1_, adclient5_.IsActive as isactive3_18_1_, adclient5_.Created as created4_18_1_, adclient5_.CreatedBy as createdb5_18_1_, adclient5_.Updated as updated6_18_1_, adclient5_.UpdatedBy as updatedb7_18_1_, adclient5_.Value as value8_18_1_, adclient5_.Name as name9_18_1_, adclient5_.Description as descrip10_18_1_, adclient5_.SMTPHost as smtphos11_18_1_, adclient5_.RequestEMail as request12_18_1_, adclient5_.RequestUser as request13_18_1_, adclient5_.RequestUserPW as request14_18_1_, adclient5_.RequestFolder as request15_18_1_, adclient5_.AD_Language as ad_lang16_18_1_, adclient5_.IsMultiLingualDocument as ismulti17_18_1_, adclient5_.IsSmtpAuthorization as issmtpa18_18_1_, adclient5_.C_Currency_ID as c_curre19_18_1_, adclient5_.Acctdim_Centrally_Maintained as acctdim20_18_1_, adclient5_.Project_Acctdim_Isenable as project21_18_1_, adclient5_.Project_Acctdim_Header as project22_18_1_, adclient5_.Project_Acctdim_Lines as project23_18_1_, adclient5_.Project_Acctdim_Breakdown as project24_18_1_, adclient5_.Bpartner_Acctdim_Isenable as bpartne25_18_1_, adclient5_.Bpartner_Acctdim_Header as bpartne26_18_1_, adclient5_.Bpartner_Acctdim_Lines as bpartne27_18_1_, adclient5_.Bpartner_Acctdim_Breakdown as bpartne28_18_1_, adclient5_.Product_Acctdim_Isenable as product29_18_1_, adclient5_.Product_Acctdim_Header as product30_18_1_, adclient5_.Product_Acctdim_Lines as product31_18_1_, adclient5_.Product_Acctdim_Breakdown as product32_18_1_, adclient5_.Costcenter_Acctdim_Header as costcen33_18_1_, adclient5_.Costcenter_Acctdim_Lines as costcen34_18_1_, adclient5_.Costcenter_Acctdim_Breakdown as costcen35_18_1_, adclient5_.User1_Acctdim_Isenable as user36_18_1_, adclient5_.User1_Acctdim_Header as user37_18_1_, adclient5_.User1_Acctdim_Lines as user38_18_1_, adclient5_.User1_Acctdim_Breakdown as user39_18_1_, adclient5_.User2_Acctdim_Isenable as user40_18_1_, adclient5_.User2_Acctdim_Header as user41_18_1_, adclient5_.User2_Acctdim_Lines as user42_18_1_, adclient5_.User2_Acctdim_Breakdown as user43_18_1_, adclient5_.Costcenter_Acctdim_Isenable as costcen44_18_1_, adclient5_.Org_Acctdim_Isenable as org_acc45_18_1_, adclient5_.Org_Acctdim_Header as org_acc46_18_1_, adclient5_.Org_Acctdim_Lines as org_acc47_18_1_, adclient5_.Org_Acctdim_Breakdown as org_acc48_18_1_, adclient5_.DaysToPasswordExpiration as daystop49_18_1_, adclient5_.EM_Jr_Ftp_Image_Url as em_jr_f50_18_1_, adclient5_.EM_Pruti_Periodnotifications as em_prut51_18_1_, adclient5_.EM_Jr_Ftp_Image_Username as em_jr_f52_18_1_, adclient5_.EM_Jr_Ftp_Image_Password as em_jr_f53_18_1_, adclient5_.EM_Prupc_Upc_Password as em_prup54_18_1_, adclient5_.EM_Prsc_Tree_Prodcat_ID as em_prsc55_18_1_, adclient5_.EM_Pruti_Cleancache as em_prut56_18_1_, adclient5_.EM_Priuti_Openbravo_Url as em_priu57_18_1_, product6_.AD_Client_ID as ad_clien2_482_2_, product6_.AD_Org_ID as ad_org_i3_482_2_, product6_.IsActive as isactive4_482_2_, product6_.Created as created5_482_2_, product6_.CreatedBy as createdb6_482_2_, product6_.Updated as updated7_482_2_, product6_.UpdatedBy as updatedb8_482_2_, product6_.Value as value9_482_2_, product6_.Name as name10_482_2_, product6_.Description as descrip11_482_2_, product6_.DocumentNote as documen12_482_2_, product6_.Help as help13_482_2_, product6_.UPC as upc14_482_2_, product6_.SKU as sku15_482_2_, product6_.C_UOM_ID as c_uom_i16_482_2_, product6_.SalesRep_ID as salesre17_482_2_, product6_.IsSummary as issumma18_482_2_, product6_.IsStocked as isstock19_482_2_, product6_.IsPurchased as ispurch20_482_2_, product6_.IsSold as issold21_482_2_, product6_.IsBOM as isbom22_482_2_, product6_.IsInvoicePrintDetails as isinvoi23_482_2_, product6_.IsPickListPrintDetails as ispickl24_482_2_, product6_.IsVerified as isverif25_482_2_, product6_.M_Product_Category_ID as m_produ26_482_2_, product6_.Classification as classif27_482_2_, product6_.Volume as volume28_482_2_, product6_.Weight as weight29_482_2_, product6_.ShelfWidth as shelfwi30_482_2_, product6_.ShelfHeight as shelfhe31_482_2_, product6_.ShelfDepth as shelfde32_482_2_, product6_.UnitsPerPallet as unitspe33_482_2_, product6_.C_TaxCategory_ID as c_taxca34_482_2_, product6_.S_Resource_ID as s_resou35_482_2_, product6_.Discontinued as discont36_482_2_, product6_.DiscontinuedBy as discont37_482_2_, product6_.Processing as process38_482_2_, product6_.S_ExpenseType_ID as s_expen39_482_2_, product6_.ProductType as product40_482_2_, product6_.ImageURL as imageur41_482_2_, product6_.DescriptionURL as descrip42_482_2_, product6_.GuaranteeDays as guarant43_482_2_, product6_.VersionNo as version44_482_2_, product6_.M_AttributeSet_ID as m_attri45_482_2_, product6_.M_AttributeSetInstance_ID as m_attri46_482_2_, product6_.DownloadURL as downloa47_482_2_, product6_.M_FreightCategory_ID as m_freig48_482_2_, product6_.M_Locator_ID as m_locat49_482_2_, product6_.AD_Image_ID as ad_imag50_482_2_, product6_.C_BPartner_ID as c_bpart51_482_2_, product6_.Ispriceprinted as isprice52_482_2_, product6_.Name2 as name53_482_2_, product6_.Stock_Min as stock_m54_482_2_, product6_.Enforce_Attribute as enforce55_482_2_, product6_.Calculated as calcula56_482_2_, product6_.MA_Processplan_ID as ma_proc57_482_2_, product6_.Production as product58_482_2_, product6_.Capacity as capacit59_482_2_, product6_.Delaymin as delaymi60_482_2_, product6_.MRP_Planner_ID as mrp_pla61_482_2_, product6_.MRP_Planningmethod_ID as mrp_pla62_482_2_, product6_.Qtymax as qtymax63_482_2_, product6_.Qtymin as qtymin64_482_2_, product6_.Qtystd as qtystd65_482_2_, product6_.Qtytype as qtytype66_482_2_, product6_.Stockmin as stockmi67_482_2_, product6_.EM_Aeat347_Isleasebusiness as em_aeat68_482_2_, product6_.Attrsetvaluetype as attrset69_482_2_, product6_.EM_Aeat347_Situation as em_aeat70_482_2_, product6_.Isquantityvariable as isquant71_482_2_, product6_.Isdeferredrevenue as isdefer72_482_2_, product6_.EM_Aeat347_Referenceid as em_aeat73_482_2_, product6_.EM_Aeat347_Locationtype as em_aeat74_482_2_, product6_.Revplantype as revplan75_482_2_, product6_.EM_Aeat347_Streetname as em_aeat76_482_2_, product6_.Periodnumber as periodn77_482_2_, product6_.EM_Aeat347_Streetnumbertype as em_aeat78_482_2_, product6_.Isdeferredexpense as isdefer79_482_2_, product6_.EM_Aeat347_Streetnumber as em_aeat80_482_2_, product6_.Expplantype as expplan81_482_2_, product6_.EM_Aeat347_Streetnumberqua as em_aeat82_482_2_, product6_.Periodnumber_Exp as periodn83_482_2_, product6_.DefaultPeriod as default84_482_2_, product6_.EM_Aeat347_Building as em_aeat85_482_2_, product6_.DefaultPeriod_Exp as default86_482_2_, product6_.EM_Aeat347_Hall as em_aeat87_482_2_, product6_.Bookusingpoprice as bookusi88_482_2_, product6_.EM_Aeat347_Hallway as em_aeat89_482_2_, product6_.EM_Aeat347_Floor as em_aeat90_482_2_, product6_.C_Uom_Weight_ID as c_uom_w91_482_2_, product6_.M_Brand_ID as m_brand92_482_2_, product6_.EM_Aeat347_Apartment as em_aeat93_482_2_, product6_.EM_Aeat347_Complement as em_aeat94_482_2_, product6_.IsGeneric as isgener95_482_2_, product6_.EM_Aeat347_Location as em_aeat96_482_2_, product6_.Generic_Product_ID as generic97_482_2_, product6_.CreateVariants as createv98_482_2_, product6_.EM_Aeat347_County as em_aeat99_482_2_, product6_.Characteristic_Desc as charac100_482_2_, product6_.EM_Aeat347_Countycode as em_aea101_482_2_, product6_.EM_Aeat347_Regioncode as em_aea102_482_2_, product6_.Updateinvariants as update103_482_2_, product6_.EM_Aeat347_Zipcode as em_aea104_482_2_, product6_.ManageVariants as manage105_482_2_, product6_.Prod_Cat_Selection as prod_c106_482_2_, product6_.Product_Selection as produc107_482_2_, product6_.Print_Description as print_108_482_2_, product6_.Returnable as return109_482_2_, product6_.Overdue_Return_Days as overdu110_482_2_, product6_.Ispricerulebased as ispric111_482_2_, product6_.Unique_Per_Document as unique112_482_2_, product6_.Relateprodcattoservice as relate113_482_2_, product6_.Relateprodtoservice as relate114_482_2_, product6_.Islinkedtoproduct as islink115_482_2_, product6_.Quantity_Rule as quanti116_482_2_, product6_.Allow_Deferred_Sell as allow_117_482_2_, product6_.Deferred_Sell_Max_Days as deferr118_482_2_, product6_.M_Product_Status_ID as m_prod119_482_2_, product6_.Ismodifytax as ismodi120_482_2_, product6_.Relateprodcattaxtoservice as relate121_482_2_, product6_.Copyservicemodifytaxconfig as copyse122_482_2_, product6_.EM_Jr_Stocktype as em_jr_123_482_2_, product6_.EM_Obmupc_Multiupc_Desc as em_obm124_482_2_, product6_.EM_Prupc_Generate_Ean as em_pru125_482_2_, product6_.EM_Prsc_Isdeliverycosts as em_prs126_482_2_, product6_.EM_Pruti_Addmodifycharact as em_pru127_482_2_, uom7_.AD_Client_ID as ad_clien2_322_3_, uom7_.AD_Org_ID as ad_org_i3_322_3_, uom7_.IsActive as isactive4_322_3_, uom7_.Created as created5_322_3_, uom7_.Updated as updated6_322_3_, uom7_.CreatedBy as createdb7_322_3_, uom7_.UpdatedBy as updatedb8_322_3_, uom7_.X12DE355 as x9_322_3_, uom7_.UOMSymbol as uomsymb10_322_3_, uom7_.Name as name11_322_3_, uom7_.Description as descrip12_322_3_, uom7_.StdPrecision as stdprec13_322_3_, uom7_.CostingPrecision as costing14_322_3_, uom7_.IsDefault as isdefau15_322_3_, uom7_.Breakdown as breakdo16_322_3_, uom7_.UOM_Type as uom_typ17_322_3_, uom7_.EM_Obwpack_Isweight as em_obwp18_322_3_, uom7_.Useinproduction as useinpr19_322_3_, businesspa8_.AD_Client_ID as ad_clien2_188_4_, businesspa8_.AD_Org_ID as ad_org_i3_188_4_, businesspa8_.IsActive as isactive4_188_4_, businesspa8_.Created as created5_188_4_, businesspa8_.CreatedBy as createdb6_188_4_, businesspa8_.Updated as updated7_188_4_, businesspa8_.UpdatedBy as updatedb8_188_4_, businesspa8_.Value as value9_188_4_, businesspa8_.Name as name10_188_4_, businesspa8_.Name2 as name11_188_4_, businesspa8_.Description as descrip12_188_4_, businesspa8_.IsSummary as issumma13_188_4_, businesspa8_.C_BP_Group_ID as c_bp_gr14_188_4_, businesspa8_.IsOneTime as isoneti15_188_4_, businesspa8_.IsProspect as isprosp16_188_4_, businesspa8_.IsVendor as isvendo17_188_4_, businesspa8_.IsCustomer as iscusto18_188_4_, businesspa8_.IsEmployee as isemplo19_188_4_, businesspa8_.IsSalesRep as issales20_188_4_, businesspa8_.ReferenceNo as referen21_188_4_, businesspa8_.DUNS as duns22_188_4_, businesspa8_.URL as url23_188_4_, businesspa8_.AD_Language as ad_lang24_188_4_, businesspa8_.TaxID as taxid25_188_4_, businesspa8_.IsTaxExempt as istaxex26_188_4_, businesspa8_.C_InvoiceSchedule_ID as c_invoi27_188_4_, businesspa8_.Rating as rating28_188_4_, businesspa8_.SalesVolume as salesvo29_188_4_, businesspa8_.NumberEmployees as numbere30_188_4_, businesspa8_.NAICS as naics31_188_4_, businesspa8_.FirstSale as firstsa32_188_4_, businesspa8_.AcqusitionCost as acqusit33_188_4_, businesspa8_.PotentialLifeTimeValue as potenti34_188_4_, businesspa8_.ActualLifeTimeValue as actuall35_188_4_, businesspa8_.ShareOfCustomer as shareof36_188_4_, businesspa8_.PaymentRule as payment37_188_4_, businesspa8_.SO_CreditLimit as so_cred38_188_4_, businesspa8_.SO_CreditUsed as so_cred39_188_4_, businesspa8_.C_PaymentTerm_ID as c_payme40_188_4_, businesspa8_.M_PriceList_ID as m_price41_188_4_, businesspa8_.IsDiscountPrinted as isdisco42_188_4_, businesspa8_.SO_Description as so_desc43_188_4_, businesspa8_.POReference as porefer44_188_4_, businesspa8_.PaymentRulePO as payment45_188_4_, businesspa8_.PO_PriceList_ID as po_pric46_188_4_, businesspa8_.PO_PaymentTerm_ID as po_paym47_188_4_, businesspa8_.DocumentCopies as documen48_188_4_, businesspa8_.C_Greeting_ID as c_greet49_188_4_, businesspa8_.InvoiceRule as invoice50_188_4_, businesspa8_.DeliveryRule as deliver51_188_4_, businesspa8_.DeliveryViaRule as deliver52_188_4_, businesspa8_.SalesRep_ID as salesre53_188_4_, businesspa8_.BPartner_Parent_ID as bpartne54_188_4_, businesspa8_.SOCreditStatus as socredi55_188_4_, businesspa8_.AD_Forced_Org_ID as ad_forc56_188_4_, businesspa8_.ShowPriceInOrder as showpri57_188_4_, businesspa8_.Invoicegrouping as invoice58_188_4_, businesspa8_.FixMonthDay as fixmont59_188_4_, businesspa8_.FixMonthDay2 as fixmont60_188_4_, businesspa8_.Fixmonthday3 as fixmont61_188_4_, businesspa8_.Isworker as isworke62_188_4_, businesspa8_.UPC as upc63_188_4_, businesspa8_.C_Salary_Category_ID as c_salar64_188_4_, businesspa8_.Invoice_Printformat as invoice65_188_4_, businesspa8_.Last_Days as last_da66_188_4_, businesspa8_.PO_Bankaccount_ID as po_bank67_188_4_, businesspa8_.PO_BP_TaxCategory_ID as po_bp_t68_188_4_, businesspa8_.PO_Fixmonthday as po_fixm69_188_4_, businesspa8_.PO_Fixmonthday2 as po_fixm70_188_4_, businesspa8_.PO_Fixmonthday3 as po_fixm71_188_4_, businesspa8_.SO_Bankaccount_ID as so_bank72_188_4_, businesspa8_.SO_Bp_Taxcategory_ID as so_bp_t73_188_4_, businesspa8_.Fiscalcode as fiscalc74_188_4_, businesspa8_.Isofiscalcode as isofisc75_188_4_, businesspa8_.EM_Einv_Einvoice as em_einv76_188_4_, businesspa8_.PO_C_Incoterms_ID as po_c_in77_188_4_, businesspa8_.EM_Einv_Format_Id as em_einv78_188_4_, businesspa8_.SO_C_Incoterms_ID as so_c_in79_188_4_, businesspa8_.EM_Einv_Platform_Id as em_einv80_188_4_, businesspa8_.FIN_Paymentmethod_ID as fin_pay81_188_4_, businesspa8_.EM_Einv_Email as em_einv82_188_4_, businesspa8_.PO_Paymentmethod_ID as po_paym83_188_4_, businesspa8_.FIN_Financial_Account_ID as fin_fin84_188_4_, businesspa8_.EM_Einv_Deliverymode as em_einv85_188_4_, businesspa8_.PO_Financial_Account_ID as po_fina86_188_4_, businesspa8_.Customer_Blocking as custome87_188_4_, businesspa8_.Vendor_Blocking as vendor_88_188_4_, businesspa8_.SO_Payment_Blocking as so_paym89_188_4_, businesspa8_.PO_Payment_Blocking as po_paym90_188_4_, businesspa8_.SO_Invoice_Blocking as so_invo91_188_4_, businesspa8_.PO_Invoice_Blocking as po_invo92_188_4_, businesspa8_.SO_Order_Blocking as so_orde93_188_4_, businesspa8_.PO_Order_Blocking as po_orde94_188_4_, businesspa8_.SO_Goods_Blocking as so_good95_188_4_, businesspa8_.PO_Goods_Blocking as po_good96_188_4_, businesspa8_.Iscashvat as iscashv97_188_4_, businesspa8_.Update_Currency as update_98_188_4_, businesspa8_.BP_Currency_ID as bp_curr99_188_4_, businesspa8_.Birthplace as birthp100_188_4_, businesspa8_.Birthday as birthd101_188_4_, businesspa8_.Is_Customer_Consent as is_cus102_188_4_, businesspa8_.EM_Obsepad_Mandate_Identifier as em_obs103_188_4_, businesspa8_.EM_Obsepad_Mandate_Date as em_obs104_188_4_, businesspa8_.EM_Aeatsii_Rep_Taxid as em_aea105_188_4_, businesspa8_.EM_Jr_Inoutval as em_jr_106_188_4_, businesspa8_.EM_Aeatsii_Menor as em_aea107_188_4_, businesspa8_.EM_Jr_Isgeneric as em_jr_108_188_4_, businesspa8_.EM_Pruti_Addbp as em_pru109_188_4_, businesspa8_.EM_Prei_Iseinvoice as em_pre110_188_4_, businesspa8_.EM_Prei_Format_ID as em_pre111_188_4_, businesspa8_.EM_Pruti_Unlock_Date as em_pru112_188_4_, businesspa8_.EM_Prei_Platform_ID as em_pre113_188_4_, businesspa8_.EM_Pruti_Unlock_Order_Date as em_pru114_188_4_, businesspa8_.EM_Prei_Send_Method as em_pre115_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_So_ID as em_pru116_188_4_, businesspa8_.EM_Prei_Email as em_pre117_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_Po_ID as em_pru118_188_4_, businesspa8_.EM_Prei_Need_Expedient as em_pre119_188_4_, businesspa8_.EM_Aeatsii_Defaultsiikey as em_aea120_188_4_, businesspa8_.EM_Aeatsii_Siikeylist as em_aea121_188_4_, businesspa8_.EM_Tbai_Issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.EM_Pruti_Notsendinvoice as em_pru124_188_4_, businesspa8_.EM_OBTIK_Tax_ID_Key as em_obt125_188_4_, attributes1_.AD_Client_ID as ad_clien2_418_5_, attributes1_.AD_Org_ID as ad_org_i3_418_5_, attributes1_.IsActive as isactive4_418_5_, attributes1_.Created as created5_418_5_, attributes1_.CreatedBy as createdb6_418_5_, attributes1_.Updated as updated7_418_5_, attributes1_.UpdatedBy as updatedb8_418_5_, attributes1_.M_AttributeSet_ID as m_attrib9_418_5_, attributes1_.SerNo as serno10_418_5_, attributes1_.Lot as lot11_418_5_, attributes1_.GuaranteeDate as guarant12_418_5_, attributes1_.Description as descrip13_418_5_, attributes1_.M_Lot_ID as m_lot_i14_418_5_, attributes1_.Islocked as islocke15_418_5_, attributes1_.Lock_Description as lock_de16_418_5_, attributes1_.M_RefInventory_ID as m_refin17_418_5_, attributes1_.Parent_AttributeSetInstance_ID as parent_18_418_5_ from M_InOutLine materialmg0_ left outer join M_AttributeSetInstance attributes1_ on materialmg0_.M_AttributeSetInstance_ID=attributes1_.M_AttributeSetInstance_ID inner join M_InOut materialmg2_ on materialmg0_.M_InOut_ID=materialmg2_.M_InOut_ID inner join C_DocType documentty3_ on materialmg2_.C_DocType_ID=documentty3_.C_DocType_ID inner join C_BPartner businesspa8_ on materialmg2_.C_BPartner_ID=businesspa8_.C_BPartner_ID inner join AD_Org organizati4_ on materialmg0_.AD_Org_ID=organizati4_.AD_Org_ID inner join AD_Client adclient5_ on materialmg0_.AD_Client_ID=adclient5_.AD_Client_ID inner join M_Product product6_ on materialmg0_.M_Product_ID=product6_.M_Product_ID inner join C_UOM uom7_ on materialmg0_.C_UOM_ID=uom7_.C_UOM_ID where materialmg2_.C_BPartner_ID='1010332' and documentty3_.IsReturn='N' and materialmg2_.Processed='Y' and materialmg2_.DocStatus<>'VO' and materialmg2_.IsSOTrx='Y' and materialmg2_.Isnettingshipment='N' and materialmg0_.MovementQty+coalesce((select sum(orderline38_.QtyOrdered) from C_OrderLine orderline38_ inner join C_Order order39_ on orderline38_.C_Order_ID=order39_.C_Order_ID where orderline38_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order39_.Processed='Y' and order39_.DocStatus<>'VO'), 0)<>0 and 1=1 and (materialmg0_.AD_Client_ID in ('0' , '4E7785E633254999A6D7545B0BE57A46')) and (materialmg0_.AD_Org_ID in ('0' , 'C34A537D1464452783C0A7C7C913FC86' , '4A2127624482427B8B0BE0DD8ABF92D4' , '3724B485FEC444038C28CAEE0F24E7E6' , 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (materialmg2_.MovementDate>=now()-90 or case when (select 'Y' from C_OrderLine orderline40_ where orderline40_.C_Order_ID='F7D254A9AB1748459AA7153355CC1F19' and orderline40_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.MovementDate desc, materialmg2_.DocumentNo desc, materialmg0_.Line limit '101';
Date: 2026-07-17 09:54:51 Duration: 2s573ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select materialmg0_.M_InOutLine_ID as col_0_0_, materialmg0_.AD_Org_ID as col_1_0_, materialmg0_.AD_Client_ID as col_2_0_, materialmg0_.M_Product_ID as col_3_0_, materialmg0_.C_UOM_ID as col_4_0_, materialmg0_.M_InOutLine_ID as col_5_0_, materialmg0_.MovementQty as col_6_0_, materialmg2_.C_BPartner_ID as col_7_0_, materialmg2_.DocumentNo as col_8_0_, materialmg2_.MovementDate as col_9_0_, attributes1_.M_AttributeSetInstance_ID as col_10_0_, (select orderline9_.C_OrderLine_ID from C_OrderLine orderline9_ where orderline9_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline9_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_11_0_, (select uom10_.Name from C_UOM uom10_ where uom10_.C_UOM_ID in (case when (select 'Y' from C_OrderLine orderline11_ where orderline11_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline11_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline12_.C_Aum from C_OrderLine orderline12_ where orderline12_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline12_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 'Y') end)) as col_12_0_, case when materialmg0_.Aumqty is not null then materialmg0_.Aumqty else m_get_converted_aumqty(materialmg0_.M_Product_ID,materialmg0_.MovementQty,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID)) end as col_13_0_, case when (select 'Y' from C_OrderLine orderline13_ where orderline13_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline13_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when materialmg0_.C_Aum is not null then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end else coalesce((select orderline14_.C_Aum from C_OrderLine orderline14_ where orderline14_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline14_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), '') end as col_14_0_, (select uom15_.C_UOM_ID from C_UOM uom15_ where uom15_.C_UOM_ID in (case when coalesce(materialmg0_.C_Aum, '0')<>'0' then materialmg0_.C_Aum else M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID) end)) as col_15_0_, case when (select 'Y' from C_OrderLine orderline16_ where orderline16_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline16_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then case when coalesce(materialmg0_.C_Aum, '0')='0' then to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,M_GET_DEFAULT_AUM_FOR_DOCUMENT(materialmg0_.M_Product_ID,documentty3_.C_DocType_ID))) else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,materialmg0_.C_Aum)) end else to_number(M_GET_CONVERTED_QTY(materialmg0_.M_Product_ID,1.0,coalesce((select orderline17_.C_Aum from C_OrderLine orderline17_ where orderline17_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline17_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), ''))) end as col_16_0_, coalesce((select sum(orderline18_.QtyOrdered) from C_OrderLine orderline18_ inner join C_Order order19_ on orderline18_.C_Order_ID=order19_.C_Order_ID where orderline18_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order19_.Processed='Y' and order19_.DocStatus<>'VO'), 0)*-1 as col_17_0_, case when (select 'Y' from C_OrderLine orderline20_ where orderline20_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline20_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end as col_18_0_, coalesce((select orderline21_.QtyOrdered from C_OrderLine orderline21_ where orderline21_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline21_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), 0)*-1 as col_19_0_, (select orderline22_.C_Return_Reason_ID from C_OrderLine orderline22_ cross join C_Return_Reason returnreas23_ where orderline22_.C_Return_Reason_ID=returnreas23_.C_Return_Reason_ID and orderline22_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline22_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) as col_20_0_, coalesce((select orderline24_.C_Tax_ID from C_OrderLine orderline24_ where orderline24_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline24_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline26_.C_Tax_ID from M_InOutLine materialmg25_ cross join C_OrderLine orderline26_ where materialmg25_.C_OrderLine_ID=orderline26_.C_OrderLine_ID and materialmg25_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) as col_21_0_, case when (select pricingpri28_.IsTaxIncluded from C_Order order27_ cross join M_PriceList pricingpri28_ where order27_.M_PriceList_ID=pricingpri28_.M_PriceList_ID and order27_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30')='Y' then coalesce((select orderline29_.PriceActual from C_OrderLine orderline29_ where orderline29_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline29_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline31_.Gross_Unit_Price from M_InOutLine materialmg30_ cross join C_OrderLine orderline31_ where materialmg30_.C_OrderLine_ID=orderline31_.C_OrderLine_ID and materialmg30_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) else coalesce((select orderline32_.PriceActual from C_OrderLine orderline32_ where orderline32_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline32_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID), (select orderline34_.PriceActual from M_InOutLine materialmg33_ cross join C_OrderLine orderline34_ where materialmg33_.C_OrderLine_ID=orderline34_.C_OrderLine_ID and materialmg33_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID)) end as col_22_0_, (select order37_.DocumentNo from M_InOutLine materialmg35_ cross join C_OrderLine orderline36_ cross join C_Order order37_ where materialmg35_.C_OrderLine_ID=orderline36_.C_OrderLine_ID and orderline36_.C_Order_ID=order37_.C_Order_ID and materialmg35_.M_InOutLine_ID=materialmg0_.M_InOutLine_ID) as col_23_0_, organizati4_.AD_Org_ID as ad_org_i1_71_0_, adclient5_.AD_Client_ID as ad_clien1_18_1_, product6_.M_Product_ID as m_produc1_482_2_, uom7_.C_UOM_ID as c_uom_id1_322_3_, businesspa8_.C_BPartner_ID as c_bpartn1_188_4_, attributes1_.M_AttributeSetInstance_ID as m_attrib1_418_5_, organizati4_.AD_Client_ID as ad_clien2_71_0_, organizati4_.IsActive as isactive3_71_0_, organizati4_.Created as created4_71_0_, organizati4_.CreatedBy as createdb5_71_0_, organizati4_.Updated as updated6_71_0_, organizati4_.UpdatedBy as updatedb7_71_0_, organizati4_.Value as value8_71_0_, organizati4_.Name as name9_71_0_, organizati4_.Description as descrip10_71_0_, organizati4_.IsSummary as issumma11_71_0_, organizati4_.AD_Orgtype_ID as ad_orgt12_71_0_, organizati4_.IsPeriodControlAllowed as isperio13_71_0_, organizati4_.C_Calendar_ID as c_calen14_71_0_, organizati4_.IsReady as isready15_71_0_, organizati4_.EM_Intr_C_Calendar_ID as em_intr16_71_0_, organizati4_.Social_Name as social_17_71_0_, organizati4_.C_Currency_ID as c_curre18_71_0_, organizati4_.C_Acctschema_ID as c_accts19_71_0_, organizati4_.EM_APRM_Glitem_ID as em_aprm20_71_0_, organizati4_.EM_OBMFM_Product_ID as em_obmf21_71_0_, organizati4_.AD_Periodcontrolallowed_Org_ID as ad_peri22_71_0_, organizati4_.AD_Calendarowner_Org_ID as ad_cale23_71_0_, organizati4_.EM_Obwpack_Uom_ID as em_obwp24_71_0_, organizati4_.AD_Legalentity_Org_ID as ad_lega25_71_0_, organizati4_.AD_Inheritedcalendar_ID as ad_inhe26_71_0_, organizati4_.AD_Businessunit_Org_ID as ad_busi27_71_0_, organizati4_.EM_Etsg_Add_Certificate as em_etsg28_71_0_, organizati4_.EM_Prupc_Ad_Sequence_ID as em_prup29_71_0_, organizati4_.EM_Prupc_Locator_Sequence_ID as em_prup30_71_0_, organizati4_.C_Extbp_Enabled as c_extbp31_71_0_, organizati4_.C_Extbp_Config_ID as c_extbp32_71_0_, organizati4_.EM_Pruti_Planningmethod_ID as em_prut33_71_0_, organizati4_.EM_Obmobc_Credential_Timeout as em_obmo34_71_0_, adclient5_.AD_Org_ID as ad_org_i2_18_1_, adclient5_.IsActive as isactive3_18_1_, adclient5_.Created as created4_18_1_, adclient5_.CreatedBy as createdb5_18_1_, adclient5_.Updated as updated6_18_1_, adclient5_.UpdatedBy as updatedb7_18_1_, adclient5_.Value as value8_18_1_, adclient5_.Name as name9_18_1_, adclient5_.Description as descrip10_18_1_, adclient5_.SMTPHost as smtphos11_18_1_, adclient5_.RequestEMail as request12_18_1_, adclient5_.RequestUser as request13_18_1_, adclient5_.RequestUserPW as request14_18_1_, adclient5_.RequestFolder as request15_18_1_, adclient5_.AD_Language as ad_lang16_18_1_, adclient5_.IsMultiLingualDocument as ismulti17_18_1_, adclient5_.IsSmtpAuthorization as issmtpa18_18_1_, adclient5_.C_Currency_ID as c_curre19_18_1_, adclient5_.Acctdim_Centrally_Maintained as acctdim20_18_1_, adclient5_.Project_Acctdim_Isenable as project21_18_1_, adclient5_.Project_Acctdim_Header as project22_18_1_, adclient5_.Project_Acctdim_Lines as project23_18_1_, adclient5_.Project_Acctdim_Breakdown as project24_18_1_, adclient5_.Bpartner_Acctdim_Isenable as bpartne25_18_1_, adclient5_.Bpartner_Acctdim_Header as bpartne26_18_1_, adclient5_.Bpartner_Acctdim_Lines as bpartne27_18_1_, adclient5_.Bpartner_Acctdim_Breakdown as bpartne28_18_1_, adclient5_.Product_Acctdim_Isenable as product29_18_1_, adclient5_.Product_Acctdim_Header as product30_18_1_, adclient5_.Product_Acctdim_Lines as product31_18_1_, adclient5_.Product_Acctdim_Breakdown as product32_18_1_, adclient5_.Costcenter_Acctdim_Header as costcen33_18_1_, adclient5_.Costcenter_Acctdim_Lines as costcen34_18_1_, adclient5_.Costcenter_Acctdim_Breakdown as costcen35_18_1_, adclient5_.User1_Acctdim_Isenable as user36_18_1_, adclient5_.User1_Acctdim_Header as user37_18_1_, adclient5_.User1_Acctdim_Lines as user38_18_1_, adclient5_.User1_Acctdim_Breakdown as user39_18_1_, adclient5_.User2_Acctdim_Isenable as user40_18_1_, adclient5_.User2_Acctdim_Header as user41_18_1_, adclient5_.User2_Acctdim_Lines as user42_18_1_, adclient5_.User2_Acctdim_Breakdown as user43_18_1_, adclient5_.Costcenter_Acctdim_Isenable as costcen44_18_1_, adclient5_.Org_Acctdim_Isenable as org_acc45_18_1_, adclient5_.Org_Acctdim_Header as org_acc46_18_1_, adclient5_.Org_Acctdim_Lines as org_acc47_18_1_, adclient5_.Org_Acctdim_Breakdown as org_acc48_18_1_, adclient5_.DaysToPasswordExpiration as daystop49_18_1_, adclient5_.EM_Jr_Ftp_Image_Url as em_jr_f50_18_1_, adclient5_.EM_Pruti_Periodnotifications as em_prut51_18_1_, adclient5_.EM_Jr_Ftp_Image_Username as em_jr_f52_18_1_, adclient5_.EM_Jr_Ftp_Image_Password as em_jr_f53_18_1_, adclient5_.EM_Prupc_Upc_Password as em_prup54_18_1_, adclient5_.EM_Prsc_Tree_Prodcat_ID as em_prsc55_18_1_, adclient5_.EM_Pruti_Cleancache as em_prut56_18_1_, adclient5_.EM_Priuti_Openbravo_Url as em_priu57_18_1_, product6_.AD_Client_ID as ad_clien2_482_2_, product6_.AD_Org_ID as ad_org_i3_482_2_, product6_.IsActive as isactive4_482_2_, product6_.Created as created5_482_2_, product6_.CreatedBy as createdb6_482_2_, product6_.Updated as updated7_482_2_, product6_.UpdatedBy as updatedb8_482_2_, product6_.Value as value9_482_2_, product6_.Name as name10_482_2_, product6_.Description as descrip11_482_2_, product6_.DocumentNote as documen12_482_2_, product6_.Help as help13_482_2_, product6_.UPC as upc14_482_2_, product6_.SKU as sku15_482_2_, product6_.C_UOM_ID as c_uom_i16_482_2_, product6_.SalesRep_ID as salesre17_482_2_, product6_.IsSummary as issumma18_482_2_, product6_.IsStocked as isstock19_482_2_, product6_.IsPurchased as ispurch20_482_2_, product6_.IsSold as issold21_482_2_, product6_.IsBOM as isbom22_482_2_, product6_.IsInvoicePrintDetails as isinvoi23_482_2_, product6_.IsPickListPrintDetails as ispickl24_482_2_, product6_.IsVerified as isverif25_482_2_, product6_.M_Product_Category_ID as m_produ26_482_2_, product6_.Classification as classif27_482_2_, product6_.Volume as volume28_482_2_, product6_.Weight as weight29_482_2_, product6_.ShelfWidth as shelfwi30_482_2_, product6_.ShelfHeight as shelfhe31_482_2_, product6_.ShelfDepth as shelfde32_482_2_, product6_.UnitsPerPallet as unitspe33_482_2_, product6_.C_TaxCategory_ID as c_taxca34_482_2_, product6_.S_Resource_ID as s_resou35_482_2_, product6_.Discontinued as discont36_482_2_, product6_.DiscontinuedBy as discont37_482_2_, product6_.Processing as process38_482_2_, product6_.S_ExpenseType_ID as s_expen39_482_2_, product6_.ProductType as product40_482_2_, product6_.ImageURL as imageur41_482_2_, product6_.DescriptionURL as descrip42_482_2_, product6_.GuaranteeDays as guarant43_482_2_, product6_.VersionNo as version44_482_2_, product6_.M_AttributeSet_ID as m_attri45_482_2_, product6_.M_AttributeSetInstance_ID as m_attri46_482_2_, product6_.DownloadURL as downloa47_482_2_, product6_.M_FreightCategory_ID as m_freig48_482_2_, product6_.M_Locator_ID as m_locat49_482_2_, product6_.AD_Image_ID as ad_imag50_482_2_, product6_.C_BPartner_ID as c_bpart51_482_2_, product6_.Ispriceprinted as isprice52_482_2_, product6_.Name2 as name53_482_2_, product6_.Stock_Min as stock_m54_482_2_, product6_.Enforce_Attribute as enforce55_482_2_, product6_.Calculated as calcula56_482_2_, product6_.MA_Processplan_ID as ma_proc57_482_2_, product6_.Production as product58_482_2_, product6_.Capacity as capacit59_482_2_, product6_.Delaymin as delaymi60_482_2_, product6_.MRP_Planner_ID as mrp_pla61_482_2_, product6_.MRP_Planningmethod_ID as mrp_pla62_482_2_, product6_.Qtymax as qtymax63_482_2_, product6_.Qtymin as qtymin64_482_2_, product6_.Qtystd as qtystd65_482_2_, product6_.Qtytype as qtytype66_482_2_, product6_.Stockmin as stockmi67_482_2_, product6_.EM_Aeat347_Isleasebusiness as em_aeat68_482_2_, product6_.Attrsetvaluetype as attrset69_482_2_, product6_.EM_Aeat347_Situation as em_aeat70_482_2_, product6_.Isquantityvariable as isquant71_482_2_, product6_.Isdeferredrevenue as isdefer72_482_2_, product6_.EM_Aeat347_Referenceid as em_aeat73_482_2_, product6_.EM_Aeat347_Locationtype as em_aeat74_482_2_, product6_.Revplantype as revplan75_482_2_, product6_.EM_Aeat347_Streetname as em_aeat76_482_2_, product6_.Periodnumber as periodn77_482_2_, product6_.EM_Aeat347_Streetnumbertype as em_aeat78_482_2_, product6_.Isdeferredexpense as isdefer79_482_2_, product6_.EM_Aeat347_Streetnumber as em_aeat80_482_2_, product6_.Expplantype as expplan81_482_2_, product6_.EM_Aeat347_Streetnumberqua as em_aeat82_482_2_, product6_.Periodnumber_Exp as periodn83_482_2_, product6_.DefaultPeriod as default84_482_2_, product6_.EM_Aeat347_Building as em_aeat85_482_2_, product6_.DefaultPeriod_Exp as default86_482_2_, product6_.EM_Aeat347_Hall as em_aeat87_482_2_, product6_.Bookusingpoprice as bookusi88_482_2_, product6_.EM_Aeat347_Hallway as em_aeat89_482_2_, product6_.EM_Aeat347_Floor as em_aeat90_482_2_, product6_.C_Uom_Weight_ID as c_uom_w91_482_2_, product6_.M_Brand_ID as m_brand92_482_2_, product6_.EM_Aeat347_Apartment as em_aeat93_482_2_, product6_.EM_Aeat347_Complement as em_aeat94_482_2_, product6_.IsGeneric as isgener95_482_2_, product6_.EM_Aeat347_Location as em_aeat96_482_2_, product6_.Generic_Product_ID as generic97_482_2_, product6_.CreateVariants as createv98_482_2_, product6_.EM_Aeat347_County as em_aeat99_482_2_, product6_.Characteristic_Desc as charac100_482_2_, product6_.EM_Aeat347_Countycode as em_aea101_482_2_, product6_.EM_Aeat347_Regioncode as em_aea102_482_2_, product6_.Updateinvariants as update103_482_2_, product6_.EM_Aeat347_Zipcode as em_aea104_482_2_, product6_.ManageVariants as manage105_482_2_, product6_.Prod_Cat_Selection as prod_c106_482_2_, product6_.Product_Selection as produc107_482_2_, product6_.Print_Description as print_108_482_2_, product6_.Returnable as return109_482_2_, product6_.Overdue_Return_Days as overdu110_482_2_, product6_.Ispricerulebased as ispric111_482_2_, product6_.Unique_Per_Document as unique112_482_2_, product6_.Relateprodcattoservice as relate113_482_2_, product6_.Relateprodtoservice as relate114_482_2_, product6_.Islinkedtoproduct as islink115_482_2_, product6_.Quantity_Rule as quanti116_482_2_, product6_.Allow_Deferred_Sell as allow_117_482_2_, product6_.Deferred_Sell_Max_Days as deferr118_482_2_, product6_.M_Product_Status_ID as m_prod119_482_2_, product6_.Ismodifytax as ismodi120_482_2_, product6_.Relateprodcattaxtoservice as relate121_482_2_, product6_.Copyservicemodifytaxconfig as copyse122_482_2_, product6_.EM_Jr_Stocktype as em_jr_123_482_2_, product6_.EM_Obmupc_Multiupc_Desc as em_obm124_482_2_, product6_.EM_Prupc_Generate_Ean as em_pru125_482_2_, product6_.EM_Prsc_Isdeliverycosts as em_prs126_482_2_, product6_.EM_Pruti_Addmodifycharact as em_pru127_482_2_, uom7_.AD_Client_ID as ad_clien2_322_3_, uom7_.AD_Org_ID as ad_org_i3_322_3_, uom7_.IsActive as isactive4_322_3_, uom7_.Created as created5_322_3_, uom7_.Updated as updated6_322_3_, uom7_.CreatedBy as createdb7_322_3_, uom7_.UpdatedBy as updatedb8_322_3_, uom7_.X12DE355 as x9_322_3_, uom7_.UOMSymbol as uomsymb10_322_3_, uom7_.Name as name11_322_3_, uom7_.Description as descrip12_322_3_, uom7_.StdPrecision as stdprec13_322_3_, uom7_.CostingPrecision as costing14_322_3_, uom7_.IsDefault as isdefau15_322_3_, uom7_.Breakdown as breakdo16_322_3_, uom7_.UOM_Type as uom_typ17_322_3_, uom7_.EM_Obwpack_Isweight as em_obwp18_322_3_, uom7_.Useinproduction as useinpr19_322_3_, businesspa8_.AD_Client_ID as ad_clien2_188_4_, businesspa8_.AD_Org_ID as ad_org_i3_188_4_, businesspa8_.IsActive as isactive4_188_4_, businesspa8_.Created as created5_188_4_, businesspa8_.CreatedBy as createdb6_188_4_, businesspa8_.Updated as updated7_188_4_, businesspa8_.UpdatedBy as updatedb8_188_4_, businesspa8_.Value as value9_188_4_, businesspa8_.Name as name10_188_4_, businesspa8_.Name2 as name11_188_4_, businesspa8_.Description as descrip12_188_4_, businesspa8_.IsSummary as issumma13_188_4_, businesspa8_.C_BP_Group_ID as c_bp_gr14_188_4_, businesspa8_.IsOneTime as isoneti15_188_4_, businesspa8_.IsProspect as isprosp16_188_4_, businesspa8_.IsVendor as isvendo17_188_4_, businesspa8_.IsCustomer as iscusto18_188_4_, businesspa8_.IsEmployee as isemplo19_188_4_, businesspa8_.IsSalesRep as issales20_188_4_, businesspa8_.ReferenceNo as referen21_188_4_, businesspa8_.DUNS as duns22_188_4_, businesspa8_.URL as url23_188_4_, businesspa8_.AD_Language as ad_lang24_188_4_, businesspa8_.TaxID as taxid25_188_4_, businesspa8_.IsTaxExempt as istaxex26_188_4_, businesspa8_.C_InvoiceSchedule_ID as c_invoi27_188_4_, businesspa8_.Rating as rating28_188_4_, businesspa8_.SalesVolume as salesvo29_188_4_, businesspa8_.NumberEmployees as numbere30_188_4_, businesspa8_.NAICS as naics31_188_4_, businesspa8_.FirstSale as firstsa32_188_4_, businesspa8_.AcqusitionCost as acqusit33_188_4_, businesspa8_.PotentialLifeTimeValue as potenti34_188_4_, businesspa8_.ActualLifeTimeValue as actuall35_188_4_, businesspa8_.ShareOfCustomer as shareof36_188_4_, businesspa8_.PaymentRule as payment37_188_4_, businesspa8_.SO_CreditLimit as so_cred38_188_4_, businesspa8_.SO_CreditUsed as so_cred39_188_4_, businesspa8_.C_PaymentTerm_ID as c_payme40_188_4_, businesspa8_.M_PriceList_ID as m_price41_188_4_, businesspa8_.IsDiscountPrinted as isdisco42_188_4_, businesspa8_.SO_Description as so_desc43_188_4_, businesspa8_.POReference as porefer44_188_4_, businesspa8_.PaymentRulePO as payment45_188_4_, businesspa8_.PO_PriceList_ID as po_pric46_188_4_, businesspa8_.PO_PaymentTerm_ID as po_paym47_188_4_, businesspa8_.DocumentCopies as documen48_188_4_, businesspa8_.C_Greeting_ID as c_greet49_188_4_, businesspa8_.InvoiceRule as invoice50_188_4_, businesspa8_.DeliveryRule as deliver51_188_4_, businesspa8_.DeliveryViaRule as deliver52_188_4_, businesspa8_.SalesRep_ID as salesre53_188_4_, businesspa8_.BPartner_Parent_ID as bpartne54_188_4_, businesspa8_.SOCreditStatus as socredi55_188_4_, businesspa8_.AD_Forced_Org_ID as ad_forc56_188_4_, businesspa8_.ShowPriceInOrder as showpri57_188_4_, businesspa8_.Invoicegrouping as invoice58_188_4_, businesspa8_.FixMonthDay as fixmont59_188_4_, businesspa8_.FixMonthDay2 as fixmont60_188_4_, businesspa8_.Fixmonthday3 as fixmont61_188_4_, businesspa8_.Isworker as isworke62_188_4_, businesspa8_.UPC as upc63_188_4_, businesspa8_.C_Salary_Category_ID as c_salar64_188_4_, businesspa8_.Invoice_Printformat as invoice65_188_4_, businesspa8_.Last_Days as last_da66_188_4_, businesspa8_.PO_Bankaccount_ID as po_bank67_188_4_, businesspa8_.PO_BP_TaxCategory_ID as po_bp_t68_188_4_, businesspa8_.PO_Fixmonthday as po_fixm69_188_4_, businesspa8_.PO_Fixmonthday2 as po_fixm70_188_4_, businesspa8_.PO_Fixmonthday3 as po_fixm71_188_4_, businesspa8_.SO_Bankaccount_ID as so_bank72_188_4_, businesspa8_.SO_Bp_Taxcategory_ID as so_bp_t73_188_4_, businesspa8_.Fiscalcode as fiscalc74_188_4_, businesspa8_.Isofiscalcode as isofisc75_188_4_, businesspa8_.EM_Einv_Einvoice as em_einv76_188_4_, businesspa8_.PO_C_Incoterms_ID as po_c_in77_188_4_, businesspa8_.EM_Einv_Format_Id as em_einv78_188_4_, businesspa8_.SO_C_Incoterms_ID as so_c_in79_188_4_, businesspa8_.EM_Einv_Platform_Id as em_einv80_188_4_, businesspa8_.FIN_Paymentmethod_ID as fin_pay81_188_4_, businesspa8_.EM_Einv_Email as em_einv82_188_4_, businesspa8_.PO_Paymentmethod_ID as po_paym83_188_4_, businesspa8_.FIN_Financial_Account_ID as fin_fin84_188_4_, businesspa8_.EM_Einv_Deliverymode as em_einv85_188_4_, businesspa8_.PO_Financial_Account_ID as po_fina86_188_4_, businesspa8_.Customer_Blocking as custome87_188_4_, businesspa8_.Vendor_Blocking as vendor_88_188_4_, businesspa8_.SO_Payment_Blocking as so_paym89_188_4_, businesspa8_.PO_Payment_Blocking as po_paym90_188_4_, businesspa8_.SO_Invoice_Blocking as so_invo91_188_4_, businesspa8_.PO_Invoice_Blocking as po_invo92_188_4_, businesspa8_.SO_Order_Blocking as so_orde93_188_4_, businesspa8_.PO_Order_Blocking as po_orde94_188_4_, businesspa8_.SO_Goods_Blocking as so_good95_188_4_, businesspa8_.PO_Goods_Blocking as po_good96_188_4_, businesspa8_.Iscashvat as iscashv97_188_4_, businesspa8_.Update_Currency as update_98_188_4_, businesspa8_.BP_Currency_ID as bp_curr99_188_4_, businesspa8_.Birthplace as birthp100_188_4_, businesspa8_.Birthday as birthd101_188_4_, businesspa8_.Is_Customer_Consent as is_cus102_188_4_, businesspa8_.EM_Obsepad_Mandate_Identifier as em_obs103_188_4_, businesspa8_.EM_Obsepad_Mandate_Date as em_obs104_188_4_, businesspa8_.EM_Aeatsii_Rep_Taxid as em_aea105_188_4_, businesspa8_.EM_Jr_Inoutval as em_jr_106_188_4_, businesspa8_.EM_Aeatsii_Menor as em_aea107_188_4_, businesspa8_.EM_Jr_Isgeneric as em_jr_108_188_4_, businesspa8_.EM_Pruti_Addbp as em_pru109_188_4_, businesspa8_.EM_Prei_Iseinvoice as em_pre110_188_4_, businesspa8_.EM_Prei_Format_ID as em_pre111_188_4_, businesspa8_.EM_Pruti_Unlock_Date as em_pru112_188_4_, businesspa8_.EM_Prei_Platform_ID as em_pre113_188_4_, businesspa8_.EM_Pruti_Unlock_Order_Date as em_pru114_188_4_, businesspa8_.EM_Prei_Send_Method as em_pre115_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_So_ID as em_pru116_188_4_, businesspa8_.EM_Prei_Email as em_pre117_188_4_, businesspa8_.EM_Pruti_Annexes_Bp_Po_ID as em_pru118_188_4_, businesspa8_.EM_Prei_Need_Expedient as em_pre119_188_4_, businesspa8_.EM_Aeatsii_Defaultsiikey as em_aea120_188_4_, businesspa8_.EM_Aeatsii_Siikeylist as em_aea121_188_4_, businesspa8_.EM_Tbai_Issimplifiedinv as em_tba122_188_4_, businesspa8_.em_pruti_cus_block_reason_id as em_pru123_188_4_, businesspa8_.EM_Pruti_Notsendinvoice as em_pru124_188_4_, businesspa8_.EM_OBTIK_Tax_ID_Key as em_obt125_188_4_, attributes1_.AD_Client_ID as ad_clien2_418_5_, attributes1_.AD_Org_ID as ad_org_i3_418_5_, attributes1_.IsActive as isactive4_418_5_, attributes1_.Created as created5_418_5_, attributes1_.CreatedBy as createdb6_418_5_, attributes1_.Updated as updated7_418_5_, attributes1_.UpdatedBy as updatedb8_418_5_, attributes1_.M_AttributeSet_ID as m_attrib9_418_5_, attributes1_.SerNo as serno10_418_5_, attributes1_.Lot as lot11_418_5_, attributes1_.GuaranteeDate as guarant12_418_5_, attributes1_.Description as descrip13_418_5_, attributes1_.M_Lot_ID as m_lot_i14_418_5_, attributes1_.Islocked as islocke15_418_5_, attributes1_.Lock_Description as lock_de16_418_5_, attributes1_.M_RefInventory_ID as m_refin17_418_5_, attributes1_.Parent_AttributeSetInstance_ID as parent_18_418_5_ from M_InOutLine materialmg0_ left outer join M_AttributeSetInstance attributes1_ on materialmg0_.M_AttributeSetInstance_ID=attributes1_.M_AttributeSetInstance_ID inner join M_InOut materialmg2_ on materialmg0_.M_InOut_ID=materialmg2_.M_InOut_ID inner join C_DocType documentty3_ on materialmg2_.C_DocType_ID=documentty3_.C_DocType_ID inner join C_BPartner businesspa8_ on materialmg2_.C_BPartner_ID=businesspa8_.C_BPartner_ID inner join AD_Org organizati4_ on materialmg0_.AD_Org_ID=organizati4_.AD_Org_ID inner join AD_Client adclient5_ on materialmg0_.AD_Client_ID=adclient5_.AD_Client_ID inner join M_Product product6_ on materialmg0_.M_Product_ID=product6_.M_Product_ID inner join C_UOM uom7_ on materialmg0_.C_UOM_ID=uom7_.C_UOM_ID where materialmg2_.C_BPartner_ID='B52887A42D024FEB898F473500E02606' and documentty3_.IsReturn='N' and materialmg2_.Processed='Y' and materialmg2_.DocStatus<>'VO' and materialmg2_.IsSOTrx='Y' and materialmg2_.Isnettingshipment='N' and materialmg0_.MovementQty+coalesce((select sum(orderline38_.QtyOrdered) from C_OrderLine orderline38_ inner join C_Order order39_ on orderline38_.C_Order_ID=order39_.C_Order_ID where orderline38_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID and order39_.Processed='Y' and order39_.DocStatus<>'VO'), 0)<>0 and 1=1 and (materialmg0_.AD_Client_ID in ('0' , '4E7785E633254999A6D7545B0BE57A46')) and (materialmg0_.AD_Org_ID in ('0' , 'C34A537D1464452783C0A7C7C913FC86' , '4A2127624482427B8B0BE0DD8ABF92D4' , '3724B485FEC444038C28CAEE0F24E7E6' , 'B2834B32C6C2488CA31DE4D756AD4A5F')) and (materialmg2_.MovementDate>=now()-90 or case when (select 'Y' from C_OrderLine orderline40_ where orderline40_.C_Order_ID='A0129CF40B954C2A9055C36E767BFF30' and orderline40_.M_Inoutline_ID=materialmg0_.M_InOutLine_ID) is null then false else true end=true) order by col_18_0_ desc, col_18_0_ desc, materialmg2_.MovementDate desc, materialmg2_.DocumentNo desc, materialmg0_.Line limit '101';
Date: 2026-07-17 07:51:01 Duration: 1s552ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
7 1s179ms 2s996ms 1s638ms 9 14s749ms select * from c_order_post (?);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jul 17 07 1 2s996ms 2s996ms 08 1 1s876ms 1s876ms 10 1 1s254ms 1s254ms 13 1 1s398ms 1s398ms 14 1 1s510ms 1s510ms 15 1 1s179ms 1s179ms 16 1 1s208ms 1s208ms 17 1 1s912ms 1s912ms 18 1 1s411ms 1s411ms [ User: tad - Total duration: 14s749ms - Times executed: 9 ]
[ Application: openbravo - Total duration: 14s749ms - Times executed: 9 ]
-
SELECT * FROM C_ORDER_POST ('F94A42171B614C5ABB9EDFB4A9A37071');
Date: 2026-07-17 07:49:05 Duration: 2s996ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('000CCF6F834D40979CB521B786EB5DDD');
Date: 2026-07-17 17:32:14 Duration: 1s912ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_ORDER_POST ('40DD5AF434784F20B88530F5FD20532B');
Date: 2026-07-17 08:08:58 Duration: 1s876ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
8 1s56ms 2s250ms 1s625ms 18 29s255ms select * from ( select c_invoice.c_invoice_id as referencekey_id, c_invoice.documentno as record_id, ? as ad_role_id, null as ad_user_id, ?| | c_invoice.documentno || ?| | c_invoice.grandtotal || ?| | (( select round(sum(linenetamt), ?) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), ?), ?) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, ? as isactive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby from c_invoice where c_invoice.issotrx = ? and c_invoice.grandtotal <> round((( select round(sum(linenetamt), ?) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), ?), ?) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), ?)) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jul 17 07 1 1s580ms 1s580ms 08 1 1s509ms 1s509ms 09 2 3s901ms 1s950ms 10 2 2s701ms 1s350ms 11 1 1s56ms 1s56ms 12 1 2s57ms 2s57ms 13 1 1s997ms 1s997ms 14 1 1s71ms 1s71ms 15 1 1s418ms 1s418ms 16 1 1s505ms 1s505ms 17 1 1s846ms 1s846ms 18 1 1s683ms 1s683ms 19 2 3s409ms 1s704ms 20 1 1s793ms 1s793ms 21 1 1s721ms 1s721ms [ User: tad - Total duration: 29s255ms - Times executed: 18 ]
[ Application: openbravo - Total duration: 29s255ms - Times executed: 18 ]
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'Y' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'D385EC7B4B9F428093AF4EBA38AF5821' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:00:21 Duration: 2s250ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'Y' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = 'D385EC7B4B9F428093AF4EBA38AF5821' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 12:00:20 Duration: 2s57ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select c_invoice.C_INVOICE_ID as referencekey_id, c_invoice.documentno as record_id, 0 as ad_role_id, null as ad_user_id, 'Factura ' || c_invoice.documentno || ' difiere el importe total ' || c_invoice.grandtotal || ' con la suma del total de las lineas + impuestos ' || (( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)) as description, 'Y' as isActive, c_invoice.ad_org_id, c_invoice.ad_client_id, now() as created, 0 as createdBy, now() as updated, 0 as updatedBy from c_invoice where c_invoice.issotrx = 'N' and c_invoice.grandtotal <> round((( select round(sum(linenetamt), 2) from c_invoiceline line where line.c_invoice_id = c_invoice.c_invoice_id) + ( select coalesce(round(sum(tax.taxamt), 2), 0) from c_invoicetax tax where tax.c_invoice_id = c_invoice.c_invoice_id)), 2)) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '64986CDE8CEA4AA1BA98CD9FEEEE3553' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:21 Duration: 2s51ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
9 1s340ms 1s873ms 1s607ms 2 3s214ms select * from c_invoice_post0 (?);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jul 17 11 2 3s214ms 1s607ms [ User: tad - Total duration: 3s214ms - Times executed: 2 ]
[ Application: openbravo - Total duration: 3s214ms - Times executed: 2 ]
-
SELECT * FROM C_Invoice_Post0 ('2DEBEC6634F44757BDE48CE86ACDE4E4');
Date: 2026-07-17 11:24:41 Duration: 1s873ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM C_Invoice_Post0 ('CDAA9C8F647B43599AE12D3528E358F6');
Date: 2026-07-17 11:33:19 Duration: 1s340ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
10 1s264ms 1s264ms 1s264ms 1 1s264ms select i.c_invoice_id as id, ad_column_identifier (to_char(?), to_char(i.c_invoice_id), to_char(?)) as name from c_invoice i join c_doctype dt on i.c_doctype_id = dt.c_doctype_id where i.docstatus in (...) and i.ad_client_id in (...) and i.ad_org_id in (...) and i.issotrx = ? and i.c_bpartner_id = ? and dt.isreturn = ? and exists ( select ? from c_invoiceline il where il.c_invoice_id = i.c_invoice_id and ((il.m_inoutline_id is null and il.qtyinvoiced <> ?) or (il.m_inoutline_id is not null and exists ( select ? from m_inoutline iol where iol.m_inoutline_id = il.m_inoutline_id and (il.qtyinvoiced - iol.movementqty) <> ?)))) order by name;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jul 17 08 1 1s264ms 1s264ms [ User: tad - Total duration: 1s264ms - Times executed: 1 ]
[ Application: openbravo - Total duration: 1s264ms - Times executed: 1 ]
-
SELECT i.C_Invoice_ID AS ID, Ad_Column_Identifier (TO_CHAR('C_Invoice'), TO_CHAR(i.C_Invoice_ID), TO_CHAR('es_ES')) AS NAME FROM C_INVOICE i JOIN C_DOCTYPE dt ON i.c_doctype_id = dt.c_doctype_id WHERE i.DocStatus IN ('CL', 'CO') AND i.AD_Client_ID IN ('0', '4E7785E633254999A6D7545B0BE57A46') AND i.AD_Org_ID IN ('0', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F', 'C34A537D1464452783C0A7C7C913FC86') AND i.IsSOTrx = 'Y' AND i.C_BPartner_ID = '1000108' AND dt.isreturn = 'N' AND EXISTS ( SELECT 1 FROM C_INVOICELINE il WHERE il.C_INVOICE_ID = i.C_INVOICE_ID AND ((il.M_INOUTLINE_ID IS NULL AND il.QtyInvoiced <> 0) OR (il.M_INOUTLINE_ID IS NOT NULL AND EXISTS ( SELECT 1 FROM M_INOUTLINE iol WHERE iol.M_INOUTLINE_ID = il.M_INOUTLINE_ID AND (il.QtyInvoiced - iol.MOVEMENTQTY) <> 0)))) ORDER BY NAME;
Date: 2026-07-17 08:01:12 Duration: 1s264ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
11 1s16ms 1s602ms 1s200ms 4 4s800ms select * from ( select c_invoice_id as referencekey_id, ? as ad_role_id, null as ad_user_id, ? as description, ? as isactive, c_invoice.ad_org_id as ad_org_id, c_invoice.ad_client_id as ad_client_id, now() as created, ? as createdby, now() as updated, ? as updatedby, ad_column_identifier (?, c_invoice_id, ?) as record_id, posted from c_invoice, c_doctype where c_invoice.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype in (...) and not exists ( select ? from c_period where c_period.startdate <= trunc(dateacct) and trunc(dateacct) <= c_period.enddate) group by c_invoice_id, posted, c_invoice.ad_org_id, c_invoice.ad_client_id) aaa where not exists ( select ? from ad_alert a where a.ad_alertrule_id = ? and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, ?) != ?);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jul 17 09 1 1s602ms 1s602ms 17 1 1s16ms 1s16ms 19 1 1s147ms 1s147ms 20 1 1s34ms 1s34ms [ User: tad - Total duration: 4s800ms - Times executed: 4 ]
[ Application: openbravo - Total duration: 4s800ms - Times executed: 4 ]
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 09:00:02 Duration: 1s602ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 19:00:01 Duration: 1s147ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
SELECT * FROM ( select C_INVOICE_id as referencekey_id, '0' as ad_role_id, null as ad_user_id, 'SALES INVOICE ACCOUNTING DATE NOT IN A PERIOD' as description, 'Y' as isActive, C_INVOICE.ad_org_id as ad_org_id, C_INVOICE.ad_client_id as ad_client_id, now() as created, '0' as createdBy, now() as updated, '0' as updatedBy, ad_column_identifier ('C_INVOICE', C_INVOICE_id, 'es_ES') AS RECORD_ID, posted FROM C_INVOICE, c_doctype WHERE C_INVOICE.c_doctype_id = c_doctype.c_doctype_id and c_doctype.docbasetype IN ('ARI', 'ARC', 'ARF') and not exists ( select 1 from c_period where c_period.startdate <= TRUNC(dateacct) and TRUNC(dateacct) <= c_period.enddate) GROUP BY C_INVOICE_id, posted, C_INVOICE.ad_org_id, C_INVOICE.ad_client_id) AAA where not exists ( select 1 from ad_alert a where a.ad_alertrule_id = '9949239808164E51ADF2E6B1E8DF6D63' and a.referencekey_id = aaa.referencekey_id and coalesce(a.status, 'NEW') != 'SOLVED');
Date: 2026-07-17 20:00:01 Duration: 1s34ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
12 1s 2s905ms 1s198ms 51 1m1s select productbyp0_.m_product_price_warehouse_v_id as m_produc1_496_, productbyp0_.ad_client_id as ad_clien2_496_, productbyp0_.ad_org_id as ad_org_i3_496_, productbyp0_.isactive as isactive4_496_, productbyp0_.updated as updated5_496_, productbyp0_.updatedby as updatedb6_496_, productbyp0_.created as created7_496_, productbyp0_.createdby as createdb8_496_, productbyp0_.m_product_id as m_produc9_496_, productbyp0_.m_warehouse_id as m_wareh10_496_, productbyp0_.m_productprice_id as m_produ11_496_, productbyp0_.qty_available as qty_ava12_496_, productbyp0_.qty_onhand as qty_onh13_496_, productbyp0_.qty_reserved as qty_res14_496_, productbyp0_.qty_ordered as qty_ord15_496_, productbyp0_.pricelist as priceli16_496_, productbyp0_.pricestd as pricest17_496_, productbyp0_.pricelimit as priceli18_496_, productbyp0_.orgwarehouse as orgware19_496_ from m_product_price_warehouse_v productbyp0_ left outer join m_product product1_ on productbyp0_.m_product_id = product1_.m_product_id cross join m_productprice pricingpro4_ cross join m_pricelist_version pricingpri5_ cross join m_pricelist pricingpri9_ where productbyp0_.m_productprice_id = pricingpro4_.m_productprice_id and pricingpro4_.m_pricelist_version_id = pricingpri5_.m_pricelist_version_id and pricingpri5_.m_pricelist_id = pricingpri9_.m_pricelist_id and (upper(product1_.value) like upper(?) escape ? or upper(product1_.name) like upper(?) escape ? or upper((coalesce(to_char(( select producttrl2_.name from m_product_trl producttrl2_ where producttrl2_.m_product_id = product1_.m_product_id and producttrl2_.ad_language = ?)), to_char(product1_.name), ?) || ?| | product1_.value)) like upper(?) escape ? or upper((coalesce(to_char(( select producttrl3_.name from m_product_trl producttrl3_ where producttrl3_.m_product_id = product1_.m_product_id and producttrl3_.ad_language = ?)), to_char(product1_.name), ?) || ?| | product1_.value)) like upper(?) escape ?) and (productbyp0_.ad_org_id in (...)) and productbyp0_.isactive = ? and ad_org_isinnaturaltree (productbyp0_.orgwarehouse, ?, ?) = ? and pricingpri5_.isactive = ? and ad_org_isinnaturaltree (pricingpro4_.ad_org_id, ?, ?) = ? and pricingpri9_.issopricelist = ? and pricingpri9_.c_currency_id = ? and pricingpro4_.m_pricelist_version_id = ? and productbyp0_.m_warehouse_id = ? and (productbyp0_.ad_client_id in (...)) and productbyp0_.isactive = ? order by product1_.name, product1_.value, product1_.m_product_id limit ?;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jul 17 07 7 8s233ms 1s176ms 08 9 11s649ms 1s294ms 09 3 4s661ms 1s553ms 10 12 14s725ms 1s227ms 11 3 3s316ms 1s105ms 12 6 7s118ms 1s186ms 14 5 5s174ms 1s34ms 15 2 2s66ms 1s33ms 16 1 1s13ms 1s13ms 17 2 2s125ms 1s62ms 18 1 1s36ms 1s36ms [ User: tad - Total duration: 1m1s - Times executed: 51 ]
[ Application: openbravo - Total duration: 1m1s - Times executed: 51 ]
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%A%') escape '|' or upper(product1_.Name) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000113' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 08:00:11 Duration: 2s905ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%gr%') escape '|' or upper(product1_.Name) like upper('%gr%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%gr%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%gr%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000112' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 09:00:11 Duration: 1s909ms Database: etendo User: tad Remote: 127.0.0.1 Application: openbravo Bind query: yes
-
select productbyp0_.M_Product_Price_Warehouse_V_ID as m_produc1_496_, productbyp0_.AD_Client_ID as ad_clien2_496_, productbyp0_.AD_Org_ID as ad_org_i3_496_, productbyp0_.Isactive as isactive4_496_, productbyp0_.Updated as updated5_496_, productbyp0_.Updatedby as updatedb6_496_, productbyp0_.Created as created7_496_, productbyp0_.Createdby as createdb8_496_, productbyp0_.M_Product_ID as m_produc9_496_, productbyp0_.M_Warehouse_ID as m_wareh10_496_, productbyp0_.M_Productprice_ID as m_produ11_496_, productbyp0_.QTY_Available as qty_ava12_496_, productbyp0_.QTY_Onhand as qty_onh13_496_, productbyp0_.QTY_Reserved as qty_res14_496_, productbyp0_.QTY_Ordered as qty_ord15_496_, productbyp0_.Pricelist as priceli16_496_, productbyp0_.Pricestd as pricest17_496_, productbyp0_.Pricelimit as priceli18_496_, productbyp0_.Orgwarehouse as orgware19_496_ from M_Product_Price_Warehouse_v productbyp0_ left outer join M_Product product1_ on productbyp0_.M_Product_ID = product1_.M_Product_ID cross join M_ProductPrice pricingpro4_ cross join M_PriceList_Version pricingpri5_ cross join M_PriceList pricingpri9_ where productbyp0_.M_Productprice_ID = pricingpro4_.M_ProductPrice_ID and pricingpro4_.M_PriceList_Version_ID = pricingpri5_.M_PriceList_Version_ID and pricingpri5_.M_PriceList_ID = pricingpri9_.M_PriceList_ID and (upper(product1_.Value) like upper('%A%') escape '|' or upper(product1_.Name) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl2_.Name from M_Product_Trl producttrl2_ where producttrl2_.M_Product_ID = product1_.M_Product_ID and producttrl2_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|' or upper((coalesce(to_char(( select producttrl3_.Name from M_Product_Trl producttrl3_ where producttrl3_.M_Product_ID = product1_.M_Product_ID and producttrl3_.AD_Language = 'es_ES')), to_char(product1_.Name), '') || ' - ' || product1_.Value)) like upper('%A%') escape '|') and (productbyp0_.AD_Org_ID in ('0', 'C34A537D1464452783C0A7C7C913FC86', '4A2127624482427B8B0BE0DD8ABF92D4', '3724B485FEC444038C28CAEE0F24E7E6', 'B2834B32C6C2488CA31DE4D756AD4A5F')) and productbyp0_.Isactive = 'Y' and AD_ORG_ISINNATURALTREE (productbyp0_.Orgwarehouse, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri5_.IsActive = 'Y' and AD_ORG_ISINNATURALTREE (pricingpro4_.AD_Org_ID, 'B2834B32C6C2488CA31DE4D756AD4A5F', '4E7785E633254999A6D7545B0BE57A46') = 'Y' and pricingpri9_.IsSOPriceList = 'Y' and pricingpri9_.C_Currency_ID = '102' and pricingpro4_.M_PriceList_Version_ID = '1000113' and productbyp0_.M_Warehouse_ID = '6F618729B86C4789AF3EC693A15D4785' and (productbyp0_.AD_Client_ID in ('4E7785E633254999A6D7545B0BE57A46', '0')) and productbyp0_.Isactive = 'Y' order by product1_.Name, product1_.Value, product1_.M_Product_ID limit '76';
Date: 2026-07-17 10:28:59 Duration: 1s845ms 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
- 70,577 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 0 EVENTLOG entries
Events per 5 minutes
NO DATASET
Most Frequent Errors/Events
Key values
- 0 Max number of times the same event was reported
- 0 Total events found
Rank Times reported Error NO DATASET